Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willbasky/hibet
Tibetan-English translator for CLI
https://github.com/willbasky/hibet
cli dictionaries hacktoberfest haskell tibetan translation
Last synced: 2 months ago
JSON representation
Tibetan-English translator for CLI
- Host: GitHub
- URL: https://github.com/willbasky/hibet
- Owner: willbasky
- License: bsd-3-clause
- Created: 2018-09-22T18:21:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-22T00:32:13.000Z (3 months ago)
- Last Synced: 2024-10-22T12:04:21.255Z (3 months ago)
- Topics: cli, dictionaries, hacktoberfest, haskell, tibetan, translation
- Language: Haskell
- Homepage:
- Size: 13.6 MB
- Stars: 13
- Watchers: 1
- Forks: 4
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Tibetan-English translator for CLI
[![Haskell-CI](https://github.com/willbasky/hibet/actions/workflows/haskell-ci.yml/badge.svg)](https://github.com/willbasky/hibet/actions/workflows/haskell-ci.yml)
[![BSD3 license](https://img.shields.io/badge/license-bsd3-brightgreen)](LICENSE)![Bod](bod.png)
## About
The Hibet translates with all dictionaries from [tibetan-dictionary](https://github.com/christiansteinert/tibetan-dictionary) project. It consume both [Wylie transliteration](https://en.wikipedia.org/wiki/Wylie_transliteration) and [tibetan script](https://en.wikipedia.org/wiki/Tibetan_script) from input.
## Features
1. Hibet uses about 40 dictionaries to translate Tibetan words to English or Tibetan.
2. If translations have Tibetan texts it printed as wylie.## Installation
1. Install [stack](https://docs.haskellstack.org/en/stable/README/#how-to-install)
2. Install hibet
git clone https://github.com/willbasky/hibet.git
cd ./hibet
stack install hibet
or
cabal new-install exe:hibet --overwrite-policy=always
## Usage video
[![asciicast](https://asciinema.org/a/271020.svg)](https://asciinema.org/a/271020)
## Help commands:
`$ hibet -h`
Hibet is command line translator from Tibet to English language.
Usage: hibet [-v|--version] [[-s|--select DICT_ID] | COMMAND]
Available options:
-h,--help Show this help text
-v,--version Show Hibet's version
-s,--select DICT_ID Select id of dictionaryAvailable commands:
shell Start the translate shell
om Print Om to a terminal
show Show names or meta of dictionaries
debug Debug hibet`$ hibet show -h`
Usage: hibet show COMMAND
Show names or meta of dictionariesAvailable options:
-h,--help Show this help textAvailable commands:
names Show dictionary titles
meta Show dictionary descriptions`$ hibet shell -h`
Usage: hibet shell [-s|--select DICT_ID]
Start the translate shellAvailable options:
-h,--help Show this help text
-s,--select DICT_ID Select id of dictionaryInput `hibet shell` in terminal. And then write your `query` using _Wylie_ (mo) or _Tibet script_ (མོ་):
$ hibet shell -s{7,16}
Which a tibetan word to translate?
> moམོ
7. Rangjung Yeshe
the girl
lady, female, woman. 2) divination, prophecy
1) auspicious, mo divination/ prophesy [R]; 2) feminine particle, female,
woman, she [R]; 3) terminative after MA; 4) noun forming particle [R]; 5)
is [don ci mo: what is the meaning]16. Ives Waldo
1) auspicious, mo divination [mo rgyag mkhan gyis mo ma btab gong du bden
pa bdar khul gyis mi la mgo skor gtong ba; 2) femine showing particle
[bya mo]; 3) terminative after MA; 4) noun forming particle [ring mo,
chen mo,//ltad mo,//nub mo]. 1) auspicious, mo divination/ prophesy [R];
2) feminine particle, female, woman, she [R]; 3) terminative after MA; 4)
noun forming particle [R]; 5) is [don ci mo: what is the meaning]. 1)
auspicious, mo divination/ prophesy; 2) feminine particle, female, woman,
she; 3) terminative after MA; 4) noun forming particle; 5) is### To quit, just input:
:q
### To get queries of the session, input:
:h
or use arrows of keyboard.
## Contribution
Contributions are welcoming!