mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-10 07:56:50 -04:00
#144 [es] allow /=.../ convention for pronunciation (no IPA)
This commit is contained in:
parent
58731dbb58
commit
0e913f93c7
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user