Fix crash on unknown character
This commit allows any unknown characters to be passed in text fed to `conlanging-proto-nyqy-to-phonetics' without any crash. Unrecognized characters will just be ignored.
This commit is contained in:
parent
ff60fddaf4
commit
77799b0e96
@ -340,6 +340,7 @@ See `conlanging--proto-nyqy-phoneme'.")
|
|||||||
(equal (oref elem :grapheme)
|
(equal (oref elem :grapheme)
|
||||||
grapheme))
|
grapheme))
|
||||||
conlanging--proto-nyqy-phonetics)))
|
conlanging--proto-nyqy-phonetics)))
|
||||||
|
(when cur-phoneme
|
||||||
(if (oref cur-phoneme :is-consonant)
|
(if (oref cur-phoneme :is-consonant)
|
||||||
(progn
|
(progn
|
||||||
(when (eq dorsal 'undefined)
|
(when (eq dorsal 'undefined)
|
||||||
@ -349,7 +350,7 @@ See `conlanging--proto-nyqy-phoneme'.")
|
|||||||
(oref cur-phoneme :phoneme)
|
(oref cur-phoneme :phoneme)
|
||||||
(oref cur-phoneme :alt-phoneme))))
|
(oref cur-phoneme :alt-phoneme))))
|
||||||
(setq dorsal (not dorsal)))
|
(setq dorsal (not dorsal)))
|
||||||
(setq phonetics (concat phonetics (oref cur-phoneme :phoneme))))))
|
(setq phonetics (concat phonetics (oref cur-phoneme :phoneme)))))))
|
||||||
phonetics))
|
phonetics))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
Loading…
x
Reference in New Issue
Block a user