Skip to content

Latest commit

 

History

History
95 lines (59 loc) · 3.16 KB

README.md

File metadata and controls

95 lines (59 loc) · 3.16 KB

Tibetan-English translator for CLI

MIT license

Bod

About

The Hibet translates with all dictionaries from tibetan-dictionary project. It consume both Wylie transliteration and 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 (and as tibetan script for dictionary №37 yet).

Installation

  1. Install stack

  2. Install Hibet

     git clone https://github.com/willbasky/Hibet.git
    
     cd ./Hibet
    
     stack install Hibet
    

Usage video

asciicast

Help commands:

$ tibet -h

Hibet is command line translator from Tibet to English language.

Usage: tibet [-v|--version] COMMAND
  Translate from Tibetan to English
Available options:
  -h,--help                Show this help text
  -v,--version             Show Hibet's version

Available commands:
  shell                    Start the translate shell
  om                       Print Om to a terminal
  show                     Show titles or descriptions of dictionaries

$ tibet show -h

Usage: tibet show COMMAND
  Show commands

Available options:
  -h,--help                Show this help text

Available commands:
  names                    Show dictionary titles
  meta                     Show dictionary description

$ tibet shell -h

Usage: tibet shell [-s|--select ID_LIST]
  Start the translate shell

Available options:
  -h,--help                Show this help text
  -s,--select ID_LIST      Select id list of dictionaries separeted by space or comma

Input tibet shell in terminal. And then write your query using Wylie or Tibet script:

$ tibet 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

Contribution

Contribution is welcome!