From 9123fe97eed2a30c8d113ce2581255e21222ad71 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Mon, 15 Jul 2024 17:45:24 -0500 Subject: [PATCH] CLDR-17566 fix broken site page --- .../design-proposals/xmb.md | 29 +++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/docs/site/development/development-process/design-proposals/xmb.md b/docs/site/development/development-process/design-proposals/xmb.md index 382695f2bf4..886b8d9455a 100644 --- a/docs/site/development/development-process/design-proposals/xmb.md +++ b/docs/site/development/development-process/design-proposals/xmb.md @@ -28,7 +28,7 @@ Examples: \ -\**Ouzbékistan**\ @@ -70,7 +70,7 @@ Examples: ### Placeholders -Replaces the placeholders ("{0}", "MMM", etc.) in patterns by variable names with examples. This is data-driven, using the file at [xmbPlaceholders.txt](http://unicode.org/cldr/trac/browser/trunk/tools/java/org/unicode/cldr/tool/xmbPlaceholders.txt). +Replaces the placeholders ("{0}", "MMM", etc.) in patterns by variable names with examples. This is data-driven, using the file at [xmbPlaceholders.txt](http://unicode.org/cldr/trac/browser/trunk/tools/java/org/unicode/cldr/tool/xmbPlaceholders.txt). Format: @@ -96,7 +96,7 @@ Format: 1. If the value is SKIP, then the path is skipped. 2. The description can have {0}-style variables in it. If so, then the (...) values in the path\_regex are substituted for them. -3. If the value starts with ROOT, then the path is skipped if the type\_value is not in ROOT, where the type\_value is from the first capture group. This is used to make sure that the type\_value is in the major coverage requirements for: language, script, territory, currency, timezone, and metazone. The description can have placeholders, as in case 21. +3. If the value starts with ROOT, then the path is skipped if the type\_value is not in ROOT, where the type\_value is from the first capture group. This is used to make sure that the type\_value is in the major coverage requirements for: language, script, territory, currency, timezone, and metazone. The description can have placeholders, as in case 21. Example: @@ -108,11 +108,19 @@ Example: Plurals are represented with ICU Syntax, such as: -\{LENGTH, select, + Disable liquid parsing on this codeblock to prevent errors reading '{{' + See: https://talk.jekyllrb.com/t/code-block-is-improperly-handled-and-generates-liquid-syntax-error/7599/2 +--> -abbreviated {{NUMBER\_OF\_WEEKS, plural, +```xml + + +{LENGTH, select, + +abbreviated {{NUMBER_OF_WEEKS, plural, =0 {0 wks} @@ -130,7 +138,7 @@ many {# wks} other {# wks}}} -other {{NUMBER\_OF\_WEEKS, plural, +other {{NUMBER_OF_WEEKS, plural, =0 {0 weeks} @@ -146,7 +154,10 @@ few {# weeks} many {# weeks} -other {# weeks}}}}\ +other {# weeks}}}} +``` + + ### TODO @@ -160,4 +171,4 @@ other {# weeks}}}}\ - Figure out how to do the differences between HH and hh, etc. - Current thoughts: don't let the translator choose, but make it part of the xtb-cldr processing. -![Unicode copyright](https://www.unicode.org/img/hb_notice.gif) \ No newline at end of file +![Unicode copyright](https://www.unicode.org/img/hb_notice.gif)