Grammalecte  Artifact Content

Artifact 783266048eb2eadfcaedbc92213a66fd1209b92f495f8345fed270899b86ae36:

  • File doc/ — part of check-in [6fb05b3dd9] at 2019-02-27 13:59:42 on branch trunk — [doc] small documentation update (user: olr size: 1479) [more...]

How to build Grammalecte


  • Python 3.6
  • Firefox Developper
  • Firefox Nightly
  • NodeJS
    • npm
    • web-ext :
  • Thunderbird


Build a language LANG

Generate the LibreOffice extension and the package folder. LANG is the lang code (ISO 639). This script uses the file config.ini in the folder gc_lang/LANG.

First build LANG -js

This command is required to generate all necessary files.


-b --build_data

Launch the script in the folder gc_lang/LANG.

-d --dict

Generate the indexable binary dictionary from the lexicon in the folder lexicons.

-js --javascript

Also generate JavaScript extensions. Without this option, only Python modules, data and extensions are generated.

-t --tests

Run unit tests.

-i --install

Install the LibreOffice extension.

-fx --firefox

Launch Firefox Developper. Unit tests can be launched from the menu (Tests section).

-we --webext

Launch Firefox Nightly. Unit tests can be launched from the menu (Tests section).

-tb --thunderbird

Launch Thunderbird.


Full rebuild: LANG -b -d -js

After modifying grammar rules: LANG -t

If you modify the lexicon: LANG -d -js

If you modify your script LANG -b -js