libvarnam icon indicating copy to clipboard operation
libvarnam copied to clipboard

varnamc CLI utility in C

Open subins2000 opened this issue 5 years ago • 3 comments

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

subins2000 avatar Sep 14 '20 15:09 subins2000

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

  1. no argp
  2. When trying to compile argp-standalone, no gettablesize

subins2000 avatar Sep 19 '20 17:09 subins2000

@joicemjoseph Can you try statically compiling this on Mac and see if it works. I guess it'd need argp-standalone

subins2000 avatar Sep 19 '20 17:09 subins2000

Will try and let you know.

joicemjoseph avatar Sep 19 '20 17:09 joicemjoseph