Perl6 has built-in Unicode support with normal Uni and NFC / NFD / NFKC / NFKD standards.
I vaguely understand that the Unicode :: GCString :: columns method defines support based on the East Asian language. 合 consists of 2 "syllables" (they call it "grapheme clusters") one above the other, thus 2 columns.
At the same time, perl6 inside (at the MoarVM level) has access to the unicode database where the linebreaking properties are stored, but as far as I know, there is currently no module, such as Unicode :: UCD, available to create East_Asian_Width properties for something like Unicode :: GCString.
Converting Unicode :: LineBreak to perl6, on the other hand, looks simple enough, accessing the sombok library through NativeCall.
rurban
source share