وحدة:Lang/data/is arabic data
المظهر
يمكن إنشاء صفحة توثيق الوحدة في وحدة:Lang/data/is arabic data/شرح
local p = {}
-- Arabic script ranges (Unicode)
p.ranges_t = {
{0x0600, 0x06FF}, -- Arabic
{0x0750, 0x077F}, -- Arabic Supplement
{0x08A0, 0x08FF}, -- Arabic Extended-A
{0xFB50, 0xFDFF}, -- Arabic Presentation Forms-A
{0xFE70, 0xFEFF}, -- Arabic Presentation Forms-B
}
p.sizeof_ranges_t = #p.ranges_t
-- Allowed non-letter singles commonly used with Arabic text
-- NOTE: Apostrophes are intentionally *not* included per project policy.
p.allowed_singles_t = {
[0x060C] = true, [0x061B] = true, [0x061F] = true, -- ، ؛ ؟
[0x0640] = true, -- tatweel
[0x066A] = true, [0x066B] = true, [0x066C] = true, -- ٪ ٫ ٬
[0x00AB] = true, [0x00BB] = true, -- « »
[0x200C] = true, [0x200D] = true, -- ZWNJ / ZWJ
-- Hyphens (all allowed):
[0x002D] = true, -- ASCII hyphen-minus '-'
[0x2010] = true, -- Unicode hyphen '‐'
[0x2011] = true, -- non-breaking hyphen
[0x002F] = true, -- slash /
[0x0028] = true, -- left parenthesis (
[0x0029] = true, -- right parenthesis )
[0x5B] = true, -- '[' allow wikilink bracket
[0x5D] = true, -- ']' allow wikilink bracket
[0x7C] = true, -- '|' allow wikilink pipe (used inside wikilinks)
}
-- Digit ranges allowed with Arabic text
p.digit_ranges_t = {
{0x0030, 0x0039}, -- ASCII digits 0–9
{0x0660, 0x0669}, -- Arabic-Indic digits
{0x06F0, 0x06F9}, -- Extended Arabic-Indic digits
}
return p