Xah Talk Show 2025-08-14 Ep692 Emacs Lisp Find Replace Greek Chars, Multiple Pairs Algorithm, Feedback Loop Problem
rewrite xah-replace-greek-letter-name-to-symbol
- we want to do find replace multi pairs. each find string is not regex.
- input is a list of pairs, each is find and replace string.
- convert the find strings into a list
- then call regex quote on each
- combine it into a single regex with “or”.
- call
re-search-forward
in a while loop. - for each found, replace it by corresponding replace string.
- by checking what's the match string.
if we want to do multi-pair find replace with regex, then we do it sequentially.
- Age of AI (Artificial Intelligence) (2025-08)
- Emacs: xah-replace-pairs.el 📦
- Unicode: Greek Alphabet α β γ
- Elisp: Hash Table
- Emacs: Replace Greek Letter Names to Unicode 📜
you have some greek letters, such as alpha and beta. suppose you have a angle of theta. you have some greek letters, such as α and β. suppose you have a angle of thη η. you have some greek letters, such as α and β. suppose you have a angle of θ.