View Single Post
Old 08-18-2012, 02:24 PM   #7
starrigger
Jeffrey A. Carver
starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.
 
starrigger's Avatar
 
Posts: 1,352
Karma: 1107383
Join Date: Aug 2008
Location: Massachusetts, USA
Device: Galaxy Tab 10.1, Nook HD+, and Windows Phone
Quote:
Originally Posted by kovidgoyal View Post
Then they should center their text in the input document, without an indent.

What you are asking for is that calibre make a destructive change to the document during conversion. Therefore that change needs an option to turn it on. And that option is only relevant to people whose input documents specify a text-indent for centered paragraphs where they are not wanted. Adding options for every little tweak like this is not a sustainable strategy.
No, that's not it. The text exported from Word is created without an indent. Explicitly designed that way in the Word style: text-indent: 0. But the Word-generated html is silent on the indent (in the CSS), despite calling for centered text. The Word export algorithm apparently assumes that centered implies no indent, and so does not say so explicitly. It's a deficiency, but understandable: a reasonable default for centered text in the CSS, is centered across the width of the page, not with the first line weirdly indented.

Calibre leaves it that way, silent on the indentation--and some software (like the more recent ibooks app) is smart enough to assume, in absence of an actual indent command, that the text should be truly centered. Other software, like Nook and Aldiko, assume that every first line should be indented, regardless of alignment, unless explicitly told otherwise. That, to me, is dumb--but that's the way they seem to work. And I've seen many books in Nook and Aldiko with faulty centering.

I'm asking that Calibre make allowance for that particular design deficiency by making explicit what can reasonably be assumed to be implied by the term center aligned.
starrigger is offline   Reply With Quote