View Single Post
Old 12-01-2013, 08:41 PM   #669
chrox
Zealot
chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.
 
Posts: 144
Karma: 405567
Join Date: Nov 2012
Device: K3 KPW PB840
several patches against v2.12

Attached are several patches that have been used in koreader for months.
  1. The rectmap.patch adds a WRECTMAPS field in Masterinfo to hold rect maps for later transformation between native word box and reflowed word box.
  2. The indent_calibration.patch calculates median indent for all rows and wraps all rows that have median indentation. This will largely reduce improper reflowing in poorly scanned pages and pages with marginal notes. More discussion can be found at https://github.com/koreader/koreader/issues/305.
  3. The word_gap_calculation.patch adds an auto_word_spacing option in k2settings and if it's turned on word gap is calculated when reflowing.
  4. The static.patch fixes several static declaration that will break in multi-threading environment.
  5. The debug.patch fixes non-used gap variable in debug.
Attached Files
File Type: txt rectmap.patch.txt (2.1 KB, 184 views)
File Type: txt indent_calibration.patch.txt (4.5 KB, 184 views)
File Type: txt word_gap_calculation.patch.txt (3.4 KB, 163 views)
File Type: txt static.patch.txt (1.5 KB, 194 views)
File Type: txt debug.patch.txt (562 Bytes, 183 views)
chrox is offline   Reply With Quote