nuwainfo / tibetaneditor

Working repository for a simple Tibetan editor with a segmenter, spellchecker, rule editor, concordancer and more.
2 stars 3 forks source link

tibetaneditor

This PyQt5 project is a beta version of readability editor for the Tibetan language.

The readability editor assesses the readability of a text by highlighting words according to their level of difficulty. Levels of frequency are defined by analysing the frequency of words in a given language.

The beta version allows users to:

  1. write or paste text in the editor
  2. segment and highlight the text by clicking on the segment icon

To test the tool, paste the text from test_source.txt in the editor and click the segmentation icon. The result should look like this:

test

Features comming soon:

Release note

How to Make an Executable File

MacOS

  1. Install "pyinstaller", using pip install pyinstaller.

  2. Open Editor.spec file, edit the two lines as shown below.

    # path to pybo resources in site-packages folder
    a.datas += Tree('C:/Users/Kevin/Miniconda3/envs/editor/lib/site-packages/pybo/resources', prefix='pybo/resources')
    
    # path to files folder in the root folder
    a.datas += Tree('C:/Users/Kevin/Desktop/TibetanEditor/Source/tibetaneditor/files', prefix='files')
  3. Use pyinstaller Editor.spce in the terminal, and it will create two folders named build and dist.

  4. In the dist folder, there will be a Unix Executable file named Editor, which users can easily run by double clicking.

Settings

The editor will create settings files (e.g. default.profile) in the below path.

In MacOS

~/Library/Application Support/Tibetan Editor

In Windows

C:\Users\<User>\AppData\Local\Tibetan Editor