liblouis / lua-louis

Experimental lua bindings for liblouis
GNU Lesser General Public License v3.0
2 stars 1 forks source link
bindings lua

+TITLE: Experimental Lua bindings for liblouis

These bindings allow you to use Liblouis from within Lua.

The bindings are compiled against any lua (between 5.1 and 5.4) that is found on your system.

Currently they are highly experimental, pull requests are welcome.

print(louis.translateString("de-g2.ctb", "Guten Tag"))

+END_SRC

** Fennel You can even invoke liblouis from [[https://fennel-lang.org/][the fennel language]], as it compiles to lua:

+BEGIN_SRC fennel

(let [louis (require :liblua-louis)] (print (louis.translateString "en-ueb-g2.ctb" "Hello World")) (print (louis.version)))

+END_SRC