12-20-2008, 06:33 AM | #1 |
Steerage Class
Posts: 711
Karma: 505995
Join Date: Mar 2008
Location: Pacific Northwest, USA
Device: Won't fit here anymore, see sig for a list of liseuses.
|
LRF and wrap-around text
Experts, is it possible to wrap text around figures in the LRF format? I've tried to convert html with text wrapping around figures to LRF, and the LRF lost the wrapping. I just want to make sure I'm not missing a trick to make the wrapping possible.
|
12-20-2008, 07:26 AM | #2 |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
AFAIK no. I was newer able to get that effect.
|
Advert | |
|
12-20-2008, 07:28 AM | #3 |
Steerage Class
Posts: 711
Karma: 505995
Join Date: Mar 2008
Location: Pacific Northwest, USA
Device: Won't fit here anymore, see sig for a list of liseuses.
|
|
12-20-2008, 01:18 PM | #4 |
creator of calibre
Posts: 44,323
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It is possible with hand written LRF but no automatic conversion tool does it as far as I know.
|
12-20-2008, 09:35 PM | #5 |
Steerage Class
Posts: 711
Karma: 505995
Join Date: Mar 2008
Location: Pacific Northwest, USA
Device: Won't fit here anymore, see sig for a list of liseuses.
|
Thanks for the info, Kovid. I wish LRF weren't so arcane.
|
Advert | |
|
12-22-2008, 10:49 PM | #6 |
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
|
12-22-2008, 10:52 PM | #7 |
Steerage Class
Posts: 711
Karma: 505995
Join Date: Mar 2008
Location: Pacific Northwest, USA
Device: Won't fit here anymore, see sig for a list of liseuses.
|
|
12-22-2008, 11:24 PM | #8 |
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
|
12-23-2008, 12:18 AM | #9 | |
Steerage Class
Posts: 711
Karma: 505995
Join Date: Mar 2008
Location: Pacific Northwest, USA
Device: Won't fit here anymore, see sig for a list of liseuses.
|
Quote:
In CSS, one has H1,H2,H3,H4,H5,H6 { text-align: center; } In the body, one has <H5>CHAPTER I</H5> When I convert to ePub using calibre, "CHAPTER I" is centered when viewed with calibre. With the same ePub file viewed with the Sony library viewer and the Sony reader, "CHAPTER I" is left-justified. What appears perfectly in a browser and in LRF does not in an ePub conversion. I don't want to have another html file just for ePub conversion. I'm quite happy with the LRF conversion, despite no wrap-around text. |
|
12-23-2008, 05:48 AM | #10 |
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
The problem is that your XHTML+CSS is incorrect in a way that calibre is working around, but AdobeDE is not. The correct tag is not <H1>, but <h1> -- capitalization in XML is relevant and all XHTML tags are lower case. Given how many other buggy things AdobeDE accepts, it seems kind of strange they don't accept this, but if you correctly lowercase all your tags in your markup and CSS, it'll work.
|
12-23-2008, 06:11 AM | #11 | |
Steerage Class
Posts: 711
Karma: 505995
Join Date: Mar 2008
Location: Pacific Northwest, USA
Device: Won't fit here anymore, see sig for a list of liseuses.
|
Quote:
I don't think it's strange at all. It's AdobeDE, after all. |
|
12-27-2008, 04:19 PM | #12 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
I think XML should be treated stricter than HTML so this is not surprising. And tools should warn when they fix buggy code. If calibre did not warn then I think this is a bug that will lead to the problems you had.
|
12-28-2008, 02:59 PM | #13 |
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
That's a good idea... Calibre is currently silently lower-casing the markup but not the CSS. When I created an EPUB with my own spit-and-bailing-wire pipeline mis-capitalization in either the XHTML or CSS would cause ADE not to style the content.
|
12-28-2008, 03:30 PM | #14 |
creator of calibre
Posts: 44,323
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
lower casing all tag names in the CSS should certainly be relatively easy to do.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS to "wrap" text between two .xhtml files? | december | Sigil | 28 | 12-06-2013 03:29 PM |
How do I change make the text of my post wrap round an image? | Mike L | Feedback | 4 | 08-12-2010 04:39 AM |
Text wrap in epub for ipad iBooks | dblatner | ePub | 3 | 04-24-2010 06:16 PM |
Can you edit the text in LRF format | Lanyon | Calibre | 9 | 03-13-2009 06:58 AM |
underlining text in LRF? | curiouser | Sony Reader | 2 | 03-31-2007 09:09 PM |