Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-28-2014, 06:07 AM   #16
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,520
Karma: 13915749
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by odedta View Post
Hitch, why wouldn't a table solve this?
odedta:

If the poetry is short enough, you could get away with it, assuming that each stanza was in its own table, and each line in its own row. Remember that a) oldest Kindle devices don't recognize tables AT ALL, so you'll have a muddled mess with no fallback coding to save you; b) if a table is too long on most Nooks (too many rows), the device will simply flip PAST the entire table, as if it doesn't exist--you can't scroll through an overly-long table. The device flips to the next-screen-in-sequence, after the end of the table. c) Long tables in Kindle = no-no, because K2's and up to the mid K-3's (and, actually, not 100% sure about the new DX'es) will "lose" the table formatting if the table's rows carry over onto a new screen, as if the device loses its mind.

There's another reason I can't pull from inside the hollows of my brain, but those are the biggies. This is the ePUB forum, so really, we only care about b), here, but b) is a real doozy, and remember: you can't CONTROL the vertical size of the table, given that people can resize the font. If ancient Mrs. Jones sizes her fonts to uber-large, and the tables resize throughout, you could be in for a very nasty surprise. I remember the first time the "disappearing table" stunt happened to me...that was quite unpleasant, when I had a client who thought I'd omitted all their carefully-cultivated tabular data...but they'd resized it via font sizes, and the tables all disappeared, with the "page numbers" jumping a few digits at each "gap." Rude, that.

FWIW. As they say, your mileage may vary.

Hitch
Hitch is offline   Reply With Quote
Old 05-28-2014, 06:28 AM   #17
mrmikel
Book Twiddler
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,086
Karma: 1444487
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
What is a crying shame is that ereaders have been out long enough to have had these issues resolved and we are still little better than things were five years ago.

The epub people fiddle with the standard to accommodate video without even fixing simple text things.

If you stick with Apple or Kindle, you still aren't any better off. More googas and still you can't lay out a poem that doesn't blow up. Phooey!
mrmikel is offline   Reply With Quote
 
Enthusiast
Old 05-28-2014, 06:39 AM   #18
Derek R
Connoisseur
Derek R began at the beginning.
 
Derek R's Avatar
 
Posts: 87
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
Yes, Hitch, you are quite right - it dawned on me after the last post (I'm a bit slow to recall these days). So I suppose its a choice between using a little extra left margin to lines or adding in quotation marks where necessary and using the "visibility: hidden" property. Neither is perfect.
Derek R is offline   Reply With Quote
Old 05-28-2014, 01:20 PM   #19
SBT
Fanatic
SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.
 
SBT's Avatar
 
Posts: 506
Karma: 570148
Join Date: Sep 2010
Location: Norway
Device: prs-t1, phone/Cool Reader, tablet/BlueFire, Nook Simple
Sigh... well, if visibility is not according to spec, what about setting
<span style="color:white">«</span>
Yeah, I know, it won't work in ereader programs that set a background like Aldiko and CoolReader. Perhaps you can force a white background with body background:white?
visibility:hidden works in ADE, anyhow.
SBT is offline   Reply With Quote
Old 05-28-2014, 01:45 PM   #20
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: 6,199
Karma: 4800739
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
This works in Firefox. I'm pretty sure it doesn't in ADE, but at least it degrades gracefully and doesn't require spurious text:

Code:
<div><span style="direction:rtl;width:0;float:left;">"</span>Testing line</div>
<div>secondline</div>
<div>third line</div>

Last edited by Jellby; 05-28-2014 at 02:33 PM.
Jellby is offline   Reply With Quote
Old 05-28-2014, 01:49 PM   #21
Derek R
Connoisseur
Derek R began at the beginning.
 
Derek R's Avatar
 
Posts: 87
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
It's hard to believe that something so relatively simple is still so hard to crack, isn't it? And, yes, I did think about the above but now I'm inclined just to forget about the alignment in epubs (and mobi) in the meantime and simply let the subsequent lines align to the quotation mark. It's not pretty, but it makes life simpler, I suppose
Derek R is offline   Reply With Quote
Old 05-28-2014, 01:53 PM   #22
Derek R
Connoisseur
Derek R began at the beginning.
 
Derek R's Avatar
 
Posts: 87
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
Thank you, Jellby, I'll experiment with that tomorrow and see how it works.
Derek R is offline   Reply With Quote
Old 05-28-2014, 02:23 PM   #23
odedta
Addict
odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.
 
Posts: 264
Karma: 82114
Join Date: Dec 2013
Device: iPad
Quote:
Originally Posted by Hitch View Post
odedta:
If ancient Mrs. Jones sizes her fonts to uber-large, and the tables resize throughout, you could be in for a very nasty surprise.


I can't believe people still use those old devices :/
odedta is offline   Reply With Quote
Old 05-28-2014, 02:35 PM   #24
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: 6,199
Karma: 4800739
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Sorry, I shouldn't have written that it degrades gracefully, since it doesn't. But it's possible to have a conditional CSS for ADE (and, besides, "direction" is a required CSS property in ePub 2.0.1, so if it doesn't work it's entirely ADE's fault).
Jellby is offline   Reply With Quote
Old 05-28-2014, 02:56 PM   #25
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: 6,199
Karma: 4800739
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
On the other hand, this may work in ADE, but "inline-block" and "position" are not required properties in ePub 2.0.1 (and it requires two additional spans):

Code:
<div><span class="hang"><span><span>"</span></span></span>Testing line</div>
<div>secondline</div>
<div>third line</div>

span.hang {
    display: inline-block;
    width: 0;
}
span.hang span {
    display: inline-block;
    position: relative;
    right: 0;
}
span.hang span span {
    margin-left: -100%;
}
Jellby is offline   Reply With Quote
Old 05-28-2014, 05:07 PM   #26
Derek R
Connoisseur
Derek R began at the beginning.
 
Derek R's Avatar
 
Posts: 87
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
I haven't done tests in the wild, but the first method using the "direction" properly displayed perfectly in my text/html editor. I couldn't get the second method to work in an html file, but it did work in an xhtml file, although the quotation mark ran into the first letter until a right margin was added to it (and a corresponding left margin to the subsequent lines).
Derek R is offline   Reply With Quote
Old 05-28-2014, 08:40 PM   #27
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,520
Karma: 13915749
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by Derek R View Post
I haven't done tests in the wild, but the first method using the "direction" properly displayed perfectly in my text/html editor. I couldn't get the second method to work in an html file, but it did work in an xhtml file, although the quotation mark ran into the first letter until a right margin was added to it (and a corresponding left margin to the subsequent lines).
Whew...somewhere this thread took a left turn (ha!) and now we're talking right-to-left. HOWEVER, to get back on topic:

Seriously, on the poetry, just use a small hanging indent of a few px/ems/whatever blows your skirt up. Don't give up on it, just because it won't align perfectly. That way lies madness.

Hitch
Hitch is offline   Reply With Quote
Old 05-28-2014, 10:03 PM   #28
Tex2002ans
Fanatic
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 510
Karma: 392101
Join Date: Jul 2012
Device: Nook
Quote:
Originally Posted by Hitch View Post
Seriously, on the poetry, just use a small hanging indent of a few px/ems/whatever blows your skirt up. Don't give up on it, just because it won't align perfectly. That way lies madness.


This is exactly how I would handle it. Won't work on every single font someone can throw at it, but will work GOOD ENOUGH on MOST fonts and font sizes.
Tex2002ans is offline   Reply With Quote
Old 05-29-2014, 01:09 AM   #29
Derek R
Connoisseur
Derek R began at the beginning.
 
Derek R's Avatar
 
Posts: 87
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
Roll on the hanging-punctuation property!
Derek R is offline   Reply With Quote
Old 05-29-2014, 03:01 AM   #30
odedta
Addict
odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.odedta can do the Funky Gibbon.
 
Posts: 264
Karma: 82114
Join Date: Dec 2013
Device: iPad
The hanging-punctuation property is a CSS 3 rule and is not supported in all major browser, I would use text-indent instead to be backwards compatible and work on most if not all devices.
odedta is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
quotation marks and apstrophes bails52 Conversion 3 09-01-2013 09:05 AM
Quotation marks overhanging? Cameronpaterson Kobo Reader 14 08-12-2011 05:16 AM
Quotation marks missing... lestatar Conversion 2 06-11-2011 06:39 AM
Funny looking quotation marks Novasea Workshop 9 12-09-2010 09:30 AM
Please help with quotation marks Vauh Calibre 5 04-28-2010 10:15 AM


All times are GMT -4. The time now is 09:07 AM.


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