![]() |
#361 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What's a hanging indent?
EDIT: If it means what I think it means, this will do the trick, provided each logical line is at most one physical line long: Code:
<p style="text-indent:0pt">First line</p> <p style="text-indent:30pt">Second line <p style="text-indent:30pt">Third line</p> Last edited by kovidgoyal; 08-16-2007 at 11:28 AM. |
![]() |
![]() |
![]() |
#362 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
A hanging indent is a paragraph where the first line sticks out father then the rest of the lines in the paragraph. Your sample won't work properly as it disables proper word wrap. It makes seperate lines instead of a proper paragraph.
Take the above paragraph and move the rest of the text so it starts under the first g in hanging and you have it. Also it should be a proper paragraph and not seperate lines. So when you resize the font, it stays a hanging indent. |
![]() |
![]() |
Advert | |
|
![]() |
#363 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
sticks out to the left or the right?
|
![]() |
![]() |
![]() |
#364 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
To the left.
Here is a link that defines a hanging indent... http://www.webopedia.com/TERM/H/hanging_indent.html |
![]() |
![]() |
![]() |
#365 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yeah to have this ability html2lrf would need to support the margin css property, which I'm insufficiently motivated to support.
|
![]() |
![]() |
Advert | |
|
![]() |
#366 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
So basically then there will not be any proper way to format some poetry or scripts. That's too bad.
|
![]() |
![]() |
![]() |
#367 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I dont see why poetry requires hanging indents. Indeed I've never read any poetry that has hanging indents.
|
![]() |
![]() |
![]() |
#368 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#369 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Well he can just leave out the hanging indents, the poetry wont suffer too much.
|
![]() |
![]() |
![]() |
#370 |
Technophile
![]() ![]() ![]() ![]() ![]() ![]() Posts: 206
Karma: 617
Join Date: Mar 2007
Location: Land of Lincoln
Device: Kobo Sage. Ex Sony (PRS-500, -600, -650 and Nook)
|
Mmmm.... that's what I was afraid of in my thread. While not an absolute for poetry formatting, it is the way that I *strongly* prefer to read it.
There is a (poor) example of hanging indent in html here. For those not reading the link, I'll share the following example from my other thread: ("fakey" margins of reader below) Code:
*---*---*---*---*---*---*
The quick brown fox jumps over the lazy dog.
And the sneeze in the breeze upsets the bees.
Code:
*---*---*---*---*---*---*
The quick brown fox jumps
over the lazy dog.
And the sneeze in the
breeze upsets the
bees.
Code:
*---*---*---*---*---*---*
The quick brown fox jumps
over the lazy dog.
And the sneeze in the
breeze upsets the bees.
Thanks JS for passing it over to this thread... ![]() And thank you, Kovid, for HTML2LRF and the rest of the apps. It still rocks! ![]() Last edited by LaughingVulcan; 08-16-2007 at 10:28 PM. |
![]() |
![]() |
![]() |
#371 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Try inserting blank lines between sentences to improve readability.
|
![]() |
![]() |
![]() |
#372 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#373 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Version 0.3.96 is on its way to the servers:
1) Completely refactored to optimize memory usage. Hopefully this hasn't introduced too many new bugs. 2) Added support for <sup> and <sub> 3) Fixed handling of text-indent (should make the indent correct in lit files) 4) Various minor bug fixes. |
![]() |
![]() |
![]() |
#374 |
Enthusiast
![]() ![]() Posts: 33
Karma: 108
Join Date: Jul 2007
Device: Sony Reader
|
I first just want to say that Kovid is God. Secondly, I apologize if this has already been touched on, but I have a strange problem, and I'm a bit of a noob. I found one html file that had internal links for each chapter, and I tried to copy that code into a book of short stories I'm converting to lrf in order to make a table of contents. The links work just fine in html, but when I convert the file to lrf, they are nowhere to be found. Does anyone have an idea of what might cause that?
|
![]() |
![]() |
![]() |
#375 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Run it with the --verbose switch
|
![]() |
![]() |
![]() |
Tags |
html2lrf, libprs500 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change font of header for LRF Output on PRS 505 | duckbill | Calibre | 3 | 05-15-2010 11:07 AM |
Pissed off with LRF formatting: LRF/LRS clean tool? | grimborg | LRF | 8 | 02-15-2010 01:14 PM |
Fonts for LRF output | krischik | Calibre | 1 | 10-03-2009 05:01 AM |
CBZ > LRF (LRF>HTML/MOBI????) | sideburnt | Calibre | 4 | 09-15-2009 06:44 AM |
libprs500 Issues Converting .LIT to .LRF - .LRF crashes everything | vasbinde | Calibre | 6 | 02-14-2008 12:16 PM |