Transliterate paths to restricted ASCII

48 views
Skip to first unread message

michael....@gmail.com

unread,
May 8, 2013, 9:22:08 AM5/8/13
to beets...@googlegroups.com
I feel an urge to have paths that are made up of a rather restricted set of characters, something like [a-zA-Z0-9_-.]. I'm not really sure if this is a good idea. It mainly appeals to me, I think, because it's easier to work with that kind of paths on the command line.

On the command line, I can get most of the transliteration I need from iconv like this

$ echo "Schürig" | iconv -t ASCII//translit
Schuerig

As far as I can tell, beets doesn't have a suitable hook for this kind of conversion. Are there any others who would like such a feature? Do you think that I'm mistaken in wanting it?

Michael

Michael MacLeod

unread,
May 8, 2013, 1:40:00 PM5/8/13
to beets...@googlegroups.com
Michael,

You want to use the "asciify" command in your path settings. Here's my
singleton path:
singleton: %asciify{Non-Album/$artist_sort - $title}

It's simple and it works.

Regards,
Mike
> --
> You received this message because you are subscribed to the Google Groups
> "beets" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beets-users...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

michael....@gmail.com

unread,
May 8, 2013, 2:33:41 PM5/8/13
to beets...@googlegroups.com
Mike,

thanks for pointing out asciify. I'm surplussed, however, how I could have missed it. I've read the docs and I've read the code and still I didn't notice it.

Michael
Reply all
Reply to author
Forward
0 new messages