Thread: Semantics
View Single Post
Old 12-28-2010, 07:16 AM   #13
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Quote:
Originally Posted by Jellby View Post
If I understand it correctly, your problem is with KindleGen (or whatever you use to convert ePUB to Mobi). Apparently it needs a non-compliant ePUB to create a compliant Mobi, and this is wrooooong.

The "easy" solution is not using KindleGen, but something better. It need not be a whole new program, but just a little script that does what you need:

0.5) Copy the input compliant ePUB to a temporary file.
1) Modify the temporary file to change "Text" into "Start Reading". Since an ePUB is just zipped text files, it shouldn't be too complicated.
2) Convert the modified temporary file to Mobi with KindleGen.
2.5) Delete the temporary file.

Call the script KindleGenPlus, and use KindleGenPlus from now on
I don't know why everyone thinks that my problem is with kindlegen. If I have a problem with kindlegen is that it is a CmdLine utility and not a win gui. I use kindlegen on every epub compliant file. The following works fine: c:\kindlegen "book.epub". It will produce book.mobi with no problems. With my vision and typing skills that's an accomplishment. If I accept "Text" in lieu of "Start Reading" then there is no problem.

This discussion started when I asked Valloric if he would add the capability for the user to add semantic items as desired to the semantic list. His reply was "NO." Not in the ePub spec.

Providing MOBI capability from Sigil seems straight foward by using a call to kindlegen. Except for "Start Reading", all necessary semantics seem to be present.

My present procedures are as follows;
1. produce a Sigil file with TOC and LOI.
2. Unzip Sigil file.
3. Edit content.opf to change "Text" to "Start Reading" and save.
4. Call c:\kindlegen content.opf
5. Rename content.mobi and save
6. Restart Sigil and remove TOC and LOI and save.
7. Working folder now contains book.epub (no toc and loi) and book.zip(w/ toc and loi).

book.epub passes Flight Crew.

I'm sure someone out there in Sigil land can make a tool which can do this simply and quickly. I have neither the tools or knowledge to do it. It would have to work with Win, Linux, and Mac.

Thank you for your attention and "FINI."

Charlie
crutledge is offline   Reply With Quote