View Single Post
Old 12-01-2013, 09:41 PM   #669
chrox
Connoisseur
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: 77
Karma: 374483
Join Date: Nov 2012
Device: KPW
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, 39 views)
File Type: txt indent_calibration.patch.txt (4.5 KB, 40 views)
File Type: txt word_gap_calculation.patch.txt (3.4 KB, 37 views)
File Type: txt static.patch.txt (1.5 KB, 38 views)
File Type: txt debug.patch.txt (562 Bytes, 33 views)
chrox is offline   Reply With Quote