View Single Post
Old 09-29-2014, 05:00 PM   #10
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
Quote:
Originally Posted by KevinH View Post
Hi varlog,

I do think that it is controllable by the plugin. The problem is that you would not want to use the book title as the file name without cleaning up all of the possibly nasty characters, control chars, forward and backward slashes, any character with special meaning in the shell, spaces at the end, etc that can come from a book title used to create a file name. So using "new.epub" is safer and since the file itself is passed into Sigil via temp directories/scratchfiles, the user will need to rename it and save it someplace anyway ... which makes "new.epub" as good a temporary file name as any.

KevinH
Simpleton as I am: if the book has some KindleUnpack recognizable metadata the title must be there. Converting it to sane string should be possible?
The overkill would be to include the name of the original file .

Last edited by varlog; 09-29-2014 at 05:16 PM.
varlog is offline   Reply With Quote