From lwelti at yahoo.com Wed Jan 12 10:51:30 2022 From: lwelti at yahoo.com (Lucas Welti) Date: Wed, 12 Jan 2022 16:51:30 +0000 (UTC) Subject: Stand-alone elements - Days of the week, months References: <847091233.3463405.1642006290373.ref@mail.yahoo.com> Message-ID: <847091233.3463405.1642006290373@mail.yahoo.com> In order to create a Calendar Component I will recommend to use the stand-alone elements as Days of the Week, Name of the Months, but my question is how to get those CLDR elements using ICU? Is any plan to make an API available that can get those elements without having to directly extract that date from CLDR? thanks in advance regards,Lucas -------------- next part -------------- An HTML attachment was scrubbed... URL: From kipcole9 at gmail.com Mon Jan 31 02:13:42 2022 From: kipcole9 at gmail.com (Kip Cole) Date: Mon, 31 Jan 2022 16:13:42 +0800 Subject: How to signify formatting with cyclic date elements? Message-ID: The date time format pattern codes, specifically ?y?, ?M? and ?d? do not clarify when to use the cyclic name sets or the ?standard? numeric name sets. ?U? can be used for the cyclic year. For the Chinese, Korean Dangi and Japanese traditional calendars I?m unclear on whether these format codes are intended to always reflect their numeric values. Or if for cyclic calendars they are intended to be used for the cyclic names. The ?Month Patterns/Cyclic name sets? defines a hints for leap year formatting in lunisolar calendars, but no indication of when to use the numeric context versus the cyclic context. My question therefore is: 1. Is it assumed that the cyclic names are used for `y`, `M` and `d` if the calendar has cyclic name data? 2. Is there typically an option set in ICU to determine which context to use? (I did google for hints on this in ICU documentation but couldn?t see anything) 3. Or is there some other data-drive mechanism I?m missing? Thanks for the help, ?Kip