Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-03-2010, 06:10 AM   #1
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
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?
ghostyjack is offline   Reply With Quote
Old 11-03-2010, 10:35 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by ghostyjack View Post
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.
Even if it were for a single device, it would also be for a single font size, orientation, etc.

Quote:
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?
It's not possible with XHTML+CSS, but I've suggested it to the ePUB board as a possible enhancement.
Jellby is offline   Reply With Quote
Advert
Old 11-03-2010, 02:16 PM   #3
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
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.
ghostyjack is offline   Reply With Quote
Old 11-03-2010, 02:58 PM   #4
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
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
}
See, for instance, the bottom picture here. Of course, some poetry authors have very specific requirements, some of which can't be handled by css2.
charleski is offline   Reply With Quote
Old 11-04-2010, 05:26 AM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by charleski View Post
I think a slightly more common convention is to use hanging paragraphs.

See, for instance, the bottom picture here.
That looks like unconventional poetry (very long lines) to me. "Traditional" poetry tends to have shorter lines, that usually fit in the page and only exceptionally need to be broken. The printing/typesetting conventions probably change between languages and countries, but over here the most common way to solve wrapping in poetry is right-aligning the wrapped part with a "[" before it.

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.
Jellby is offline   Reply With Quote
Advert
Old 11-04-2010, 06:15 AM   #6
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by Jellby View Post
The printing/typesetting conventions probably change between languages and countries, but over here the most common way to solve wrapping in poetry is right-aligning the wrapped part with a "[" before it.
Hanging indents are definitely the norm in English, though as you say this may vary in other languages.
charleski is offline   Reply With Quote
Old 11-04-2010, 08:35 AM   #7
Ken Irving
Writer
Ken Irving has read every ebook posted at MobileReadKen Irving has read every ebook posted at MobileReadKen Irving has read every ebook posted at MobileReadKen Irving has read every ebook posted at MobileReadKen Irving has read every ebook posted at MobileReadKen Irving has read every ebook posted at MobileReadKen Irving has read every ebook posted at MobileReadKen Irving has read every ebook posted at MobileReadKen Irving has read every ebook posted at MobileReadKen Irving has read every ebook posted at MobileReadKen Irving has read every ebook posted at MobileRead
 
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.
Ken Irving is offline   Reply With Quote
Old 11-04-2010, 08:54 AM   #8
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
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.
ghostyjack is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 07:52 PM.


MobileRead.com is a privately owned, operated and funded community.