docbook-apps

  • 1.  Generated epub to mobi - lists are incorrectly displayed

    Posted 10-28-2011 14:38
      |   view attached
    Hello,

    this might be the wrong list to ask the following question, if that is the
    case I'm sorry.

    I'm generating epubs via Docbook and the epub XSLT stylesheets. If I convert
    them to mobipocket for the Kindle lists are incorrectly displayed.

    • Hello


    The dot is in one line and the text in another. Screenshot attached.

    I tried kindlegen and Calibre.

    Anyone know how to solve this?

    Best regards, Lars
    --
    Lars
    http://www.vogella.de - Eclipse, Android and Java Tutorials
    http://www.twitter.com/vogella - Lars on Twitter



  • 2.  Re: [docbook-apps] Generated epub to mobi - lists are incorrectly displayed

    Posted 10-28-2011 22:28
    On 28.10.2011 16:38, Lars Vogel wrote:

    > I'm generating epubs via Docbook and the epub XSLT stylesheets. If I convert
    > them to mobipocket for the Kindle lists are incorrectly displayed.
    >
    >
    • Hello

    >
    > The dot is in one line and the text in another. Screenshot attached.
    >
    > I tried kindlegen and Calibre.
    >
    > Anyone know how to solve this?

    The problem is that DocBook stylesheets wrap content of listitem in


    (because originaly it was <para> in DocBook). The easiest way how to fix
    this is to postprocess generated XHTML files and remove

    s inside

  • . I'm using attached XSLT transformation (inspired by code provided
    by Adam Witwer originaly).

    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
    ------------------------------------------------------------------



  • 3.  RE: [docbook-apps] Generated epub to mobi - lists are incorrectly displayed

    Posted 10-28-2011 22:39
    To be clear though, this is a problem with the mobi browser rendering of list items that are wrapped in

    tags, not docbook.

    The rendering of a

    inside an

  • should NOT put the dot on a separate line. I tested this in Firefox and IE. The

    tag adds some spacing above and below the line, but the dot remains on the first paragraph line.

    Jon Rosen


  • . I'm using attached XSLT transformation (inspired by code provided by Adam Witwer originaly).

    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
    ------------------------------------------------------------------



  • 4.  Re: [docbook-apps] Generated epub to mobi - lists are incorrectly displayed

    Posted 10-29-2011 10:02
    Hi Jon,

    I think the browsers may have accepted that people do this and try to give a
    good display. I think Kindle acctually shows it correct. The instruction
  • Text

  • basically says: first make a list item then a
    paragraph and then the text.

    Best regards, Lars

    2011/10/29 Jon Rosen <jon.rosen@ucirrus.com>

    > To be clear though, this is a problem with the mobi browser rendering of
    > list items that are wrapped in

    tags, not docbook.
    >
    > The rendering of a

    inside an

  • should NOT put the dot on a separate
    > line. I tested this in Firefox and IE. The

    tag adds some spacing above
    > and below the line, but the dot remains on the first paragraph line.
    >
    > Jon Rosen
    >
    >

  • .
    > I'm using attached XSLT transformation (inspired by code provided by Adam
    > Witwer originaly).
    >
    > 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
    > ------------------------------------------------------------------
    >



    --
    Lars
    http://www.vogella.de - Eclipse, Android and Java Tutorials
    http://www.twitter.com/vogella - Lars on Twitter