![]() |
#1 |
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Hanging indents?
Hi,
I'm trying to figure if it's possible & how to have hanging indents in Mobipocket books. The Mobipocket developer documentation suggests that negative paragraph indentation is possible, but nothing I've tried has actually rendered a hanging indent in Mobipocket Reader Desktop 6.2. Mobigen mangles a negative CSS 'text-indent' into a negative "width" attribute, but no combination of <blockquotes> and <p> tags with various "width" attributes has produced a hanging indent for me. Any ideas? -Marshall |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,163
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
A table with no cell borders?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
I'm not quite seeing it... The way I'm understanding that, it could work if the "hanging" vs. "indented" parts are already in separate block-level elements, but I can already handle that with separate <p> and <blockquote> tags (<blockquote> being Mobipocket speak for 'margin-left: 1em').
|
![]() |
![]() |
![]() |
#4 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Does Hanging Indents at the Mobipocket Forums help? Note that mobi_cs1 indicates that "em" support is broken.
|
![]() |
![]() |
![]() |
#5 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,163
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
Code:
<p>blah blah blah</p> Code:
<table><tr><td>blah></td><td>blah blah</td></tr></table> |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
According to the documentation, <p width="-2em">Paragraph text</p> should do that, but I gather you've already tried that, and I seem to remember I tried it some time ago and it didn't work, at least in the Cybook and in my version of the desktop reader.
|
![]() |
![]() |
![]() |
#7 | |
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
What the hell, Mobipocket? ![]() |
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
From an external CSS file:
.indented { margin-left: 2.5em; margin-right: 2.5em; } From the XHTML file: <p class="indented"> I realise that this is not a hanging indent - it indents all the text in the paragraph - but it does work. Regards, Alex |
![]() |
![]() |
![]() |
#9 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,595
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
I done a few experiments using the latest Mobipocket Creator, and then examining the html actually in the created file.
Fractional em sizes don't seem to work at all for anything - you can have 0em, 1em, 2em, etc. But 0.5em doesn't work - it just rounds to 1em Specifying as point sizes just gets converted to pixel sizes, assuming 96ppi pixels. e.g. 50pt gets converted to 67px (or just 67 - in the absence of units, pixels seem to be assumed. Specifying negative em for the indent doesn't work. It indents second and subsequent lines correctly, but doesn't hang the first. When I've specified using pt or px, it has worked. It looks like the feature isn't fully debugged yet. A work in progress, seeing as it only appeared in Mobipocket Reader 6. Fascinating how the HTML generated includes a blank div between paragraphs, to enable inter-paragraph spacing to be set, even when the spacing is set to 0. Goodness - I hadn't realised Mobipocket's rendering engine was quite so non-standard. Mobipocket Creator does a lot of work converting from standard HTML+CSS to Mobipocket's HTML dialect. Quote:
Last edited by pdurrant; 01-05-2009 at 07:15 AM. |
|
![]() |
![]() |
![]() |
#10 | |
book creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,657
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: Kindle Scribe
|
Quote:
I wonder to what extent the hanging indents, if at all feasible, are portable to other formats (epub should be no prob, but LRF and IMP?) That is always very important for me. I prefer "my" books to have largely the same look and feel in all the formats. |
|
![]() |
![]() |
![]() |
#11 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
![]() |
![]() |
![]() |
#12 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,163
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Margins and Indents | sloecoach | Calibre | 2 | 09-26-2010 04:41 PM |
Books you're hanging out for. | mukoan | Reading Recommendations | 20 | 07-31-2010 06:06 PM |
Display of Hanging Indents | crutledge | Workshop | 1 | 09-25-2009 06:09 PM |
Hanging indents in HTML2LRF or Book Designer? | LaughingVulcan | Sony Reader | 10 | 08-22-2007 06:53 PM |
hanging on pdf's | deadite66 | iRex | 1 | 08-07-2007 08:21 AM |