Unicode::Collate::CJK::Zhuyin β weighting CJK Unified Ideographs for Unicode::Collate
| Use Case | Command | Description |
|---|---|---|
| Override CJK collation order with zhuyin (bopomofo) | Unicode::Collate->new( overrideCJK => \&Unicode::Collate::CJK::Zhuyin::weightZhuyin ) |
Use the weightZhuyin function to customize CJK ideograph sorting according to CLDR zhuyin ordering. |
use Unicode::Collate;
use Unicode::Collate::CJK::Zhuyin;
my $collator = Unicode::Collate->new(
overrideCJK => \&Unicode::Collate::CJK::Zhuyin::weightZhuyin
);
Unicode::Collate::CJK::Zhuyin provides weightZhuyin(), that is adequate for overrideCJK of Unicode::Collate and makes tailoring of CJK Unified Ideographs in the order of CLDRβs zhuyin (bopomofo) ordering.
The zhuyin ordering includes some characters that are not CJK Unified Ideographs and canβt utilize weightZhuyin() for collation. For them, use entry instead.
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 17:48 @216.73.216.199
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format