<i18n dev> RFR: 8041488: Locale-Dependent List Patterns [v12]
Joe Wang
joehw at openjdk.org
Tue Sep 5 21:02:41 UTC 2023
On Tue, 5 Sep 2023 19:50:26 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> src/java.base/share/classes/java/text/ListFormat.java line 560:
>>
>>> 558: * The {@code UNIT} ListFormat style. This style concatenates
>>> 559: * elements, useful for enumerating units.
>>> 560: */
>>
>> The word "style" used in Type, I assume you meant "type"? Just that it might be confused with Style below.
>>
>> Same as previous comments, a combination of Type and Style, if I understand correctly, forms a specific pattern. I might say something about it in the enum class description.
>>
>> A STANDARD type then is a simple list with conjunction "and", or an inclusive list, and etc.
>
> Ah, good catch. Will correct those style/type typos.
>
>> A STANDARD type then is a simple list with conjunction "and", or an inclusive list, and etc.
>
> I could not quite catch what you meant by this. Can you please elaborate on it more?
In a List Pattern, Type, as in the current document, defined its type as in the language, while Style the writing style. I guess I would try to avoid stating it "concatenates elements", but rather represents a simple list with conjunction "and", that is also called an inclusive list as in the language term.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15130#discussion_r1316401513
More information about the i18n-dev
mailing list