Emacs: Latin to Gothic (๐ค๐ฌ๐ฑ๐ฅ๐ฆ๐ ) ๐
Here's a command to convert English alphabet characters to Gothic (aka Blackletter, Fraktur) characters.
put this in your Emacs Init File:
(defun xah-convert-latin-alphabet-gothic (Begin End ReverseDirectionQ) "Replace English alphabets to Unicode gothic characters. For example, A โ ๐, a โ ๐. When called interactively, work on current line or text selection. If `universal-argument' is called first, reverse direction. When called in elisp, the Begin and End are region begin/end positions to work on. URL `http://xahlee.info/emacs/misc/thou_shalt_use_emacs_lisp.html' Created: 2019-03-07 Version: 2023-05-12" (interactive (if (region-active-p) (list (region-beginning) (region-end) current-prefix-arg) (list (line-beginning-position) (line-end-position) current-prefix-arg))) (let ((xgothicMap [ ["A" "๐"] ["B" "๐ "] ["C" "โญ"] ["D" "๐"] ["E" "๐"] ["F" "๐"] ["G" "๐"] ["H" "โ"] ["I" "โ"] ["J" "๐"] ["K" "๐"] ["L" "๐"] ["M" "๐"] ["N" "๐"] ["O" "๐"] ["P" "๐"] ["Q" "๐"] ["R" "โ"] ["S" "๐"] ["T" "๐"] ["U" "๐"] ["V" "๐"] ["W" "๐"] ["X" "๐"] ["Y" "๐"] ["Z" "โจ"] ["a" "๐"] ["b" "๐"] ["c" "๐ "] ["d" "๐ก"] ["e" "๐ข"] ["f" "๐ฃ"] ["g" "๐ค"] ["h" "๐ฅ"] ["i" "๐ฆ"] ["j" "๐ง"] ["k" "๐จ"] ["l" "๐ฉ"] ["m" "๐ช"] ["n" "๐ซ"] ["o" "๐ฌ"] ["p" "๐ญ"] ["q" "๐ฎ"] ["r" "๐ฏ"] ["s" "๐ฐ"] ["t" "๐ฑ"] ["u" "๐ฒ"] ["v" "๐ณ"] ["w" "๐ด"] ["x" "๐ต"] ["y" "๐ถ"] ["z" "๐ท"] ]) xuseMap ) (setq xuseMap (if ReverseDirectionQ (mapcar (lambda (xx) (vector (aref xx 1) (aref xx 0))) xgothicMap) xgothicMap)) (save-excursion (save-restriction (narrow-to-region Begin End) (let ((case-fold-search nil)) (mapc (lambda (xx) (goto-char (point-min)) (while (search-forward (elt xx 0) nil t) (replace-match (elt xx 1) t t))) xuseMap))))))