Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-15-2019, 01:53 PM   #1
sjfan
Addict
sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.
 
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.
How would you approach this in epub, or is this a case of educating the author about epub formatting limitations?
Attached Thumbnails
Click image for larger version

Name:	verse.png
Views:	168
Size:	5.6 KB
ID:	169120  
sjfan is offline   Reply With Quote
Old 01-15-2019, 03:09 PM   #2
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: 11,463
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by sjfan View Post
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.
How would you approach this in epub, or is this a case of educating the author about epub formatting limitations?
Is this solely for ePUB? NO mobi?

Hitch
Hitch is offline   Reply With Quote
Advert
Old 01-15-2019, 03:24 PM   #3
sjfan
Addict
sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.
 
Posts: 281
Karma: 7724454
Join Date: Sep 2017
Location: Bethesda, MD, USA
Device: Kobo Aura H20, Kobo Clara HD
Quote:
Originally Posted by Hitch View Post
Is this solely for ePUB? NO mobi?

Hitch
Yes, epub only.
sjfan is offline   Reply With Quote
Old 01-16-2019, 09:28 AM   #4
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: 11,463
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by sjfan View Post
Yes, epub only.
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
Hitch is offline   Reply With Quote
Old 01-16-2019, 12:00 PM   #5
sjfan
Addict
sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.
 
Posts: 281
Karma: 7724454
Join Date: Sep 2017
Location: Bethesda, MD, USA
Device: Kobo Aura H20, Kobo Clara HD
Quote:
Originally Posted by Hitch View Post
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.
Thanks a lot! That info was enough to find RbnJrg's post here: https://www.mobileread.com/forums/sh...d.php?t=258519

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.
sjfan is offline   Reply With Quote
Advert
Old 01-16-2019, 12:25 PM   #6
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,563
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by sjfan View Post
Thanks a lot! That info was enough to find RbnJrg's post here: https://www.mobileread.com/forums/sh...d.php?t=258519

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.
Hi sjfan;

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>
and

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;
}
Below you can see how it looks under ADE:

Click image for larger version

Name:	Image1.png
Views:	190
Size:	54.3 KB
ID:	169137

I attach the respective epub.

Regards
Rubén
Attached Files
File Type: epub Inlined Text.epub (2.1 KB, 233 views)
RbnJrg is offline   Reply With Quote
Old 01-16-2019, 02:05 PM   #7
sjfan
Addict
sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.
 
Posts: 281
Karma: 7724454
Join Date: Sep 2017
Location: Bethesda, MD, USA
Device: Kobo Aura H20, Kobo Clara HD
Quote:
Originally Posted by RbnJrg View Post
I think you're refering to this post:
...
But you can follow this another aproximation:
...
Regards
Rubén
Thanks, Rubén, this is fantastic!
sjfan is offline   Reply With Quote
Old 01-16-2019, 04:57 PM   #8
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,563
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by sjfan View Post
Thanks, Rubén, this is fantastic!
You are welcome
RbnJrg is offline   Reply With Quote
Old 01-16-2019, 05:22 PM   #9
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,117
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Yes, very nice!
Turtle91 is offline   Reply With Quote
Old 01-16-2019, 05:39 PM   #10
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: 11,463
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by RbnJrg View Post
You are welcome
Yup, that's our Rubén--rowing upstream, both arms at a time. :-)

Hitch
Hitch is offline   Reply With Quote
Old 01-16-2019, 08:25 PM   #11
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,563
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Hitch View Post
Yup, that's our Rubén--rowing upstream, both arms at a time. :-)

Hitch
RbnJrg is offline   Reply With Quote
Old 01-19-2019, 05:33 PM   #12
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,465
Karma: 129668758
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.
JSWolf is online now   Reply With Quote
Old 01-19-2019, 05:34 PM   #13
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,117
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
party pooper
Turtle91 is offline   Reply With Quote
Old 01-19-2019, 05:41 PM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,465
Karma: 129668758
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Turtle91 View Post
party pooper
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.
JSWolf is online now   Reply With Quote
Old 01-19-2019, 08:35 PM   #15
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: 11,463
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by JSWolf View Post
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.
Wolfie:

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
Hitch is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 03:20 AM.


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