Commit graph

  • 0f5a46ce6f Use proper font in GlyphEdit. master Andrey Golovizin 2014-09-19 23:56:12 +02:00
  • 4dcbdddf4c Move GlyphEdit-specifig code from MainWindow to GlyphEdit.requestGlyph(). Andrey Golovizin 2014-09-19 23:55:41 +02:00
  • 54830ce2a3 GlyphDBEdit: display glyph texts in proper color. Andrey Golovizin 2014-09-19 23:37:24 +02:00
  • 458ef0e6f4 GlyphDBEdit: display glyph texts with proper font, according to glyph_font_family and glyph_font_size config variables. Andrey Golovizin 2014-09-19 23:32:41 +02:00
  • 45ef8dc691 Pass Document to GlyphEdit columns. Andrey Golovizin 2014-09-19 23:31:35 +02:00
  • 8cec21191f Pass Document to GlyphDBEdit. Andrey Golovizin 2014-09-19 23:16:34 +02:00
  • 76ca41dda1 GlyphDBEdit: show glyph texts for bold/italic glyphs as bold/italic. Andrey Golovizin 2014-09-19 23:13:54 +02:00
  • 13d0ade021 Add glyphdbedit.TextColumn. Andrey Golovizin 2014-09-19 23:08:18 +02:00
  • f73c87a7ff Use GlyphEdit.text instead of GlyphEdit itself as focusProxy for the page view. Andrey Golovizin 2014-09-19 22:53:05 +02:00
  • 126090a572 Resize GlyphDBEdit columns to contents. Andrey Golovizin 2014-09-19 22:42:35 +02:00
  • 12f40cfd53 Insert GlyphDBEdit into a dock widget. Andrey Golovizin 2014-09-19 22:34:35 +02:00
  • a9a3fc2bac Automatically save glyph database after adding a new glyph. Andrey Golovizin 2014-09-19 21:03:22 +02:00
  • 5b1e84dd7f Add space_width config variable. Andrey Golovizin 2014-09-19 20:58:56 +02:00
  • 4275671c03 Ignore glyphs from unknown alphabets when guessing language. Andrey Golovizin 2014-09-16 11:53:00 +02:00
  • 3f0837d7dd Add min_word_distance config variable. Andrey Golovizin 2014-09-16 11:47:39 +02:00
  • c7743028b2 Fix extracting max value in Word.guess_language(). Andrey Golovizin 2014-09-15 23:41:08 +02:00
  • 807ab6291c Use last the language of the last known glyph for totally unknown words. Andrey Golovizin 2014-09-15 23:37:06 +02:00
  • 4e4848e1bb Use last known glyph for guessing bold/italic attributes of totally unknown words. Andrey Golovizin 2014-09-15 23:32:24 +02:00
  • afcab12b0c Fix avg value calculation in bold/italic detection. Andrey Golovizin 2014-09-15 23:19:39 +02:00
  • 0a0e96ab3d Guess language of unknown glyphs and automatically switch keyboard layout. Andrey Golovizin 2014-09-15 23:17:38 +02:00
  • bd70dfc93a Guess bold and italic properties for unknown glyphs based on all known glyphs from the same word. Andrey Golovizin 2014-09-15 22:44:51 +02:00
  • b7d6319ebf Fix incorrect widths of spaces between words. Andrey Golovizin 2014-09-15 22:26:08 +02:00
  • 1847bbcd9e Add Line.words property. Andrey Golovizin 2014-09-15 22:22:36 +02:00
  • 2f06b66b89 Fix a typo. Andrey Golovizin 2014-09-15 21:48:40 +02:00
  • ae7b06052a Add an option to make Bold and Italic buttons mutually exclusive. Andrey Golovizin 2014-09-12 13:15:23 +02:00
  • 3f48f68b46 Fix: Document.last_style must be a glyphdb.Style object, not tuple. Andrey Golovizin 2014-09-12 13:14:39 +02:00
  • 018ad843e5 Make Bold and Italic buttons mutually exclusive. Andrey Golovizin 2014-09-12 11:40:02 +02:00
  • 0e44ad8f6a Replace hardcoded values in the diacritic detection code with config variables. Andrey Golovizin 2014-09-12 13:00:28 +02:00
  • 67c4edbe0a Rename WorkerThread.quit to WorkerThread._quit to prevent overwriting QThread::quit(). Andrey Golovizin 2014-09-12 12:44:47 +02:00
  • d3c32b82ab Add Configuration() class and make it accessible as Document.config and PageObject.config. Andrey Golovizin 2014-09-12 12:35:44 +02:00
  • 8805803e53 Add Session.vim to .hgignore. Andrey Golovizin 2014-09-12 11:54:39 +02:00
  • fda2890711 Output formats: allow tags with pure whitespace inside. Andrey Golovizin 2014-09-08 21:13:43 +02:00
  • 1f91582ccd Fix broken ask_for_help(). Andrey Golovizin 2014-09-11 23:40:00 +02:00
  • f771722d0b Rename OCREngine to Document and move it to pixelocr.document. Andrey Golovizin 2014-09-11 12:24:38 +02:00
  • 4e35d56696 Move all GUI-related stuff from OCREngine to GUIProxy. Andrey Golovizin 2014-09-11 12:16:38 +02:00
  • 8e4eb7d152 Add escape argument to OutoutFormat.format_tag(). Andrey Golovizin 2014-09-11 10:54:25 +02:00
  • 4dd082dffd Fix escaping text outside tags. Andrey Golovizin 2014-09-11 10:53:47 +02:00
  • 1c6509efad Try to guess bold and italic properties for unknown glyphs (from the previous glyph). Andrey Golovizin 2014-09-09 21:25:27 +02:00
  • 4dff247313 Make GlyphEdit a focus proxy for PageView. Andrey Golovizin 2014-09-09 21:05:28 +02:00
  • 4548f92e73 Use backend-specific suffixes for output filenames. Andrey Golovizin 2014-09-08 21:15:55 +02:00
  • 721de38920 Decrease min_space between lines. Andrey Golovizin 2014-08-28 23:37:03 +02:00
  • f7a7fca3ad Tweak baseline detection: decrease detection height. Andrey Golovizin 2014-08-28 23:40:33 +02:00
  • a089846a31 Fix scrolling and alignment in PageView. Andrey Golovizin 2014-09-08 20:09:29 +02:00
  • a75630890e Write results to <img_filename>.txt files. Andrey Golovizin 2014-09-04 21:44:00 +02:00
  • 76ffaf5ad3 Update .hgignore. Andrey Golovizin 2014-09-04 20:32:43 +02:00
  • 69c5b4ce0a Use entry points for output formats, add --output-format option. Andrey Golovizin 2014-09-04 18:26:47 +02:00
  • a59d528253 Add HTML output format. Andrey Golovizin 2014-09-04 17:47:07 +02:00
  • 296035c966 Add support for output formats. Andrey Golovizin 2014-09-04 17:46:48 +02:00
  • bd2a206940 Add utils.pipe(). Andrey Golovizin 2014-09-03 21:06:17 +02:00
  • 1b49500227 Add --limit and --quit options. Andrey Golovizin 2014-09-03 20:51:57 +02:00
  • f256f550af Add GlyphData.style. Andrey Golovizin 2014-09-03 12:14:37 +02:00
  • f53eeed63b Fix memory leak in cached_property. Andrey Golovizin 2014-09-02 16:49:19 +02:00
  • 96d9386e77 Try to preserve sort order when editing glyphs. Andrey Golovizin 2014-09-02 16:06:49 +02:00
  • 9bd40bd12d Add Color column to GlyphDBEdit. Andrey Golovizin 2014-09-02 15:25:46 +02:00
  • dac3475579 Simplify Image.color() and make in return ints instead of floats. Andrey Golovizin 2014-09-02 14:33:39 +02:00
  • af351617d8 Add 'Date added' column to GlyphDBEdit. Andrey Golovizin 2014-09-02 01:00:44 +02:00
  • f31a74df60 Add GlyphData.date_added. Andrey Golovizin 2014-09-02 00:28:11 +02:00
  • a3e930b879 GlyphDBEdit: properly display glyphs merged after editing. Andrey Golovizin 2014-09-02 00:24:26 +02:00
  • 97216133fc Rename GlyphDB.update() to GlyphDB.add(). Andrey Golovizin 2014-09-02 00:23:24 +02:00
  • 90b9a5a978 Use generic datatype-based columns in GlyphDBEdit. Andrey Golovizin 2014-09-01 23:56:51 +02:00
  • 215d814777 Add Bool and Italic columns to GlyphDBEdit. Andrey Golovizin 2014-09-01 22:35:18 +02:00
  • 4ab9bd44dd Implement editing in GlyphDBEdit. Andrey Golovizin 2014-09-01 21:27:43 +02:00
  • ce3353c831 Rename value to glyph_data in glyphdbedit.Column and its subclasses. Andrey Golovizin 2014-09-01 20:48:07 +02:00
  • da67db6dff Update GlyphDBEdit when new glyphs are added. Andrey Golovizin 2014-09-01 18:51:03 +02:00
  • 2379c1e98c Make GlyphDBEdit columns pluggable. Andrey Golovizin 2014-09-01 18:41:58 +02:00
  • bcc0b86001 GlyphDBEdit: show newest glyphs on top. Andrey Golovizin 2014-09-01 18:11:41 +02:00
  • 892038f65b Make GlyphEditor return proper bold and italic flags (and store them in the DB). Andrey Golovizin 2014-09-01 18:07:29 +02:00
  • 9c8de1ce0f Make GlyphDB store GlyphData objects instead of just text. Andrey Golovizin 2014-09-01 17:15:21 +02:00
  • a44091b570 Add Image.color and PageObject.color. Andrey Golovizin 2014-09-01 14:53:59 +02:00
  • 44c2cce96e Quit gracefully after closing the main window. Andrey Golovizin 2014-08-28 23:38:50 +02:00
  • 96347646bb Try to preserve leading spaces in OCREngine. Andrey Golovizin 2014-08-30 20:53:46 +02:00
  • c739892e5b Add Page.leftmost_nonblank and Line.indent. Andrey Golovizin 2014-08-30 21:00:47 +02:00
  • 05f7eb4585 Fix: Line.glyphs should be a cached property. Andrey Golovizin 2014-08-30 20:52:25 +02:00
  • 5f1273fd18 Fix deadlocks in cached_property(). Andrey Golovizin 2014-08-30 20:51:17 +02:00
  • a373765d3d Add Line.page and Glyph.line. Andrey Golovizin 2014-08-30 20:50:59 +02:00
  • f3808df0cd Add --skip option. Andrey Golovizin 2014-08-28 13:05:56 +02:00
  • 20e8ce597d Make cached_property thread-safe. Andrey Golovizin 2014-08-27 21:58:59 +02:00
  • a7f10da92b Tweak apostrophe detection window. Andrey Golovizin 2014-08-26 23:06:07 +02:00
  • a3549220bf Increase minimum word distance. Andrey Golovizin 2014-08-26 23:05:49 +02:00
  • 95de2d948b Disable GlyphEdit when not waiting for a new glyph. Andrey Golovizin 2014-08-26 23:05:21 +02:00
  • b23cba1cd8 Baseline detection: tweak closing amount. Andrey Golovizin 2014-08-26 22:54:09 +02:00
  • ef6369f10e Tweak baseline detection: look for baselines only in the bottom half of the line. Andrey Golovizin 2014-08-26 22:53:53 +02:00
  • 8b95460f10 Make Page.lines work correctly for pages with no bottom margin. Andrey Golovizin 2014-08-26 20:31:05 +02:00
  • 7fab8328df Increase minimum line height. Andrey Golovizin 2014-08-26 20:27:50 +02:00
  • c50dae03a8 Do not unframe images. Andrey Golovizin 2014-08-26 20:23:33 +02:00
  • 9410952111 Increase minimal distance between words. Andrey Golovizin 2014-08-26 20:23:06 +02:00
  • e3a7d65ef5 Ensure the top-left corner is visible when displaying a new page. Andrey Golovizin 2014-08-26 18:24:07 +02:00
  • 03a481d3a2 Limit maximal optical correction to prevent splitting glyph pairs like Го. Andrey Golovizin 2014-08-26 18:23:28 +02:00
  • 8bc5f06772 Use morphological closing along the x-axis to enhance baseline detection. Andrey Golovizin 2014-08-26 17:56:34 +02:00
  • cb25753a75 Increase detection window for above-letter diacritics. Andrey Golovizin 2014-08-26 17:42:38 +02:00
  • a56fa55709 Disable overlap check in image.combine(). Andrey Golovizin 2014-08-26 17:41:22 +02:00
  • 038e4f06e9 Consider minimum line height when splitting lines. Andrey Golovizin 2014-08-26 17:29:40 +02:00
  • 85180a4ec1 Fix broken Glyph.optical_distance(). Andrey Golovizin 2014-08-26 17:14:54 +02:00
  • 8c7bf2c380 Take optical distance into account when splitting lines. Andrey Golovizin 2014-08-26 17:23:07 +02:00
  • ee6aca6c80 Move Image._iter_lines() to Page class. Andrey Golovizin 2014-08-26 17:09:52 +02:00
  • 22f5c5e2b1 Add Line.optical_distance(). Andrey Golovizin 2014-08-26 17:02:03 +02:00
  • 91f24da142 Move Glyph._optical_correction() to PageObject class. Andrey Golovizin 2014-08-26 17:00:27 +02:00
  • 2b71b52174 Remove mistakenly added broken code. Andrey Golovizin 2014-08-26 17:00:01 +02:00
  • 53b27ee883 Use optical distance correction when detecting apostrophes. Andrey Golovizin 2014-08-25 17:35:34 +02:00
  • fac5d738a7 Add Glyph.optical_distance(). Andrey Golovizin 2014-08-25 16:59:19 +02:00