mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
We may get multiple boxes when selecting texts, one for each word, and we have to add spaces between the extracted words ourselves. Previously, we were only adding a space if the last char of previous word was ASCII, so missing spaces after accents or greek words. Try to do better by measuring the distances between boxes and comparing to box heights, with a few heuristics.