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

View File

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