OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Generated epub to mobi - lists are incorrectly displayed


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Indeed, and what if you want to have a list item with more than one
para as a child? I guess Kindle demands:

<li>This is my first para. <p>This is my second para.</p></li>

But then what if I want to add a class to that first <p> but not to
the second? I guess you'd have to wrap the first para in a div instead.

David

On 10/31/2011 11:16 PM, rob.cavicchio@emc.com wrote:
> I disagree. Under what circumstances do you think that anyone would
> want a bullet on a line by itself?
> 
> 
> *From:*Lars Vogel [mailto:lars.vogel@googlemail.com] *Sent:*
> Saturday, October 29, 2011 03:02 *To:* Jon Rosen *Cc:* Jirka Kosek;
> DocBook Apps *Subject:* Re: [docbook-apps] Generated epub to mobi -
> lists are incorrectly displayed
> 
> 
> 
> 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 <li> <p> Text </p> </li> 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
> <mailto:jon.rosen@ucirrus.com>>
> 
> To be clear though, this is a problem with the mobi browser
> rendering of list items that are wrapped in <p> tags, not docbook.
> 
> The rendering of a <p> inside an <li> should NOT put the dot on a 
> separate line.  I tested this in Firefox and IE.  The <p> tag adds
> some spacing above and below the line, but the dot remains on the
> first paragraph line.
> 
> Jon Rosen
> 
> 
> -----Original Message----- From: Jirka Kosek [mailto:jirka@kosek.cz
> <mailto:jirka@kosek.cz>] Sent: Friday, October 28, 2011 3:28 PM To:
> Lars Vogel Cc: DocBook Apps Subject: Re: [docbook-apps] Generated
> epub to mobi - lists are incorrectly displayed
> 
> 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.
>> 
>> <ul><li> Hello </li> </ul>
>> 
>> 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
> <p> (because originaly it was <para> in DocBook). The easiest way
> how to fix this is to postprocess generated XHTML files and remove
> <p>s inside <li>. I'm using attached XSLT transformation (inspired
> by code provided by Adam Witwer originaly).
> 
> Jirka
> 
> -- 
> ------------------------------------------------------------------ 
> Jirka Kosek      e-mail: jirka@kosek.cz <mailto: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
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOr++3AAoJEMHeSXG7afUh2tQH/2sYptAocBKSuRt6LNwz83Uq
5HclpeyGg8w2pBhsFlO7ik2sZvvigm1u2oewM6cBwSAKK4OBa75tgA8cidiKXtIk
jVcuhJPdAnTJtPSsoic5ix9PxyGso/7+XpLU3s0py0IdW5jjkIU27iiGsGKNyFUD
tq722s7vwMgNpwAKD2MCBh8Uorbzio35kloByZTmYRVYzeD1ogCFlWKfV/FXY4lC
7Biu1sG+S/okQF7coJPQ8YaALCMqnbvj7yvvQjcklwHGU2Cj2FnoYd2bamGftnHX
LP+CJM8y1QYaD6OfQ8GOvWmDhXYCZTFqHE0P9e+kJNcYtTLz5RS8uXwZmwhCjO4=
=yRua
-----END PGP SIGNATURE-----


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]