#144 [es] allow /=.../ convention for pronunciation (no IPA)

This commit is contained in:
Avris 2020-12-22 11:18:52 +01:00
parent b6ef8c4b9f
commit c6a5416f0b
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<template>
<span>
{{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}}/
</span>
</span>

View File

@ -59,7 +59,10 @@ export class Example {
const morpheme = pronoun.getMorpheme(m);
return pronunciation
? `<phoneme alphabet="ipa" ph="${pronunciation}">${morpheme}</phoneme>`
? (pronunciation.startsWith('=')
? pronunciation.substring(1)
: `<phoneme alphabet="ipa" ph="${pronunciation}">${morpheme}</phoneme>`
)
: morpheme;
}