Removed a bunch of "successfully", replaced an ellipsis, and some deviant spellings of KOReader.

This commit is contained in:
Frans de Jonge
2016-04-16 12:21:49 +02:00
parent 6f02b2ca2a
commit 5638819f25
10 changed files with 19 additions and 19 deletions

View File

@@ -100,14 +100,14 @@ function Document:discardChange()
end
-- calculate partial digest of the document
-- since only PDF documents could be modified by koreader by appending data
-- since only PDF documents could be modified by KOReader by appending data
-- at the end of the files when highlighting, we use a non-even sampling
-- algorithm which samples with larger weight at file head and much smaller
-- weight at file tail, thus reduces the probability that appended data may change
-- the digest value.
-- Note that if PDF file size is around 1024, 4096, 16384, 65536, 262144
-- 1048576, 4194304, 16777216, 67108864, 268435456 or 1073741824, appending data
-- by highlighting in koreader may change the digest value.
-- by highlighting in KOReader may change the digest value.
function Document:fastDigest()
local md5 = require("ffi/MD5")
local lshift = bit.lshift