![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,764
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
You can do that by using the property "direction". The issue is that not all ereader can support it ![]() 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> Regards Rubén Last edited by RbnJrg; 06-26-2015 at 09:47 AM. |
|
![]() |
![]() |
![]() |
#3 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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! |
![]() |
![]() |
![]() |
#4 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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> ![]() Last edited by Turtle91; 06-26-2015 at 12:35 PM. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#6 | |
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:
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 |
|
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
![]() |
![]() |
![]() |
#8 |
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
|
|
![]() |
![]() |
![]() |
#9 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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! |
![]() |
![]() |
![]() |
#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
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
My experience exactly. I expressed my concerns to the publisher and the poet, and now they aren't returning emails.
|
![]() |
![]() |
![]() |
#12 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
|
![]() |
![]() |
![]() |
#13 | |
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 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 |
|
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
#15 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |