lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Oct 9, 2015 at 12:36 PM, Christopher Kappe <nox_diesque@web.de> wrote:
local latexToUtf8 = {
  ["\\\"a"] = "ä",
  ["\\\"o"] = "ö"
}
I would really be happy if I could save the [""]

local latexToUtf8 = {}
;([[
\"o=ö
\"a=ä
]]):gsub('(\\.-)=(%S+)', function(k,v) latexToUtf8[k]=v end)