libvarnam
libvarnam copied to clipboard
varnamc CLI utility in C
http://savannah.nongnu.org/bugs/?40807
Implemented options :
❯ ./varnamc --help
Usage: varnamc [OPTION...]
an Indic language transliteration library
-a, --train=PATTERN=WORD Train the given text
-d, --details[=] Detailed transliteration output. Use with
--transliterate
-e, --export-full=FILE Export words and patterns to the specified
directory
-f, --learn-from=FILE Reads from the specified file
-i, --import-learnings-from=FILE
Import learned data from the specified file
-n, --learn=TEXT Learn the given text
-r, --reverse-transliterate=TEXT
Reverse transliterate the given text
-s, --symbols=VALUE Sets the symbols file
-t, --transliterate=TEXT Transliterate the given text
-?, --help Give this help list
--usage Give a short usage message
-v, --version[=] Display version
Realized GNU argp is not available on mac, windows or android. To get argp on them, it'd take some extra work. So this'll only work good on Linux for now.
I tried compiling it on Android, but failed because of
- no argp
- When trying to compile argp-standalone, no gettablesize
@joicemjoseph Can you try statically compiling this on Mac and see if it works. I guess it'd need argp-standalone
Will try and let you know.