From 580b659879fd9e00422cbba7bf88b32024eafceb Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Wed, 22 May 2024 11:14:10 +0300 Subject: [PATCH 1/4] Define function composition for :string values --- spec/registry.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/registry.md b/spec/registry.md index b00a1aeab2..7fdc5357c8 100644 --- a/spec/registry.md +++ b/spec/registry.md @@ -359,6 +359,14 @@ the `:string` selector performs as described below. The `:string` function returns the string value of the resolved value of the _operand_. +#### Composition + +When an _operand_ or an _option_ value uses a _variable_ with a _declaration_ +using an _expression_ with a `:string` _annotation_, +its resolved value contains only the string value of the _operand_ of the annotated _expression_, +together with its resolved locale and directionality, +and no _option_ values. + ## Numeric Value Selection and Formatting ### The `:number` function From dd11a2cedb7a64eeb0bf4fdca523e97409ff46e0 Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Mon, 8 Jul 2024 21:12:28 +0300 Subject: [PATCH 2/4] Update spec/registry.md as suggested by @stasm in #814 --- spec/registry.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/registry.md b/spec/registry.md index 7fdc5357c8..bcf0df3061 100644 --- a/spec/registry.md +++ b/spec/registry.md @@ -361,8 +361,8 @@ The `:string` function returns the string value of the resolved value of the _op #### Composition -When an _operand_ or an _option_ value uses a _variable_ with a _declaration_ -using an _expression_ with a `:string` _annotation_, +When an _operand_ or an _option_ value uses a _variable_ annotated, +directly or indirectly, by a `:string` _annotation_, its resolved value contains only the string value of the _operand_ of the annotated _expression_, together with its resolved locale and directionality, and no _option_ values. From 385d14b334807ccb7a8db0cff8294787dba5c5b4 Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Mon, 15 Jul 2024 10:56:18 +0300 Subject: [PATCH 3/4] Drop the "only" --- spec/registry.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/registry.md b/spec/registry.md index bcf0df3061..e2cb28fc83 100644 --- a/spec/registry.md +++ b/spec/registry.md @@ -363,7 +363,7 @@ The `:string` function returns the string value of the resolved value of the _op When an _operand_ or an _option_ value uses a _variable_ annotated, directly or indirectly, by a `:string` _annotation_, -its resolved value contains only the string value of the _operand_ of the annotated _expression_, +its resolved value contains the string value of the _operand_ of the annotated _expression_, together with its resolved locale and directionality, and no _option_ values. From ed81ecdef5139cf4782922e6deaaa2ff798174d2 Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Thu, 10 Oct 2024 22:38:45 +0300 Subject: [PATCH 4/4] Update text following code review comments --- spec/registry.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/registry.md b/spec/registry.md index e3560fff4b..ef7900195a 100644 --- a/spec/registry.md +++ b/spec/registry.md @@ -93,10 +93,10 @@ The `:string` function returns the string value of the _resolved value_ of the _ #### Composition When an _operand_ or an _option_ value uses a _variable_ annotated, -directly or indirectly, by a `:string` _annotation_, -its resolved value contains the string value of the _operand_ of the annotated _expression_, -together with its resolved locale and directionality, -and no _option_ values. +directly or indirectly, by a `:string` _function_, +its _resolved value_ contains the string value of the _operand_ of the annotated _expression_, +together with its resolved locale and directionality. +None of the _options_ set on the _expression_ are part of the _resolved value_. ## Numeric Value Selection and Formatting