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