Moduł:Html/dane
Wygląd
|
Zobacz podstrony tego modułu.
|
local p={};
----
p.znak_127=mw.ustring.char(127);
----
p.tabela_znakowa={
["|"]=mw.ustring.byte("|"),
["["]=mw.ustring.byte("["),
["]"]=mw.ustring.byte("]"),
["{"]=mw.ustring.byte("{"),
["}"]=mw.ustring.byte("}"),
["("]=mw.ustring.byte("("),
[")"]=mw.ustring.byte(")"),
["<"]=mw.ustring.byte("<"),
[">"]=mw.ustring.byte(">"),
["="]=mw.ustring.byte("="),
["/"]=mw.ustring.byte("/"),
["\\"]=mw.ustring.byte("\\"),
[" "]=mw.ustring.byte(" "),
["_"]=mw.ustring.byte("_"),
["-"]=mw.ustring.byte("-"),
["`"]=mw.ustring.byte("`"),
["'"]=mw.ustring.byte("'"),
["~"]=mw.ustring.byte("~"),
["!"]=mw.ustring.byte("!"),
["@"]=mw.ustring.byte("@"),
["#"]=mw.ustring.byte("#"),
["$"]=mw.ustring.byte("$"),
["%"]=mw.ustring.byte("%"),
["^"]=mw.ustring.byte("^"),
["&"]=mw.ustring.byte("&"),
["*"]=mw.ustring.byte("*"),
["+"]=mw.ustring.byte("+"),
["\""]=mw.ustring.byte("\""),
[","]=mw.ustring.byte(","),
["."]=mw.ustring.byte("."),
["?"]=mw.ustring.byte("?"),
[";"]=mw.ustring.byte(";"),
[":"]=mw.ustring.byte(":"),
[""]=mw.ustring.codepoint(""),
};
p.tabela_nawiasowa={
["{"]="&#"..mw.ustring.byte("{")..";",
["}"]="&#"..mw.ustring.byte("}")..";",
["|"]="&#"..mw.ustring.byte("|")..";",
["="]="&#"..mw.ustring.byte("=")..";",
["<"]="&#"..mw.ustring.byte("<")..";",
[">"]="&#"..mw.ustring.byte(">")..";",
["["]="&#"..mw.ustring.byte("[")..";",
["]"]="&#"..mw.ustring.byte("]")..";",
["#"]="&#"..mw.ustring.byte("#")..";",
["?"]="&#"..mw.ustring.byte("?")..";",
["&"]="&#"..mw.ustring.byte("&")..";",
[":"]="&#"..mw.ustring.byte(":")..";",
["*"]="&#"..mw.ustring.byte("*")..";",
[";"]="&#"..mw.ustring.byte(";")..";",
["!"]="&#"..mw.ustring.byte("!")..";",
};
p.kody_literowe_html_i_ich_odpowiedniki_znakowe={
-- Podstawowe
["<"] = "<",
[">"] = ">",
["&"] = "&",
["""] = "\"",
["'"] = "'",
-- Spacje i typografia
[" "] = " ",
[" "] = " ",
[" "] = " ",
[" "] = " ",
["©"] = "©",
["®"] = "®",
["™"] = "™",
["§"] = "§",
["¶"] = "¶",
["°"] = "°",
["·"] = "·",
["•"] = "•",
-- Waluty
["$"] = "$",
["¢"] = "¢",
["£"] = "£",
["¥"] = "¥",
["€"] = "€",
-- Strzałki
["←"] = "←",
["↑"] = "↑",
["→"] = "→",
["↓"] = "↓",
["↔"] = "↔",
-- Greckie litery (małe i wielkie)
["α"] = "α", ["Α"] = "Α",
["β"] = "β", ["Β"] = "Β",
["γ"] = "γ", ["Γ"] = "Γ",
["δ"] = "δ", ["Δ"] = "Δ",
["ε"] = "ε", ["Ε"] = "Ε",
["ζ"] = "ζ", ["Ζ"] = "Ζ",
["η"] = "η", ["Η"] = "Η",
["θ"] = "θ", ["Θ"] = "Θ",
["ι"] = "ι", ["Ι"] = "Ι",
["κ"] = "κ", ["Κ"] = "Κ",
["λ"] = "λ", ["Λ"] = "Λ",
["μ"] = "μ", ["Μ"] = "Μ",
["ν"] = "ν", ["Ν"] = "Ν",
["ξ"] = "ξ", ["Ξ"] = "Ξ",
["ο"] = "ο", ["Ο"] = "Ο",
["π"] = "π", ["Π"] = "Π",
["ρ"] = "ρ", ["Ρ"] = "Ρ",
["σ"] = "σ", ["Σ"] = "Σ",
["τ"] = "τ", ["Τ"] = "Τ",
["υ"] = "υ", ["Υ"] = "Υ",
["φ"] = "φ", ["Φ"] = "Φ",
["χ"] = "χ", ["Χ"] = "Χ",
["ψ"] = "ψ", ["Ψ"] = "Ψ",
["ω"] = "ω", ["Ω"] = "Ω",
-- Symbole matematyczne
["±"] = "±",
["×"] = "×",
["÷"] = "÷",
["∞"] = "∞",
["√"] = "√",
["∑"] = "∑",
["∏"] = "∏",
["∫"] = "∫",
["∀"] = "∀",
["∂"] = "∂",
["∃"] = "∃",
["∅"] = "∅",
["∇"] = "∇",
["∈"] = "∈",
["∉"] = "∉",
["⊂"] = "⊂",
["⊃"] = "⊃",
["⊆"] = "⊆",
["⊇"] = "⊇",
["⊕"] = "⊕",
["⊗"] = "⊗",
["⊥"] = "⊥",
};
return p;