raygun has asked for the wisdom of the Perl Monks concerning the following question:
Unicode has precomposed fractions, such as VULGAR FRACTION THREE EIGHTHS (U+215C), that Unicode::Normalize's NFKC or NFKD function decomposes into the string "3\N{FRACTION SLASH}8".
But I can't get any function in that module to go the other way, turning the decomposed form back into the vulgar fraction. Clearly the module is aware of the equivalency of these forms. And while it wouldn't be difficult to write my own function to handle these fractions (there are only a dozen or so), rolling my own code to do a translation that already lives inside Unicode::Normalize seems like a wrongheaded approach. Is there a standard mechanism or tool for composing arbitrary fractions into precomposed ones, where such precomposed ones are available?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unicode vulgar fraction composition
by kcott (Archbishop) on Sep 24, 2020 at 08:22 UTC | |
by raygun (Scribe) on Sep 24, 2020 at 17:28 UTC | |
|
Re: Unicode vulgar fraction composition
by ikegami (Patriarch) on Sep 24, 2020 at 02:14 UTC | |
by tobyink (Canon) on Sep 26, 2020 at 09:55 UTC | |
by ikegami (Patriarch) on Sep 28, 2020 at 02:16 UTC | |
by tobyink (Canon) on Sep 28, 2020 at 16:07 UTC | |
by ikegami (Patriarch) on Sep 30, 2020 at 06:15 UTC | |
by raygun (Scribe) on Oct 05, 2020 at 07:57 UTC | |
by soonix (Chancellor) on Oct 05, 2020 at 08:43 UTC | |
by raygun (Scribe) on Oct 05, 2020 at 19:02 UTC | |
by ikegami (Patriarch) on Oct 06, 2020 at 04:14 UTC | |
by raygun (Scribe) on Oct 06, 2020 at 08:19 UTC | |
| |
|
Re: Unicode vulgar fraction composition
by Anonymous Monk on Sep 23, 2020 at 12:34 UTC | |
by raygun (Scribe) on Sep 23, 2020 at 15:37 UTC | |
by LanX (Saint) on Sep 23, 2020 at 14:20 UTC |