| 1 | # Classical Tibetan syllable spellchecker for Hunspell |
| 2 | |
| 3 | You can find here the necessary files to use spell checking for Classical Tibetan at syllable level (not composed words) in [Hunspell](http://hunspell.sourceforge.net/) (used in [many applications](https://en.wikipedia.org/wiki/Hunspell#Uses)). |
| 4 | |
| 5 | Note that checking compound words for Tibetan is not possible with hunspell alone due to the absence of separation between words. |
| 6 | |
| 7 | ## Using |
| 8 | |
| 9 | #### Global installation |
| 10 | |
| 11 | Under Linux or OSX, you can install the spellchecker globally and benefit from it in most applications. |
| 12 | |
| 13 | - under Linux, copy `bo.dic` and `bo.aff` to `/usr/share/hunspell`, or use the `hunspell-bo` package if available in your distribution (under [Debian](https://packages.debian.org/search?keywords=hunspell-bo) for example). |
| 14 | - Under OSX, copy `bo.dic` and `bo.aff` to `/Library/Spelling` and restart your machine. |
| 15 | |
| 16 | #### Application-specific installation |
| 17 | |
| 18 | - for Firefox, [an extension](https://addons.mozilla.org/fr/firefox/addon/tibetan-spellchecker/) is released |
| 19 | - for LibreOffice/OpenOffice see [this extension](http://extensions.openoffice.org/en/project/tibetan-syllable-spell-checker), it is also in the [dictionaries repository](https://cgit.freedesktop.org/libreoffice/dictionaries/) |
| 20 | - for Adobe products (>= CS5.5), see the instructions on [this page](http://blog.napsys.com/2012/11/adding-hyphenation-and-spelling.html) |
| 21 | - for Chrome see [this feature request](https://bugs.chromium.org/p/chromium/issues/detail?id=662850) |
| 22 | |
| 23 | The sources for these extensions are in the [firefox](firefox/) and [lo](lo/) directories. To build them, run `make`. |
| 24 | |
| 25 | ## Building / Testing |
| 26 | |
| 27 | To rebuild `bo.dic` from the data in [tibetan-spellchecker](https://github.com/eroux/tibetan-spellchecker), run |
| 28 | |
| 29 | make update |
| 30 | |
| 31 | For a small test, run |
| 32 | |
| 33 | make test |
| 34 | |
| 35 | ## Changes |
| 36 | |
| 37 | See [CHANGELOG.md](CHANGELOG.md). |
| 38 | |
| 39 | ## License |
| 40 | |
| 41 | This work and the derived files are under the [Creative Commons CC0 license](LICENSE). |