Thread: Indents again
View Single Post
Old 04-03-2011, 08:56 AM   #7
James_Wilde
Guru
James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.
 
James_Wilde's Avatar
 
Posts: 802
Karma: 4727110
Join Date: Aug 2010
Location: Sweden
Device: Iriver Story
Quote:
Originally Posted by ldolse View Post
What you could do is paste a few lines of the actual html code instead of rendered text, that would give us a better idea without looking at the html code.

I'd recommend enabling heuristics and the 'replace entity indents' option and see if that takes care of the problem.
Thanks, Idolse:

Here's the text above in the format it comes in the content.xml file from the unzipped odt file. The css file is below.

Code:
<text:p text:style-name="Production_20_header">Foreword</text:p><text:p text:style-name="Production_20_default">This novel is set in Sweden and China. <text:s/>As a consequence the names of persons and places <text:s/>will be unfamiliar to most of you. <text:s/>I hope you have fun with them.</text:p><text:p text:style-name="Production_20_default">For those of you who are interested, the Swedish letter Å or å is pronounced like the &apos;au&apos; in &apos;autumn&apos; or the &apos;a&apos; in &apos;water&apos;; Ä or ä is pronounced like the &apos;e&apos; in &apos;bed&apos; although it can be long, like the &apos;a&apos; in &apos;spare&apos;; and Ö or ö sounds like &apos;ir&apos; in &apos;bird&apos;, although you should purse your lips as you say it.</text:p><text:p text:style-name="Production_20_default">I have also included some simple Mandarin words or phrases, and these are presented using pinyin, which is a method of using western letters with some more or less familiar-looking accents <text:s/>to indicate how they should be pronounced. <text:s/>The meaning of these words is hopefully clear from the context. <text:s/>I leave it to you how you cope with internally voicing them. <text:s/>Purists, though, will disapprove of the fact that, in the mobi version, I have shown them without tonal accents. <text:s/>The problem was that not all ebook readers can display the accented letters properly. <text:s/>Kindles cannot, for example, so the mobi version does not include them.</text:p><text:p text:style-name="Production_20_default">My thanks to Nancy Yip, who first gave me the idea for this story, and subsequently was an unfailing source of information on China, including pointing me to a superb book on a province near GuangXi. <text:s/>Yes, Nancy really exists,
And here's what I believe are the relevant bits of the css file.

Code:
<style:style style:name="Production_20_default" style:display-name="Production default" style:family="paragraph" style:parent-style-name="Standard" style:class="text" style:master-page-name=""><style:paragraph-properties fo:margin-left="0cm" fo:margin-right="0cm" fo:orphans="2" fo:widows="2" fo:text-indent="0.499cm" style:auto-text-indent="false" style:page-number="auto"><style:tab-stops/></style:paragraph-properties><style:text-properties style:font-name="Linux Libertine" fo:language="en" fo:country="GB" style:font-name-asian="AR PL UKai CN" style:language-asian="zh" style:country-asian="CN"/></style:style><style:style style:name="Production_20_header" style:display-name="Production header" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Production_20_default" style:class="text" style:master-page-name=""><style:paragraph-properties fo:margin-top="2cm" fo:margin-bottom="0cm" fo:line-height="150%" fo:text-align="center" style:justify-single-word="false" style:page-number="auto" fo:break-before="page"/><style:text-properties style:font-name="Linux Libertine" fo:font-size="16pt" fo:language="en" fo:country="GB" style:font-name-asian="AR PL UKai CN" style:language-asian="zh" style:country-asian="CN"/></style:style>
I'll have to check what I did with the heuristics and replace entity indents options. I know I didn't change them from the default, and the implications of Kovid's comment are that it's not Calibre that has made this change.
James_Wilde is offline   Reply With Quote