diff --git a/format_docs/pdb/mobi.txt b/format_docs/pdb/mobi.txt index 76437ef735..a982dcd6d8 100644 --- a/format_docs/pdb/mobi.txt +++ b/format_docs/pdb/mobi.txt @@ -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 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 -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. PalmDOC data is always divided into 4096 byte blocks and the blocks are acted diff --git a/src/calibre/ebooks/pml/pmlml.py b/src/calibre/ebooks/pml/pmlml.py index 7394158636..b85c67cae9 100644 --- a/src/calibre/ebooks/pml/pmlml.py +++ b/src/calibre/ebooks/pml/pmlml.py @@ -164,7 +164,7 @@ class PMLMLizer: def prepare_string_for_pml(self, 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. text = text.replace('\\', '\\\\') # Replace sequences of \\c \\c with pml sequences denoting diff --git a/src/calibre/ebooks/rtf2xml/preamble_div.py b/src/calibre/ebooks/rtf2xml/preamble_div.py index d4a114892e..760b170403 100644 --- a/src/calibre/ebooks/rtf2xml/preamble_div.py +++ b/src/calibre/ebooks/rtf2xml/preamble_div.py @@ -406,8 +406,8 @@ cw'