03-21-2008, 11:10 PM | #16 |
Technogeezer
Posts: 7,233
Karma: 1601464
Join Date: Nov 2006
Location: Virginia, USA
Device: Sony PRS-500
|
I'm a bit late to the discussion, but here are my two cents --
The publisher of the version you are transcribing or using as a reference altered the original work for financial reasons. They did not want to use a larger more expensive page size for the volume. For other reasons they did not use a smaller font size of a more condensed type. You have the ability to correct the prior changes. To preserve these errors is lunacy. When I did the Harvard Classics series the two areas I dreaded most were verse and plays. These were posted in Sony LRF, MobiPocket PRC, and IMP formats (and a second version of IMP by Nick.) While all the words and marks are there, the visual structure is gone. The nature of the tools I used to create the final formats pushed all lines flush left and often deleted the spaces between related elements thus creating a solid mass. I do plan on going back and redoing all 50 volumes in the future as work and other commitments allow. |
03-22-2008, 12:33 AM | #17 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Yes, I agree there are classes of poetry that do defy using any form of formatting. I think those are best like some mathematical equations you just create an image and go with it. However, I didn't believe that was what the original author was talking about however I have been wrong before. By the way, there is always worst case items that defy description but if we only designed everything for the worst case then we couldn't do anything. I couldn't even make a eBook out of Alice in Wonderland since there is this tail (tale) in there that defies formatting. (I ended up with a <pre> on that one to make it work. I do not believe that poetry cannot be on an eBook device but I do think you have to be more creative than just saying it can't be done. Dale |
|
Advert | |
|
03-22-2008, 09:19 AM | #18 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Interestingly, the Mobi creator web site uses "Alice" as its sample book in showing how to create an eBook. The "tail" is done beautifully using the Mobi-specific tag for indenting paragraphs, by having a gradually increasing, then decreasing indent for each line.
|
03-22-2008, 09:24 AM | #19 |
Actively passive.
Posts: 2,042
Karma: 478376
Join Date: Feb 2008
Location: US
Device: Sony PRS-505/LC
|
I never said it can't be done. Yes, I realize I've taken this discussion outside the scope of what the OP intended. That's because I'm interested in learning how one would format such poems.
How far will CSS/HTML translate into other formats? If I'm setting type for a printed book, I pick the font and style. In a static HTML page, I could even get by with non-breaking space characters and not use CSS. But what about devices that allow the user to pick different fonts? Even a font change could break the formatting of a poem. If you formatted a poem (or any text) using advanced CSS techniques, such as putting each line in a div and using float and clear, or using so-called "sandbag divs" (technique illustrated here) what happens when that gets converted to an e-book format? Last edited by Taylor514ce; 03-22-2008 at 09:29 AM. |
03-22-2008, 10:44 AM | #20 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
I suspect, Taylor, you just have to find out by experimentation what each device supports. The Gen3, for example, supports <DIV> but I don't know if it supports the "float" or "clear" atttributes on them. "Float" I strongly suspect it doesn't. It's obviously possible to achieve a lot more if you format for one specific device than if you try to make your formatting more general. Eg, Mobipocket books support a variety of Mobipocket-specific tags and attributes, which won't be understood by other devices.
|
Advert | |
|
03-22-2008, 11:33 AM | #21 | |
creator of calibre
Posts: 43,747
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
04-03-2008, 06:31 AM | #22 |
Fanatic
Posts: 547
Karma: 2928497
Join Date: Mar 2008
Device: Clara 2E & Sage
|
More on formatting poetry
I had already come up with a workable method of formatting the poetry in Forest Runes and posted the result to my web site. However, I wasn't completely satisfied. I thought that there must be a better way to do this. After doing some additional pondering and Googling, I see that quite a few people have wrestled with the problem of formattting poetry for the web.
In any event, I have what I think is a slightly better variation on the method that I had already used. I would like to get some comments and suggestions on possible improvements. What I don't want to do is to use numerous nbsp tags for indents. Note that any suggestions have to allow for multiple levels of indent to be applied to individual lines of a stanza. Also, the less markup needed, the better. Here is my current example. Code:
<html> <head> <title>Poetry Test</title> <style type="text/css"> .indent1 { padding-left: 1.2em; } .indent2 { padding-left: 6.0em; } body { font-family: Georgia, serif; } div.poem { white-space: nowrap; } h1 { margin-top: 0.4em; text-align: center; font-size: 1.2em; } p {text-indent: 1.2em; } p.poem { text-indent: 0; } </style> </head> <body> <h1>SUNRISE IN THE FOREST</h1> <div class="poem"> <p class="poem">THE zephyrs of morning are stirring the larches, <br /><span class="indent1"></span>And, lazily lifting, the mist rolls away. <br />A paean of praise thro’ the dim forest arches <br /><span class="indent1"></span>Is ringing, to welcome the advent of day. <br /><span class="indent2"></span>Is loftily ringing, <br /><span class="indent2"></span>Exultingly ringing, <br />From the height where a little brown songster is clinging, <br /><span class="indent1"></span>The top of a hemlock, the uttermost spray. </p> </div> </body> </html>
Question: Is it OK to use "poem" as a class selector for two different tags that have different properties, as I did? It seems to work without any problems. Last edited by jgray; 04-03-2008 at 06:40 AM. |
04-03-2008, 09:29 AM | #23 |
Actively passive.
Posts: 2,042
Karma: 478376
Join Date: Feb 2008
Location: US
Device: Sony PRS-505/LC
|
Yes, it's ok to use "poem" as a class selector for different tags. Indeed, that's the beauty of a class selector and even CSS... styles "cascade" downward.
What I don't care for are the empty spans. It seems the lines of your stanza should be within the span tags. You're rightly using what is called "semantic" markup. An empty span has no syntax. Then too, some of your lines aren't enclosed in spans, which again alters the semantics of those lines. I think a more "proper" HTML would be: Code:
<html> <head> <title>Poetry Test</title> <style type="text/css"> .indent1 { padding-left: 1.2em; } .indent2 { padding-left: 6.0em; } body { font-family: Georgia, serif; } div.poem { white-space: nowrap; } h1 { margin-top: 0.4em; text-align: center; font-size: 1.2em; } p {text-indent: 1.2em; } p.poem { text-indent: 0; } </style> </head> <body> <h1>SUNRISE IN THE FOREST</h1> <div class="poem"> <p class="poem"><span>THE zephyrs of morning are stirring the larches,</span> <br /><span class="indent1">And, lazily lifting, the mist rolls away.</span> <br /><span>A paean of praise thro’ the dim forest arches</span> <br /><span class="indent1">Is ringing, to welcome the advent of day.</span> <br /><span class="indent2">Is loftily ringing,</span> <br /><span class="indent2">Exultingly ringing,</span> <br />From the height where a little brown songster is clinging,</span> <br /><span class="indent1">The top of a hemlock, the uttermost spray.</span> </p> </div> </body> </html> Code:
<html> <head> <title>Poetry Test</title> <style type="text/css"> .indent1 { padding-left: 1.2em; } .indent2 { padding-left: 6.0em; } body { font-family: Georgia, serif; } .poem { white-space: nowrap; } h1 { margin-top: 0.4em; text-align: center; font-size: 1.2em; } p { text-indent: 0; } </style> </head> <body> <h1>SUNRISE IN THE FOREST</h1> <div class="poem"> <p><span>THE zephyrs of morning are stirring the larches,</span> <br /><span class="indent1">And, lazily lifting, the mist rolls away.</span> <br /><span>A paean of praise thro’ the dim forest arches</span> <br /><span class="indent1">Is ringing, to welcome the advent of day.</span> <br /><span class="indent2">Is loftily ringing,</span> <br /><span class="indent2">Exultingly ringing,</span> <br />From the height where a little brown songster is clinging,</span> <br /><span class="indent1">The top of a hemlock, the uttermost spray.</span> </p> </div> </body> </html> Last edited by Taylor514ce; 04-03-2008 at 09:52 AM. Reason: fixed typos |
04-03-2008, 02:01 PM | #24 |
Fanatic
Posts: 547
Karma: 2928497
Join Date: Mar 2008
Device: Clara 2E & Sage
|
Taylor514ce, thanks for the feedback. As I said in my post of the example, the reason I did the empty spans is that it is easier to markup, instead of wrapping the lines in the span. It also has the advantage of being easier to search on this as a unit, if I want to replace it with something else when building a different ebook that doesn't support this method.
Playing devil's advocate, why is an emply span semantically wrong? The span isn't really empty, it contains the padding for the indent. As for wrapping the non-indented lines in a span, I don't understand the need for that. It seems to be unnecessary markup. In your second example, you tried to simplify the CSS, which I appreciate. However, I didn't want to combine things and apply a zero text-indent on the regular paragraph tag. I will want to have prose paragraphs with indentation. Again, comments welcome. I'm just trying to figure out how to do this the "proper" way. However, I don't mind being a little "wrong", if it makes the markup easier to apply. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Poetry Formatting | distant.star | Amazon Kindle | 6 | 09-06-2010 08:41 AM |
[KOBO] Strip existing formatting to apply my own default formatting to all books | digital_steve | Calibre | 2 | 08-10-2010 06:34 PM |
Calibre and FORMATTING how to stop it altering my formatting? | nerys | Calibre | 37 | 07-23-2010 02:35 AM |
Calibre and FORMATTING how to stop it altering my formatting? | nerys | Calibre | 0 | 02-28-2010 04:51 PM |
Formatting Poetry - A Problem | Patricia | Sony Reader | 8 | 08-21-2007 02:33 PM |