]> git.eshelyaron.com Git - emacs.git/commit
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)
committerEshel Yaron <me@eshelyaron.com>
Wed, 31 Jan 2024 20:09:13 +0000 (21:09 +0100)
commit08e79687d9b977c640e10fa2ce3d5a39f90b9f58
tree460c6d8ba486d24864bb8430432a8b107816d1c0
parenta3953e82dc212e9920379a4d8e0c053e3ecf8af1
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
(cherry picked from commit 77d9d05df87965409c537f49d59cb5ea632abda1)
doc/misc/calc.texi
etc/NEWS
lisp/calc/calc-aent.el
test/lisp/calc/calc-tests.el