Commits

Andy Mikhailenko  committed 92eae48

Improved documentation and a template. Removed stray comment.

  • Participants
  • Parent commits b43304b

Comments (0)

Files changed (3)

File doc/index.rst

 Orgtool, The Ultimate Organizer Platform
 ========================================
 
-`Orgtool` is an extremely flexible organizer platform. It encourages creation
-of loosely coupled reusable components by combining `Docu`_'s fantastic
-flexibility with `Tool`_'s signals-driven approach.
+*Orgtool* is an extremely flexible organizer platform. It encourages creation
+of loosely coupled reusable components by combining Doqu_'s fantastic
+flexibility with Tool_'s approach to configurable extensible applications.
 
-.. _Docu: http://pypi.python.org/pypi/docu
+.. _Doqu: http://pypi.python.org/pypi/doqu
 .. _Tool: http://pypi.python.org/pypi/tool
 
+.. warning::
+
+    The whole stack (Tool_, Doqu_, *OrgTool*) is on different stages of
+    development. This package depends on the other two and is therefore far
+    from being stable or clean. Also note that creating a "universal organizer"
+    is an enormous task. Currently the package is a testbed for many features.
+    They are mostly usable but not too much and require additional work. Some
+    existing features will be abandoned, some new will appear before the
+    package reaches beta. The documentation will come after the codebase
+    becomes more stable.
+    
+    Please keep that in mind before judging.
+    
+    By the way, you are welcome to join the team. We can discuss the project
+    via e-mail.
+
 Topics:
 
 .. toctree::

File orgtool/ext/papers/schema.py

     summary = Field(unicode, required=True)
     details = Field(unicode)
     pages = Many(Page)
-
-
-### OCR stuff
-'''
-# TODO: refactor this away and maybe make an abstraction layer for OCRs
-# see also: https://github.com/hoffstaetter/python-tesseract
-OUT_FILENAME = __name__+'auto-cuneiform.txt'
-def image_to_text(path, language='eng'):
-    """Parses image using an OCR utility and returns resulting plain text.
-
-    :param path: path to file (string)
-    :param language: language name (e.g. "English" or "eng" but *not* "en")
-
-    Usage::
-
-        text = image_to_text('scan0015.tiff', language='Russian')
-
-    """
-    import os
-    import subprocess
-    if not os.path.exists(path):
-        raise ValueError('File {0} does not exist.'.format(path))
-    args = ['cuneiform', '-o', OUT_FILENAME, path]
-    if language:
-        args += ['-l', language[:3].lower()]
-    print args
-    process = subprocess.Popen(args)
-    return_code = process.wait()
-    if return_code:
-        raise RuntimeError('OCR parsing failed.')
-    f = open(OUT_FILENAME)
-    result = f.read().strip()
-    result = result.decode('utf-8')
-    f.close()
-    os.unlink(OUT_FILENAME)
-    return result
-'''

File orgtool/ext/papers/templates/page_detail.html

 <div style="overflow: hidden;">
 
     <div style="float: left; width: 50%">
-        <h2>Оригинал документа {{ page.image.file.size }}</h2>
+        <h2>Оригинал документа 
+            ({{ page.image.file.size.0 }}×{{ page.image.file.size.1 }} пкс)</h2>
         <a href="{{ page.get_image_url() }}">
             <img src="{{ thumbnail(page.image, 400, 600) }}" alt="{{ page.summary }}"/>
         </a>