Quote:
Originally Posted by Phssthpok
And is there anything already in Calibre to do the flattening, rather than having to include the whole unidecode module in my plugin?
|
Off the top of my head I can't remember exactly what each of the following does, but if you download a copy of the calibre source code these functions may be helpful:
from calibre.utils.filenames import
ascii_text
from calibre import
sanitize_file_name_unicode
from calibre.ebooks.oeb.polish.check.parsing import
make_filename_safe
I've used all of them at some point in various calibre plugins.