View Single Post
Old 02-07-2009, 07:54 AM   #66
mtravellerh
book creator
mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.
 
mtravellerh's Avatar
 
Posts: 9,657
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: Kindle Scribe
Quote:
Originally Posted by Gudy View Post
Some more experimenting revealed that this is precisely the problem, yes. Changes in the CSS Override input box only take effect after completely restarting Calibre. This is true, at least for Mobipocket, in both 0.4.133 and 0.4.134



I'm definitely looking forward to the simple settings. :-)

As for XPath vs. the LRF settings, with the latter it took me 30 seconds of thinking about what I'm supposed to enter into those fields and exactly one failed attempt until I had the chapters detected and page breaks inserted exactly where I wanted them. I have no doubt that XPath is far more powerful and versatile a tool, but I doubt I would have gotten up to speed with XPath within two minutes...
Ah, to be quite plain about it, Kovid's XPath default expression is REALLY a catch-all put there to well catch nearly all chapters. If you have a specific file, one simple expression including a tag per hierarchic level is generally enough.

It might be a good habit for anyone involved in bookmaking in some way to just mark TOC files (parts, sections, chapters) in a uniform hierarchical way with tags or at least with uniform class labels and not use those tags or labels for other tasks.
mtravellerh is offline   Reply With Quote