Module:string/nowiki/data

From Wiktionary, the free dictionary
Jump to navigation Jump to search


local list_to_set = require("Module:table").listToSet

local data = {}

data.absolute = list_to_set{"\"", "&", "'", ";", "<", "=", ">", "[", "]", "{", "|", "}"}

data.first = list_to_set{"+", "-", "_", "~"} -- In addition to after_newline.

data.last = list_to_set{"\t", "\n", "\f", "\r", " ", "!", ":", "_", "~"}

data.after_newline = list_to_set{"\t", "\n", "\r", " ", "!", "#", "*", ":"}

data.after_magic_link = list_to_set{"\t", "\n", "\f", "\r", " "}

data.uri_schemes = list_to_set{"bitcoin", "geo", "magnet", "mailto", "matrix", "news", "sip", "sips", "sms", "tel", "urn", "xmpp"}

return data