mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 04:43:16 +02:00
Additional support for reading UTF-8 encoded Mobipocket books.
This commit is contained in:
commit
625b7f172e
1 changed files with 3 additions and 1 deletions
|
|
@ -344,7 +344,9 @@ def sizeof_trailing_entry(ptr, psize):
|
|||
while flags:
|
||||
if flags & 1:
|
||||
num += sizeof_trailing_entry(data, size - num)
|
||||
flags >>= 1
|
||||
flags >>= 1
|
||||
if self.book_header.extra_flags & 1:
|
||||
num += (ord(data[size - num - 1]) & 0x3) + 1
|
||||
return num
|
||||
|
||||
def text_section(self, index):
|
||||
|
|
|
|||
Loading…
Reference in a new issue