8000 GitHub - willbasky/hibet: Tibetan-English translator for CLI
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

willbasky/hibet

Repository files navigation

Tibetan-English translator for CLI

Haskell-CI BSD3 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.

Installation

  1. To install hibet you want to have cabal and ghc installed. The easiest way to grab it is using ghcup. Once the ghcup is installed run command to install ghc and cabal:

    ghcup install ghc 9.6.7 && ghcup install cabal 3.12.1.0

  2. Install hibet

    git clone https://github.com/willbasky/hibet.git

    cd ./hibet

    cabal install exe:hibet --overwrite-policy=always

Usage video

asciicast

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 dictionary

Available 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 dictionaries

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

Available commands:
  names                    Show dictionary titles
  meta                     Show dictionary descriptions

$ hibet shell -h

Usage: hibet shell [-s|--select DICT_ID]
  Start the translate shell

Available options:
  -h,--help                Show this help text
  -s,--select DICT_ID      Select id of dictionary

Input 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!

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0