diff --git a/frontend/apps/filemanager/filemanagercollection.lua b/frontend/apps/filemanager/filemanagercollection.lua index 7072578d2..c08870af0 100644 --- a/frontend/apps/filemanager/filemanagercollection.lua +++ b/frontend/apps/filemanager/filemanagercollection.lua @@ -1388,7 +1388,7 @@ function FileManagerCollection:searchCollections(coll_name) -- Fortunately, this is run in a subprocess, so we won't be affecting the -- main process's crengine state or any document opened in the main -- process (we furthermore prevent this feature when one is opened). - -- To avoid creating half-rendered/invalide cache files, it's best to disable + -- To avoid creating half-rendered/invalid cache files, it's best to disable -- crengine saving of such cache files. if not self.is_cre_cache_disabled then local cre = require("document/credocument"):engineInit() diff --git a/frontend/document/document.lua b/frontend/document/document.lua index 1308e0630..30f4ede2c 100644 --- a/frontend/document/document.lua +++ b/frontend/document/document.lua @@ -486,7 +486,7 @@ function Document:renderPage(pageno, rect, zoom, rotation, gamma, hinting) -- Make the context match the rotation, -- by pointing at the rotated origin via coordinates offsets. -- NOTE: We rotate our *Screen* bb on rotation (SetRotationMode), not the document, - -- so we hardly ever exercize this codepath... + -- so we hardly ever exercise this codepath... -- AFAICT, the only thing that *ever* (attempted to) rotate the document was ReaderRotation's key bindings (RotationUpdate). --- @note: It was broken as all hell (it had likely never worked outside of its original implementation in KPV), and has been removed in #12658 if rotation == 90 then diff --git a/frontend/document/koptinterface.lua b/frontend/document/koptinterface.lua index e97d7b058..30b7cad6a 100644 --- a/frontend/document/koptinterface.lua +++ b/frontend/document/koptinterface.lua @@ -297,7 +297,7 @@ function KoptInterface:reflowPage(doc, pageno, bbox, background) kc:setPreCache() self.bg_thread = true end - -- Caculate zoom. + -- Calculate zoom. kc.zoom = (1.5 * kc.zoom * kc.quality * kc.dev_width) / bbox.x1 -- Generate pixmap. local page = doc._document:openPage(pageno) @@ -1433,7 +1433,7 @@ end local function get_pattern_list(pattern, case_insensitive) -- pattern list of single words local plist = {} - -- (as in util.splitToWords(), but only splitting on spaces, keeping punctuations) + -- (as in util.splitToWords(), but only splitting on spaces, keeping punctuation marks) for word in util.gsplit(pattern, "%s+") do if util.hasCJKChar(word) then for char in util.gsplit(word, "[\192-\255][\128-\191]+", true) do diff --git a/frontend/ui/widget/bookmapwidget.lua b/frontend/ui/widget/bookmapwidget.lua index 8e8c3ee7c..69bdfced9 100644 --- a/frontend/ui/widget/bookmapwidget.lua +++ b/frontend/ui/widget/bookmapwidget.lua @@ -618,7 +618,7 @@ function BookMapRow:paintTo(bb, x, y) alt_bb = glyph.bb:rotatedCopy(indicator.rotation) end -- Glyph's bb fit the blackbox of the glyph, so there's no cropping - -- or complicated positionning to do + -- or complicated positioning to do -- By default, just center the glyph at x local d_x_pct = indicator.shift_x_pct or 0.5 local d_x = math.floor(glyph.bb:getWidth() * d_x_pct) @@ -759,7 +759,7 @@ function BookMapWidget:init() } end - -- No real need for any explicite edge and inter-row padding: + -- No real need for any explicit edge and inter-row padding: -- we use the scrollbar width on both sides for balance (we may put a start -- page number on the left space), and each BookMapRow will have itself some -- blank space at bottom below page slots (where we may put hanging markers diff --git a/frontend/ui/widget/inputdialog.lua b/frontend/ui/widget/inputdialog.lua index 8ab3340af..0887e725e 100644 --- a/frontend/ui/widget/inputdialog.lua +++ b/frontend/ui/widget/inputdialog.lua @@ -643,7 +643,7 @@ function InputDialog:toggleKeyboard(force_toggle) -- Remember the *current* visibility, as the following close will reset it local visible = self:isKeyboardVisible() - -- When we forcibly close the keyboard, remember its current visiblity state, so that we can properly restore it later. + -- When we forcibly close the keyboard, remember its current visibility state, so that we can properly restore it later. -- (This is used by some buttons in fullscreen mode, where we might want to keep the original keyboard hidden when popping up a new one for another InputDialog). if force_toggle == false then -- NOTE: visible will be nil between our own init and a show of the keyboard, which is precisely what happens when we *hide* the keyboard.