mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix some typos (harmless) (#14079)
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user