/** Curated Unicode specimens and the font families needed to display them. */
module (module) unicode_samplesCurated Unicode specimens and the font families needed to display them.
unicode_samples;
/// Small navigable sets, rather than an exhaustive character chart.
enum (enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase { (enum value) unicode_samples.Showcase.overview = 0overview, (enum value) unicode_samples.Showcase.latin = 1latin, (enum value) unicode_samples.Showcase.rtl = 2rtl, (enum value) unicode_samples.Showcase.indic = 3indic, (enum value) unicode_samples.Showcase.southeastAsian = 4southeastAsian, (enum value) unicode_samples.Showcase.cjk = 5cjk, (enum value) unicode_samples.Showcase.world = 6world, (enum value) unicode_samples.Showcase.historic = 7historic, (enum value) unicode_samples.Showcase.symbols = 8symbols, (enum value) unicode_samples.Showcase.emoji = 9emoji, (enum value) unicode_samples.Showcase.icons = 10icons }
/// Metadata describes the behavior under test; source text stays in logical order.
struct (struct) unicode_samples.UnicodeSampleMetadata describes the behavior under test; source text stays in logical order.
UnicodeSample
{
(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase (field) unicode_samples.Showcase unicode_samples.UnicodeSample.groupgroup;
(alias) object.string = stringstring (field) string unicode_samples.UnicodeSample.labellabel, (field) string unicode_samples.UnicodeSample.texttext, (field) string unicode_samples.UnicodeSample.scriptsscripts, (field) string unicode_samples.UnicodeSample.blocksblocks, (field) string unicode_samples.UnicodeSample.behaviorbehavior;
}
/// Representative samples; format controls occur only in deliberate sequences.
immutable (struct) unicode_samples.UnicodeSampleMetadata describes the behavior under test; source text stays in logical order.
UnicodeSample[] (immutable global) immutable(unicode_samples.UnicodeSample[]) unicode_samples.unicodeSamplesRepresentative samples; format controls occur only in deliberate sequences.
unicodeSamples = [
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, "Latin", "The quick brown fox jumps over the lazy dog.", "Latin", "Basic Latin", "natural advances"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, "Shapes", "Hamburgefontsiv il1I| oO0 rn m cl d ,.;:'\"", "Latin", "Basic Latin", "glyph distinctions"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, "Digits", "0123456789 +-*/=<> ()[]{} @#$%^& ~`_\\", "Common", "Basic Latin", "digits and punctuation"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, "Code", "-> => != === <= >= :: |> <| /* */ // www 0x1F", "Common", "Basic Latin", "programming ligatures"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, "Accents", "café naïve façade Ångström Øresund ŁÓDŹ ẞ", "Latin", "Latin-1 Supplement; Latin Extended-A; Latin Extended Additional", "precomposed accents"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, "Scripts", "Ωμέγα αβγδ Здравей, свят! Tiếng Việt Ğğ İı Şş", "Greek; Cyrillic; Latin", "Greek and Coptic; Cyrillic; Latin Extended Additional", "script fallback; Bulgarian Cyrillic"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, "Combining", "é ä ñ ô ç Z̵̀a͓ḻg͔o", "Latin; Inherited", "Combining Diacritical Marks", "stacked marks"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, "CJK", "漢字 かな カナ 한국어 中文字体", "Han; Hiragana; Katakana; Hangul", "CJK Unified Ideographs; Hiragana; Katakana; Hangul Syllables", "CJK fallback"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, "Emoji", "😀 😎 ❤️ ❤ ✨ 👍 👍🏽 🎉 🚀", "Common", "Emoticons; Miscellaneous Symbols; Miscellaneous Symbols and Pictographs", "color and presentation"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, "Sequences", "👩💻 👨👩👧 🇧🇬 1️⃣ #️⃣ ❤️🔥", "Common", "Miscellaneous Symbols and Pictographs; Combining Diacritical Marks for Symbols", "grapheme sequences"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, "Icons", "\uE0A0 \uE0B0 \uF115 \uF07B \uF013 \uF1D3 \uE7A8 \uF489", "Private use", "Private Use Area", "Nerd Font conventions"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, "Symbols", "←→↑↓ ⇐⇒ ✓✗ ∑∫√∞≈≠ ±×÷ °§¶ ©®™ ½¾", "Common", "Arrows; Mathematical Operators; Dingbats; Number Forms", "symbols"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, "Box", "┌─┬─┐ ╔═╦═╗ ╭─╮ │ ├┼┤ ░▒▓█ ▁▂▃▄▅▆▇ ⣿⠿⠛", "Common; Braille", "Box Drawing; Block Elements; Braille Patterns", "cell alignment"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.latin = 1latin, "NFC / NFD", "é e\u0301 Å A\u030A ñ n\u0303", "Latin; Inherited", "Latin-1 Supplement; Combining Diacritical Marks", "canonical-equivalent shaping"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.latin = 1latin, "Marks", "a\u0323\u0301 o\u0302\u0301 n\u0303\u0323", "Latin; Inherited", "Combining Diacritical Marks", "above and below marks"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.latin = 1latin, "Vietnamese", "Tiếng Việt: Trường đại học", "Latin", "Latin Extended Additional", "multiple diacritics"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.latin = 1latin, "Greek", "Ελληνικά Ωμέγα αβγδ", "Greek", "Greek and Coptic", "Greek accents"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.latin = 1latin, "Cyrillic", "Здравей, свят! България Щъркел ѝ", "Cyrillic", "Cyrillic", "Bulgarian language"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.latin = 1latin, "Punct.", "‘single’ “double” «guillemets» — …", "Common", "General Punctuation; Latin-1 Supplement", "paired punctuation"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.latin = 1latin, "Spaces", "A B A\u00A0B A\u2009B", "Common", "Basic Latin; Latin-1 Supplement; General Punctuation", "space, NBSP, thin space"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.rtl = 2rtl, "Arabic", "مرحبا بالعالم", "Arabic", "Arabic", "contextual joining and RTL word order"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.rtl = 2rtl, "Marks", "العَرَبِيَّة", "Arabic", "Arabic", "Arabic vowel marks"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.rtl = 2rtl, "Hebrew", "שָׁלוֹם עוֹלָם", "Hebrew", "Hebrew", "RTL and niqqud"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.rtl = 2rtl, "Mixed", "ABC (שלום) 123 مرحبا", "Latin; Hebrew; Arabic", "Basic Latin; Hebrew; Arabic", "bidi levels and bracket mirroring"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.rtl = 2rtl, "Digits", "السعر ١٢٣٫٤٥ USD", "Arabic; Latin", "Arabic; Basic Latin", "Arabic-Indic digits in mixed text"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.rtl = 2rtl, "Joiners", "می\u200Cروم لا ل\u200Dا", "Arabic", "Arabic; General Punctuation", "ZWNJ and ZWJ shaping"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.rtl = 2rtl, "Isolates", "ABC \u2067שלום 123\u2069 XYZ", "Latin; Hebrew", "Basic Latin; Hebrew; General Punctuation", "RLI/PDI isolation"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.indic = 3indic, "Devanagari", "नमस्ते क्ष त्र ज्ञ", "Devanagari", "Devanagari", "conjuncts and vowel reordering"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.indic = 3indic, "Bengali", "বাংলা ক্ষ", "Bengali", "Bengali", "conjuncts and dependent vowels"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.indic = 3indic, "Tamil", "தமிழ்", "Tamil", "Tamil", "dependent vowels"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.indic = 3indic, "Telugu", "తెలుగు", "Telugu", "Telugu", "syllable shaping"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.indic = 3indic, "Sinhala", "සිංහල", "Sinhala", "Sinhala", "syllable shaping"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.indic = 3indic, "Digits", "०१२३ ০১২৩ ௧௨௩", "Devanagari; Bengali; Tamil", "Devanagari; Bengali; Tamil", "decimal digit sets"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.southeastAsian = 4southeastAsian, "Thai", "ภาษาไทย", "Thai", "Thai", "positioned vowels and marks"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.southeastAsian = 4southeastAsian, "Lao", "ພາສາລາວ", "Lao", "Lao", "positioned vowels and marks"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.southeastAsian = 4southeastAsian, "Khmer", "ភាសាខ្មែរ", "Khmer", "Khmer", "subscript consonants"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.southeastAsian = 4southeastAsian, "Myanmar", "မြန်မာစာ", "Myanmar", "Myanmar", "stacking and reordering"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.southeastAsian = 4southeastAsian, "Tibetan", "བོད་སྐད།", "Tibetan", "Tibetan", "stacked consonants"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.cjk = 5cjk, "Han", "漢字 中文字体 臺灣", "Han", "CJK Unified Ideographs", "unified ideographs"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.cjk = 5cjk, "Kana", "ひらがな カタカナ が か\u3099", "Hiragana; Katakana", "Hiragana; Katakana", "voicing and combining dakuten"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.cjk = 5cjk, "Hangul", "한글 한국어 한글", "Hangul", "Hangul Syllables; Hangul Jamo", "precomposed and decomposed syllables"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.cjk = 5cjk, "Bopomofo", "ㄅㄆㄇㄈ", "Bopomofo", "Bopomofo", "phonetic symbols"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.cjk = 5cjk, "SIP Han", "\U0002000B \U00020BB7", "Han", "CJK Unified Ideographs Extension B", "plane 2 scalar decoding"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.cjk = 5cjk, "TIP Han", "\U00030729", "Han", "CJK Unified Ideographs Extension G", "plane 3 scalar decoding"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.cjk = 5cjk, "IVS", "辻 辻\U000E0100", "Han; Inherited", "CJK Unified Ideographs; Variation Selectors Supplement", "IVS shaping; unsupported variants retain the base"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.cjk = 5cjk, "Fullwidth", "ABC123 「日本語」、。", "Latin; Han; Common", "Halfwidth and Fullwidth Forms; CJK Symbols and Punctuation", "fullwidth forms and punctuation"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.world = 6world, "Armenian", "Հայերեն", "Armenian", "Armenian", "distinct alphabet"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.world = 6world, "Georgian", "ქართული", "Georgian", "Georgian", "distinct alphabet"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.world = 6world, "Ethiopic", "አማርኛ", "Ethiopic", "Ethiopic", "abugida"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.world = 6world, "Cherokee", "ᏣᎳᎩ", "Cherokee", "Cherokee", "syllabary"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.world = 6world, "Canadian", "ᐃᓄᒃᑎᑐᑦ", "Canadian Aboriginal", "Unified Canadian Aboriginal Syllabics", "syllabics"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.historic = 7historic, "Glagolitic", "ⰀⰁⰂⰃⰄ ⰰⰱⰲⰳⰴ", "Glagolitic", "Glagolitic", "historic Bulgarian alphabet; upper/lowercase"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.historic = 7historic, "Gothic", "\U00010330\U00010331\U00010332", "Gothic", "Gothic", "supplementary alphabet"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.historic = 7historic, "Deseret", "\U00010400\U00010428", "Deseret", "Deseret", "supplementary upper/lowercase"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.historic = 7historic, "Egyptian", "\U00013000\U00013001\U00013002", "Egyptian Hieroglyphs", "Egyptian Hieroglyphs", "hieroglyph outlines"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.historic = 7historic, "Cuneiform", "\U00012000\U00012001\U00012002", "Cuneiform", "Cuneiform", "supplementary signs"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.historic = 7historic, "Ogham", "᚛ᚑᚌᚐᚋ᚜", "Ogham", "Ogham", "historic BMP script"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.historic = 7historic, "Runic", "ᚠᚢᚦᚨᚱᚲ", "Runic", "Runic", "historic BMP script"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.symbols = 8symbols, "Math", "∑ ∫ √ ∞ ≈ ≠ ≤ ≥", "Common", "Mathematical Operators", "mathematical operators"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.symbols = 8symbols, "Math SMP", "𝔄 𝔹 𝒞 𝕏", "Common", "Mathematical Alphanumeric Symbols", "supplementary mathematical letters"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.symbols = 8symbols, "Numbers", "① Ⅳ ½ ₃ ²", "Common", "Enclosed Alphanumerics; Number Forms; Superscripts and Subscripts", "non-decimal number categories"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.symbols = 8symbols, "Currency", "€ £ ¥ ₩ ₹ ₿", "Common", "Currency Symbols; Latin-1 Supplement", "currency symbols"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.symbols = 8symbols, "Music", "𝄞 𝄢 𝅘𝅥 𝅘𝅥𝅮", "Common", "Musical Symbols", "supplementary notation"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.symbols = 8symbols, "Technical", "⌘ ⌥ ⌫ ⎋ ⏎ ⌦", "Common", "Miscellaneous Technical", "technical symbols"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.symbols = 8symbols, "Box", "┌─┬─┐ ╔═╦═╗ ╭─╮ ░▒▓█", "Common", "Box Drawing; Block Elements", "cell graphics"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.symbols = 8symbols, "Braille", "⠁ ⠃ ⠉ ⠿ ⣿", "Braille", "Braille Patterns", "dot patterns"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.symbols = 8symbols, "Legacy", "\U0001FB00 \U0001FB01", "Common", "Symbols for Legacy Computing", "supplementary terminal graphics"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.emoji = 9emoji, "Faces", "😀 😎 🥳", "Common", "Emoticons; Supplemental Symbols and Pictographs", "color bitmap glyphs"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.emoji = 9emoji, "VS15/16", "❤\uFE0E ❤\uFE0F", "Common; Inherited", "Dingbats; Variation Selectors", "text versus emoji presentation"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.emoji = 9emoji, "Modifiers", "👍 👍🏻 👍🏽 👍🏿", "Common", "Miscellaneous Symbols and Pictographs", "skin-tone modifiers"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.emoji = 9emoji, "ZWJ", "👩💻 👨👩👧 ❤️🔥", "Common", "Miscellaneous Symbols and Pictographs; General Punctuation", "joined emoji sequences"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.emoji = 9emoji, "Flags", "🇧🇬 🇯🇵 🇺🇳", "Common", "Enclosed Alphanumeric Supplement", "regional-indicator pairs"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.emoji = 9emoji, "Keycaps", "1️⃣ #️⃣ *️⃣", "Common; Inherited", "Basic Latin; Combining Diacritical Marks for Symbols", "enclosing keycap marks"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.emoji = 9emoji, "Tags", "\U0001F3F4\U000E0067\U000E0062\U000E0065\U000E006E\U000E0067\U000E007F", "Common", "Miscellaneous Symbols and Pictographs; Tags", "England tag flag, including plane 14 controls"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.icons = 10icons, "PUA BMP", "\uE0A0 \uE0B0 \uF115 \uF07B \uF013 \uF1D3 \uE7A8 \uF489", "Private use", "Private Use Area", "FiraCode Nerd Font conventions"},
{(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.icons = 10icons, "PUA 15", "\U000F0001 \U000F0004 \U000F02DC", "Private use", "Supplementary Private Use Area-A", "font-specific supplementary icons"},
];
/// A canonical family and its bundled filename; mask selects the pages using it.
struct (struct) unicode_samples.ShowcaseFontA canonical family and its bundled filename; mask selects the pages using it.
ShowcaseFont
{
uint (field) uint unicode_samples.ShowcaseFont.pagespages;
(alias) object.string = stringstring (field) string unicode_samples.ShowcaseFont.familyfamily, (field) string unicode_samples.ShowcaseFont.filenamefilename;
uint (field) uint unicode_samples.ShowcaseFont.faceIndexexact member of the canonical bundled collection
faceIndex; /// exact member of the canonical bundled collection
}
private uint uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase[] (parameter) unicode_samples.Showcase[] groupsgroups...) @safe pure nothrow @nogc
{
uint (local variable) uint resultresult;
foreach ((parameter) unicode_samples.Showcase groupgroup; (parameter) unicode_samples.Showcase[] groupsgroups) (local variable) uint resultresult |= 1u << cast(uint) (local variable) unicode_samples.Showcase groupgroup;
return (local variable) uint resultresult;
}
/// Page fonts load lazily; loaded bytes remain pinned for the session's renderers.
immutable (struct) unicode_samples.ShowcaseFontA canonical family and its bundled filename; mask selects the pages using it.
ShowcaseFont[] (immutable global) immutable(unicode_samples.ShowcaseFont[]) unicode_samples.showcaseFontsPage fonts load lazily; loaded bytes remain pinned for the session's renderers.
Examples
Every page has specimens, named behavior, and bounded display labels.
uint[Showcase.max + 1] counts;
uint planeMask;
foreach (sample; unicodeSamples)
{
++counts[sample.group];
assert(sample.label.length && sample.label.length <= 11);
assert(sample.text.length && sample.scripts.length && sample.blocks.length && sample.behavior.length);
foreach (dchar cp; sample.text) planeMask |= 1u << (cp >> 16);
}
foreach (count; counts) assert(count);
foreach (plane; [0, 1, 2, 3, 14, 15]) assert(planeMask & (1u << plane));
Bulgarian Cyrillic and the Glagolitic block are explicit inventory entries.
bool bulgarian, glagolitic;
foreach (sample; unicodeSamples)
{
if (sample.label == "Cyrillic")
{
assert(sample.text == "Здравей, свят! България Щъркел ѝ");
bulgarian = true;
}
if (sample.blocks == "Glagolitic")
{
assert(sample.group == Showcase.historic && sample.scripts == "Glagolitic");
foreach (dchar cp; sample.text)
assert(cp == ' ' || cp >= 0x2C00 && cp <= 0x2C5F);
glagolitic = true;
}
}
assert(bulgarian && glagolitic);
showcaseFonts = [
{uint.(constant) uint uint.max = 4294967295umax, "Noto Sans", "NotoSans.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, (enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.symbols = 8symbols, (enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.emoji = 9emoji), "DejaVu Sans Mono", "DejaVuSansMono.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, (enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.cjk = 5cjk), "Noto Sans CJK SC", "NotoSansCJK-VF.otf.ttc", 2},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, (enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.icons = 10icons), "FiraCode Nerd Font Mono", "FiraCodeNerdFontMono-Regular.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, (enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.emoji = 9emoji), "Noto Color Emoji", "NotoColorEmoji.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.rtl = 2rtl), "Noto Sans Arabic", "NotoSansArabic.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.rtl = 2rtl), "Noto Sans Hebrew", "NotoSansHebrew.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.indic = 3indic), "Noto Sans Devanagari", "NotoSansDevanagari.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.indic = 3indic), "Noto Sans Bengali", "NotoSansBengali.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.indic = 3indic), "Noto Sans Tamil", "NotoSansTamil.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.indic = 3indic), "Noto Sans Telugu", "NotoSansTelugu.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.indic = 3indic), "Noto Sans Sinhala", "NotoSansSinhala.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.southeastAsian = 4southeastAsian), "Noto Sans Thai", "NotoSansThai.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.southeastAsian = 4southeastAsian), "Noto Sans Lao", "NotoSansLao.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.southeastAsian = 4southeastAsian), "Noto Sans Khmer", "NotoSansKhmer.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.southeastAsian = 4southeastAsian), "Noto Sans Myanmar", "NotoSansMyanmar.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.southeastAsian = 4southeastAsian), "Noto Serif Tibetan", "NotoSerifTibetan.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.world = 6world), "Noto Sans Armenian", "NotoSansArmenian.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.world = 6world), "Noto Sans Georgian", "NotoSansGeorgian.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.world = 6world), "Noto Sans Ethiopic", "NotoSansEthiopic.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.world = 6world), "Noto Sans Cherokee", "NotoSansCherokee.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.world = 6world), "Noto Sans Canadian Aboriginal", "NotoSansCanadianAboriginal.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.historic = 7historic), "Noto Sans Glagolitic", "NotoSansGlagolitic-Regular.otf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.historic = 7historic), "Noto Sans Gothic", "NotoSansGothic-Regular.otf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.historic = 7historic), "Noto Sans Deseret", "NotoSansDeseret-Regular.otf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.historic = 7historic), "Noto Sans Egyptian Hieroglyphs", "NotoSansEgyptianHieroglyphs-Regular.otf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.historic = 7historic), "Noto Sans Cuneiform", "NotoSansCuneiform-Regular.otf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.historic = 7historic), "Noto Sans Ogham", "NotoSansOgham-Regular.otf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.historic = 7historic), "Noto Sans Runic", "NotoSansRunic-Regular.otf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.overview = 0overview, (enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.symbols = 8symbols, (enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.emoji = 9emoji), "Noto Sans Symbols 2", "NotoSansSymbols2-Regular.otf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.symbols = 8symbols), "Noto Sans Symbols", "NotoSansSymbols.ttf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.symbols = 8symbols), "Noto Sans Math", "NotoSansMath-Regular.otf"},
{uint unicode_samples.pages(unicode_samples.Showcase[] groups...) pure nothrow @nogc @safepages((enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.symbols = 8symbols), "Noto Music", "NotoMusic-Regular.otf"},
];
/// Every page has specimens, named behavior, and bounded display labels.
@("text_lab.unicode_samples.pageInventory")
@safe pure unittest
{
uint[(enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(constant) unicode_samples.Showcase unicode_samples.Showcase.max = Showcase.iconsmax + 1] (local variable) uint[11] countscounts;
uint (local variable) uint planeMaskplaneMask;
foreach ((parameter) immutable(unicode_samples.UnicodeSample) samplesample; (immutable global) immutable(unicode_samples.UnicodeSample[]) unicode_samples.unicodeSamplesRepresentative samples; format controls occur only in deliberate sequences.
unicodeSamples)
{
++(local variable) uint[11] countscounts[(local variable) immutable(unicode_samples.UnicodeSample) samplesample.(field) unicode_samples.Showcase unicode_samples.UnicodeSample.groupgroup];
assert((local variable) immutable(unicode_samples.UnicodeSample) samplesample.(field) string unicode_samples.UnicodeSample.labellabel.(field) ulong immutable(string).lengthlength && (local variable) immutable(unicode_samples.UnicodeSample) samplesample.(field) string unicode_samples.UnicodeSample.labellabel.(field) ulong immutable(string).lengthlength <= 11);
assert((local variable) immutable(unicode_samples.UnicodeSample) samplesample.(field) string unicode_samples.UnicodeSample.texttext.(field) ulong immutable(string).lengthlength && (local variable) immutable(unicode_samples.UnicodeSample) samplesample.(field) string unicode_samples.UnicodeSample.scriptsscripts.(field) ulong immutable(string).lengthlength && (local variable) immutable(unicode_samples.UnicodeSample) samplesample.(field) string unicode_samples.UnicodeSample.blocksblocks.(field) ulong immutable(string).lengthlength && (local variable) immutable(unicode_samples.UnicodeSample) samplesample.(field) string unicode_samples.UnicodeSample.behaviorbehavior.(field) ulong immutable(string).lengthlength);
foreach (dchar (parameter) dchar cpcp; (local variable) immutable(unicode_samples.UnicodeSample) samplesample.(field) string unicode_samples.UnicodeSample.texttext) (local variable) uint planeMaskplaneMask |= 1u << ((local variable) dchar cpcp >> 16);
}
foreach ((parameter) uint countcount; (local variable) uint[11] countscounts) assert((local variable) uint countcount);
foreach ((parameter) int planeplane; [0, 1, 2, 3, 14, 15]) assert((local variable) uint planeMaskplaneMask & (1u << (local variable) int planeplane));
}
/// Bulgarian Cyrillic and the Glagolitic block are explicit inventory entries.
@("text_lab.unicode_samples.bulgarianAndGlagolitic")
@safe pure unittest
{
bool (local variable) bool bulgarianbulgarian, (local variable) bool glagoliticglagolitic;
foreach ((parameter) immutable(unicode_samples.UnicodeSample) samplesample; (immutable global) immutable(unicode_samples.UnicodeSample[]) unicode_samples.unicodeSamplesRepresentative samples; format controls occur only in deliberate sequences.
unicodeSamples)
{
if ((local variable) immutable(unicode_samples.UnicodeSample) samplesample.(field) string unicode_samples.UnicodeSample.labellabel == "Cyrillic")
{
assert((local variable) immutable(unicode_samples.UnicodeSample) samplesample.(field) string unicode_samples.UnicodeSample.texttext == "Здравей, свят! България Щъркел ѝ");
(local variable) bool bulgarianbulgarian = true;
}
if ((local variable) immutable(unicode_samples.UnicodeSample) samplesample.(field) string unicode_samples.UnicodeSample.blocksblocks == "Glagolitic")
{
assert((local variable) immutable(unicode_samples.UnicodeSample) samplesample.(field) unicode_samples.Showcase unicode_samples.UnicodeSample.groupgroup == (enum) unicode_samples.ShowcaseSmall navigable sets, rather than an exhaustive character chart.
Showcase.(enum value) unicode_samples.Showcase.historic = 7historic && (local variable) immutable(unicode_samples.UnicodeSample) samplesample.(field) string unicode_samples.UnicodeSample.scriptsscripts == "Glagolitic");
foreach (dchar (parameter) dchar cpcp; (local variable) immutable(unicode_samples.UnicodeSample) samplesample.(field) string unicode_samples.UnicodeSample.texttext)
assert((local variable) dchar cpcp == ' ' || (local variable) dchar cpcp >= 0x2C00 && (local variable) dchar cpcp <= 0x2C5F);
(local variable) bool glagoliticglagolitic = true;
}
}
assert((local variable) bool bulgarianbulgarian && (local variable) bool glagoliticglagolitic);
}