View Single Post
Old 07-13-2008, 04:51 PM   #14
seajewel
Fanatic
seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.
 
Posts: 589
Karma: 1451235
Join Date: Jun 2008
Device: Sony PRS-505, Sony PRS-950
Kovid, some of my rtf files have problems converting. They show up on the reader if I just upload the straight .rtf file, but I'm used to loving Calibre's conversion.. which I could do manually by adjusting font size and such on the rtf file but was wondering if there's a way to fix the file itself to make it convert.

For instance, something like this:

('RtfInvalidCodeException', u'no map found\nmap is "ansicpg874"\n'):
Failed to perform job: Convert book:
Detailed traceback:
Traceback (most recent call last):
File "parallel.py", line 686, in worker
File "parallel.py", line 659, in work
File "calibre\ebooks\lrf\any\convert_from.pyo", line 165, in main
File "calibre\ebooks\lrf\any\convert_from.pyo", line 135, in process_file
File "calibre\ebooks\lrf\rtf\convert_from.pyo", line 75, in process_file
File "calibre\ebooks\lrf\rtf\convert_from.pyo", line 168, in generate_html2
File "calibre\ebooks\lrf\rtf\convert_from.pyo", line 159, in generate_xml
File "calibre\ebooks\rtf2xml\ParseRtf.pyo", line 322, in parse_rtf
File "calibre\ebooks\rtf2xml\hex_2_utf8.pyo", line 556, in convert_hex_2_utf8
File "calibre\ebooks\rtf2xml\hex_2_utf8.pyo", line 154, in __initiate_values
File "calibre\ebooks\rtf2xml\get_char_map.pyo", line 67, in get_char_map
RtfInvalidCodeException: no map found
map is "ansicpg874"

Log:
[INFO] convert_from.pyo:167: Converting RTF to XML...
seajewel is offline   Reply With Quote