![]() |
#16 |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
|
|
![]() |
![]() |
![]() |
#17 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
For example, you could automatically apply CSS rules to the last line of a verse and display line numbers every 5 lines using the following stylesheet: Code:
ul {
counter-reset: counter;
margin-left: .25em;
}
li {
counter-increment: counter;
list-style-type: none;
}
ul li:nth-child(5n+5):before {
left: 0;
position: absolute;
padding-left: 1em;
content: counter(counter);
}
ul li:nth-child(6n+6) {
text-align: right;
margin-bottom: 1em;
}
h3 {
text-align: center;
}
Since this is an ePub3 file, it'll only work with Sigil, iBooks, ADE4/RMSK11*, Gitden Reader*, Kindles and other ePub3 apps. *ADE and Gitden Reader, which both use the Readium engine, generally support pseudo classes, but have problems with counters. ADE adds phantom numbers and Gitden Reader displays numbers only on the first page. The only app that displays the test file correctly is iBooks. |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
|
Thanks, Doitsu. Interesting feature indeed, especially for the line numbers. About that right-align for the last line of the stanza: I could also set a value for indentation there, I guess? That might be helpful for very long poems that always follow the same stanza pattern.
But I guess support would have to get a bit more widespread before seriously using this. |
![]() |
![]() |
![]() |
#19 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#20 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 372
Karma: 3710372
Join Date: Feb 2010
Device: Kindles, Sony 650
|
Quote:
I am useless at CSS, but this has been a great help to me ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,764
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Poetry Verses Alignment Problem | mtrahan | ePub | 23 | 04-05-2015 10:18 PM |
poetry | cian | ePub | 2 | 01-23-2011 02:56 PM |
Got POETRY? | Dr. Drib | Writers' Corner | 36 | 04-02-2009 11:18 AM |
Formatting Poetry - A Problem | Patricia | Sony Reader | 8 | 08-21-2007 02:33 PM |