Calc parses fractions written using U+2044 FRACTION SLASH
authorDaniel Brooks <db48x@db48x.net>
Sun, 5 Nov 2023 08:03:37 +0000 (01:03 -0700)
committerEli Zaretskii <eliz@gnu.org>
Sat, 27 Jan 2024 14:42:47 +0000 (16:42 +0200)
commit77d9d05df87965409c537f49d59cb5ea632abda1
treeca8bf7d7076b77fa33a271e56fe4b9b0112a1c77
parent63a12ffbc37e46d2752b3903228fc8ec2c1fc611
Calc parses fractions written using U+2044 FRACTION SLASH

Fractions of the form 123⁄456 are handled as if written 123:456. Note
in particular the difference in behavior from U+2215 DIVISION SLASH
and U+002F SOLIDUS, which result in division rather than a rational
fraction.
* lisp/calc/calc-aent.el (math-read-replacement-list): Substitute a
colon for any fraction slash.  (Bug#66944)

* test/lisp/calc/calc-tests.el (calc-frac-input): Test various
fraction types.

* etc/NEWS:
* doc/misc/calc.texi (Fractions): Mention fraction slash, precomposed
fractions.

Copyright-paperwork-exempt: yes
doc/misc/calc.texi
etc/NEWS
lisp/calc/calc-aent.el
test/lisp/calc/calc-tests.el