kbatsuren / wiktra

Wiktra - Python tool of Wiktionary Transliteration modules for 514 languages and its 102 different scripts (orthographies)
GNU General Public License v2.0
27 stars 5 forks source link

Arabic transliteration module incompatible with Lua ≥5.2 #14

Open skalyan91 opened 3 years ago

skalyan91 commented 3 years ago

In line 332 of wikt/translit/ar-translit.lua, unpack(sub) should be replaced with table.unpack(sub), otherwise Lua throws the error attempt to call a nil value (global 'unpack').

This may also be an issue with other transliteration modules, but I have not checked if there are any others that use unpack.