Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-26-2015, 04:21 AM   #1
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
Indentation in right aligned long line poems

I know how to get long lines of left aligned poetry to indent after the line break. But I am doing some poems for an author who has the text in some of her poems right aligned, and some of those lines are longer than the width of the screen. The lines break of course, but the text after the break is flush with the right margin.

Is there a way to make the text after the break indented say 2em from the right margin? Can anyone point me to poems in ePub format in which the lines are long and indented from the right margin after the break? Or tell me how to do it?
AlexBell is offline   Reply With Quote
Old 06-26-2015, 09:34 AM   #2
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,764
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by AlexBell View Post
I know how to get long lines of left aligned poetry to indent after the line break. But I am doing some poems for an author who has the text in some of her poems right aligned, and some of those lines are longer than the width of the screen. The lines break of course, but the text after the break is flush with the right margin.

Is there a way to make the text after the break indented say 2em from the right margin? Can anyone point me to poems in ePub format in which the lines are long and indented from the right margin after the break? Or tell me how to do it?
Hi Alex;

You can do that by using the property "direction". The issue is that not all ereader can support it (you can't use it for example in ADE 3.x). In your css stylesheet, write the following:

Code:
.right_aligned {
   direction: rtl;
   text-indent: 3em; /* or whatever indent you wish */
   text-align: right;
   margin: 0em;
}

and in your .xhtml file do the following:

Code:
<div class="right_aligned">
   <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus. Donec metus ligula, elementum at pellentesque pellentesque, suscipit ac nunc. Etiam lobortis, massa ac aliquam auctor, augue nisl sagittis urna, at dapibus tellus erat ullamcorper ligula. Praesent orci dui, pulvinar id convallis a, faucibus non mauris.</p>

   <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus. Donec metus ligula, elementum at pellentesque pellentesque, suscipit ac nunc. Etiam lobortis, massa ac aliquam auctor, augue nisl sagittis urna, at dapibus tellus erat ullamcorper ligula. Praesent orci dui, pulvinar id convallis a, faucibus non mauris.</p>
</div>
This is how it looks in Sigil:

Click image for larger version

Name:	Image1.png
Views:	281
Size:	82.3 KB
ID:	139659

Regards
Rubén

Last edited by RbnJrg; 06-26-2015 at 09:47 AM.
RbnJrg is offline   Reply With Quote
Old 06-26-2015, 12:18 PM   #3
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,348
Karma: 20171571
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
Try spans around the line(s) you want indented.

Code:
<p class="v-ind-rt"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse est ante, <span>venenatis quis arcu nec, hendrerit tempus erat. Mauris varius elit id rhoncus accumsan. Vestibulum imperdiet magna et elit gravida maximus.</span></p>

<p class="v-ind-rt">In non sodales erat. Nam posuere diam sagittis turpis lacinia, nec rutrum metus efficitur. <span>Donec mattis nisi in leo aliquam, eu sodales elit laoreet. Mauris molestie mattis lacus sed facilisis. Maecenas a fermentum turpis, quis dictum mauris.</span></p>

<p class="v-ind-rt">Curabitur a diam ut ante cursus porttitor. Quisque mattis est eget facilisis ornare. <span>Cras aliquet auctor commodo.</span></p>


With this in the css:
Code:
p.v-ind-rt      {text-align:right}
p.v-ind-rt span {display:block; margin-right:3em}

Depending on screen size, font size, font style, etc. The lines wont always break at exactly the place you would like, but at least those particular spanned lines would indent.

Here's how it looks in Sigil for both wide screen and small screen:



If it has to look EXACTLY right, then you are stuck with using fixed format or an image.

Cheers!
Turtle91 is offline   Reply With Quote
Old 06-26-2015, 12:25 PM   #4
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,348
Karma: 20171571
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
You can even have parts of the same paragraph indented (multiple spans):

Code:
<p class="v-ind-rt"><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</span> Suspendisse est ante, venenatis quis arcu nec, hendrerit tempus erat. <span>Mauris varius elit id rhoncus accumsan. Vestibulum imperdiet magna et elit gravida maximus.</span> In non sodales erat. Nam posuere diam sagittis turpis lacinia, nec rutrum metus efficitur. <span>Donec mattis nisi in leo aliquam, eu sodales elit laoreet. Mauris molestie mattis lacus sed facilisis. Maecenas a fermentum turpis, quis dictum mauris.</span> Curabitur a diam ut ante cursus porttitor. Quisque mattis est eget facilisis ornare. <span>Cras aliquet auctor commodo.</span></p>
To look like this:

Last edited by Turtle91; 06-26-2015 at 12:35 PM.
Turtle91 is offline   Reply With Quote
Old 06-26-2015, 08:53 PM   #5
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
Thanks to you both for the suggestions. I'll have to look at them for a while.
AlexBell is offline   Reply With Quote
Old 07-03-2015, 08:00 PM   #6
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,503
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 AlexBell View Post
Thanks to you both for the suggestions. I'll have to look at them for a while.
Alex:

Is it that you actually go OUT to find these clients? What on earth are you doing, sitting on a street corner in locations like Soho with a sign saying "lonely eBook-maker, masochistic, seeking picky Poets as clients?"

Sheesh, and I thought MY life was hell.

Hitch
Hitch is offline   Reply With Quote
Old 07-03-2015, 09:12 PM   #7
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
Quote:
Originally Posted by Hitch View Post
Alex:

Is it that you actually go OUT to find these clients? What on earth are you doing, sitting on a street corner in locations like Soho with a sign saying "lonely eBook-maker, masochistic, seeking picky Poets as clients?"

Sheesh, and I thought MY life was hell.

Hitch
No, they chase me. I guess I'll have to learn to say no.
AlexBell is offline   Reply With Quote
Old 07-03-2015, 09:44 PM   #8
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,503
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 AlexBell View Post
No, they chase me. I guess I'll have to learn to say no.
Alex:

Y'know, for all I know, you charge hourly. If you do, hell, son, march on. But if like us, you charge a prix-fixe, then, RUN FOR THE STRONGHOLD, Braveheart!

Hitch
Hitch is offline   Reply With Quote
Old 07-04-2015, 07:13 AM   #9
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
What if you just reminded your client that nobody reads poetry any more, and certainly not in e-books?

Check the sales figures for Juan Felipe Herrera. His best-selling poetry book sits at #624,878 Paid in Kindle Store. That means he sells a book every second or third month.

He's the poet laureate, for crying out loud!
Notjohn is offline   Reply With Quote
Old 07-04-2015, 02:40 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,503
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 Notjohn View Post
What if you just reminded your client that nobody reads poetry any more, and certainly not in e-books?

Check the sales figures for Juan Felipe Herrera. His best-selling poetry book sits at #624,878 Paid in Kindle Store. That means he sells a book every second or third month.

He's the poet laureate, for crying out loud!
nj:

If those of us in the bookie trade were to tell clients that we don't think will sell, that they won't sell, well....we wouldn't be bookmakers very long. ;-)

Ours is not to reason why; ours is but to code and die.

Hitch
Hitch is offline   Reply With Quote
Old 07-06-2015, 03:24 AM   #11
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
Quote:
Originally Posted by Hitch View Post
nj:

If those of us in the bookie trade were to tell clients that we don't think will sell, that they won't sell, well....we wouldn't be bookmakers very long. ;-)

Ours is not to reason why; ours is but to code and die.

Hitch
My experience exactly. I expressed my concerns to the publisher and the poet, and now they aren't returning emails.
AlexBell is offline   Reply With Quote
Old 07-06-2015, 06:11 AM   #12
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Quote:
Originally Posted by AlexBell View Post
My experience exactly. I expressed my concerns to the publisher and the poet, and now they aren't returning emails.
I think you're well out of it.
Notjohn is offline   Reply With Quote
Old 07-06-2015, 04:16 PM   #13
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,503
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 AlexBell View Post
My experience exactly. I expressed my concerns to the publisher and the poet, and now they aren't returning emails.

The important Q: did they PAY?

My attitude on books like this is, I usually end up putting 1-2 hours in, upfront, that's "sales" time. After that, you can't go much further, or you end up broke. And I only do it if I think that the publisher has the right mindset and BUDGET for the book.

(We got an 800 page, 4-col. Bible in today, that is purportedly translated into 26 languages. Can't wait to see how this goes! The last Bible we had in is the biggest single rip-off of Booknook's history--the guy took his book and never paid us, nearly $1K in dough. I admit, I'm leery of Bibles.)

Hitch
Hitch is offline   Reply With Quote
Old 07-07-2015, 04:45 AM   #14
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
Quote:
Originally Posted by Hitch View Post
The important Q: did they PAY?
Silly me was doing it as a favour. Never again.
AlexBell is offline   Reply With Quote
Old 07-07-2015, 06:35 AM   #15
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by Hitch View Post
The important Q: did they PAY?

My attitude on books like this is, I usually end up putting 1-2 hours in, upfront, that's "sales" time. After that, you can't go much further, or you end up broke. And I only do it if I think that the publisher has the right mindset and BUDGET for the book.

(We got an 800 page, 4-col. Bible in today, that is purportedly translated into 26 languages. Can't wait to see how this goes! The last Bible we had in is the biggest single rip-off of Booknook's history--the guy took his book and never paid us, nearly $1K in dough. I admit, I'm leery of Bibles.)

Hitch
Hmm, aren't the ten commandments in the Bible: Thou shall not steal?
Toxaris 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
How do I create first line paragraph indentation with Calibre? stutzj Calibre 4 01-21-2014 11:09 AM
Long Standing Line Spacing Bug murg Kobo Reader 10 12-28-2012 07:22 PM
[Suggestion] Change indentation to one letter per indentation level. John Peterson Development 1 10-22-2012 02:05 PM
Formatting epic poems with line numbers? Lima_dat Workshop 4 02-25-2008 03:53 PM


All times are GMT -4. The time now is 04:32 PM.


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