View Single Post
Old 11-30-2009, 06:47 PM   #40
PiVi1962
Member
PiVi1962 is on a distinguished road
 
Posts: 12
Karma: 60
Join Date: Nov 2009
Device: none
Indenting

Quote:
Originally Posted by HarryT View Post
I have personally always found that the obvious method of <div width="x"> or <p width="x"> works very satisfactorily for indenting poetry. Do you have better method for doing it?
I have not yet found any place that explains how to left- and right-indent sentences on .MOBI format (and hence in Kindle).

I have found this solution (for the HTML original):

<table width=100%><tr>
<td width=1%></td><td width=1%></td>
<td width=96%>Cras mattis eleifend neque, in tempus ligula facilisis ut. Morbi commodo condimentum enim sit amet dapibus.</td>
<td width=1%></td><td width=1%></td></tr>
</table>

I use the <table> tag, and I insert a few empty left- and or right-colums.
For some obscure reason, width=2% cannot be obtained directly, by only through the sum of two 1% empty colums.
Adding a different number of empty colums at width=1% allows to build "sinuous" poetry, as in Chapter three of "Alice in wonderland".

Beware: long sentences can be cut in the screen of Kindle and not shown at all, so this formatting is useful for poetry, but not for long quotations (in the previous release 2.2 of the Operating System of Kindle, the solution worked correctly, but now under 2.3 no more).
To avoid losing text, even in poetry every line has to be inserted in a different table.
PiVi1962 is offline   Reply With Quote