11-03-2010, 06:10 AM | #1 |
Guru
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
Right Aligning Wrapped Text Only
I'm putting together some poetry epubs and using PDF's of the original books from archive.org and they show that when a particular line is too long for the page they wrap it (as with any long line) but the wrapped text is right-aligned while the rest of the text is left-aligned.
Now if I was only producing the epubs for a single device I could split the line at the point it reaches the far edge and then right-align the last part. Unfortunately I was planning on uploading them here so there is no way of knowing what devices they will be displayed on so the above mentioned technique wouldn't work. So, does anyone know how I could set a line to be left-aligned but have a right-aligned wrapping if the line has to wrap? |
11-03-2010, 10:35 AM | #2 | ||
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
|
||
Advert | |
|
11-03-2010, 02:16 PM | #3 |
Guru
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
Damn it! Oh well lets hope they pick it up for the next update to the spec.
I really do not want to have the text in my poetry books to left-align on a wrap as this was not in the layout for the author when they wrote the poem, so it should not be used in ebooks either. Right-aligning wrapped text is a widely used convention for poetry and the ebooks should comply with it. |
11-03-2010, 02:58 PM | #4 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
I think a slightly more common convention is to use hanging paragraphs.
Code:
.poetry { margin-left: 1.5em; text-indent: -1.5em } |
11-04-2010, 05:26 AM | #5 | |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Anyway, even if this need is addressed in a coming spec version, we'd have to wait for reading systems to support it... Last edited by Jellby; 11-04-2010 at 05:28 AM. |
|
Advert | |
|
11-04-2010, 06:15 AM | #6 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Hanging indents are definitely the norm in English, though as you say this may vary in other languages.
|
11-04-2010, 08:35 AM | #7 |
Writer
Posts: 86
Karma: 65586
Join Date: Aug 2010
Location: New York
Device: Nook "1st Edition" Wireless, Nook4PC, NookStudy, Kindle4PC
|
Charleski has it exactly right. A hanging indent (also called an outdent or undent) is the proper way to do it, unless of course ghostyjack really does want to right align the overlapping lines, which seems to me a whole different thing. Using the CSS poetry snippet above will indent the wrapped lines and reflow them no matter what the reader or font size. The only extra I might add would be "!important" to force the reader/browser/app to recognize the hanging indent. By the way, that Publishers Weekly example of a mangled "Howl" seems all too typical of ebooks right now. I've come across some very nicely formatted ones, but get the impression that a lot of ebooks of print editions are nothing more than document dumps done by people who don't have a clue and don't care. Apparently this thoughtless 1200-page edition of Ginsberg is a prime example.
|
11-04-2010, 08:54 AM | #8 |
Guru
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
It's not that I want to right-align the text, but if the original text is right-aligned for the wrapping, the ebook should be as well.
A lot can be lost if you do not stick to the original formatting. As epub is supposed to be a universal format that can handle a wide variety of book types (fiction, non-fiction, reference, etc), then there should be some consideration of the different forms of poetry as it is a major type of book. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
After conversion to mobi words get always wrapped | nielsk | Calibre | 5 | 10-01-2010 01:34 PM |
Correctly Aligning Text Within a Table | ghostyjack | ePub | 3 | 07-28-2010 07:18 AM |
wrapped text around an image | Ambar | ePub | 2 | 07-05-2010 08:55 AM |
Wrapped/Corrupt Screen on 505? | gordon | Sony Reader | 7 | 11-20-2009 03:21 PM |
single word wrapped onto a separate line on kindle (pdf to mobi) | shinew | Calibre | 2 | 03-21-2009 06:16 PM |