mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'typos' of https://github.com/luzpaz/calibre
This commit is contained in:
commit
15b12738f8
@ -316,7 +316,7 @@ In the PalmDoc format, a length-distance pair is always encoded by a two-byte
|
|||||||
sequence. Of the 16 bits that make up these two bytes, 11 bits go to encoding
|
sequence. Of the 16 bits that make up these two bytes, 11 bits go to encoding
|
||||||
the distance, 3 go to encoding the length, and the remaining two are used to
|
the distance, 3 go to encoding the length, and the remaining two are used to
|
||||||
make sure the decoder can identify the first byte as the beginning of such a
|
make sure the decoder can identify the first byte as the beginning of such a
|
||||||
two-byte sequence. The exact alforithm needed to decode the compressed text can
|
two-byte sequence. The exact algorithm needed to decode the compressed text can
|
||||||
be found on the PalmDOC page.
|
be found on the PalmDOC page.
|
||||||
|
|
||||||
PalmDOC data is always divided into 4096 byte blocks and the blocks are acted
|
PalmDOC data is always divided into 4096 byte blocks and the blocks are acted
|
||||||
|
@ -164,7 +164,7 @@ class PMLMLizer:
|
|||||||
|
|
||||||
def prepare_string_for_pml(self, text):
|
def prepare_string_for_pml(self, text):
|
||||||
text = self.remove_newlines(text)
|
text = self.remove_newlines(text)
|
||||||
# Replace \ with \\ so \ in the text is not interperted as
|
# Replace \ with \\ so \ in the text is not interpreted as
|
||||||
# a pml code.
|
# a pml code.
|
||||||
text = text.replace('\\', '\\\\')
|
text = text.replace('\\', '\\\\')
|
||||||
# Replace sequences of \\c \\c with pml sequences denoting
|
# Replace sequences of \\c \\c with pml sequences denoting
|
||||||
|
@ -406,8 +406,8 @@ cw<ci<font-style<nu<0
|
|||||||
|
|
||||||
def __margin_func(self, line):
|
def __margin_func(self, line):
|
||||||
"""
|
"""
|
||||||
Handles lines that describe page info. Add the apporpriate info in the
|
Handles lines that describe page info. Add the appropriate info in the
|
||||||
token to the self.__margin_dict dicitonary.
|
token to the self.__margin_dict dictionary.
|
||||||
"""
|
"""
|
||||||
info = line[6:16]
|
info = line[6:16]
|
||||||
changed = self.__margin_dict.get(info)
|
changed = self.__margin_dict.get(info)
|
||||||
|
@ -138,7 +138,7 @@ class Client:
|
|||||||
|
|
||||||
for x in text_segments:
|
for x in text_segments:
|
||||||
if jstype(x) is 'number':
|
if jstype(x) is 'number':
|
||||||
# Currently the sad sack brosers dont support SSML
|
# Currently the sad sack browsers dont support SSML
|
||||||
# https://github.com/WICG/speech-api/issues/37
|
# https://github.com/WICG/speech-api/issues/37
|
||||||
# buf.push()
|
# buf.push()
|
||||||
# markup = '<mark name="' + x + '"/>'
|
# markup = '<mark name="' + x + '"/>'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user