good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Unicode vulgar fraction compositionby kcott (Archbishop) |
on Sep 24, 2020 at 08:22 UTC ( [id://11122152]=note: print w/replies, xml ) | Need Help?? |
G'day raygun, As ++ikegami has explained, and you have accepted, there is no compatibility composition. You have asked about modules. There are some available but I can't say whether they are suitable for your purposes (as you haven't explained that part). Here's a couple. If these aren't suitable, search MetaCPAN using terms reflecting your use case.
"... write my own function to handle these fractions (there are only a dozen or so), ..." There's actually 18 in total. Three have the codepoints U+00BC - U+00BE and can be found in the PDF Code Chart "C1 Controls and Latin-1 Supplement". The other 15 have the codepoints U+2150 - U+215E and can be found in the PDF Code Chart "Number Forms". Writing your own function is pretty easy. I wrote one just for the fun of it: I've put it in a spoiler so as not to spoil your fun if you wanted to do this, but do feel free to look and take any code or ideas you want. <Reveal this spoiler or all in this thread>
— Ken
In Section
Seekers of Perl Wisdom
|
|