From 424690e206e1a4de1f5602e9321b0af98c7f3631 Mon Sep 17 00:00:00 2001 From: luz paz Date: Sun, 16 Oct 2022 23:33:44 -0400 Subject: [PATCH] Fix various typos Found via `codespell -q 3 -S./Changelog.*,./resources/dictionaries -L alo,ans,pard,ro` --- format_docs/pdb/mobi.txt | 2 +- src/calibre/ebooks/pml/pmlml.py | 2 +- src/calibre/ebooks/rtf2xml/preamble_div.py | 4 ++-- src/pyj/read_book/tts.pyj | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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'