Mô đun:Chữ Nôm
Giao diện
---Lexicographic tools for Vietnamese demotic text.local p = {}p.han_fontstyle = { 'normal'}p.han_cd_fontstyle = { 'normal'}---[[Bản mẫu:Vi-nom]]function p.applyHanFonts(text, size) if type(text) == "table" then text, size = text.args[1], text.args.size end local css = mw.ustring.format("font-style: %s;", table.concat(p.han_cd_fontstyle, "', '")) -- U+2A700/U+2B734, U+2B740/U+2B81F text = mw.ustring.gsub(text, "([𪜀-𫜴𫝀-])", '<span class="cjkv-cd" style="' .. css .. '">%1</span>') css = mw.ustring.format("font-style: %s;", table.concat(p.han_fontstyle, "', '")) if size then css = css .. " font-size: " .. size .. ";" end return mw.ustring.format('<span lang="vi" class="Hani" style="%s">%s</span>', css, text)endreturn p