docbook-apps

  • 1.  ePub to MOBI conversion

    Posted 08-15-2012 16:38
    At different times I've used kindlegen and calibre for ePub to MOBI conversion, with varying results, but I've never been 100% happy with the result from either.

    Does anyone on the list have any suggestions as to which of these (or which alternative) is the best choice for conversion when the ePub was generated using the DocBook stylesheets?

    Thanks,
    Dick Hamilton
    -------
    XML Press
    New from XML Press:
    WIKI: Grow Your Own for Fun and Profit
    http://xmlpress.net/publications/wiki-how-to-grow







  • 2.  RE: [docbook-apps] ePub to MOBI conversion

    Posted 08-15-2012 17:00
    I take my finished epub, extract the OEBPS with all the epub contents, and run a Perl script filled with regex on the files (to change the standard epub, tagging to fit Amazon's non-standard requirements). Then I drag the content.opf into the Kindle Previewer window. There are a lot of changes to make (such as removing p tags from within li or p tags within blockquotes). I also maintain a separate mobi CSS stylesheet. It's a giant pain, but for our books the standard epub to mobi conversion provided out of the box by Kindlegen is too messy, and Calibre scares me a bit.

    I'm thinking about starting a customization of the docbook epub transform that outputs the tags in a way that works better with kindlegen. One of these days...




  • 3.  Re: [docbook-apps] ePub to MOBI conversion

    Posted 08-16-2012 07:54
    On 15.8.2012 18:38, Richard L Hamilton wrote:
    > At different times I've used kindlegen and calibre for ePub to MOBI conversion, with varying results, but I've never been 100% happy with the result from either.
    >
    > Does anyone on the list have any suggestions as to which of these (or which alternative) is the best choice for conversion when the ePub was generated using the DocBook stylesheets?

    Personally I haven't faced many serious problem when I was converting
    output of epub3 stylesheet with Calibre. What I did was to adjust
    resulting XHTML files prior packing into .epub. I used attached
    stylesheet and simple Ant target:


    <target name="kindleize">
    <xslt style="${home.dir}/kindleize.xsl" force="true"
    basedir="${out.dir}" includes="*.xhtml" destdir="${out.dir}/kindle">
    <factory name="net.sf.saxon.TransformerFactoryImpl"/>
    <classpath location="${saxon9.jar}"/>
    </xslt>
    </target>

    HTH,

    Jirka

    --
    ------------------------------------------------------------------
    Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
    ------------------------------------------------------------------
    Professional XML consulting and training services
    DocBook customization, custom XSLT/XSL-FO document processing
    ------------------------------------------------------------------
    OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
    ------------------------------------------------------------------