From b55803d11d37fb18db0768dee344ac790a19c9ef Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Sun, 17 Dec 2023 12:32:47 +0200 Subject: [PATCH 1/4] Add :date and :time aliases --- spec/registry.dtd | 9 ++++++++- spec/registry.md | 3 +++ spec/registry.xml | 11 +++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/spec/registry.dtd b/spec/registry.dtd index 8abbbc6e6e..1fe3c90bc3 100644 --- a/spec/registry.dtd +++ b/spec/registry.dtd @@ -55,12 +55,19 @@ locales NMTOKENS #REQUIRED > - + + + + ` definitions, which provide shorthands for commonly used option baskets. An _alias name_ may be used equivalently to a _function name_ in messages. +Its `` values map option names from those used in the `alias` to the `name` used in the _function_, +and can include a `default`` value. Its `` values are always set, and may not be overridden in message annotations. +If the `` `value` is an empty string, the option is not used in the alias. If a ``, `` or ` + + Date formatting + + + + + + Time formatting + + + From c9c8cf18c02becc9384a6fb54e5148828d9a807a Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Mon, 15 Jan 2024 13:23:00 +0200 Subject: [PATCH 2/4] Define as standalone functions instead --- spec/registry.dtd | 9 +----- spec/registry.md | 3 -- spec/registry.xml | 76 ++++++++++++++++++++++++++++++++++++++++------- 3 files changed, 67 insertions(+), 21 deletions(-) diff --git a/spec/registry.dtd b/spec/registry.dtd index 1fe3c90bc3..8abbbc6e6e 100644 --- a/spec/registry.dtd +++ b/spec/registry.dtd @@ -55,19 +55,12 @@ locales NMTOKENS #REQUIRED > - + - - - ` definitions, which provide shorthands for commonly used option baskets. An _alias name_ may be used equivalently to a _function name_ in messages. -Its `` values map option names from those used in the `alias` to the `name` used in the _function_, -and can include a `default`` value. Its `` values are always set, and may not be overridden in message annotations. -If the `` `value` is an empty string, the option is not used in the alias. If a ``, `` or ` + - - Date formatting - - - + + + Date formatting + - - Time formatting - - - + + + + + + + + + + + + Time formatting + + + + + + + + + From de99bfd44b5e52e147a9496c16cb3a61f24d2c5d Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Mon, 15 Jan 2024 18:28:28 +0200 Subject: [PATCH 3/4] Add hourCycle option to :time --- spec/registry.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/registry.xml b/spec/registry.xml index 9cf534e8c5..9178b60d5a 100644 --- a/spec/registry.xml +++ b/spec/registry.xml @@ -202,6 +202,11 @@ such as "Asia/Shanghai", "Asia/Kolkata", "America/New_York". + From b69aa86e4ba18a5c93302fcba4692bad59ac672d Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Fri, 16 Feb 2024 21:24:51 +0200 Subject: [PATCH 4/4] Drop non-style options, use XML time & date validation rules --- spec/registry.xml | 51 ++++++----------------------------------------- 1 file changed, 6 insertions(+), 45 deletions(-) diff --git a/spec/registry.xml b/spec/registry.xml index 9178b60d5a..f5de984fc2 100644 --- a/spec/registry.xml +++ b/spec/registry.xml @@ -8,6 +8,10 @@ + + @@ -143,31 +147,12 @@ - + - - - @@ -177,36 +162,12 @@ - + - - - -