View Single Post
Old 12-10-2017, 12:53 PM   #239
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,893
Karma: 6120478
Join Date: Nov 2009
Device: many
Wouldn't it be easier to recommend to users they add an html comment to the first file or define display:none header with the filename in the first file, or add a metadata element to the opf with that info and then invoke the output plugin? Your plugin could easily determine if the user has done this and if so read and use it otherwise default to a generic output filename.

Alternatively, parse the opf to get the main book title and remove unwanted/unsafe chars from it and use that as a suggested title.
KevinH is offline   Reply With Quote