|  01-15-2019, 01:53 PM | #1 | 
| Addict            Posts: 281 Karma: 7724454 Join Date: Sep 2017 Location: Bethesda, MD, USA Device: Kobo Aura H20, Kobo Clara HD | 
				
				Starting a line indented to end of previous line (Poetry)
			 
			
			I have some poetry that in the manuscript has short lines formatted to preserve meter: if one line is only a few syllables, the next line begins indented past the end of the previous one, and such.   Monospace example (I've attached an image that illustrates this if the code here fails): Code: Here's a full line to start this dumb poem,
This line it ends
                  and then
                           the next begins
And now the sample's coming to an end. | 
|   |   | 
|  01-15-2019, 03:09 PM | #2 | |
| 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: 
 Hitch | |
|   |   | 
| Advert | |
|  | 
|  01-15-2019, 03:24 PM | #3 | 
| Addict            Posts: 281 Karma: 7724454 Join Date: Sep 2017 Location: Bethesda, MD, USA Device: Kobo Aura H20, Kobo Clara HD | |
|   |   | 
|  01-16-2019, 09:28 AM | #4 | 
| 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 | 
			
			Well, personally, I'd explain the realities of eBook formatting limitations to the client--after all, think of the processing power required, for the device to recalculate the entire layout, for every line, each time the reader changes fonts, font sizes, devices and orientation--but I think that Ruben has a post, around here someplace, that tried to do this, and was somewhat remotely successful.   I do want to point out that even if you are successful, that third stair-stepped indent is not going to be very pretty on 99% of devices. Typical eReader at the default font size has 60 characters per line, right? By the time Jane Reader cranks up her font size, that third indented line is going to be wrapping like there's no tomorrow. Of course, you could just make it in ePUB3 FXL. That would solve it, from the poet's viewpoint, and only inconvenience the reader. :-) Anyway, look for posts from Ruben. I'm pretty sure that's who it was that was working on it. (I'll rummage around and see if I can find his username...) Hitch | 
|   |   | 
|  01-16-2019, 12:00 PM | #5 | |
| Addict            Posts: 281 Karma: 7724454 Join Date: Sep 2017 Location: Bethesda, MD, USA Device: Kobo Aura H20, Kobo Clara HD | Quote: 
 The saving grace is that the lines I posted are as long as things get (most are shorter), so even at 18pts it usually wouldn't wrap on a larger e-reader. I'll play with that solution and decide whether it's viable or not. | |
|   |   | 
| Advert | |
|  | 
|  01-16-2019, 12:25 PM | #6 | |
| Wizard            Posts: 1,876 Karma: 8821117 Join Date: Mar 2013 Location: Rosario - Santa Fe - Argentina Device: Kindle 4 NT | Quote: 
 I think you're refering to this post: https://www.mobileread.com/forums/sh...80&postcount=8 But you can follow this another aproximation: Code: <body> <p>Here's a full line to start this dumb poem,</p> <p class="inlined">This line it ends</p> <p class="inlined1">and then</p> <p class="inlined2">the next begins</p> <p>And now the sample's coming to an end.</p> </body> Code: p {
   text-align: left;
   text-indent: 0;
   line-height: 1.2em;
   margin: 0;
}
.inlined, .inlined1, .inlined2 {
   display: inline;
}
.inlined1 {
   vertical-align: -1.2em;
}
.inlined2 {
   vertical-align: -2.4em;
}I attach the respective epub. Regards Rubén | |
|   |   | 
|  01-16-2019, 02:05 PM | #7 | 
| Addict            Posts: 281 Karma: 7724454 Join Date: Sep 2017 Location: Bethesda, MD, USA Device: Kobo Aura H20, Kobo Clara HD | |
|   |   | 
|  01-16-2019, 04:57 PM | #8 | 
| Wizard            Posts: 1,876 Karma: 8821117 Join Date: Mar 2013 Location: Rosario - Santa Fe - Argentina Device: Kindle 4 NT | |
|   |   | 
|  01-16-2019, 05:22 PM | #9 | 
| A Hairy Wizard            Posts: 3,395 Karma: 20212733 Join Date: Dec 2012 Location: Charleston, SC today Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire | 
			
			Yes, very nice!    | 
|   |   | 
|  01-16-2019, 05:39 PM | #10 | 
| 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 | |
|   |   | 
|  01-16-2019, 08:25 PM | #11 | 
| Wizard            Posts: 1,876 Karma: 8821117 Join Date: Mar 2013 Location: Rosario - Santa Fe - Argentina Device: Kindle 4 NT | |
|   |   | 
|  01-19-2019, 05:33 PM | #12 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | 
			
			But it won't look as desired if used on a small screen with large enough fonts. You have to take into account what will happen if you get line wrap.
		 | 
|   |   | 
|  01-19-2019, 05:34 PM | #13 | 
| A Hairy Wizard            Posts: 3,395 Karma: 20212733 Join Date: Dec 2012 Location: Charleston, SC today Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire | 
			
			party pooper    | 
|   |   | 
|  01-19-2019, 05:41 PM | #14 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | 
			
			Yep. And proud of it.   But seriously, any reflowable eBooks have to be allowed to have line wrap. This poetry format looks good when it doesn't wrap, but won't work when there is line wrap. The thing is, ePub is not a fixed layout print version so you can't always replicate the print layout and have to come up with a different layout that works, That layout won't work in all cases. A good case of it failing is reading on an iPhone with a large font size. | 
|   |   | 
|  01-19-2019, 08:35 PM | #15 | |
| 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: 
 The OP said that the lines he posted are the longest. That means that it will take some significant font-sizing increase to create wrap. Yes, if it's read on a smartphone, sure...the 3rd segment will, maybe, wrap. But if he has a pigheaded client (I feel the pain), then this will mostly work on standardized standalone eReaders--Nooks, Kobo, iBooks, etc. Hitch | |
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Poetry: line numbers aligned to the right. | 1v4n0 | ePub | 20 | 12-16-2017 04:02 AM | 
| First line in ePub is indented, but shouldn't be :) | Just some guy | Calibre | 10 | 03-24-2017 01:10 PM | 
| italic at end of line causes next line to start with a space | ebookreadr | Sigil | 29 | 03-20-2017 11:25 AM | 
| Style poetry - line break on verse | ramsaa | Sigil | 15 | 10-22-2013 04:28 PM | 
| Images always show on new page, even if there's only 1 line of text on previous pg | SarahMB | ePub | 13 | 01-19-2013 04:37 PM |