mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
(eo)(pronouns) still only display nomative pronoun as short, no slash notation
This commit is contained in:
parent
9cd55a9bd1
commit
63406f7fb6
@ -31,7 +31,7 @@ pronouns:
|
||||
- 'الشخص (ب) تستخدم {/هي=هي/لها}، لذا عندما تتحدث عن الشخص (أ) تستخدم الضمائر "هي/لها" للإشارة إليها.'
|
||||
- 'الشخص (ج) يستخدم {/هو=هو/له}، لذا عندما يتحدث عن الشخص (أ) يستخدم الضمائر "هو/له" للإشارة إليه.'
|
||||
others: 'الضمائر الأخرى'
|
||||
threeForms: true
|
||||
shortMorphemes: 3
|
||||
|
||||
pronunciation:
|
||||
enabled: true
|
||||
|
@ -123,9 +123,10 @@ export interface PronounsConfig {
|
||||
*/
|
||||
others?: string;
|
||||
/**
|
||||
* display three morphemes for a pronoun by default
|
||||
* overwrites number of morphemes displayed in the pronoun short
|
||||
* @default 2
|
||||
*/
|
||||
threeForms?: boolean;
|
||||
shortMorphemes?: number;
|
||||
/**
|
||||
* configure subdomains and paths so that the link reads like a sentence
|
||||
*/
|
||||
|
@ -85,6 +85,7 @@ pronouns:
|
||||
- 'Person B uses {/she=she/her}, so when she talks about person A, she uses “she/her” to refer to her.'
|
||||
- 'Person C uses {/ze=ze/hir} interchangeably with {/fae=fæ/fær}, so when ze talks about person A, fea uses either ze/hir or fæ/fær to refer to fær.'
|
||||
others: 'Other pronouns'
|
||||
shortMorphemes: 1
|
||||
|
||||
pronunciation:
|
||||
enabled: false
|
||||
|
@ -19,7 +19,7 @@ pronouns:
|
||||
null: false
|
||||
emoji: false
|
||||
others: 'Outros pronomes'
|
||||
threeForms: true
|
||||
shortMorphemes: 3
|
||||
|
||||
pronunciation:
|
||||
enabled: true
|
||||
|
@ -37,7 +37,7 @@ pronouns:
|
||||
reflexive: '#zelf'
|
||||
examples: ['💫', '💙']
|
||||
others: 'Andere voornaamwoorden'
|
||||
threeForms: true
|
||||
shortMorphemes: 3
|
||||
|
||||
pronunciation:
|
||||
enabled: true
|
||||
|
@ -19,7 +19,7 @@ pronouns:
|
||||
null: false
|
||||
emoji: false
|
||||
others: 'Outros pronomes'
|
||||
threeForms: true
|
||||
shortMorphemes: 3
|
||||
|
||||
pronunciation:
|
||||
enabled: true
|
||||
|
@ -89,7 +89,7 @@ pronouns:
|
||||
- 'Persoana B folosește {/ea=ea/ei}, deci când ea vorbește despre persoana A, ea folosește „ea/ei” să se refere la ea.'
|
||||
- 'Persoana C folosește {/ze/hir/însuși=ze/hir} substituibil cu {/fæ/fær/însăși=fæ/fær}, deci când ze vorbește despre persoana A, fæ folosește ori ze/hir or fæ/fær să se refere la fæ.'
|
||||
others: 'Alte pronume'
|
||||
threeForms: true
|
||||
shortMorphemes: 3
|
||||
|
||||
pronunciation:
|
||||
enabled: true
|
||||
|
@ -77,7 +77,7 @@ pronouns:
|
||||
- ['Екатерина Новосельских', 'Е. Новосельских']
|
||||
- ['Иван Иванович Иванов', 'И. И. Иванов']
|
||||
others: 'Другие местоимения'
|
||||
threeForms: true
|
||||
shortMorphemes: 3
|
||||
|
||||
pronunciation:
|
||||
enabled: true
|
||||
|
@ -77,7 +77,7 @@ pronouns:
|
||||
- ['Гліб Сірко', 'Г. Сірко']
|
||||
- ['Іван Іванович Іванов', 'І. І. Іванов']
|
||||
others: 'Інші займенники'
|
||||
threeForms: true
|
||||
shortMorphemes: 3
|
||||
|
||||
pronunciation:
|
||||
enabled: false
|
||||
|
@ -449,7 +449,7 @@ export class Pronoun {
|
||||
nameOptions(): string[] {
|
||||
const options: Set<string> = new Set();
|
||||
const optionsN = (this.morphemes[MORPHEMES[0]] || '').split('&');
|
||||
if (MORPHEMES.length as number === 1) {
|
||||
if (MORPHEMES.length as number === 1 || this.config.pronouns.shortMorphemes === 1) {
|
||||
return optionsN;
|
||||
}
|
||||
const optionsG: string[] = (this.morphemes[MORPHEMES[1]] || '').split('&');
|
||||
@ -458,11 +458,11 @@ export class Pronoun {
|
||||
for (let i = 0; i < optionsN.length; i++) {
|
||||
const optionN = optionsN[i];
|
||||
let optionG = optionsG[i < optionsG.length - 1 ? i : optionsG.length - 1];
|
||||
if (optionN === optionG && optionsGAlt.length && !this.config.pronouns.threeForms) {
|
||||
if (optionN === optionG && optionsGAlt.length && this.config.pronouns.shortMorphemes !== 3) {
|
||||
optionG = optionsGAlt[i < optionsGAlt.length - 1 ? i : optionsGAlt.length - 1];
|
||||
}
|
||||
let nameOption = `${optionN}/${optionG}`;
|
||||
if (this.config.pronouns.threeForms) {
|
||||
if (this.config.pronouns.shortMorphemes === 3) {
|
||||
let thirdForms = (this.morphemes[MORPHEMES[2]] || '').split('&');
|
||||
if (this.config.locale === 'ru' || this.config.locale === 'ua') {
|
||||
thirdForms = thirdForms.map((x) => `[-${x}]`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user