From b9b324ccc5da8e16bf338d15d4acc6429aa8bad2 Mon Sep 17 00:00:00 2001 From: Elango Cheran Date: Fri, 31 May 2024 13:42:21 -0700 Subject: [PATCH] ICU-22722 Update docs for cldr-to-icu converter --- tools/cldr/README.md | 2 +- tools/cldr/cldr-to-icu/README.md | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/tools/cldr/README.md b/tools/cldr/README.md index 2117c58d7d00..bc579c7656a4 100644 --- a/tools/cldr/README.md +++ b/tools/cldr/README.md @@ -14,6 +14,6 @@ more directories to the list, modify the `cldrTestData` fileset. The cldr-to-icu directory contains tools to convert from CLDR's XML data to ICU resource files. -See [cldr-to-icu/README.txt](cldr-to-icu/README.txt) and +See the [cldr-to-icu README](https://github.com/unicode-org/icu/tree/main/tools/cldr/cldr-to-icu) and [cldr-icu-readme.txt](../../icu4c/source/data/cldr-icu-readme.txt) for more information. diff --git a/tools/cldr/cldr-to-icu/README.md b/tools/cldr/cldr-to-icu/README.md index 8043758e7717..d60be6ef3b6a 100644 --- a/tools/cldr/cldr-to-icu/README.md +++ b/tools/cldr/cldr-to-icu/README.md @@ -162,7 +162,18 @@ $ ant -f build-icu-data.xml $ ant -f build-icu-data.xml ``` -See build-icu-data.xml for documentation of all options and additional customization. +## Config syntax details + +Note: some elements have an implicit default attributes associated with them, according to [`ldml.dtd`](https://github.com/unicode-org/icu/blob/main/icu4c/source/data/dtd/cldr/common/dtd/ldml.dtd). +For example, for the `timeFormat` element, +the following excerpt of the DTD schema indicates that there is a default value `"standard"` for the `type` attribute: + +``` + + +``` + +See `build-icu-data.xml` for documentation of all options and additional customization. ## Running unit tests