Commit Graph

57 Commits

Author SHA1 Message Date
Roberto Rosario
c5d7e4075d Merge pull request #54 from fordguo/master
add the zh_CN support
2014-10-01 03:11:28 -04:00
Roberto Rosario
4968051b6d Don't silence OCR errors even if Tesseract is optional otherwise the user won't know happened.
Catch the OSError generic exception and return a friendlier "Tesseract not found" exception
2014-09-30 15:41:00 -04:00
Roberto Rosario
f434720617 Don't silence OCR errors at the API high level, at this layer we don't know what really happened in the backend.
Move exception handling to the backend.
2014-09-30 15:39:36 -04:00
Mathias Behrle
1cbd54dad7 Do not fail, when ocr backend is missing (#50).
- Since tesseract (i.e. an ocr backend) is an optional requiremnt of mayan, we
  shouldn't fail, if it is not found.
- S.a https://github.com/mayan-edms/mayan-edms/issues/50
2014-09-30 15:14:38 -04:00
Ford Guo
fa78a30413 change zh_CN po mo 2014-09-30 11:00:39 +08:00
Ford Guo
e4cdc69ca1 add zh_CN mo files 2014-09-26 13:54:49 +08:00
Ford Guo
b15100c2ea add zh_CN language 2014-09-26 11:43:53 +08:00
Roberto Rosario
01a0d69a5f Generate new source language files 2014-07-31 20:27:52 -04:00
Roberto Rosario
b98dbd83da Synchronize language translations 2014-07-28 01:22:21 -04:00
Roberto Rosario
7321b12c7d Update remaining exception syntaxes 2014-07-20 22:44:12 -04:00
Roberto Rosario
6b169b4526 Modernize exception handling, and improves Python 3.x compatibility 2014-07-20 16:42:30 -04:00
Roberto Rosario
a078fd1dbc Add initial migration for the ocr app 2014-07-18 20:00:59 -04:00
Roberto Rosario
144db6364c The post_migrate signal is different than the post_syncdb so adjust accordingly 2014-07-18 19:59:06 -04:00
Roberto Rosario
5f61dac179 Simplify signal handler 2014-07-18 18:35:37 -04:00
Roberto Rosario
ba71c80b32 Don't use the post_syncdb signal use the post_migrate signal instead 2014-07-18 13:32:07 -04:00
Roberto Rosario
f47a5eb9eb Switch tests from django.utils.unittest.TestCase to django.test.TestCase 2014-07-18 03:02:27 -04:00
Mathias Behrle
f67176aa9f Removing unused variable from language correction files. 2014-07-14 14:57:03 +02:00
Mathias Behrle
8bae464841 Re-adding migrated french language correction file, 2014-07-14 14:49:56 +02:00
Mathias Behrle
79f03d9907 Removing double variable definition. 2014-07-14 14:48:12 +02:00
Mathias Behrle
e90a60efe3 Adding missing argument to german language correction file. 2014-07-14 14:21:21 +02:00
Roberto Rosario
e48edd46c4 Update test for python 2.6 compatibility 2014-07-13 14:55:57 -04:00
Roberto Rosario
b0a33ada2b Update OCR test to test for different language settings, issue #16 2014-07-13 14:45:05 -04:00
Roberto Rosario
8fca5e2789 Remove the French OCR cleanup backend for now, a patchset seems to be missing. 2014-07-13 11:34:08 -04:00
Roberto Rosario
1f3fed2182 Update the German OCR cleanup backend to be a class not a function 2014-07-13 11:32:41 -04:00
Roberto Rosario
2b2cd80a18 Fix and improve the existing tests 2014-07-11 01:35:00 -04:00
Mathias Behrle
53ab7a23e6 Adding french cleanup file. 2014-07-11 01:08:11 +02:00
Mathias Behrle
506d65c93e Adding language correction file for Germany (deu). 2014-07-11 00:56:15 +02:00
Roberto Rosario
3bed82fc16 PEP8 cleanup, unused imports, missing imports, style cleanups 2014-07-10 02:45:19 -04:00
Roberto Rosario
c753d74e46 More clear exception handling 2014-07-10 01:28:21 -04:00
Roberto Rosario
d19f3da730 Backport statistics app, remove statistic code from the main app, convert the documents and ocr apps to use the new statictics app code 2014-07-04 01:46:16 -04:00
Roberto Rosario
78bf95f25f Update all the source string files 2014-07-03 21:38:25 -04:00
Roberto Rosario
75266c7c31 Update the documents app and the document_signatures app to use the new method of loading backends 2014-07-03 17:32:32 -04:00
Roberto Rosario
3db1e35c19 Use SH to call unpaper, allow OCR pipeline to work without unpaper installed 2014-07-02 17:45:10 -04:00
Roberto Rosario
04f616ffaf Only store the full OCR error stack trace when in DEBUG mode 2014-07-02 17:44:22 -04:00
Roberto Rosario
d850b268d3 Don't fail when there is no DB available to reset the OCR queue stale processing document 2014-07-01 00:50:35 -04:00
Roberto Rosario
a5d75fc95a Add OCR test 2014-07-01 00:45:42 -04:00
Roberto Rosario
1dd36089cf Add missing 'self' to language backends 2014-07-01 00:45:15 -04:00
Roberto Rosario
c51a3be65a Cleanups 2014-07-01 00:26:19 -04:00
Roberto Rosario
867c6827dc Reset documents that were being processed on further restarts 2014-07-01 00:23:55 -04:00
Roberto Rosario
da785c343c Lower the lock timeout period, store the entire stack trace when OCR fails 2014-07-01 00:23:18 -04:00
Roberto Rosario
a9390d55ba Unify the way backends are defined and loaded, unify the fs_cleanup function 2014-07-01 00:22:31 -04:00
Roberto Rosario
6a659741af PEP8 cleanups 2014-06-30 00:57:53 -04:00
Roberto Rosario
d640eacec8 Update usage of datetime.now to Django timezone aware now() 2014-06-29 17:00:07 -04:00
Roberto Rosario
ecb6733cd4 PEP8 cleanups, unused imports cleanups 2014-06-29 14:14:27 -04:00
Roberto Rosario
0a0756380b Update transaction handling as changed in Django 1.6 2014-06-27 20:22:14 -04:00
Roberto Rosario
9187e7c5f8 Remove use of backported object_list generic function view 2014-06-26 15:57:11 -04:00
Roberto Rosario
3b73936723 Update patterns, url imports in all of the project's urls.py files 2014-06-26 15:27:03 -04:00
Roberto Rosario
3ec31a890e Remove all OCR queue transformation code 2014-06-25 10:44:43 -04:00
Roberto Rosario
ac061f2203 PEP8 Cleanups, simple sintax errors fixes 2014-06-25 02:53:12 -04:00
Roberto Rosario
0209d13150 Change quotation char usage, remarked code cleanups 2014-06-25 02:22:11 -04:00