varnamproject / libvarnam

Deprecated. See https://github.com/varnamproject/govarnam
http://www.varnamproject.com
Mozilla Public License 2.0
100 stars 21 forks source link

varnamc CLI utility in C #157

Open subins2000 opened 4 years ago

subins2000 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

joicemjoseph commented 4 years ago

Will try and let you know.