renamed variables, added Einnlandic functions
This commit is contained in:
parent
5c90eead58
commit
d8a4a5a274
116
funcs.el
116
funcs.el
@ -9,15 +9,23 @@
|
|||||||
;;
|
;;
|
||||||
;;; License: GPLv3
|
;;; License: GPLv3
|
||||||
|
|
||||||
(setq latin-to-runes-table '((", *" . "᛬")
|
(setq conlanging//matter-latin-to-runes '((", *" . "᛬")
|
||||||
("\\. *" . "᛭")
|
("\\. *" . "᛭")
|
||||||
(" +" . "᛫")
|
(" +" . "᛫")
|
||||||
("ċ" . "ᛇ") ("ch" . "ᛇ")
|
("ċ" . "ᛇ")
|
||||||
("ae" . "ᚫ") ("æ" . "ᚫ")
|
("ch" . "ᛇ")
|
||||||
("dh" . "ᛋ") ("z" . "ᛋ") ("ð" . "ᛋ")
|
("ae" . "ᚫ")
|
||||||
("th" . "ᚦ") ("s" . "ᚦ") ("þ" . "ᚦ")
|
("æ" . "ᚫ")
|
||||||
("w" . "ᚹ") ("ƿ" . "ᚹ")
|
("dh" . "ᛋ")
|
||||||
("g" . "ᚷ") ("ᵹ" . "ᚷ")
|
("z" . "ᛋ")
|
||||||
|
("ð" . "ᛋ")
|
||||||
|
("th" . "ᚦ")
|
||||||
|
("s" . "ᚦ")
|
||||||
|
("þ" . "ᚦ")
|
||||||
|
("w" . "ᚹ")
|
||||||
|
("ƿ" . "ᚹ")
|
||||||
|
("g" . "ᚷ")
|
||||||
|
("ᵹ" . "ᚷ")
|
||||||
("ea" . "ᛠ")
|
("ea" . "ᛠ")
|
||||||
("f" . "ᚠ")
|
("f" . "ᚠ")
|
||||||
("u" . "ᚢ")
|
("u" . "ᚢ")
|
||||||
@ -39,32 +47,82 @@
|
|||||||
("é" . "ᛟ")
|
("é" . "ᛟ")
|
||||||
("a" . "ᚪ")
|
("a" . "ᚪ")
|
||||||
("y" . "ᚣ")))
|
("y" . "ᚣ")))
|
||||||
(setq latin-to-native-table '((" +" . " ")
|
(setq conlanging//matter-latin-to-native '((" +" . " ")
|
||||||
("ch" . "ċ")
|
("ch" . "ċ")
|
||||||
("ae" . "æ")
|
("ae" . "æ")
|
||||||
("th" . "þ") ("s" . "þ")
|
("th" . "þ")
|
||||||
("dh" . "ð") ("z" . "ð")
|
("s" . "þ")
|
||||||
|
("dh" . "ð")
|
||||||
|
("z" . "ð")
|
||||||
("w" . "ƿ")
|
("w" . "ƿ")
|
||||||
("j" . "i")))
|
("j" . "i")))
|
||||||
(setq latin-to-latex-runes '((", *" . ":")
|
(setq conlanging//matter-latin-to-latex-runes '((", *" . ":")
|
||||||
("\\. *" . "*")
|
("\\. *" . "*")
|
||||||
(" +" . ".")
|
(" +" . ".")
|
||||||
("ch" . "I") ("ċ" . "I")
|
("ch" . "I")
|
||||||
|
("ċ" . "I")
|
||||||
("ae" . "æ")
|
("ae" . "æ")
|
||||||
("ea" . "\\\\ea") ("ƿ" . "w")
|
("ea" . "\\\\ea")
|
||||||
("dh" . "s") ("z" . "s") ("ð" . "s")
|
("ƿ" . "w")
|
||||||
("th" . "þ") ("s" . "þ")
|
("dh" . "s")
|
||||||
|
("z" . "s")
|
||||||
|
("ð" . "s")
|
||||||
|
("th" . "þ")
|
||||||
|
("s" . "þ")
|
||||||
("v" . "\\\\ng")
|
("v" . "\\\\ng")
|
||||||
("é " . "\\\\oe")))
|
("é " . "\\\\oe")))
|
||||||
|
|
||||||
|
(setq conlanging//einnlanda-latin-to-latex '((", *" . "\\\\tripledot")
|
||||||
|
("\\. *" . "\\\\tripledot")
|
||||||
|
(" +" . ":")
|
||||||
|
("hw" . "x")
|
||||||
|
("ø" . "\\\\o")
|
||||||
|
("ö" . "\\\\oO")
|
||||||
|
("ó" . "v")
|
||||||
|
("ń" . "\\\\ndot")
|
||||||
|
("v" . "b")))
|
||||||
|
(setq conlanging//einnlanda-latin-to-runes '((", *" . "⁝")
|
||||||
|
("\\. *" . "⁝")
|
||||||
|
(" +" . "᛬")
|
||||||
|
("hw" . "ᛪ")
|
||||||
|
("i" . "ᛁ")
|
||||||
|
("j" . "ᛁ")
|
||||||
|
("y" . "ᛦ")
|
||||||
|
("u" . "ᚢ")
|
||||||
|
("e" . "ᛂ")
|
||||||
|
("ø" . "ᚯ")
|
||||||
|
("o" . "ᚮ")
|
||||||
|
("ö" . "ᚰ")
|
||||||
|
("ó" . "ᚤ")
|
||||||
|
("æ" . "ᛅ")
|
||||||
|
("a" . "ᛆ")
|
||||||
|
("m" . "ᛘ")
|
||||||
|
("n" . "ᚾ")
|
||||||
|
("ń" . "ᛀ")
|
||||||
|
("p" . "ᛔ")
|
||||||
|
("b" . "ᛒ")
|
||||||
|
("t" . "ᛐ")
|
||||||
|
("d" . "ᛑ")
|
||||||
|
("k" . "ᚴ")
|
||||||
|
("g" . "ᚵ")
|
||||||
|
("f" . "ᚠ")
|
||||||
|
("v" . "ᛒ")
|
||||||
|
("þ" . "ᚦ")
|
||||||
|
("ð" . "ᚧ")
|
||||||
|
("s" . "ᛋ")
|
||||||
|
("h" . "ᚼ")
|
||||||
|
("w" . "ᚥ")
|
||||||
|
("r" . "ᚱ")
|
||||||
|
("l" . "ᛚ")))
|
||||||
|
|
||||||
(defun conlanging//replace-string-by-char (t-string t-correspondance-table)
|
(defun conlanging//replace-string-by-char (t-string t-correspondance-table)
|
||||||
"Return a copy of t-string converted with the correspondance
|
"Return a copy of t-string converted with the correspondance
|
||||||
table"
|
table"
|
||||||
|
(interactive)
|
||||||
(while t-correspondance-table
|
(while t-correspondance-table
|
||||||
(let ((cur-from-char (car (car t-correspondance-table)))
|
(let ((cur-from-char (car (car t-correspondance-table)))
|
||||||
(cur-to-char (cdr (car t-correspondance-table))))
|
(cur-to-char (cdr (car t-correspondance-table))))
|
||||||
(setq t-string (replace-regexp-in-string cur-from-char
|
(setq t-string (replace-regexp-in-string cur-from-char cur-to-char
|
||||||
cur-to-char
|
|
||||||
t-string))
|
t-string))
|
||||||
(setq t-correspondance-table (cdr t-correspondance-table))))
|
(setq t-correspondance-table (cdr t-correspondance-table))))
|
||||||
t-string)
|
t-string)
|
||||||
@ -97,18 +155,34 @@ with."
|
|||||||
(insert regionp)))
|
(insert regionp)))
|
||||||
|
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
; Mattér ;
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
(defun conlanging/matter-to-runes ()
|
(defun conlanging/matter-to-runes ()
|
||||||
"Replaces transliterated Mattér to its runic writing system"
|
"Replaces transliterated Mattér to its runic writing system"
|
||||||
(interactive)
|
(interactive)
|
||||||
(conlanging//replace-char-by-table latin-to-runes-table))
|
(conlanging//replace-char-by-table conlanging//matter-latin-to-runes))
|
||||||
|
|
||||||
(defun conlanging/matter-to-native-latin ()
|
(defun conlanging/matter-to-native-latin ()
|
||||||
"Replaces transliterated Mattér by its corresponding native
|
"Replaces transliterated Mattér by its corresponding native
|
||||||
latin writing system"
|
latin writing system"
|
||||||
(interactive)
|
(interactive)
|
||||||
(conlanging//replace-char-by-table latin-to-native-table))
|
(conlanging//replace-char-by-table conlanging//matter-latin-to-native))
|
||||||
|
|
||||||
(defun conlanging/matter-to-latex-runes ()
|
(defun conlanging/matter-to-latex ()
|
||||||
"Replaces transliterated Mattér by its corresponding runes"
|
"Replaces transliterated Mattér by its corresponding runes"
|
||||||
(interactive)
|
(interactive)
|
||||||
(conlanging//replace-char-by-table latin-to-latex-runes))
|
(conlanging//replace-char-by-table conlanging//matter-latin-to-latex-runes))
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
; Einnlanda ;
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
(defun conlanging/einnlanda-to-runes ()
|
||||||
|
"Replaces transliterated Mattér to its runic writing system"
|
||||||
|
(interactive)
|
||||||
|
(conlanging//replace-char-by-table conlanging//einnlanda-latin-to-runes))
|
||||||
|
|
||||||
|
(defun conlanging/einnlanda-to-latex ()
|
||||||
|
"Replaces transliterated Mattér by its corresponding runes"
|
||||||
|
(interactive)
|
||||||
|
(conlanging//replace-char-by-table conlanging//einnlanda-latin-to-latex-runes))
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
(spacemacs/declare-prefix "olt" "Tãso")
|
(spacemacs/declare-prefix "olt" "Tãso")
|
||||||
(spacemacs/declare-prefix "olto" "taso.org")
|
(spacemacs/declare-prefix "olto" "taso.org")
|
||||||
(spacemacs/declare-prefix-for-mode 'org-mode "ml" "conlanging")
|
(spacemacs/declare-prefix-for-mode 'org-mode "ml" "conlanging")
|
||||||
|
(spacemacs/declare-prefix-for-mode 'org-mode "mle" "Einnlanda")
|
||||||
(spacemacs/declare-prefix-for-mode 'org-mode "mlm" "Mattér")
|
(spacemacs/declare-prefix-for-mode 'org-mode "mlm" "Mattér")
|
||||||
|
|
||||||
(spacemacs/set-leader-keys
|
(spacemacs/set-leader-keys
|
||||||
@ -38,6 +39,8 @@
|
|||||||
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
||||||
"lmr" 'conlanging/matter-to-runes
|
"lmr" 'conlanging/matter-to-runes
|
||||||
"lml" 'conlanging/matter-to-native-latin
|
"lml" 'conlanging/matter-to-native-latin
|
||||||
"lmL" 'conlanging/matter-to-latex-runes)
|
"lmL" 'conlanging/matter-to-latex
|
||||||
|
"ler" 'conlanging/einnlanda-to-runes
|
||||||
|
"lel" 'conlanging/einnlanda-to-latex)
|
||||||
|
|
||||||
;;; keybindings.el ends here
|
;;; keybindings.el ends here
|
||||||
|
Reference in New Issue
Block a user