#144 [es] allow /=.../ convention for pronunciation (no IPA)
This commit is contained in:
parent
b6ef8c4b9f
commit
c6a5416f0b
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<span>
|
<span>
|
||||||
{{prepend}}{{ pronoun.getMorpheme(morpheme, counter) }}{{append}}
|
{{prepend}}{{ pronoun.getMorpheme(morpheme, counter) }}{{append}}
|
||||||
<span v-if="config.pronunciation.enabled && pronoun.pronounceable && pronoun.getPronunciation(morpheme, counter)" class="text-muted">
|
<span v-if="config.pronunciation.enabled && pronoun.pronounceable && pronoun.getPronunciation(morpheme, counter) && !pronoun.getPronunciation(morpheme, counter).startsWith('=')" class="text-muted">
|
||||||
/{{prependPr}}{{pronoun.getPronunciation(morpheme, counter)}}{{appendPr}}/
|
/{{prependPr}}{{pronoun.getPronunciation(morpheme, counter)}}{{appendPr}}/
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -59,7 +59,10 @@ export class Example {
|
||||||
const morpheme = pronoun.getMorpheme(m);
|
const morpheme = pronoun.getMorpheme(m);
|
||||||
|
|
||||||
return pronunciation
|
return pronunciation
|
||||||
? `<phoneme alphabet="ipa" ph="${pronunciation}">${morpheme}</phoneme>`
|
? (pronunciation.startsWith('=')
|
||||||
|
? pronunciation.substring(1)
|
||||||
|
: `<phoneme alphabet="ipa" ph="${pronunciation}">${morpheme}</phoneme>`
|
||||||
|
)
|
||||||
: morpheme;
|
: morpheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue