polytypo 1.20.1 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-6GTMDBHQ.cjs → chunk-3L5KLKLP.cjs} +23 -23
- package/dist/{chunk-6GTMDBHQ.cjs.map → chunk-3L5KLKLP.cjs.map} +1 -1
- package/dist/{chunk-TKFAPD4Z.cjs → chunk-3WYVUARI.cjs} +6 -6
- package/dist/{chunk-TKFAPD4Z.cjs.map → chunk-3WYVUARI.cjs.map} +1 -1
- package/dist/{chunk-NBINYPGF.js → chunk-55LL24PJ.js} +3 -3
- package/dist/{chunk-WPF7QNGG.cjs → chunk-5AEJFYWK.cjs} +3 -3
- package/dist/{chunk-WPF7QNGG.cjs.map → chunk-5AEJFYWK.cjs.map} +1 -1
- package/dist/{chunk-7BQ34ZVZ.js → chunk-5AQIJOPD.js} +4 -4
- package/dist/{chunk-OZLT5NZJ.cjs → chunk-75BQY5RY.cjs} +153 -98
- package/dist/chunk-75BQY5RY.cjs.map +1 -0
- package/dist/chunk-AUKI3EXL.cjs +38 -0
- package/dist/{chunk-Q4Y2OWQI.cjs.map → chunk-AUKI3EXL.cjs.map} +1 -1
- package/dist/{chunk-66E6VFGJ.cjs → chunk-DHKVVUYY.cjs} +4 -4
- package/dist/{chunk-66E6VFGJ.cjs.map → chunk-DHKVVUYY.cjs.map} +1 -1
- package/dist/chunk-F2CNG4TF.cjs +36 -0
- package/dist/{chunk-5A3KGYPE.cjs.map → chunk-F2CNG4TF.cjs.map} +1 -1
- package/dist/{chunk-WCGLFL3P.js → chunk-FEVHV3ED.js} +2 -2
- package/dist/{chunk-4V77MJOE.js → chunk-FV4S3LDM.js} +2 -2
- package/dist/{chunk-HZNKXY23.js → chunk-IBN7DIS5.js} +3 -3
- package/dist/{chunk-MY6V3BBS.js → chunk-KY6R54DA.js} +2 -2
- package/dist/{chunk-ZTMVKQCT.js → chunk-NJXVMN4M.js} +2 -2
- package/dist/chunk-QIUGMSFQ.cjs +34 -0
- package/dist/{chunk-GUTC5F7K.cjs.map → chunk-QIUGMSFQ.cjs.map} +1 -1
- package/dist/{chunk-J7U6Y6K4.js → chunk-QXUC42OO.js} +153 -98
- package/dist/chunk-QXUC42OO.js.map +1 -0
- package/dist/{errors-CQz5lyjD.d.ts → errors-CjpOoBlm.d.cts} +10 -4
- package/dist/{errors-CQz5lyjD.d.cts → errors-CjpOoBlm.d.ts} +10 -4
- package/dist/html.cjs +9 -9
- package/dist/html.d.cts +2 -2
- package/dist/html.d.ts +2 -2
- package/dist/html.js +4 -4
- package/dist/index.cjs +17 -17
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/markdown.cjs +10 -10
- package/dist/markdown.d.cts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.js +5 -5
- package/dist/text.cjs +8 -8
- package/dist/text.d.cts +2 -2
- package/dist/text.d.ts +2 -2
- package/dist/text.js +3 -3
- package/dist/yaml.cjs +9 -9
- package/dist/yaml.d.cts +2 -2
- package/dist/yaml.d.ts +2 -2
- package/dist/yaml.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-5A3KGYPE.cjs +0 -36
- package/dist/chunk-GUTC5F7K.cjs +0 -34
- package/dist/chunk-J7U6Y6K4.js.map +0 -1
- package/dist/chunk-OZLT5NZJ.cjs.map +0 -1
- package/dist/chunk-Q4Y2OWQI.cjs +0 -38
- /package/dist/{chunk-NBINYPGF.js.map → chunk-55LL24PJ.js.map} +0 -0
- /package/dist/{chunk-7BQ34ZVZ.js.map → chunk-5AQIJOPD.js.map} +0 -0
- /package/dist/{chunk-WCGLFL3P.js.map → chunk-FEVHV3ED.js.map} +0 -0
- /package/dist/{chunk-4V77MJOE.js.map → chunk-FV4S3LDM.js.map} +0 -0
- /package/dist/{chunk-HZNKXY23.js.map → chunk-IBN7DIS5.js.map} +0 -0
- /package/dist/{chunk-MY6V3BBS.js.map → chunk-KY6R54DA.js.map} +0 -0
- /package/dist/{chunk-ZTMVKQCT.js.map → chunk-NJXVMN4M.js.map} +0 -0
|
@@ -78,33 +78,33 @@ var ALIASES = {
|
|
|
78
78
|
pt: "pt-PT"
|
|
79
79
|
};
|
|
80
80
|
var LOCALES = {
|
|
81
|
-
bg: { locale: "bg", name: "Bulgarian", quotes: { primary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, secondary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "en-spaced", range: "en-spaced" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: ["\u043A\u043C", "\u043A\u0433", "\u043B\u0432.", "\u0433."], beforeNumber: [], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
82
|
-
cs: { locale: "cs", name: "Czech", quotes: { primary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, secondary: { open: "\u201A", close: "\u2018", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: ["a", "i", "k", "o", "s", "u", "v", "z"], abbreviations: ["a. s.", "s. r. o."], beforeUnits: ["%", "\xB0C", "ha", "kg", "km", "cm", "mm", "m\xB2", "kWh", "km/h", "str.", "hod."], beforeNumber: [], beforeWord: ["tj.", "tzv.", "tzn."], afterSymbols: ["\xA7"], initialBinding: "single" } },
|
|
83
|
-
"de-CH": { locale: "de-CH", name: "German (Switzerland)", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, secondary: { open: "\u2039", close: "\u203A", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["z. B.", "d. h.", "u. a.", "u. U.", "m. a. W.", "m. w. H."], beforeUnits: ["%", "\u2030", "\xB0C", "km", "cm", "mm", "kg", "km/h", "kWh"], beforeNumber: ["Art.", "Abs.", "Ziff.", "Kap.", "S."], beforeWord: ["St."], afterSymbols: ["\xA7", "\xA7\xA7"], initialBinding: "chain" } },
|
|
84
|
-
"de-DE": { locale: "de-DE", name: "German (Germany)", quotes: { primary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, secondary: { open: "\u201A", close: "\u2018", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["z. B.", "d. h.", "u. a.", "u. \xC4.", "z. T.", "i. d. R."], beforeUnits: ["%", "\u2030", "\u20AC", "\xB0C", "km", "cm", "mm", "kg", "km/h", "kWh"], beforeNumber: ["Nr.", "S."], beforeWord: ["St."], afterSymbols: ["\xA7", "\xA7\xA7"], initialBinding: "chain" } },
|
|
85
|
-
el: { locale: "el", name: "Greek", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "em-paired", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: [], beforeNumber: [], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
86
|
-
"en-GB": { locale: "en-GB", name: "English (United Kingdom)", quotes: { primary: { open: "\u2018", close: "\u2019", innerSpace: "none" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: ["s"] } }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: ["%", "kg", "g", "mg", "km", "m", "cm", "mm", "mi", "ft", "lb", "oz", "L", "mL", "h", "min", "s", "ms", "\xB0C", "\xB0F", "kB", "MB", "GB", "TB", "kW", "kWh"], beforeNumber: [], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
87
|
-
"en-US": { locale: "en-US", name: "English (United States)", quotes: { primary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2018", close: "\u2019", innerSpace: "none" }, elisionIdioms: [{ left: "rock", elided: "n", right: "roll" }], elisionClitics: { before: [], after: ["s"] } }, dash: { parenthetical: "em-tight", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: ["%", "kg", "g", "mg", "km", "m", "cm", "mm", "mi", "ft", "lb", "oz", "L", "mL", "h", "min", "s", "ms", "\xB0C", "\xB0F", "kB", "MB", "GB", "TB", "kW", "kWh"], beforeNumber: [], beforeWord: [], afterSymbols: [], initialBinding: "chain" } },
|
|
88
|
-
es: { locale: "es", name: "Spanish", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "em-paired", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["p. ej.", "a. C.", "d. C.", "EE. UU.", "FF. AA.", "N. del T.", "q. e. p. d.", "et al."], beforeUnits: ["%", "\u2030", "\xB0C", "km", "cm", "mm", "kg", "mg", "mL", "min", "dB", "kW", "kWh"], beforeNumber: ["art.", "cap.", "n\xFAm.", "nro.", "p\xE1g.", "p\xE1gs."], beforeWord: ["Sr.", "Sra.", "Srta."], afterSymbols: [], initialBinding: "chain" } },
|
|
89
|
-
fi: { locale: "fi", name: "Finnish", quotes: { primary: { open: "\u201D", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2019", close: "\u2019", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["fil. maist."], beforeUnits: ["%", "\u2030", "\xA7", "kg", "g", "mg", "km", "m", "cm", "mm", "l", "dl", "cl", "ml", "h", "min", "s", "ms", "\xB0C", "kW", "kWh"], beforeNumber: [], beforeWord: [], afterSymbols: ["\xA7"], initialBinding: "none" } },
|
|
90
|
-
fr: { locale: "fr", name: "French (France)", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "nbsp" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: ["l", "j", "m", "t", "s", "c", "qu", "jusqu", "d", "n", "lorsqu", "puisqu", "quoiqu"], after: [] } }, dash: { parenthetical: "em-spaced", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [":"], narrowBeforePunctuation: [";", "!", "?"], afterShortWords: [], abbreviations: ["p. ex."], beforeUnits: ["%", "\u2030", "\u20AC", "\xB0C", "km", "cm", "mm", "kg", "km/h", "kWh"], beforeNumber: ["art.", "fig.", "n\xB0", "N\xB0"], beforeWord: ["M.", "MM.", "Mme", "Mmes", "Mlle", "Mlles"], afterSymbols: ["\xA7"], initialBinding: "single" } },
|
|
91
|
-
"fr-CA": { locale: "fr-CA", name: "French (Canada)", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "nbsp" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: ["l", "j", "m", "t", "s", "c", "qu", "jusqu", "d", "n", "lorsqu", "puisqu", "quoiqu"], after: [] } }, dash: { parenthetical: "em-spaced", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [":"], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["p. ex."], beforeUnits: ["%", "\u2030", "\u20AC", "\xB0C", "km", "cm", "mm", "kg", "km/h", "kWh"], beforeNumber: ["art.", "fig.", "n\xB0", "N\xB0"], beforeWord: ["M.", "MM.", "Mme", "Mmes", "Mlle", "Mlles"], afterSymbols: ["\xA7"], initialBinding: "single" } },
|
|
92
|
-
hr: { locale: "hr", name: "Croatian", quotes: { primary: { open: "\u201E", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2018", close: "\u2019", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "en-spaced", range: "en-spaced" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["dipl. ing.", "d. o. o."], beforeUnits: ["%", "\u2030", "\u20AC", "\xB0C", "kg"], beforeNumber: ["str."], beforeWord: [], afterSymbols: ["\xA7"], initialBinding: "none" } },
|
|
93
|
-
hu: { locale: "hu", name: "Hungarian", quotes: { primary: { open: "\u201E", close: "\u201D", innerSpace: "none" }, secondary: { open: "\xBB", close: "\xAB", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["a. m.", "i. sz.", "Kr. e.", "Kr. u.", "s. k.", "i. e."], beforeUnits: ["km", "kg", "kWh", "km/h", "\xB0C"], beforeNumber: [], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
94
|
-
it: { locale: "it", name: "Italian", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: ["l", "un", "d"], after: [] } }, dash: { parenthetical: "em-spaced", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: ["%", "\u2030", "\u20AC", "\xB0C", "km", "cm", "mm", "kg", "km/h", "kWh"], beforeNumber: ["n.", "pag."], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
95
|
-
lt: { locale: "lt", name: "Lithuanian", quotes: { primary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, secondary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: true }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["t. y.", "t. t.", "\u0161. m."], beforeUnits: ["%", "proc.", "\xB0C", "kg", "km", "cm", "mm", "EUR", "Eur", "\u20AC", "mln.", "val.", "min.", "m.", "d."], beforeNumber: [], beforeWord: [], afterSymbols: ["\xA7"], initialBinding: "none" } },
|
|
96
|
-
nl: { locale: "nl", name: "Dutch", quotes: { primary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2018", close: "\u2019", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: ["s", "t", "ns", "k", "m", "em", "r", "et"] } }, dash: { parenthetical: "en-spaced", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["prof. dr."], beforeUnits: ["%", "\u2030", "\xB0C", "km", "cm", "mm", "kg", "km/h", "kWh"], beforeNumber: [], beforeWord: [], afterSymbols: ["\u20AC", "$"], initialBinding: "none" } },
|
|
97
|
-
pl: { locale: "pl", name: "Polish", quotes: { primary: { open: "\u201E", close: "\u201D", innerSpace: "none" }, secondary: { open: "\xBB", close: "\xAB", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: ["a", "i", "o", "u", "w", "z"], abbreviations: ["lek. med.", "in\u017C. g\xF3rn.", "bp sufr."], beforeUnits: ["%", "\u2030", "\xB0C", "km", "cm", "mm", "kg", "km/h", "kWh"], beforeNumber: [], beforeWord: [], afterSymbols: ["\xA7"], initialBinding: "none" } },
|
|
98
|
-
"pt-BR": { locale: "pt-BR", name: "Portuguese (Brazil)", quotes: { primary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2018", close: "\u2019", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: ["d", "n", "pel", "m", "t", "lh", "sant"], after: [] } }, dash: { parenthetical: "en-spaced", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["p. ex."], beforeUnits: ["%", "\u2030", "\xB0C", "km", "cm", "mm", "kg", "kW", "kWh", "Hz"], beforeNumber: ["p."], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
99
|
-
"pt-PT": { locale: "pt-PT", name: "Portuguese (Portugal)", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: ["d", "n", "pel", "m", "t", "lh", "sant"], after: [] } }, dash: { parenthetical: "em-spaced", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["p. ex."], beforeUnits: ["%", "\u2030", "\xB0C", "km", "cm", "mm", "kg", "kW", "kWh", "Hz"], beforeNumber: ["p."], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
100
|
-
ro: { locale: "ro", name: "Romanian", quotes: { primary: { open: "\u201E", close: "\u201D", innerSpace: "none" }, secondary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "en-spaced", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: ["km", "kg", "cm", "mm", "km/h", "\xB0C"], beforeNumber: ["art.", "nr."], beforeWord: [], afterSymbols: [], initialBinding: "single" } },
|
|
101
|
-
ru: { locale: "ru", name: "Russian", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, secondary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "em-spaced", range: "em-tight" }, ellipsis: { abbreviatedAfterTerminal: true }, hyphen: { prefixes: ["\u043A\u043E\u0435-", "\u043A\u043E\u0439-"], suffixes: ["-\u0442\u043E", "-\u043B\u0438\u0431\u043E", "-\u043D\u0438\u0431\u0443\u0434\u044C", "-\u0442\u0430\u043A\u0438", "-\u043A\u0430"], compounds: ["\u0438\u0437-\u0437\u0430", "\u0438\u0437-\u043F\u043E\u0434"] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: ["\u0430", "\u0432", "\u0438", "\u043A", "\u043E", "\u0441", "\u0443", "\u0432\u043E", "\u0434\u043E", "\u0437\u0430", "\u0438\u0437", "\u043A\u043E", "\u043D\u0430", "\u043E\u0431", "\u043E\u0442", "\u043F\u043E", "\u0441\u043E"], abbreviations: ["\u0438 \u0442. \u0434.", "\u0438 \u0442. \u043F.", "\u0442. \u0435.", "\u0438 \u0434\u0440."], beforeUnits: ["%", "\u2030", "\u20BD", "\xB0C", "\u043A\u043C", "\u0441\u043C", "\u043C\u043C", "\u043A\u0433", "\u0433.", "\u0433\u0433.", "\u0432.", "\u0432\u0432.", "\u0442\u044B\u0441.", "\u043C\u043B\u043D", "\u043C\u043B\u0440\u0434"], beforeNumber: [], beforeWord: ["\u0443\u043B.", "\u043F\u043B."], afterSymbols: ["\u2116", "\xA7"], initialBinding: "chain" } },
|
|
102
|
-
sk: { locale: "sk", name: "Slovak", quotes: { primary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, secondary: { open: "\u201A", close: "\u2018", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "en-spaced", range: "en-spaced" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["t. j.", "a pod.", "a. s."], beforeUnits: ["%", "\u2030", "kg", "km", "km/s", "m/s", "min"], beforeNumber: ["\u010D.", "ods.", "s."], beforeWord: [], afterSymbols: ["\xA7"], initialBinding: "none" } },
|
|
103
|
-
sl: { locale: "sl", name: "Slovenian", quotes: { primary: { open: "\xBB", close: "\xAB", innerSpace: "none" }, secondary: { open: "\u203A", close: "\u2039", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["t. i."], beforeUnits: ["%", "\u2030", "\u20AC", "\xB0C", "kg", "km"], beforeNumber: [], beforeWord: [], afterSymbols: ["\xA7"], initialBinding: "none" } },
|
|
104
|
-
sr: { locale: "sr", name: "Serbian", quotes: { primary: { open: "\u201E", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2019", close: "\u2019", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: ["kg", "cm", "mm", "\xB0C"], beforeNumber: [], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
105
|
-
sv: { locale: "sv", name: "Swedish", quotes: { primary: { open: "\u201D", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2019", close: "\u2019", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: ["%", "\u2030", "kr", "\u20AC", "kg", "g", "mg", "km", "m", "cm", "mm", "l", "dl", "cl", "ml", "kW", "kWh", "min", "sek", "tim", "h", "\xB0C"], beforeNumber: [], beforeWord: [], afterSymbols: ["\xA7"], initialBinding: "none" } },
|
|
106
|
-
tr: { locale: "tr", name: "Turkish", quotes: { primary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2018", close: "\u2019", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: ["nin", "n\u0131n", "de", "da", "te", "ye", "yle", "n\u0131", "dan", "den", "lik", "nci", "\xFCm"] } }, dash: { parenthetical: "none", range: "none" }, ellipsis: { abbreviatedAfterTerminal: true }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["Kur. B\u015Fk.", "N\xF6. Sb."], beforeUnits: ["mm", "cm", "km", "kg", "mg", "hl", "m\xB2", "cm\xB2", "\xB0C", "ton"], beforeNumber: [], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
107
|
-
uk: { locale: "uk", name: "Ukrainian", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] } }, dash: { parenthetical: "em-spaced", range: "em-tight" }, ellipsis: { abbreviatedAfterTerminal: true }, hyphen: { prefixes: ["\u0431\u0443\u0434\u044C-", "\u043A\u0430\u0437\u043D\u0430-", "\u0445\u0442\u043E\u0437\u043D\u0430-", "\u0431\u043E\u0437\u043D\u0430-"], suffixes: ["-\u0431\u043E", "-\u043D\u043E", "-\u043E\u0442", "-\u0442\u043E", "-\u0442\u0430\u043A\u0438", "-\u0431\u0443\u0434\u044C", "-\u043D\u0435\u0431\u0443\u0434\u044C"], compounds: ["\u0432\u0438\u0434-\u0432\u043E", "\u0433\u0440-\u043D", "\u0456\u043D-\u0442", "\u0440-\u043D", "\u0443\u043D-\u0442", "\u0444-\u043A\u0430", "\u0442-\u0432\u043E", "\u0437-\u0437\u0430", "\u0456\u0437-\u0437\u0430", "\u0437-\u043D\u0430\u0434", "\u0437-\u043F\u0435\u0440\u0435\u0434", "\u0437-\u043F\u0456\u0434", "\u0456\u0437-\u043F\u0456\u0434", "\u0437-\u043F\u043E\u0437\u0430", "\u0437-\u043F\u043E\u043C\u0456\u0436", "\u0437-\u043F\u043E\u043D\u0430\u0434", "\u0437-\u043F\u043E\u043F\u0456\u0434", "\u0437-\u043F\u043E\u0441\u0435\u0440\u0435\u0434", "\u0437-\u043F\u0440\u043E\u043C\u0456\u0436"] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["\u0456 \u0442. \u0434.", "\u0456 \u0442. \u0456\u043D.", "\u0442\u0430 \u0456\u043D.", "\u043A\u0443\u0431. \u0441\u043C"], beforeUnits: ["%", "\u0433\u0430", "\u0433\u043E\u0434", "\u0434\u043C", "\u043A\u0411", "\u043A\u0412\u0442", "\u043A\u0433", "\u043A\u043C", "\u043C\u043C", "\u0441\u043C", "\u0445\u0432", "\u0412\u0442", "\u043A\u043C/\u0433\u043E\u0434", "\u043C/\u0441", "\u043C\u043B\u043D", "\u043C\u043B\u0440\u0434", "\u0442\u0440\u043B\u043D", "\u0433\u0440\u043D", "\u0440."], beforeNumber: [], beforeWord: ["\u0430\u043A\u0430\u0434.", "\u0434\u043E\u0446.", "\u043F\u0440\u043E\u0444."], afterSymbols: [], initialBinding: "chain" } }
|
|
81
|
+
bg: { locale: "bg", name: "Bulgarian", quotes: { primary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, secondary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "en-spaced" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: ["\u043A\u043C", "\u043A\u0433", "\u043B\u0432.", "\u0433."], beforeNumber: [], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
82
|
+
cs: { locale: "cs", name: "Czech", quotes: { primary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, secondary: { open: "\u201A", close: "\u2018", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: ["a", "i", "k", "o", "s", "u", "v", "z"], abbreviations: ["a. s.", "s. r. o."], beforeUnits: ["%", "\xB0C", "ha", "kg", "km", "cm", "mm", "m\xB2", "kWh", "km/h", "str.", "hod."], beforeNumber: [], beforeWord: ["tj.", "tzv.", "tzn."], afterSymbols: ["\xA7"], initialBinding: "single" } },
|
|
83
|
+
"de-CH": { locale: "de-CH", name: "German (Switzerland)", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, secondary: { open: "\u2039", close: "\u203A", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["z. B.", "d. h.", "u. a.", "u. U.", "m. a. W.", "m. w. H."], beforeUnits: ["%", "\u2030", "\xB0C", "km", "cm", "mm", "kg", "km/h", "kWh"], beforeNumber: ["Art.", "Abs.", "Ziff.", "Kap.", "S."], beforeWord: ["St."], afterSymbols: ["\xA7", "\xA7\xA7"], initialBinding: "chain" } },
|
|
84
|
+
"de-DE": { locale: "de-DE", name: "German (Germany)", quotes: { primary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, secondary: { open: "\u201A", close: "\u2018", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["z. B.", "d. h.", "u. a.", "u. \xC4.", "z. T.", "i. d. R."], beforeUnits: ["%", "\u2030", "\u20AC", "\xB0C", "km", "cm", "mm", "kg", "km/h", "kWh"], beforeNumber: ["Nr.", "S."], beforeWord: ["St."], afterSymbols: ["\xA7", "\xA7\xA7"], initialBinding: "chain" } },
|
|
85
|
+
el: { locale: "el", name: "Greek", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "em-paired", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: [], beforeNumber: [], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
86
|
+
"en-GB": { locale: "en-GB", name: "English (United Kingdom)", quotes: { primary: { open: "\u2018", close: "\u2019", innerSpace: "none" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: ["s"] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: ["%", "kg", "g", "mg", "km", "m", "cm", "mm", "mi", "ft", "lb", "oz", "L", "mL", "h", "min", "s", "ms", "\xB0C", "\xB0F", "kB", "MB", "GB", "TB", "kW", "kWh"], beforeNumber: [], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
87
|
+
"en-US": { locale: "en-US", name: "English (United States)", quotes: { primary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2018", close: "\u2019", innerSpace: "none" }, elisionIdioms: [{ left: "rock", elided: "n", right: "roll" }], elisionClitics: { before: [], after: ["s"] }, punctuationPlacement: "inside" }, dash: { parenthetical: "em-tight", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: ["%", "kg", "g", "mg", "km", "m", "cm", "mm", "mi", "ft", "lb", "oz", "L", "mL", "h", "min", "s", "ms", "\xB0C", "\xB0F", "kB", "MB", "GB", "TB", "kW", "kWh"], beforeNumber: [], beforeWord: [], afterSymbols: [], initialBinding: "chain" } },
|
|
88
|
+
es: { locale: "es", name: "Spanish", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "em-paired", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["p. ej.", "a. C.", "d. C.", "EE. UU.", "FF. AA.", "N. del T.", "q. e. p. d.", "et al."], beforeUnits: ["%", "\u2030", "\xB0C", "km", "cm", "mm", "kg", "mg", "mL", "min", "dB", "kW", "kWh"], beforeNumber: ["art.", "cap.", "n\xFAm.", "nro.", "p\xE1g.", "p\xE1gs."], beforeWord: ["Sr.", "Sra.", "Srta."], afterSymbols: [], initialBinding: "chain" } },
|
|
89
|
+
fi: { locale: "fi", name: "Finnish", quotes: { primary: { open: "\u201D", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2019", close: "\u2019", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["fil. maist."], beforeUnits: ["%", "\u2030", "\xA7", "kg", "g", "mg", "km", "m", "cm", "mm", "l", "dl", "cl", "ml", "h", "min", "s", "ms", "\xB0C", "kW", "kWh"], beforeNumber: [], beforeWord: [], afterSymbols: ["\xA7"], initialBinding: "none" } },
|
|
90
|
+
fr: { locale: "fr", name: "French (France)", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "nbsp" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: ["l", "j", "m", "t", "s", "c", "qu", "jusqu", "d", "n", "lorsqu", "puisqu", "quoiqu"], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "em-spaced", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [":"], narrowBeforePunctuation: [";", "!", "?"], afterShortWords: [], abbreviations: ["p. ex."], beforeUnits: ["%", "\u2030", "\u20AC", "\xB0C", "km", "cm", "mm", "kg", "km/h", "kWh"], beforeNumber: ["art.", "fig.", "n\xB0", "N\xB0"], beforeWord: ["M.", "MM.", "Mme", "Mmes", "Mlle", "Mlles"], afterSymbols: ["\xA7"], initialBinding: "single" } },
|
|
91
|
+
"fr-CA": { locale: "fr-CA", name: "French (Canada)", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "nbsp" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: ["l", "j", "m", "t", "s", "c", "qu", "jusqu", "d", "n", "lorsqu", "puisqu", "quoiqu"], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "em-spaced", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [":"], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["p. ex."], beforeUnits: ["%", "\u2030", "\u20AC", "\xB0C", "km", "cm", "mm", "kg", "km/h", "kWh"], beforeNumber: ["art.", "fig.", "n\xB0", "N\xB0"], beforeWord: ["M.", "MM.", "Mme", "Mmes", "Mlle", "Mlles"], afterSymbols: ["\xA7"], initialBinding: "single" } },
|
|
92
|
+
hr: { locale: "hr", name: "Croatian", quotes: { primary: { open: "\u201E", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2018", close: "\u2019", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "en-spaced" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["dipl. ing.", "d. o. o."], beforeUnits: ["%", "\u2030", "\u20AC", "\xB0C", "kg"], beforeNumber: ["str."], beforeWord: [], afterSymbols: ["\xA7"], initialBinding: "none" } },
|
|
93
|
+
hu: { locale: "hu", name: "Hungarian", quotes: { primary: { open: "\u201E", close: "\u201D", innerSpace: "none" }, secondary: { open: "\xBB", close: "\xAB", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["a. m.", "i. sz.", "Kr. e.", "Kr. u.", "s. k.", "i. e."], beforeUnits: ["km", "kg", "kWh", "km/h", "\xB0C"], beforeNumber: [], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
94
|
+
it: { locale: "it", name: "Italian", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: ["l", "un", "d"], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "em-spaced", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: ["%", "\u2030", "\u20AC", "\xB0C", "km", "cm", "mm", "kg", "km/h", "kWh"], beforeNumber: ["n.", "pag."], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
95
|
+
lt: { locale: "lt", name: "Lithuanian", quotes: { primary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, secondary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: true }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["t. y.", "t. t.", "\u0161. m."], beforeUnits: ["%", "proc.", "\xB0C", "kg", "km", "cm", "mm", "EUR", "Eur", "\u20AC", "mln.", "val.", "min.", "m.", "d."], beforeNumber: [], beforeWord: [], afterSymbols: ["\xA7"], initialBinding: "none" } },
|
|
96
|
+
nl: { locale: "nl", name: "Dutch", quotes: { primary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2018", close: "\u2019", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: ["s", "t", "ns", "k", "m", "em", "r", "et"] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["prof. dr."], beforeUnits: ["%", "\u2030", "\xB0C", "km", "cm", "mm", "kg", "km/h", "kWh"], beforeNumber: [], beforeWord: [], afterSymbols: ["\u20AC", "$"], initialBinding: "none" } },
|
|
97
|
+
pl: { locale: "pl", name: "Polish", quotes: { primary: { open: "\u201E", close: "\u201D", innerSpace: "none" }, secondary: { open: "\xBB", close: "\xAB", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: ["a", "i", "o", "u", "w", "z"], abbreviations: ["lek. med.", "in\u017C. g\xF3rn.", "bp sufr."], beforeUnits: ["%", "\u2030", "\xB0C", "km", "cm", "mm", "kg", "km/h", "kWh"], beforeNumber: [], beforeWord: [], afterSymbols: ["\xA7"], initialBinding: "none" } },
|
|
98
|
+
"pt-BR": { locale: "pt-BR", name: "Portuguese (Brazil)", quotes: { primary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2018", close: "\u2019", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: ["d", "n", "pel", "m", "t", "lh", "sant"], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["p. ex."], beforeUnits: ["%", "\u2030", "\xB0C", "km", "cm", "mm", "kg", "kW", "kWh", "Hz"], beforeNumber: ["p."], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
99
|
+
"pt-PT": { locale: "pt-PT", name: "Portuguese (Portugal)", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: ["d", "n", "pel", "m", "t", "lh", "sant"], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "em-spaced", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["p. ex."], beforeUnits: ["%", "\u2030", "\xB0C", "km", "cm", "mm", "kg", "kW", "kWh", "Hz"], beforeNumber: ["p."], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
100
|
+
ro: { locale: "ro", name: "Romanian", quotes: { primary: { open: "\u201E", close: "\u201D", innerSpace: "none" }, secondary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "none" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: ["km", "kg", "cm", "mm", "km/h", "\xB0C"], beforeNumber: ["art.", "nr."], beforeWord: [], afterSymbols: [], initialBinding: "single" } },
|
|
101
|
+
ru: { locale: "ru", name: "Russian", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, secondary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "em-spaced", range: "em-tight" }, ellipsis: { abbreviatedAfterTerminal: true }, hyphen: { prefixes: ["\u043A\u043E\u0435-", "\u043A\u043E\u0439-"], suffixes: ["-\u0442\u043E", "-\u043B\u0438\u0431\u043E", "-\u043D\u0438\u0431\u0443\u0434\u044C", "-\u0442\u0430\u043A\u0438", "-\u043A\u0430"], compounds: ["\u0438\u0437-\u0437\u0430", "\u0438\u0437-\u043F\u043E\u0434"] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: ["\u0430", "\u0432", "\u0438", "\u043A", "\u043E", "\u0441", "\u0443", "\u0432\u043E", "\u0434\u043E", "\u0437\u0430", "\u0438\u0437", "\u043A\u043E", "\u043D\u0430", "\u043E\u0431", "\u043E\u0442", "\u043F\u043E", "\u0441\u043E"], abbreviations: ["\u0438 \u0442. \u0434.", "\u0438 \u0442. \u043F.", "\u0442. \u0435.", "\u0438 \u0434\u0440."], beforeUnits: ["%", "\u2030", "\u20BD", "\xB0C", "\u043A\u043C", "\u0441\u043C", "\u043C\u043C", "\u043A\u0433", "\u0433.", "\u0433\u0433.", "\u0432.", "\u0432\u0432.", "\u0442\u044B\u0441.", "\u043C\u043B\u043D", "\u043C\u043B\u0440\u0434"], beforeNumber: [], beforeWord: ["\u0443\u043B.", "\u043F\u043B."], afterSymbols: ["\u2116", "\xA7"], initialBinding: "chain" } },
|
|
102
|
+
sk: { locale: "sk", name: "Slovak", quotes: { primary: { open: "\u201E", close: "\u201C", innerSpace: "none" }, secondary: { open: "\u201A", close: "\u2018", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "en-spaced" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["t. j.", "a pod.", "a. s."], beforeUnits: ["%", "\u2030", "kg", "km", "km/s", "m/s", "min"], beforeNumber: ["\u010D.", "ods.", "s."], beforeWord: [], afterSymbols: ["\xA7"], initialBinding: "none" } },
|
|
103
|
+
sl: { locale: "sl", name: "Slovenian", quotes: { primary: { open: "\xBB", close: "\xAB", innerSpace: "none" }, secondary: { open: "\u203A", close: "\u2039", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["t. i."], beforeUnits: ["%", "\u2030", "\u20AC", "\xB0C", "kg", "km"], beforeNumber: [], beforeWord: [], afterSymbols: ["\xA7"], initialBinding: "none" } },
|
|
104
|
+
sr: { locale: "sr", name: "Serbian", quotes: { primary: { open: "\u201E", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2019", close: "\u2019", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: ["kg", "cm", "mm", "\xB0C"], beforeNumber: [], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
105
|
+
sv: { locale: "sv", name: "Swedish", quotes: { primary: { open: "\u201D", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2019", close: "\u2019", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "en-spaced", range: "en-tight" }, ellipsis: { abbreviatedAfterTerminal: false }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: [], beforeUnits: ["%", "\u2030", "kr", "\u20AC", "kg", "g", "mg", "km", "m", "cm", "mm", "l", "dl", "cl", "ml", "kW", "kWh", "min", "sek", "tim", "h", "\xB0C"], beforeNumber: [], beforeWord: [], afterSymbols: ["\xA7"], initialBinding: "none" } },
|
|
106
|
+
tr: { locale: "tr", name: "Turkish", quotes: { primary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, secondary: { open: "\u2018", close: "\u2019", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: ["nin", "n\u0131n", "de", "da", "te", "ye", "yle", "n\u0131", "dan", "den", "lik", "nci", "\xFCm"] }, punctuationPlacement: "none" }, dash: { parenthetical: "none", range: "none" }, ellipsis: { abbreviatedAfterTerminal: true }, hyphen: { prefixes: [], suffixes: [], compounds: [] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["Kur. B\u015Fk.", "N\xF6. Sb."], beforeUnits: ["mm", "cm", "km", "kg", "mg", "hl", "m\xB2", "cm\xB2", "\xB0C", "ton"], beforeNumber: [], beforeWord: [], afterSymbols: [], initialBinding: "none" } },
|
|
107
|
+
uk: { locale: "uk", name: "Ukrainian", quotes: { primary: { open: "\xAB", close: "\xBB", innerSpace: "none" }, secondary: { open: "\u201C", close: "\u201D", innerSpace: "none" }, elisionIdioms: [], elisionClitics: { before: [], after: [] }, punctuationPlacement: "none" }, dash: { parenthetical: "em-spaced", range: "em-tight" }, ellipsis: { abbreviatedAfterTerminal: true }, hyphen: { prefixes: ["\u0431\u0443\u0434\u044C-", "\u043A\u0430\u0437\u043D\u0430-", "\u0445\u0442\u043E\u0437\u043D\u0430-", "\u0431\u043E\u0437\u043D\u0430-"], suffixes: ["-\u0431\u043E", "-\u043D\u043E", "-\u043E\u0442", "-\u0442\u043E", "-\u0442\u0430\u043A\u0438", "-\u0431\u0443\u0434\u044C", "-\u043D\u0435\u0431\u0443\u0434\u044C"], compounds: ["\u0432\u0438\u0434-\u0432\u043E", "\u0433\u0440-\u043D", "\u0456\u043D-\u0442", "\u0440-\u043D", "\u0443\u043D-\u0442", "\u0444-\u043A\u0430", "\u0442-\u0432\u043E", "\u0437-\u0437\u0430", "\u0456\u0437-\u0437\u0430", "\u0437-\u043D\u0430\u0434", "\u0437-\u043F\u0435\u0440\u0435\u0434", "\u0437-\u043F\u0456\u0434", "\u0456\u0437-\u043F\u0456\u0434", "\u0437-\u043F\u043E\u0437\u0430", "\u0437-\u043F\u043E\u043C\u0456\u0436", "\u0437-\u043F\u043E\u043D\u0430\u0434", "\u0437-\u043F\u043E\u043F\u0456\u0434", "\u0437-\u043F\u043E\u0441\u0435\u0440\u0435\u0434", "\u0437-\u043F\u0440\u043E\u043C\u0456\u0436"] }, nbsp: { beforePunctuation: [], narrowBeforePunctuation: [], afterShortWords: [], abbreviations: ["\u0456 \u0442. \u0434.", "\u0456 \u0442. \u0456\u043D.", "\u0442\u0430 \u0456\u043D.", "\u043A\u0443\u0431. \u0441\u043C"], beforeUnits: ["%", "\u0433\u0430", "\u0433\u043E\u0434", "\u0434\u043C", "\u043A\u0411", "\u043A\u0412\u0442", "\u043A\u0433", "\u043A\u043C", "\u043C\u043C", "\u0441\u043C", "\u0445\u0432", "\u0412\u0442", "\u043A\u043C/\u0433\u043E\u0434", "\u043C/\u0441", "\u043C\u043B\u043D", "\u043C\u043B\u0440\u0434", "\u0442\u0440\u043B\u043D", "\u0433\u0440\u043D", "\u0440."], beforeNumber: [], beforeWord: ["\u0430\u043A\u0430\u0434.", "\u0434\u043E\u0446.", "\u043F\u0440\u043E\u0444."], afterSymbols: [], initialBinding: "chain" } }
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
// src/engine/locale.ts
|
|
@@ -4959,6 +4959,58 @@ var nbspRule = {
|
|
|
4959
4959
|
apply: scan3
|
|
4960
4960
|
};
|
|
4961
4961
|
|
|
4962
|
+
// src/rules/quote-punctuation.ts
|
|
4963
|
+
var COMMA2 = 44;
|
|
4964
|
+
var FULL_STOP3 = 46;
|
|
4965
|
+
var SPACELIKE2 = /* @__PURE__ */ new Set([
|
|
4966
|
+
32,
|
|
4967
|
+
9,
|
|
4968
|
+
160,
|
|
4969
|
+
8239,
|
|
4970
|
+
8199,
|
|
4971
|
+
8201,
|
|
4972
|
+
8202,
|
|
4973
|
+
10,
|
|
4974
|
+
13,
|
|
4975
|
+
11,
|
|
4976
|
+
12,
|
|
4977
|
+
133,
|
|
4978
|
+
8232,
|
|
4979
|
+
8233,
|
|
4980
|
+
LINE_MARKER
|
|
4981
|
+
]);
|
|
4982
|
+
function at5(cp, i) {
|
|
4983
|
+
const value = cp[i];
|
|
4984
|
+
return value === void 0 ? NONE : value;
|
|
4985
|
+
}
|
|
4986
|
+
var quotePunctuationRule = {
|
|
4987
|
+
id: "quote-punctuation",
|
|
4988
|
+
apply(ctx) {
|
|
4989
|
+
if (ctx.locale.quotes.punctuationPlacement !== "inside") return [];
|
|
4990
|
+
const close = ctx.locale.quotes.primary.close.codePointAt(0);
|
|
4991
|
+
if (close === void 0) return [];
|
|
4992
|
+
const cp = ctx.cp;
|
|
4993
|
+
const n = cp.length;
|
|
4994
|
+
const edits = [];
|
|
4995
|
+
let i = 0;
|
|
4996
|
+
while (i + 1 < n) {
|
|
4997
|
+
const next = at5(cp, i + 1);
|
|
4998
|
+
if (at5(cp, i) === close && (next === COMMA2 || next === FULL_STOP3) && i >= 1 && isLetter(at5(cp, i - 1)) && (at5(cp, i + 2) === NONE || SPACELIKE2.has(at5(cp, i + 2)))) {
|
|
4999
|
+
edits.push({
|
|
5000
|
+
start: i,
|
|
5001
|
+
end: i + 2,
|
|
5002
|
+
replacement: [next, close],
|
|
5003
|
+
ruleId: "quote-punctuation"
|
|
5004
|
+
});
|
|
5005
|
+
i += 2;
|
|
5006
|
+
continue;
|
|
5007
|
+
}
|
|
5008
|
+
i += 1;
|
|
5009
|
+
}
|
|
5010
|
+
return edits;
|
|
5011
|
+
}
|
|
5012
|
+
};
|
|
5013
|
+
|
|
4962
5014
|
// src/rules/quote-ambiguity.ts
|
|
4963
5015
|
var LOWER_N = 110;
|
|
4964
5016
|
var UPPER_N = 78;
|
|
@@ -4980,7 +5032,7 @@ var INLINE_SPACE = /* @__PURE__ */ new Set([
|
|
|
4980
5032
|
8201,
|
|
4981
5033
|
8202
|
|
4982
5034
|
]);
|
|
4983
|
-
function
|
|
5035
|
+
function at6(cp, i) {
|
|
4984
5036
|
const value = cp[i];
|
|
4985
5037
|
return value === void 0 ? NONE : value;
|
|
4986
5038
|
}
|
|
@@ -4996,21 +5048,21 @@ function wordEndsAt(arr, end, word) {
|
|
|
4996
5048
|
const start = end - word.length;
|
|
4997
5049
|
if (start < 0) return false;
|
|
4998
5050
|
for (let k = 0; k < word.length; k += 1) {
|
|
4999
|
-
const c =
|
|
5051
|
+
const c = at6(arr, start + k);
|
|
5000
5052
|
const matches = k === 0 ? asciiLower(c) === asciiLower(word[k]) : c === word[k];
|
|
5001
5053
|
if (!matches) return false;
|
|
5002
5054
|
}
|
|
5003
|
-
const before = start > 0 ?
|
|
5055
|
+
const before = start > 0 ? at6(arr, start - 1) : NONE;
|
|
5004
5056
|
return before === NONE || !isAlnum3(before);
|
|
5005
5057
|
}
|
|
5006
5058
|
function wordStartsAt(arr, start, word) {
|
|
5007
5059
|
const n = arr.length;
|
|
5008
5060
|
for (let k = 0; k < word.length; k += 1) {
|
|
5009
|
-
const c =
|
|
5061
|
+
const c = at6(arr, start + k);
|
|
5010
5062
|
const matches = k === 0 ? asciiLower(c) === asciiLower(word[k]) : c === word[k];
|
|
5011
5063
|
if (!matches) return false;
|
|
5012
5064
|
}
|
|
5013
|
-
const after = start + word.length < n ?
|
|
5065
|
+
const after = start + word.length < n ? at6(arr, start + word.length) : NONE;
|
|
5014
5066
|
return after === NONE || !isAlnum3(after);
|
|
5015
5067
|
}
|
|
5016
5068
|
function computeIdiomMatchedIndices(arr, idioms) {
|
|
@@ -5023,9 +5075,9 @@ function computeIdiomMatchedIndices(arr, idioms) {
|
|
|
5023
5075
|
right: toCodePoints(idiom.right)
|
|
5024
5076
|
}));
|
|
5025
5077
|
for (let i = 0; i < n; i += 1) {
|
|
5026
|
-
const g =
|
|
5078
|
+
const g = at6(arr, i);
|
|
5027
5079
|
if (!NARROW.has(g)) continue;
|
|
5028
|
-
const lLit = i > 0 ?
|
|
5080
|
+
const lLit = i > 0 ? at6(arr, i - 1) : NONE;
|
|
5029
5081
|
if (lLit === NONE || !INLINE_SPACE.has(lLit)) continue;
|
|
5030
5082
|
for (const idiom of compiled) {
|
|
5031
5083
|
const k = idiom.elided.length;
|
|
@@ -5033,14 +5085,14 @@ function computeIdiomMatchedIndices(arr, idioms) {
|
|
|
5033
5085
|
if (j >= n) continue;
|
|
5034
5086
|
let elidedMatches = true;
|
|
5035
5087
|
for (let w = 0; w < k; w += 1) {
|
|
5036
|
-
if (
|
|
5088
|
+
if (at6(arr, i + 1 + w) !== idiom.elided[w]) {
|
|
5037
5089
|
elidedMatches = false;
|
|
5038
5090
|
break;
|
|
5039
5091
|
}
|
|
5040
5092
|
}
|
|
5041
5093
|
if (!elidedMatches) continue;
|
|
5042
|
-
if (!NARROW.has(
|
|
5043
|
-
const rLit = j + 1 < n ?
|
|
5094
|
+
if (!NARROW.has(at6(arr, j))) continue;
|
|
5095
|
+
const rLit = j + 1 < n ? at6(arr, j + 1) : NONE;
|
|
5044
5096
|
if (rLit === NONE || !INLINE_SPACE.has(rLit)) continue;
|
|
5045
5097
|
if (!wordEndsAt(arr, i - 1, idiom.left)) continue;
|
|
5046
5098
|
if (!wordStartsAt(arr, j + 2, idiom.right)) continue;
|
|
@@ -5054,14 +5106,14 @@ function computeAmbiguousShapeIndices(cp) {
|
|
|
5054
5106
|
const ambiguous = /* @__PURE__ */ new Set();
|
|
5055
5107
|
const n = cp.length;
|
|
5056
5108
|
for (let i = 0; i < n; i += 1) {
|
|
5057
|
-
if (!NARROW.has(
|
|
5058
|
-
const lLit = i > 0 ?
|
|
5109
|
+
if (!NARROW.has(at6(cp, i))) continue;
|
|
5110
|
+
const lLit = i > 0 ? at6(cp, i - 1) : NONE;
|
|
5059
5111
|
if (lLit === NONE || !INLINE_SPACE.has(lLit)) continue;
|
|
5060
|
-
const enclosed =
|
|
5112
|
+
const enclosed = at6(cp, i + 1);
|
|
5061
5113
|
if (enclosed !== LOWER_N && enclosed !== UPPER_N) continue;
|
|
5062
5114
|
const j = i + 2;
|
|
5063
|
-
if (!NARROW.has(
|
|
5064
|
-
const rLit = j + 1 < n ?
|
|
5115
|
+
if (!NARROW.has(at6(cp, j))) continue;
|
|
5116
|
+
const rLit = j + 1 < n ? at6(cp, j + 1) : NONE;
|
|
5065
5117
|
if (rLit === NONE || !INLINE_SPACE.has(rLit)) continue;
|
|
5066
5118
|
ambiguous.add(i);
|
|
5067
5119
|
ambiguous.add(j);
|
|
@@ -5078,12 +5130,12 @@ function computeSpanBoundaryVetoIndices(arr, clitics) {
|
|
|
5078
5130
|
after: after.map(toCodePoints)
|
|
5079
5131
|
};
|
|
5080
5132
|
for (let i = 0; i < arr.length; i += 1) {
|
|
5081
|
-
if (!NARROW.has(
|
|
5082
|
-
if (
|
|
5133
|
+
if (!NARROW.has(at6(arr, i))) continue;
|
|
5134
|
+
if (at6(arr, i - 1) === MARKER && runMatches(arr, i, 1, compiled.after)) {
|
|
5083
5135
|
vetoed.add(i);
|
|
5084
5136
|
continue;
|
|
5085
5137
|
}
|
|
5086
|
-
if (
|
|
5138
|
+
if (at6(arr, i + 1) === MARKER && runMatches(arr, i, -1, compiled.before)) {
|
|
5087
5139
|
vetoed.add(i);
|
|
5088
5140
|
}
|
|
5089
5141
|
}
|
|
@@ -5093,18 +5145,18 @@ function runMatches(arr, i, dir, entries) {
|
|
|
5093
5145
|
const run = [];
|
|
5094
5146
|
let j = i + dir;
|
|
5095
5147
|
for (; ; j += dir) {
|
|
5096
|
-
const cp =
|
|
5148
|
+
const cp = at6(arr, j);
|
|
5097
5149
|
if (cp === NONE || !isLetter(cp)) break;
|
|
5098
5150
|
run.push(cp);
|
|
5099
5151
|
}
|
|
5100
5152
|
if (run.length === 0) return false;
|
|
5101
|
-
const outer =
|
|
5153
|
+
const outer = at6(arr, j);
|
|
5102
5154
|
if (outer !== NONE && isAlnum3(outer)) return false;
|
|
5103
5155
|
if (dir === -1) run.reverse();
|
|
5104
5156
|
for (const entry of entries) {
|
|
5105
5157
|
if (entry.length !== run.length) continue;
|
|
5106
|
-
let same =
|
|
5107
|
-
for (let k = 1; same && k < entry.length; k += 1) same =
|
|
5158
|
+
let same = at6(entry, 0) === asciiLower(at6(run, 0));
|
|
5159
|
+
for (let k = 1; same && k < entry.length; k += 1) same = at6(entry, k) === at6(run, k);
|
|
5108
5160
|
if (same) return true;
|
|
5109
5161
|
}
|
|
5110
5162
|
return false;
|
|
@@ -5152,7 +5204,7 @@ var BREAK = /* @__PURE__ */ new Set([
|
|
|
5152
5204
|
8233,
|
|
5153
5205
|
LINE_MARKER
|
|
5154
5206
|
]);
|
|
5155
|
-
var
|
|
5207
|
+
var SPACELIKE3 = /* @__PURE__ */ new Set([...INLINE_SPACE2, ...BREAK]);
|
|
5156
5208
|
var OPENISH2 = /* @__PURE__ */ new Set([MARKER, 40, 91, 123, ...WIDE, ...NARROW]);
|
|
5157
5209
|
var CLOSEISH2 = /* @__PURE__ */ new Set([
|
|
5158
5210
|
MARKER,
|
|
@@ -5172,7 +5224,7 @@ var CLOSEISH2 = /* @__PURE__ */ new Set([
|
|
|
5172
5224
|
...NARROW
|
|
5173
5225
|
]);
|
|
5174
5226
|
var DASHISH = /* @__PURE__ */ new Set([45, 8209, 8211, 8212]);
|
|
5175
|
-
function
|
|
5227
|
+
function at7(cp, i) {
|
|
5176
5228
|
const value = cp[i];
|
|
5177
5229
|
return value === void 0 ? NONE : value;
|
|
5178
5230
|
}
|
|
@@ -5223,16 +5275,16 @@ function collectCandidates(arr, skip, elisionIdioms, elisionClitics) {
|
|
|
5223
5275
|
].filter((set) => set.size > 0);
|
|
5224
5276
|
const elisionVetoed = sets.length === 0 ? EMPTY_VETO : sets.length === 1 ? sets[0] : new Set(sets.flatMap((set) => [...set]));
|
|
5225
5277
|
for (let i = 0; i < n; i += 1) {
|
|
5226
|
-
const g =
|
|
5278
|
+
const g = at7(arr, i);
|
|
5227
5279
|
if (!isQuoteMark(g)) continue;
|
|
5228
|
-
const lLit = i > 0 ?
|
|
5229
|
-
const rLit = i + 1 < n ?
|
|
5280
|
+
const lLit = i > 0 ? at7(arr, i - 1) : NONE;
|
|
5281
|
+
const rLit = i + 1 < n ? at7(arr, i + 1) : NONE;
|
|
5230
5282
|
const lSkip = skipLeft(arr, i);
|
|
5231
5283
|
const rSkip = skipRight(arr, i);
|
|
5232
5284
|
const openLeft = skip.spaceLeft.has(g) ? lSkip : lLit;
|
|
5233
5285
|
const closeRight = skip.spaceRight.has(g) ? rSkip : rLit;
|
|
5234
|
-
let canOpen = (openLeft === NONE ||
|
|
5235
|
-
let canClose = lSkip !== NONE && !
|
|
5286
|
+
let canOpen = (openLeft === NONE || SPACELIKE3.has(openLeft) || OPENISH2.has(openLeft) || DASHISH.has(openLeft)) && rSkip !== NONE && !SPACELIKE3.has(rSkip) && (!CLOSEISH2.has(rSkip) || isQuoteMark(rSkip) || rSkip === MARKER);
|
|
5287
|
+
let canClose = lSkip !== NONE && !SPACELIKE3.has(lSkip) && (closeRight === NONE || SPACELIKE3.has(closeRight) || CLOSEISH2.has(closeRight) || DASHISH.has(closeRight));
|
|
5236
5288
|
if (NARROW.has(g) && lLit !== NONE && rLit !== NONE && isAlnum4(lLit) && isAlnum4(rLit)) {
|
|
5237
5289
|
canOpen = false;
|
|
5238
5290
|
canClose = false;
|
|
@@ -5416,8 +5468,8 @@ var quotesRule = {
|
|
|
5416
5468
|
};
|
|
5417
5469
|
|
|
5418
5470
|
// src/rules/ranges.ts
|
|
5419
|
-
var
|
|
5420
|
-
var
|
|
5471
|
+
var FULL_STOP4 = 46;
|
|
5472
|
+
var COMMA3 = 44;
|
|
5421
5473
|
var SOLIDUS = 47;
|
|
5422
5474
|
var DIGIT_ZERO6 = 48;
|
|
5423
5475
|
function isNonDecreasing(cp, leftStart, rightStart, length) {
|
|
@@ -5436,7 +5488,7 @@ function rangeGuardsPass(cp, flanks) {
|
|
|
5436
5488
|
if (isLetter(before)) return false;
|
|
5437
5489
|
if (isDashUnion(before)) return false;
|
|
5438
5490
|
if (isDashUnion(after)) return false;
|
|
5439
|
-
if (before ===
|
|
5491
|
+
if (before === FULL_STOP4 || before === COMMA3 || before === SOLIDUS) return false;
|
|
5440
5492
|
if (after === SOLIDUS) return false;
|
|
5441
5493
|
const leftLength = left - a + 1;
|
|
5442
5494
|
const rightLength = b - right + 1;
|
|
@@ -5486,8 +5538,8 @@ var FF = 12;
|
|
|
5486
5538
|
var NEL = 133;
|
|
5487
5539
|
var LS = 8232;
|
|
5488
5540
|
var PS = 8233;
|
|
5489
|
-
var
|
|
5490
|
-
var
|
|
5541
|
+
var COMMA4 = 44;
|
|
5542
|
+
var FULL_STOP5 = 46;
|
|
5491
5543
|
var SEMICOLON2 = 59;
|
|
5492
5544
|
var COLON = 58;
|
|
5493
5545
|
var EXCLAMATION2 = 33;
|
|
@@ -5513,7 +5565,7 @@ var LETTER_P_UPPER = 80;
|
|
|
5513
5565
|
var LETTER_P_LOWER = 112;
|
|
5514
5566
|
var LETTER_O_UPPER = 79;
|
|
5515
5567
|
var LETTER_O_LOWER = 111;
|
|
5516
|
-
function
|
|
5568
|
+
function at8(cp, i) {
|
|
5517
5569
|
const value = cp[i];
|
|
5518
5570
|
return value === void 0 ? NONE : value;
|
|
5519
5571
|
}
|
|
@@ -5521,10 +5573,10 @@ function isBreak3(cp) {
|
|
|
5521
5573
|
return cp === LF || cp === CR || cp === VT || cp === FF || cp === NEL || cp === LS || cp === PS || cp === LINE_MARKER;
|
|
5522
5574
|
}
|
|
5523
5575
|
function isStripBefore(cp) {
|
|
5524
|
-
return cp ===
|
|
5576
|
+
return cp === COMMA4 || cp === FULL_STOP5 || cp === SEMICOLON2 || cp === COLON || cp === EXCLAMATION2 || cp === QUESTION2;
|
|
5525
5577
|
}
|
|
5526
5578
|
function isDotlike2(cp) {
|
|
5527
|
-
return cp ===
|
|
5579
|
+
return cp === FULL_STOP5 || cp === ELLIPSIS2;
|
|
5528
5580
|
}
|
|
5529
5581
|
function isOpenBracket2(cp) {
|
|
5530
5582
|
return cp === PAREN_OPEN2 || cp === SQUARE_OPEN2 || cp === CURLY_OPEN;
|
|
@@ -5541,8 +5593,8 @@ function isEmptyBracketGuarded(left, right) {
|
|
|
5541
5593
|
return isOpenBracket2(left) && right === matchingCloser(left);
|
|
5542
5594
|
}
|
|
5543
5595
|
function isLoneDot(cp, e) {
|
|
5544
|
-
if (
|
|
5545
|
-
const next =
|
|
5596
|
+
if (at8(cp, e) !== FULL_STOP5) return true;
|
|
5597
|
+
const next = at8(cp, e + 1);
|
|
5546
5598
|
if (isLetter(next) || isDigitAscii(next)) return false;
|
|
5547
5599
|
return !isDotlike2(next);
|
|
5548
5600
|
}
|
|
@@ -5553,22 +5605,22 @@ function isEmoticonMouth(cp) {
|
|
|
5553
5605
|
return cp === PAREN_OPEN2 || cp === PAREN_CLOSE2 || cp === SQUARE_OPEN2 || cp === SQUARE_CLOSE2 || cp === LETTER_D_UPPER || cp === LETTER_D_LOWER || cp === LETTER_P_UPPER || cp === LETTER_P_LOWER || cp === LETTER_O_UPPER || cp === LETTER_O_LOWER || cp === SOLIDUS2 || cp === REVERSE_SOLIDUS || cp === VERTICAL_LINE || cp === ASTERISK;
|
|
5554
5606
|
}
|
|
5555
5607
|
function isEmoticon(cp, e) {
|
|
5556
|
-
const eye =
|
|
5608
|
+
const eye = at8(cp, e);
|
|
5557
5609
|
if (eye !== COLON && eye !== SEMICOLON2) return false;
|
|
5558
5610
|
let i = e + 1;
|
|
5559
|
-
const nose =
|
|
5611
|
+
const nose = at8(cp, i);
|
|
5560
5612
|
if (nose === HYPHEN_MINUS3 || nose === CARET) i += 1;
|
|
5561
|
-
if (!isEmoticonMouth(
|
|
5613
|
+
if (!isEmoticonMouth(at8(cp, i))) return false;
|
|
5562
5614
|
i += 1;
|
|
5563
|
-
const after =
|
|
5615
|
+
const after = at8(cp, i);
|
|
5564
5616
|
return !isLetter(after) && !isDigitAscii(after);
|
|
5565
5617
|
}
|
|
5566
5618
|
function isEmoticonEnd(cp, s) {
|
|
5567
|
-
if (!isEmoticonMouth(
|
|
5619
|
+
if (!isEmoticonMouth(at8(cp, s - 1))) return false;
|
|
5568
5620
|
let j = s - 2;
|
|
5569
|
-
const nose =
|
|
5621
|
+
const nose = at8(cp, j);
|
|
5570
5622
|
if (nose === HYPHEN_MINUS3 || nose === CARET) j -= 1;
|
|
5571
|
-
const eye =
|
|
5623
|
+
const eye = at8(cp, j);
|
|
5572
5624
|
return eye === COLON || eye === SEMICOLON2;
|
|
5573
5625
|
}
|
|
5574
5626
|
function replacementLength(cp, s, e, left, right) {
|
|
@@ -5586,16 +5638,16 @@ var spacesRule = {
|
|
|
5586
5638
|
const edits = [];
|
|
5587
5639
|
let i = 0;
|
|
5588
5640
|
while (i < n) {
|
|
5589
|
-
if (
|
|
5641
|
+
if (at8(cp, i) !== SPACE3) {
|
|
5590
5642
|
i += 1;
|
|
5591
5643
|
continue;
|
|
5592
5644
|
}
|
|
5593
5645
|
const s = i;
|
|
5594
5646
|
let e = s;
|
|
5595
|
-
while (e < n &&
|
|
5647
|
+
while (e < n && at8(cp, e) === SPACE3) e += 1;
|
|
5596
5648
|
const k = e - s;
|
|
5597
|
-
const left =
|
|
5598
|
-
const right =
|
|
5649
|
+
const left = at8(cp, s - 1);
|
|
5650
|
+
const right = at8(cp, e);
|
|
5599
5651
|
if (left === NONE || isMarker(left) || isBreak3(left) || right === NONE || isMarker(right) || isBreak3(right)) {
|
|
5600
5652
|
i = e;
|
|
5601
5653
|
continue;
|
|
@@ -5637,7 +5689,7 @@ var SOLIDUS3 = 47;
|
|
|
5637
5689
|
var HYPHEN_MINUS4 = 45;
|
|
5638
5690
|
var PLUS_MINUS = 177;
|
|
5639
5691
|
var SQUARE_OPEN3 = 91;
|
|
5640
|
-
function
|
|
5692
|
+
function at9(cp, i) {
|
|
5641
5693
|
const value = cp[i];
|
|
5642
5694
|
return value === void 0 ? NONE : value;
|
|
5643
5695
|
}
|
|
@@ -5674,7 +5726,7 @@ function isMulLetter(cp) {
|
|
|
5674
5726
|
function matchesAt2(cp, i, literal) {
|
|
5675
5727
|
if (i + literal.length > cp.length) return false;
|
|
5676
5728
|
for (let j = 0; j < literal.length; j += 1) {
|
|
5677
|
-
if (
|
|
5729
|
+
if (at9(cp, i + j) !== literal[j]) return false;
|
|
5678
5730
|
}
|
|
5679
5731
|
return true;
|
|
5680
5732
|
}
|
|
@@ -5682,8 +5734,8 @@ function trademarkAt(cp, i) {
|
|
|
5682
5734
|
for (const row of TRADEMARK_TABLE) {
|
|
5683
5735
|
if (!matchesAt2(cp, i, row.literal)) continue;
|
|
5684
5736
|
const end = i + row.literal.length;
|
|
5685
|
-
const before =
|
|
5686
|
-
const after =
|
|
5737
|
+
const before = at9(cp, i - 1);
|
|
5738
|
+
const after = at9(cp, end);
|
|
5687
5739
|
if (row.guardedByS1 && before !== NONE && (isAlnum5(before) || before === PAREN_CLOSE3 || before === SQUARE_CLOSE3 || before === COPYRIGHT || before === REGISTERED || before === TRADEMARK)) {
|
|
5688
5740
|
return null;
|
|
5689
5741
|
}
|
|
@@ -5695,27 +5747,27 @@ function trademarkAt(cp, i) {
|
|
|
5695
5747
|
}
|
|
5696
5748
|
function readChain(cp, a) {
|
|
5697
5749
|
let p = a;
|
|
5698
|
-
while (isDigit6(
|
|
5750
|
+
while (isDigit6(at9(cp, p))) p += 1;
|
|
5699
5751
|
const firstRunEnd = p - 1;
|
|
5700
5752
|
const links = [];
|
|
5701
5753
|
let end = p - 1;
|
|
5702
5754
|
for (; ; ) {
|
|
5703
5755
|
let q = p;
|
|
5704
5756
|
let leftSpace = 0;
|
|
5705
|
-
if (isSpaceLike2(
|
|
5757
|
+
if (isSpaceLike2(at9(cp, q))) {
|
|
5706
5758
|
leftSpace = 1;
|
|
5707
5759
|
q += 1;
|
|
5708
5760
|
}
|
|
5709
|
-
if (!isMulLetter(
|
|
5761
|
+
if (!isMulLetter(at9(cp, q))) break;
|
|
5710
5762
|
const letterIndex = q;
|
|
5711
5763
|
q += 1;
|
|
5712
5764
|
let rightSpace = 0;
|
|
5713
|
-
if (isSpaceLike2(
|
|
5765
|
+
if (isSpaceLike2(at9(cp, q))) {
|
|
5714
5766
|
rightSpace = 1;
|
|
5715
5767
|
q += 1;
|
|
5716
5768
|
}
|
|
5717
|
-
if (!isDigit6(
|
|
5718
|
-
while (isDigit6(
|
|
5769
|
+
if (!isDigit6(at9(cp, q))) break;
|
|
5770
|
+
while (isDigit6(at9(cp, q))) q += 1;
|
|
5719
5771
|
links.push({ letterIndex, leftSpace, rightSpace });
|
|
5720
5772
|
end = q - 1;
|
|
5721
5773
|
p = q;
|
|
@@ -5731,27 +5783,27 @@ function chainEdits(cp, a, chain) {
|
|
|
5731
5783
|
if (link.leftSpace !== link.rightSpace) return null;
|
|
5732
5784
|
if (link.leftSpace !== sp) return null;
|
|
5733
5785
|
}
|
|
5734
|
-
const before =
|
|
5735
|
-
const after =
|
|
5786
|
+
const before = at9(cp, a - 1);
|
|
5787
|
+
const after = at9(cp, chain.end + 1);
|
|
5736
5788
|
if (before !== NONE && isLetter(before)) return null;
|
|
5737
5789
|
if (after !== NONE && isLetter(after)) return null;
|
|
5738
|
-
if (sp === 0 &&
|
|
5790
|
+
if (sp === 0 && at9(cp, first.letterIndex) === LOWER_X && chain.firstRunEnd === a && at9(cp, a) === DIGIT_ZERO8) {
|
|
5739
5791
|
return null;
|
|
5740
5792
|
}
|
|
5741
5793
|
const edits = [];
|
|
5742
5794
|
for (const link of links) {
|
|
5743
5795
|
const j = link.letterIndex;
|
|
5744
|
-
const replacement = sp === 0 ? [MULTIPLICATION] : [
|
|
5796
|
+
const replacement = sp === 0 ? [MULTIPLICATION] : [at9(cp, j - 1), MULTIPLICATION, at9(cp, j + 1)];
|
|
5745
5797
|
edits.push({ start: j - sp, end: j + sp + 1, replacement, ruleId: "symbols" });
|
|
5746
5798
|
}
|
|
5747
5799
|
return edits;
|
|
5748
5800
|
}
|
|
5749
5801
|
function plusMinusAt(cp, i) {
|
|
5750
|
-
if (
|
|
5751
|
-
if (
|
|
5802
|
+
if (at9(cp, i + 1) !== SOLIDUS3 || at9(cp, i + 2) !== HYPHEN_MINUS4) return null;
|
|
5803
|
+
if (at9(cp, i - 1) === SQUARE_OPEN3) return null;
|
|
5752
5804
|
let j = i + 3;
|
|
5753
|
-
if (
|
|
5754
|
-
if (!isDigit6(
|
|
5805
|
+
if (at9(cp, j) === SPACE4) j += 1;
|
|
5806
|
+
if (!isDigit6(at9(cp, j))) return null;
|
|
5755
5807
|
return { start: i, end: i + 3, replacement: [PLUS_MINUS], ruleId: "symbols" };
|
|
5756
5808
|
}
|
|
5757
5809
|
var symbolsRule = {
|
|
@@ -5762,7 +5814,7 @@ var symbolsRule = {
|
|
|
5762
5814
|
const edits = [];
|
|
5763
5815
|
let i = 0;
|
|
5764
5816
|
while (i < n) {
|
|
5765
|
-
const current =
|
|
5817
|
+
const current = at9(cp, i);
|
|
5766
5818
|
if (current === PAREN_OPEN3) {
|
|
5767
5819
|
const edit = trademarkAt(cp, i);
|
|
5768
5820
|
if (edit !== null) {
|
|
@@ -5770,7 +5822,7 @@ var symbolsRule = {
|
|
|
5770
5822
|
i = edit.end;
|
|
5771
5823
|
continue;
|
|
5772
5824
|
}
|
|
5773
|
-
} else if (isDigit6(current) && !isDigit6(
|
|
5825
|
+
} else if (isDigit6(current) && !isDigit6(at9(cp, i - 1))) {
|
|
5774
5826
|
const chain = readChain(cp, i);
|
|
5775
5827
|
const chainResult = chainEdits(cp, i, chain);
|
|
5776
5828
|
if (chainResult !== null) for (const edit of chainResult) edits.push(edit);
|
|
@@ -5798,6 +5850,7 @@ var RULE_ORDER = [
|
|
|
5798
5850
|
"dashes",
|
|
5799
5851
|
"hyphen",
|
|
5800
5852
|
"quotes",
|
|
5853
|
+
"quote-punctuation",
|
|
5801
5854
|
"apostrophe",
|
|
5802
5855
|
"symbols",
|
|
5803
5856
|
"nbsp"
|
|
@@ -5809,6 +5862,7 @@ var RULE_DEFAULTS = {
|
|
|
5809
5862
|
dashes: true,
|
|
5810
5863
|
hyphen: true,
|
|
5811
5864
|
quotes: true,
|
|
5865
|
+
"quote-punctuation": false,
|
|
5812
5866
|
apostrophe: true,
|
|
5813
5867
|
symbols: true,
|
|
5814
5868
|
nbsp: true
|
|
@@ -5820,6 +5874,7 @@ var RULES = {
|
|
|
5820
5874
|
dashes: dashesRule,
|
|
5821
5875
|
hyphen: hyphenRule,
|
|
5822
5876
|
quotes: quotesRule,
|
|
5877
|
+
"quote-punctuation": quotePunctuationRule,
|
|
5823
5878
|
apostrophe: apostropheRule,
|
|
5824
5879
|
symbols: symbolsRule,
|
|
5825
5880
|
nbsp: nbspRule
|
|
@@ -6394,4 +6449,4 @@ function analyzeProtected(input, holes, planned, locale, narrowTarget) {
|
|
|
6394
6449
|
|
|
6395
6450
|
|
|
6396
6451
|
exports.PolytypoError = PolytypoError; exports.toCodePoints = toCodePoints; exports.fromCodePoints = fromCodePoints; exports.getLocaleData = getLocaleData; exports.resolveNarrowTarget = resolveNarrowTarget; exports.normalizeSpans = normalizeSpans; exports.planRules = planRules; exports.runRules = runRules; exports.runRulesRecording = runRulesRecording; exports.runOverSpans = runOverSpans; exports.runOverUnits = runOverUnits; exports.analyzeOverUnits = analyzeOverUnits; exports.analyzeOverSpans = analyzeOverSpans; exports.resolveProtect = resolveProtect; exports.assertNoProtect = assertNoProtect; exports.runProtected = runProtected; exports.analyzeProtected = analyzeProtected;
|
|
6397
|
-
//# sourceMappingURL=chunk-
|
|
6452
|
+
//# sourceMappingURL=chunk-75BQY5RY.cjs.map
|