mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Additional support for reading UTF-8 encoded Mobipocket books.
This commit is contained in:
parent
abeb671766
commit
aa36e1094a
@ -336,7 +336,9 @@ class MobiReader(object):
|
||||
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…
x
Reference in New Issue
Block a user