[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/calc/calc-aent.el
From: |
Jay Belanger |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/calc/calc-aent.el |
Date: |
Mon, 04 Apr 2005 23:50:34 -0400 |
Index: emacs/lisp/calc/calc-aent.el
diff -c emacs/lisp/calc/calc-aent.el:1.25 emacs/lisp/calc/calc-aent.el:1.26
*** emacs/lisp/calc/calc-aent.el:1.25 Sat Feb 19 19:59:49 2005
--- emacs/lisp/calc/calc-aent.el Tue Apr 5 03:50:26 2005
***************
*** 519,525 ****
("â½" "(") ; (
("â¾" ")") ; )
("â¿" "n") ; n
! ("â±" "i")) ; i
"A list whose elements (old new) indicate replacements to make
in Calc algebraic input.")
--- 519,540 ----
("â½" "(") ; (
("â¾" ")") ; )
("â¿" "n") ; n
! ("â±" "i") ; i
! ;; subscripts
! ("â" "0") ; 0
! ("â" "1") ; 1
! ("â" "2") ; 2
! ("â" "3") ; 3
! ("â" "4") ; 4
! ("â
" "5") ; 5
! ("â" "6") ; 6
! ("â" "7") ; 7
! ("â" "8") ; 8
! ("â" "9") ; 9
! ("â" "+") ; +
! ("â" "-") ; -
! ("â" "(") ; (
! ("â" ")")) ; )
"A list whose elements (old new) indicate replacements to make
in Calc algebraic input.")
***************
*** 527,537 ****
--- 542,559 ----
"â°Â¹Â²Â³â´âµâ¶â·â¸â¹âºâ»â½â¾â¿â±" ; 0123456789+-()ni
"A string consisting of the superscripts allowed by Calc.")
+ (defvar math-read-subscripts
+ "ââââââ
ââââââââ" ; 0123456789+-()
+ "A string consisting of the subscripts allowed by Calc.")
+
(defun math-read-preprocess-string (str)
"Replace some substrings of STR by Calc equivalents."
(setq str
(replace-regexp-in-string (concat "[" math-read-superscripts "]+")
"^(\\&)" str))
+ (setq str
+ (replace-regexp-in-string (concat "[" math-read-subscripts "]+")
+ "_(\\&)" str))
(let ((rep-list math-read-replacement-list))
(while rep-list
(setq str
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/calc/calc-aent.el,
Jay Belanger <=