|  05-28-2014, 06:07 AM | #16 | 
| Bookmaker & Cat Slave            Posts: 11,503 Karma: 158448243 Join Date: Apr 2010 Location: Phoenix, AZ Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2 | 
			
			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 | 
|   |   | 
|  05-28-2014, 06:28 AM | #17 | 
| Color me gone            Posts: 2,089 Karma: 1445295 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! | 
|   |   | 
| Advert | |
|  | 
|  05-28-2014, 06:39 AM | #18 | 
| Zealot  Posts: 104 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.
		 | 
|   |   | 
|  05-28-2014, 01:20 PM | #19 | 
| Fanatic            Posts: 580 Karma: 810184 Join Date: Sep 2010 Location: Norway Device: prs-t1,  tablet, Nook Simple, assorted kindles, iPad | 
			
			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. | 
|   |   | 
|  05-28-2014, 01:45 PM | #20 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 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. | 
|   |   | 
| Advert | |
|  | 
|  05-28-2014, 01:49 PM | #21 | 
| Zealot  Posts: 104 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    | 
|   |   | 
|  05-28-2014, 01:53 PM | #22 | 
| Zealot  Posts: 104 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.
		 | 
|   |   | 
|  05-28-2014, 02:23 PM | #23 | 
| Addict            Posts: 398 Karma: 96448 Join Date: Dec 2013 Device: iPad | |
|   |   | 
|  05-28-2014, 02:35 PM | #24 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 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).
		 | 
|   |   | 
|  05-28-2014, 02:56 PM | #25 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 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%;
} | 
|   |   | 
|  05-28-2014, 05:07 PM | #26 | 
| Zealot  Posts: 104 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).
		 | 
|   |   | 
|  05-28-2014, 08:40 PM | #27 | |
| Bookmaker & Cat Slave            Posts: 11,503 Karma: 158448243 Join Date: Apr 2010 Location: Phoenix, AZ Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2 | Quote: 
 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 | |
|   |   | 
|  05-28-2014, 10:03 PM | #28 | |
| Wizard            Posts: 2,306 Karma: 13057279 Join Date: Jul 2012 Device: Kobo Forma, Nook | Quote: 
  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. | |
|   |   | 
|  05-29-2014, 01:09 AM | #29 | 
| Zealot  Posts: 104 Karma: 20 Join Date: Jun 2011 Location: County Down, Northern Ireland Device: none | 
			
			Roll on the hanging-punctuation property!
		 | 
|   |   | 
|  05-29-2014, 03:01 AM | #30 | 
| Addict            Posts: 398 Karma: 96448 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.
		 | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  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 |