Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Okkhor CLI

Okkhor CLI is a thin command-line wrapper for Okkhor Core, providing Bangla phonetic transliteration directly from the terminal.

Features

  • Latin → Bangla transliteration
  • Bangla → Latin transliteration
  • Standard input (stdin) support
  • Custom data directory support
  • Suitable for scripts and shell pipelines

Usage

Basic

okkhor "amar sonar bangla"

Reverse

okkhor --reverse "আমার সোনার বাংলা"

Custom data

okkhor --data-dir ./data "amar sonar bangla"

Short form:

okkhor -d ./data "amar sonar bangla"

If no data directory is provided, Okkhor Core uses its default embedded data.

Stdin

echo "amar sonar bangla" | okkhor

Process a file:

okkhor < input.txt

Reverse:

okkhor --reverse < input.txt

Options

okkhor [options] [text]

-r, --reverse              Bangla → Latin
-d, --data-dir <directory> Use custom data
-v, --version              Show version
-h, --help                 Show help

Use Cases

  • Quickly transliterate text from the terminal
  • Process text files
  • Use Okkhor in shell pipelines
  • Automate transliteration from scripts
  • Test custom Okkhor data and rules
  • Experiment with Okkhor Core before integrating it into an application

Building

Clone with the okkhor-core submodule:

git clone --recurse-submodules https://github.com/okkhor-bn/okkhor-cli.git
cd okkhor-cli

Build with CMake:

cmake -S . -B build
cmake --build build --config Release

Related

License

This project is licensed under GPL3 See the repository license for details.

About

Okkhor CLI is a thin command-line wrapper for Okkhor Core, providing Bangla phonetic transliteration directly from the terminal.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages