Date: Wed, 24 Jan 2024 17:54:47 +0100
I would love to get some official recommendations on which exact Unicode
characters to use. But that will be needed for the follow-up papers with
systems definitions.
First, we have to agree on the design of the framework. This is why we
should find out how to define units and other entities with identifiers so
that they can be printed properly in Unicode and non-Unicode mode on all
the available character types. See some examples at
https://isocpp.org/files/papers/P3045R0.html#symbol-definition-examples.
Also, I would love to hear your feedback on
https://isocpp.org/files/papers/P3045R0.html#quantity-formatting. To make
the formatting of quantities efficient, we need to introduce the
composition/nesting of formatters. I think that the replacement field is
the best way to do so, but instead of taking the value from the
`std::forward` argument list, it gets it from the type being formatted
based on the provided identifier that starts with '%'. It collides a bit
with named arguments but we can always reserve identifiers starting with
'%' for member access.
Best
Mat
śr., 24 sty 2024 o 17:50 Steve Downey via SG16 <sg16_at_[hidden]>
napisał(a):
>
>
> On Wed, Jan 24, 2024 at 11:47 AM Robin Leroy <eggrobin_at_[hidden]> wrote:
>
>> Le mer. 24 janv. 2024 à 17:39, Steve Downey via SG16 <
>> sg16_at_[hidden]> a écrit :
>>
>>> u8"\N{OHM SIGN}" is probably the closer to right thing, since it's
>>> distinguishable from u8"\N{GREEK CAPITAL LETTER OMEGA}"
>>>
>> Distinguishable yes, but canonically equivalent, and discouraged.
>> *The Unicode Standard* reads, in Section 7.2 Greek, *sub* Greek Letters
>> as Symbols
>> <https://www.unicode.org/versions/Unicode15.1.0/ch07.pdf#G12477>,
>>
>>> The *ohm sign* is canonically equivalent to the *capital omega*, and
>>> normalization would remove any distinction. Its use is therefore
>>> discouraged in favor of *capital omega*.
>>
>>
> I'd missed the discouraged part. Is that also the case for Angstrom, I
> hope?
> Either way, spelling it out will avoid confusion, and probably should have
> a Note so that someone else doesn't make the same mistake I just did.
>
>>
>> Best regards,
>>
>> Robin Leroy
>>
> --
> SG16 mailing list
> SG16_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/sg16
>
characters to use. But that will be needed for the follow-up papers with
systems definitions.
First, we have to agree on the design of the framework. This is why we
should find out how to define units and other entities with identifiers so
that they can be printed properly in Unicode and non-Unicode mode on all
the available character types. See some examples at
https://isocpp.org/files/papers/P3045R0.html#symbol-definition-examples.
Also, I would love to hear your feedback on
https://isocpp.org/files/papers/P3045R0.html#quantity-formatting. To make
the formatting of quantities efficient, we need to introduce the
composition/nesting of formatters. I think that the replacement field is
the best way to do so, but instead of taking the value from the
`std::forward` argument list, it gets it from the type being formatted
based on the provided identifier that starts with '%'. It collides a bit
with named arguments but we can always reserve identifiers starting with
'%' for member access.
Best
Mat
śr., 24 sty 2024 o 17:50 Steve Downey via SG16 <sg16_at_[hidden]>
napisał(a):
>
>
> On Wed, Jan 24, 2024 at 11:47 AM Robin Leroy <eggrobin_at_[hidden]> wrote:
>
>> Le mer. 24 janv. 2024 à 17:39, Steve Downey via SG16 <
>> sg16_at_[hidden]> a écrit :
>>
>>> u8"\N{OHM SIGN}" is probably the closer to right thing, since it's
>>> distinguishable from u8"\N{GREEK CAPITAL LETTER OMEGA}"
>>>
>> Distinguishable yes, but canonically equivalent, and discouraged.
>> *The Unicode Standard* reads, in Section 7.2 Greek, *sub* Greek Letters
>> as Symbols
>> <https://www.unicode.org/versions/Unicode15.1.0/ch07.pdf#G12477>,
>>
>>> The *ohm sign* is canonically equivalent to the *capital omega*, and
>>> normalization would remove any distinction. Its use is therefore
>>> discouraged in favor of *capital omega*.
>>
>>
> I'd missed the discouraged part. Is that also the case for Angstrom, I
> hope?
> Either way, spelling it out will avoid confusion, and probably should have
> a Note so that someone else doesn't make the same mistake I just did.
>
>>
>> Best regards,
>>
>> Robin Leroy
>>
> --
> SG16 mailing list
> SG16_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/sg16
>
Received on 2024-01-24 16:55:01