View Single Post
Old 01-05-2011, 07:26 PM   #3
tscamera
Enthusiast
tscamera began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Dec 2010
Device: PRS-650 ... ipad
Lightbulb got it!

concerning add I and add II:

tweaking the global.py works as described and wanted, if:
read_file_metadata = False
then calibre will read the filename and:
filename_pattern = u'(?P<author>[^_]+) - (?P<title>.+)'
will work! - with extended filenames too (author - filename - notes.ext)

unfortunatly i used a word-produced .rtf and the properties where filled with
an author in the format: prename name (pn ln).
am i stupid!
i didn't even know that a .rtf can carry metadata. now i know!

thanks for pushing me to the regex tweaks in the prefs,
copy author to author_sort value is: comma

great!

the save_to_disk.py tweak, as described before, works perfectly.
but just for -save to disk-, naturally.

add III:
i thinks i can live with it, cause of the add I+II solutions.
now the file structure is simular to the imported filename.
just the filename itself is vis versa (fn - pn, ln.ext)

you say, there is a lot of code to modify... i'm nosy.



to whom it may concern:

i try to keep my workflow simple.
if i'm working on different versions of an e-book,
i'm just saving under different/extended filenames, importing...
that's it. no hustle with overwriting older version.
an than all my files should have the same syntax: ln, pn - fn.ext

calibre now (then) holds it all.

Last edited by tscamera; 01-05-2011 at 07:56 PM. Reason: if there is a -why-
tscamera is offline   Reply With Quote