Modul:Text/quoting

Aus AuroraWiki

Skriptfehler: Interner Lua-Fehler: Der Interpreter beendet sich mit dem Signal „11“.

local TextQuote = { serial = "2021-05-01",
                    suite  = "TextQuote",
                    item   = 75029538 }
--[=[
Text utilities: quotes for particular languages
mw.loadData() table with all known assignments
]=]



TextQuote.langs = { af        = "bd",
                    ar        = "la",
                    be        = "labd",
                    bg        = "bd",
                    ca        = "la",
                    cs        = "bd",
                    da        = "bd",
                    de        = "bd",
                    dsb       = "bd",
                    et        = "bd",
                    el        = "lald",
                    en        = "ld",
                    eo        = "bdla",
                    es        = "la",
                    eu        = "la",
              --    fa        = "la",
                    fi        = "rd",
                    fr        = "laSPC",
                    ga        = "ld",
                    grc       = "lald",
                    he        = "ldla",
                    hr        = "bd",
                    hsb       = "bd",
                    hu        = "bd",
                    hy        = "labd",
                    id        = "rd",
                    is        = "bd",
                    it        = "ld",
                    ja        = "x300C",
                    ka        = "bd",
                    ko        = "ld",
                    lt        = "bd",
                    lv        = "bd",
                    nl        = "ld",
                    nn        = "la",
                    no        = "la",
                    pl        = "bxla",
                    pt        = "lald",
                    ro        = "bdla",
                    ru        = "labd",
                    sk        = "bd",
                    sl        = "bd",
                    sq        = "la",
                    sr        = "bx",
                    sv        = "rd",
                    th        = "ld",
                    tr        = "ld",
                    uk        = "la",
                    zh        = "ld",
                    ["de-ch"] = "la",
                    ["en-gb"] = "lsld",
                    ["en-us"] = "ld",
                    ["fr-ch"] = "la",
                    ["it-ch"] = "la",
                    ["pt-br"] = "ldla",
                    ["zh-tw"] = "x300C",
                    ["zh-cn"] = "ld" }



TextQuote.types = { bd    = { { 8222, 8220 },  { 8218, 8217 } },
                    bdla  = { { 8222, 8220 },  {  171,  187 } },
                    bx    = { { 8222, 8221 },  { 8218, 8217 } },
                    bxla  = { { 8222, 8221 },  {  171,  187 } },
                    la    = { {  171,  187 },  { 8249, 8250 } },
                    laSPC = { {  171,  187 },  { 8249, 8250 },  true },
                    labd  = { {  171,  187 },  { 8222, 8220 } },
                    lald  = { {  171,  187 },  { 8220, 8221 } },
                    ld    = { { 8220, 8221 },  { 8216, 8217 } },
                    ldla  = { { 8220, 8221 },  {  171,  187 } },
                    lsld  = { { 8216, 8217 },  { 8220, 8221 } },
                    rd    = { { 8221, 8221 },  { 8217, 8217 } },
                    x300C = { { 0x300C, 0x300D },
                              { 0x300E, 0x300F } } }
                  -- each element is a table with elements:
                  -- [1]  table, with opening and closing quote
                  -- [2]  optional: table, opening and closing 2nd quote
                  -- [3]  optional: boolean,
                  --                space between quote and text



TextQuote.failsafe = serial



return  TextQuote