Commit graph

128 commits

Author SHA1 Message Date
Andrey Golovizin
f31a74df60 Add GlyphData.date_added. 2014-09-02 00:28:11 +02:00
Andrey Golovizin
a3e930b879 GlyphDBEdit: properly display glyphs merged after editing. 2014-09-02 00:24:26 +02:00
Andrey Golovizin
97216133fc Rename GlyphDB.update() to GlyphDB.add(). 2014-09-02 00:23:24 +02:00
Andrey Golovizin
90b9a5a978 Use generic datatype-based columns in GlyphDBEdit. 2014-09-01 23:56:51 +02:00
Andrey Golovizin
215d814777 Add Bool and Italic columns to GlyphDBEdit. 2014-09-01 22:35:18 +02:00
Andrey Golovizin
4ab9bd44dd Implement editing in GlyphDBEdit. 2014-09-01 21:27:43 +02:00
Andrey Golovizin
ce3353c831 Rename value to glyph_data in glyphdbedit.Column and its subclasses. 2014-09-01 20:48:07 +02:00
Andrey Golovizin
da67db6dff Update GlyphDBEdit when new glyphs are added. 2014-09-01 18:51:03 +02:00
Andrey Golovizin
2379c1e98c Make GlyphDBEdit columns pluggable. 2014-09-01 18:41:58 +02:00
Andrey Golovizin
bcc0b86001 GlyphDBEdit: show newest glyphs on top. 2014-09-01 18:11:41 +02:00
Andrey Golovizin
892038f65b Make GlyphEditor return proper bold and italic flags (and store them in the DB). 2014-09-01 18:07:29 +02:00
Andrey Golovizin
9c8de1ce0f Make GlyphDB store GlyphData objects instead of just text. 2014-09-01 17:15:21 +02:00
Andrey Golovizin
a44091b570 Add Image.color and PageObject.color. 2014-09-01 14:53:59 +02:00
Andrey Golovizin
44c2cce96e Quit gracefully after closing the main window. 2014-08-28 23:38:50 +02:00
Andrey Golovizin
96347646bb Try to preserve leading spaces in OCREngine. 2014-08-30 20:53:46 +02:00
Andrey Golovizin
c739892e5b Add Page.leftmost_nonblank and Line.indent. 2014-08-30 21:00:47 +02:00
Andrey Golovizin
05f7eb4585 Fix: Line.glyphs should be a cached property. 2014-08-30 20:52:25 +02:00
Andrey Golovizin
5f1273fd18 Fix deadlocks in cached_property(). 2014-08-30 20:51:17 +02:00
Andrey Golovizin
a373765d3d Add Line.page and Glyph.line. 2014-08-30 20:50:59 +02:00
Andrey Golovizin
f3808df0cd Add --skip option. 2014-08-28 13:05:56 +02:00
Andrey Golovizin
20e8ce597d Make cached_property thread-safe. 2014-08-27 21:58:59 +02:00
Andrey Golovizin
a7f10da92b Tweak apostrophe detection window. 2014-08-26 23:06:07 +02:00
Andrey Golovizin
a3549220bf Increase minimum word distance. 2014-08-26 23:05:49 +02:00
Andrey Golovizin
95de2d948b Disable GlyphEdit when not waiting for a new glyph. 2014-08-26 23:05:21 +02:00
Andrey Golovizin
b23cba1cd8 Baseline detection: tweak closing amount. 2014-08-26 22:54:09 +02:00
Andrey Golovizin
ef6369f10e Tweak baseline detection: look for baselines only in the bottom half of the line. 2014-08-26 22:53:53 +02:00
Andrey Golovizin
8b95460f10 Make Page.lines work correctly for pages with no bottom margin. 2014-08-26 20:31:05 +02:00
Andrey Golovizin
7fab8328df Increase minimum line height. 2014-08-26 20:27:50 +02:00
Andrey Golovizin
c50dae03a8 Do not unframe images. 2014-08-26 20:23:33 +02:00
Andrey Golovizin
9410952111 Increase minimal distance between words. 2014-08-26 20:23:06 +02:00
Andrey Golovizin
e3a7d65ef5 Ensure the top-left corner is visible when displaying a new page. 2014-08-26 18:24:07 +02:00
Andrey Golovizin
03a481d3a2 Limit maximal optical correction to prevent splitting glyph pairs like Го. 2014-08-26 18:23:28 +02:00
Andrey Golovizin
8bc5f06772 Use morphological closing along the x-axis to enhance baseline detection. 2014-08-26 17:56:34 +02:00
Andrey Golovizin
cb25753a75 Increase detection window for above-letter diacritics. 2014-08-26 17:42:38 +02:00
Andrey Golovizin
a56fa55709 Disable overlap check in image.combine(). 2014-08-26 17:41:22 +02:00
Andrey Golovizin
038e4f06e9 Consider minimum line height when splitting lines. 2014-08-26 17:29:40 +02:00
Andrey Golovizin
85180a4ec1 Fix broken Glyph.optical_distance(). 2014-08-26 17:14:54 +02:00
Andrey Golovizin
8c7bf2c380 Take optical distance into account when splitting lines. 2014-08-26 17:23:07 +02:00
Andrey Golovizin
ee6aca6c80 Move Image._iter_lines() to Page class. 2014-08-26 17:09:52 +02:00
Andrey Golovizin
22f5c5e2b1 Add Line.optical_distance(). 2014-08-26 17:02:03 +02:00
Andrey Golovizin
91f24da142 Move Glyph._optical_correction() to PageObject class. 2014-08-26 17:00:27 +02:00
Andrey Golovizin
2b71b52174 Remove mistakenly added broken code. 2014-08-26 17:00:01 +02:00
Andrey Golovizin
53b27ee883 Use optical distance correction when detecting apostrophes. 2014-08-25 17:35:34 +02:00
Andrey Golovizin
fac5d738a7 Add Glyph.optical_distance(). 2014-08-25 16:59:19 +02:00
Andrey Golovizin
49db236899 Glyph.detect_diacritic(): adjust apostrophe window. 2014-08-25 16:56:09 +02:00
Andrey Golovizin
e55b66ddd6 Avoid unnecessary conversions in Image.bitmap to make it faster. 2014-08-25 16:43:53 +02:00
Andrey Golovizin
00508d1919 Remove unneeded conversion from int to float. 2014-08-25 16:37:36 +02:00
Andrey Golovizin
6a3f8b3143 Remove unneeded code. 2014-08-25 16:36:44 +02:00
Andrey Golovizin
ead1751ed1 Display glyph elevation in glyph DB editor. 2014-08-25 16:29:31 +02:00
Andrey Golovizin
d2567ea409 Rename glypheditor to glyphdbedit. 2014-08-25 16:25:00 +02:00