When choosing to use Chinese access to the indico service, we found that the location of the page for the meeting date in the repetition of words, for example, the location of the date of the meeting is to repeat the “month” characters(" 2022年十【月】【月】"), how can I solve this problem?
Known issue, unfortunately there’s currently no good solution for it.
opened 12:51PM - 11 Nov 21 UTC
bug
This happens because we extend the width of the fields in `_adjust_skeleton` to … match the originally-requested width.
- we look up a skeleton for `MMMMyyyy`; in case of chinese that's `yMMMM`
- the format string for this skeleton in chinese is 'y年M月'
- `y` and `M` expand to just the year/month without any symbols, so using that skeleton as-is is fine.
- however, we extend the width based on what we requested which results in `yyyy年MMMM月`
- but `MMMM` expands to `十一月` (for november) so now combined with the skeleton, the `月` at the end gets duplicated
I'm not sure if this is something we can fix on our side at all (without adding an ugly hack that adds a special case for the chinese locale).
If I understand https://unicode-org.github.io/cldr/ldml/tr35-dates.html#Matching_Skeletons correctly, this is actually the expected behavior and the fix would be for the unicode data to include more appropriate patterns for chinese?
> Once a skeleton match is found, the corresponding pattern is used, but with adjustments. Consider the following dateFormatItem: `<dateFormatItem id="yMMMd">d MMM y</dateFormatItem>`
> If this is the best match for `yMMMMd`, pattern is automatically expanded to produce the pattern `"d MMMM y"` in response to the request.
The web address of the above problems are as follows: indico .i hep.ac.cn/category/208/