View Single Post
Old 12-22-2011, 07:57 AM   #5
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by rbruce1314 View Post
I wonder if Kovid realizes this oddity in behaviour, and if so whether a bug report is worth making.....
The default for chapter detection is to use an xpath. Due to TXT not having any markup this is not possible. Heuristics are used to determine what is a chapter in a TXT file. In this case roman numerals are not supported for determining if we are looking at a chapter or not.

ldolse was the one who wrote the chapter heuristic detection code. He would have to say wether it's possible to add roman numerals or not. I seem to remember they were excluded because of false positives.

Calibre's heuristic processing is designed to be conservative. In cases where it's a maybe it prefers not to make any changes. Due to TXT having no markup it is impossible to create an automated conversion that handles every case perfectly. You're best bet is to fiddle with the options, find the one that gets closest to what you want, then make any corrections with Sigil. Or use Markdown (or Textile) or pre format the file before conversion and use the appropriate option for Markdown (or Textile).
user_none is offline   Reply With Quote