Skip to content

Commit 2d02a30

Browse files
committed
common29/terms When generating transliterations, handle space and hyphen
1 parent d31926b commit 2d02a30

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

common29/terms.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,11 @@ function findWords (reg) {
507507
generatedTranscription = '' // if IPA has ␣ generate & store a transcription
508508
if (itemArray[IPA]===' ␣ ') {
509509
var termChars = [...itemArray[TERM]]
510-
for (t=1;t<termChars.length-1;t++) generatedTranscription += autoTranslitArray[termChars[t]]
510+
for (t=1;t<termChars.length-1;t++) {
511+
if (termChars[t] === ' ') generatedTranscription += ' '
512+
else if (termChars[t] === '-') generatedTranscription += '-'
513+
else generatedTranscription += autoTranslitArray[termChars[t]]
514+
}
511515
}
512516

513517
out += '<td class="tr ipaCol">'+itemArray[IPA]+'</td>'

0 commit comments

Comments
 (0)