Commit graph

184 commits

Author SHA1 Message Date
Andrey Golovizin
0f5a46ce6f Use proper font in GlyphEdit. 2014-09-19 23:56:12 +02:00
Andrey Golovizin
4dcbdddf4c Move GlyphEdit-specifig code from MainWindow to GlyphEdit.requestGlyph(). 2014-09-19 23:55:41 +02:00
Andrey Golovizin
54830ce2a3 GlyphDBEdit: display glyph texts in proper color. 2014-09-19 23:37:24 +02:00
Andrey Golovizin
458ef0e6f4 GlyphDBEdit: display glyph texts with proper font, according to glyph_font_family and glyph_font_size config variables. 2014-09-19 23:32:41 +02:00
Andrey Golovizin
45ef8dc691 Pass Document to GlyphEdit columns. 2014-09-19 23:31:35 +02:00
Andrey Golovizin
8cec21191f Pass Document to GlyphDBEdit. 2014-09-19 23:16:34 +02:00
Andrey Golovizin
76ca41dda1 GlyphDBEdit: show glyph texts for bold/italic glyphs as bold/italic. 2014-09-19 23:13:54 +02:00
Andrey Golovizin
13d0ade021 Add glyphdbedit.TextColumn. 2014-09-19 23:08:18 +02:00
Andrey Golovizin
f73c87a7ff Use GlyphEdit.text instead of GlyphEdit itself as focusProxy for the page view. 2014-09-19 22:53:05 +02:00
Andrey Golovizin
126090a572 Resize GlyphDBEdit columns to contents. 2014-09-19 22:42:35 +02:00
Andrey Golovizin
12f40cfd53 Insert GlyphDBEdit into a dock widget. 2014-09-19 22:34:35 +02:00
Andrey Golovizin
a9a3fc2bac Automatically save glyph database after adding a new glyph. 2014-09-19 21:03:22 +02:00
Andrey Golovizin
5b1e84dd7f Add space_width config variable. 2014-09-19 20:58:56 +02:00
Andrey Golovizin
4275671c03 Ignore glyphs from unknown alphabets when guessing language. 2014-09-16 11:53:00 +02:00
Andrey Golovizin
3f0837d7dd Add min_word_distance config variable. 2014-09-16 11:47:39 +02:00
Andrey Golovizin
c7743028b2 Fix extracting max value in Word.guess_language(). 2014-09-15 23:41:08 +02:00
Andrey Golovizin
807ab6291c Use last the language of the last known glyph for totally unknown words. 2014-09-15 23:37:06 +02:00
Andrey Golovizin
4e4848e1bb Use last known glyph for guessing bold/italic attributes of totally unknown words. 2014-09-15 23:32:24 +02:00
Andrey Golovizin
afcab12b0c Fix avg value calculation in bold/italic detection. 2014-09-15 23:19:39 +02:00
Andrey Golovizin
0a0e96ab3d Guess language of unknown glyphs and automatically switch keyboard layout. 2014-09-15 23:17:38 +02:00
Andrey Golovizin
bd70dfc93a Guess bold and italic properties for unknown glyphs based on all known glyphs from the same word. 2014-09-15 22:44:51 +02:00
Andrey Golovizin
b7d6319ebf Fix incorrect widths of spaces between words. 2014-09-15 22:26:08 +02:00
Andrey Golovizin
1847bbcd9e Add Line.words property. 2014-09-15 22:22:36 +02:00
Andrey Golovizin
2f06b66b89 Fix a typo. 2014-09-15 21:48:40 +02:00
Andrey Golovizin
ae7b06052a Add an option to make Bold and Italic buttons mutually exclusive. 2014-09-12 13:15:23 +02:00
Andrey Golovizin
3f48f68b46 Fix: Document.last_style must be a glyphdb.Style object, not tuple. 2014-09-12 13:14:39 +02:00
Andrey Golovizin
018ad843e5 Make Bold and Italic buttons mutually exclusive. 2014-09-12 11:40:02 +02:00
Andrey Golovizin
0e44ad8f6a Replace hardcoded values in the diacritic detection code with config variables. 2014-09-12 13:00:28 +02:00
Andrey Golovizin
67c4edbe0a Rename WorkerThread.quit to WorkerThread._quit to prevent overwriting QThread::quit(). 2014-09-12 12:44:47 +02:00
Andrey Golovizin
d3c32b82ab Add Configuration() class and make it accessible as Document.config and PageObject.config. 2014-09-12 12:35:44 +02:00
Andrey Golovizin
8805803e53 Add Session.vim to .hgignore. 2014-09-12 11:54:39 +02:00
Andrey Golovizin
fda2890711 Output formats: allow tags with pure whitespace inside. 2014-09-08 21:13:43 +02:00
Andrey Golovizin
1f91582ccd Fix broken ask_for_help(). 2014-09-11 23:40:00 +02:00
Andrey Golovizin
f771722d0b Rename OCREngine to Document and move it to pixelocr.document. 2014-09-11 12:24:38 +02:00
Andrey Golovizin
4e35d56696 Move all GUI-related stuff from OCREngine to GUIProxy. 2014-09-11 12:16:38 +02:00
Andrey Golovizin
8e4eb7d152 Add escape argument to OutoutFormat.format_tag(). 2014-09-11 10:54:25 +02:00
Andrey Golovizin
4dd082dffd Fix escaping text outside tags. 2014-09-11 10:53:47 +02:00
Andrey Golovizin
1c6509efad Try to guess bold and italic properties for unknown glyphs (from the previous glyph). 2014-09-09 21:25:27 +02:00
Andrey Golovizin
4dff247313 Make GlyphEdit a focus proxy for PageView. 2014-09-09 21:05:28 +02:00
Andrey Golovizin
4548f92e73 Use backend-specific suffixes for output filenames. 2014-09-08 21:15:55 +02:00
Andrey Golovizin
721de38920 Decrease min_space between lines. 2014-08-28 23:37:03 +02:00
Andrey Golovizin
f7a7fca3ad Tweak baseline detection: decrease detection height. 2014-08-28 23:40:33 +02:00
Andrey Golovizin
a089846a31 Fix scrolling and alignment in PageView. 2014-09-08 20:09:29 +02:00
Andrey Golovizin
a75630890e Write results to <img_filename>.txt files. 2014-09-04 21:44:00 +02:00
Andrey Golovizin
76ffaf5ad3 Update .hgignore. 2014-09-04 20:32:43 +02:00
Andrey Golovizin
69c5b4ce0a Use entry points for output formats, add --output-format option. 2014-09-04 18:26:47 +02:00
Andrey Golovizin
a59d528253 Add HTML output format. 2014-09-04 17:47:07 +02:00
Andrey Golovizin
296035c966 Add support for output formats. 2014-09-04 17:46:48 +02:00
Andrey Golovizin
bd2a206940 Add utils.pipe(). 2014-09-03 21:06:17 +02:00
Andrey Golovizin
1b49500227 Add --limit and --quit options. 2014-09-03 20:51:57 +02:00