Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-09-2014, 07:34 PM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Poetry

Hi

I discovered not long ago the negative indent, so you can see that my life is full of hope.

I am looking on how to code this verse (screenshot) so that the last word(s) of a loong verse which have to go on a second line (with negative indent here) could be pushed to the right (see red arrows). I think it would make them more readable.

The problem of course is that the paragraph is not right aligned while this (or these) words would probably have to be right aligned and that a bigger negative indent could give weird results with differents formats.
Attached Thumbnails
Click image for larger version

Name:	verse.png
Views:	304
Size:	11.6 KB
ID:	118904  

Last edited by roger64; 02-09-2014 at 10:45 PM.
roger64 is offline   Reply With Quote
Old 02-09-2014, 11:21 PM   #2
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by roger64 View Post
I am looking on how to code this verse (screenshot) so that the last word(s) of a loong verse which have to go on a second line (with negative indent here) could be pushed to the right (see red arrows). I think it would make them more readable.
Not possible in EPUB (particularly see Post #3 by Jellby):

https://www.mobileread.com/forums/sho...d.php?t=225043
Tex2002ans is offline   Reply With Quote
Advert
Old 02-10-2014, 02:42 AM   #3
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by Tex2002ans View Post
Not possible in EPUB (particularly see Post #3 by Jellby):

https://www.mobileread.com/forums/sho...d.php?t=225043
Thanks for the answer. I had missed that thread.
roger64 is offline   Reply With Quote
Old 02-10-2014, 03:06 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Ah, the holy grail of poetry formatting
Jellby is offline   Reply With Quote
Old 02-10-2014, 03:47 AM   #5
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by Jellby View Post
Ah, the holy grail of poetry formatting
Here is another one for you
Attached Thumbnails
Click image for larger version

Name:	verlaine.png
Views:	291
Size:	254.8 KB
ID:	118907  
roger64 is offline   Reply With Quote
Advert
Old 02-10-2014, 06:40 PM   #6
SBT
Fanatic
SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.
 
SBT's Avatar
 
Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
Just curious... would it be possible in HTML5/CSS3?
I mean, EPUB3 is just around the corner, isn't it?
SBT is offline   Reply With Quote
Old 02-11-2014, 05:12 AM   #7
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
If you add javascript, maybe... or maybe not.
Jellby is offline   Reply With Quote
Old 02-11-2014, 10:37 AM   #8
SBT
Fanatic
SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.
 
SBT's Avatar
 
Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
Quote:
Originally Posted by SBT View Post
Just curious... would it be possible in HTML5/CSS3?
Have to answer my own question, apparently...
This code actually seems to do the trick – in chrome anyway. And only CSS2!

But definitely not according to EPUB2-spec.

Spoiler:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="UTF-8" />
<style>
div.strophe div.strophe2 {
background-color:white;
overflow:hidden;
height:1.3em;
line-height:1.4em;
position:absolute;
z-index:3;
top:0;
text-align:left;
width:100%;
padding-right:0%;
margin-left:-1em;
padding-right:1em
}
div.strophe {
text-align:right;
position:relative;
z-index:2;
}
div.poem {position:relative;width:160px;border-style:dotted;padding:5px;padding-left:1.1em; }
</style>
</head>
<body>
<h2>The Hunting of the Snark</h2>
<div class="poem">
<div class="strophe">"Just the place for a Snark!" the Bellman cried,<div class="strophe2">"Just the place for a Snark!" the Bellman cried,</div></div>
<div class="strophe">As he landed his crew with care;<div class="strophe2">As he landed his crew with care;</div></div>
<div class="strophe">Supporting each man on the top of the tide<div class="strophe2">Supporting each man on the top of the tide</div></div>
<div class="strophe">By a finger entwined in his hair.<div class="strophe2">By a finger entwined in his hair.</div></div>
</div>
</body>
</html>
Attached Thumbnails
Click image for larger version

Name:	poetry.png
Views:	383
Size:	20.4 KB
ID:	119051  

Last edited by SBT; 02-13-2014 at 07:24 PM. Reason: Fixed error causing words to disappear
SBT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Poetry Taylor514ce Writers' Corner 1378 08-10-2017 10:21 AM
Just Poetry newone Self-Promotions by Authors and Publishers 0 04-02-2012 01:34 PM
Anyone for poetry? Graham Coulson Lounge 1 10-08-2011 06:02 AM
poetry cian ePub 2 01-23-2011 02:56 PM
Got POETRY? Dr. Drib Writers' Corner 36 04-02-2009 11:18 AM


All times are GMT -4. The time now is 06:27 AM.


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