View Single Post
Old 05-17-2008, 12:17 AM   #40
Guesser
Member
Guesser began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Apr 2008
Device: Sony PRS-505
This font hack worked for me. I'm having trouble with calibre after it though.

I did the font hack, then I copied a Chinese LRF ebook to it (which also has a Chinese title - not sure if that matters) using the Sony Connect software. The book works fine - the Chinese text appears properly in the menus, and the book's Chinese text is also fine. When I try connecting the reader via USB with calibre running however, I get the following error with no SD card inserted:

Code:
ExpatError: mismatched tag: line 50, column 1948
Failed to perform job: Get metadata from device
Further device related error messages will not be shown while this message is visible.
Detailed traceback:
Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/calibre/gui2/jobs.py", line 64, in run
  File "build/bdist.linux-i686/egg/calibre/gui2/device.py", line 81, in books
  File "build/bdist.linux-i686/egg/calibre/devices/prs505/driver.py", line 293, in books
  File "build/bdist.linux-i686/egg/calibre/devices/prs505/books.py", line 134, in __init__
  File "/usr/lib/python2.5/xml/dom/minidom.py", line 1915, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 928, in parse
    result = builder.parseFile(file)
  File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 207, in parseFile
    parser.Parse(buffer, 0)
ExpatError: mismatched tag: line 50, column 1948
.. and then after trying it again with a blank SD card inserted, I get a corrupt database error instead (which suggests deleting media.xml, etc.).

After erasing the media.xml and resetting my reader with a soft reset (which apparently killed the font hack, since the Chinese text turned into boxes), it worked fine. Then after re-applying the hack, I get the error. Not sure if it matters, but this is running calibre in Ubuntu 8.04.

Last edited by Guesser; 05-17-2008 at 12:30 AM.
Guesser is offline   Reply With Quote