format_fraction
Convert fraction strings like '1/4' to Unicode characters such as '¼' for recipe ingredient formatting in Paprika Recipe Manager.
Instructions
Format a fraction string to unicode fraction characters. Converts simple fractions like '1/4' to '¼' or complex ones like '31/200' to '³¹⁄₂₀₀'. Handles already-formatted unicode fractions and strips whitespace. This tool does not require server connectivity and can be used for testing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fraction | Yes | Fraction in the form 'numerator/denominator' (e.g., '1/4', ' 31 / 200 '), or already formatted unicode |