Add autoloads, fix name of function

Rename function `conlanging-nyqy-to-org' to
`conlanging-proto-nyqy-to-org' in order to be more accurate of the
language this function was written for
This commit is contained in:
Lucien Cartier-Tilet 2021-06-28 23:09:36 +02:00
parent de0f245545
commit ff60fddaf4
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 3 additions and 4 deletions

View File

@ -329,6 +329,7 @@ LANGUAGE must be one of the following values:
"List of Ñyqy characters and their phonetics equivalent. "List of Ñyqy characters and their phonetics equivalent.
See `conlanging--proto-nyqy-phoneme'.") See `conlanging--proto-nyqy-phoneme'.")
;;;###autoload
(defun conlanging-proto-nyqy-to-phonetics (text) (defun conlanging-proto-nyqy-to-phonetics (text)
"Return the phonetic equivalent of Proto-Ñyqy TEXT." "Return the phonetic equivalent of Proto-Ñyqy TEXT."
(let ((text (split-string (downcase text) "" t)) (let ((text (split-string (downcase text) "" t))
@ -351,7 +352,8 @@ See `conlanging--proto-nyqy-phoneme'.")
(setq phonetics (concat phonetics (oref cur-phoneme :phoneme)))))) (setq phonetics (concat phonetics (oref cur-phoneme :phoneme))))))
phonetics)) phonetics))
(defun conlanging-nyqy-to-org (text) ;;;###autoload
(defun conlanging-proto-nyqy-to-org (text)
"Return phonetic equivalent of TEXT for `org-mode' LaTeX and HTML exports. "Return phonetic equivalent of TEXT for `org-mode' LaTeX and HTML exports.
Text is formatted as either LaTeX code or HTML code for their respective exports." Text is formatted as either LaTeX code or HTML code for their respective exports."
(let ((phonetics (conlanging-proto-nyqy-to-phonetics text))) (let ((phonetics (conlanging-proto-nyqy-to-phonetics text)))
@ -362,9 +364,6 @@ Text is formatted as either LaTeX code or HTML code for their respective exports
text text
phonetics))) phonetics)))
(provide 'conlanging) (provide 'conlanging)
;;; conlanging.el ends here ;;; conlanging.el ends here