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.
-
HTML::Fraction may do what you want if you're working with HTML.
-
Unicode::Fraction will render any vulgar fraction into something
that's intended to look like a Unicode fraction: 12345/67890 becomes something like 12345/67890
(that's just a rough approximation).
"... 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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.