(refactor)(pronouns) replace <GrammarTables> component by declaring grammar tables in config.suml

This commit is contained in:
Valentyne Stigloher 2025-04-19 12:42:12 +02:00
parent c1f2ad65f4
commit acddb91946
40 changed files with 290 additions and 810 deletions

View File

@ -12,12 +12,10 @@ const props = defineProps<{
showSources?: boolean;
}>();
const GrammarTables = useLocaleComponent('pronouns', 'GrammarTables');
const { $translator: translator } = useNuxtApp();
const config = useConfig();
const [pronounLibrary, examples] = await Promise.all([loadPronounLibrary(config), loadPronounExamples()]);
const [pronounLibrary, pronounExamples] = await Promise.all([loadPronounLibrary(config), loadPronounExamples()]);
const glue = ` ${translator.translate('pronouns.or')} `;
@ -33,7 +31,7 @@ useSimpleHead({
const { data: sources } = useFetch('/api/sources', { lazy: true });
const exampleCategories = ExampleCategory.from(examples, config);
const exampleCategories = ExampleCategory.from(pronounExamples, config);
const nameOptions = props.pronoun.nameOptions();
const pronounGroup = pronounLibrary.find(props.pronoun);
@ -181,7 +179,7 @@ const counterFast = () => {
<AdPlaceholder :phkey="['content-0', 'content-mobile-0']" />
<GrammarTables :selected-pronoun="pronoun" :comprehensive="comprehensive" :counter="counter" />
<PronounsGrammarTables :pronoun :counter :comprehensive :pronoun-examples />
<AdPlaceholder :phkey="['content-1', 'content-mobile-1']" />

View File

@ -1,34 +1,36 @@
<script setup lang="ts">
import type { Pronoun } from '~/src/classes.ts';
import { loadPronounExamples } from '~/src/data.ts';
import type { Pronoun, PronounExample } from '~/src/classes.ts';
import type { Example } from '~/src/language/examples.ts';
import type { GrammarTableDefinition } from '~/src/language/grammarTables.ts';
const props = defineProps<{
selectedPronoun: Pronoun;
comprehensive: boolean;
pronoun: Pronoun;
counter: number;
pronounExamples: PronounExample[];
comprehensive: boolean;
}>();
const config = useConfig();
const grammarTables = computed((): GrammarTableDefinition[] => {
const grammarTables = config.pronouns.grammarTables as
{ simple: GrammarTableDefinition[]; comprehensive: GrammarTableDefinition[] };
return props.comprehensive ? grammarTables.comprehensive : grammarTables.simple;
if (!config.pronouns.grammarTables) {
return [];
}
if (Array.isArray(config.pronouns.grammarTables)) {
return config.pronouns.grammarTables;
}
return props.comprehensive ? config.pronouns.grammarTables.comprehensive : config.pronouns.grammarTables.simple;
});
const exampleValues = computed(() => props.selectedPronoun.toExampleValues(props.counter));
const pronounExamples = await loadPronounExamples();
const exampleValues = computed(() => props.pronoun.toExampleValues(props.counter));
const examples = computed((): Example[] => {
return pronounExamples.map((pronounExample) => pronounExample.example(props.selectedPronoun, props.counter));
return props.pronounExamples.map((pronounExample) => pronounExample.example(props.pronoun, props.counter));
});
</script>
<template>
<section>
<section v-if="grammarTables.length > 0">
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>

View File

@ -1,11 +0,0 @@
<template>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -1,40 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th>Subject</th>
<th>Object</th>
<th>Possessive determiner</th>
<th>Possessive pronoun</th>
<th>Reflexive</th>
</tr>
</thead>
<tbody>
<tr>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_subject" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_object" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_determiner" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="reflexive" :counter="counter" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -1 +0,0 @@
<template></template>

View File

@ -16,6 +16,29 @@ pronouns:
- 'possessive_determiner'
- 'possessive_pronoun'
- 'reflexive'
grammarTables:
-
columnHeader:
-
name: 'Subject'
-
name: 'Object'
-
name: 'Possessive determiner'
-
name: 'Possessive pronoun'
-
name: 'Reflexive'
sections:
-
variants:
-
morphemeCells:
- 'pronoun_subject'
- 'pronoun_object'
- 'possessive_determiner'
- 'possessive_pronoun'
- 'reflexive'
route: 'pronouns'
any: 'any'
plurals: true

View File

@ -1,40 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th>Subject</th>
<th>Object</th>
<th>Possessive determiner</th>
<th>Possessive pronoun</th>
<th>Reflexive</th>
</tr>
</thead>
<tbody>
<tr>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_subject" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_object" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_determiner" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="reflexive" :counter="counter" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -1 +0,0 @@
<template></template>

View File

@ -19,6 +19,47 @@ pronouns:
- 'plural_direct_object_pronoun'
- 'inflection'
- 'inflection_c'
grammarTables:
-
columnHeader:
-
name: 'Pronombre'
-
name: 'Pr. de objeto directo'
-
name: 'Artículo determinado'
-
name: 'Artículo indeterminado'
-
name: 'Flexión'
sections:
-
header:
name: 'Singular'
variants:
-
morphemeCells:
- 'pronoun'
- 'direct_object_pronoun'
- 'definite_article'
- 'indefinite_article'
-
morpheme: 'inflection'
prefix: '-'
-
header:
name: 'Plural'
variants:
-
morphemeCells:
- 'plural_pronoun'
- 'plural_direct_object_pronoun'
- 'plural_definite_article'
- 'plural_indefinite_article'
-
morpheme: 'inflection'
prefix: '-'
suffix: 's'
route: 'pronombres'
any: 'cualquiera'
plurals: false

View File

@ -1,50 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th></th>
<th>Pronombre</th>
<th>Pr. de objeto directo</th>
<th>Artículo determinado</th>
<th>Artículo indeterminado</th>
<th>Flexión</th>
</tr>
</thead>
<tbody>
<tr>
<th>Singular</th>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="direct_object_pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="definite_article" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="indefinite_article" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="inflection" :counter="counter" prepend="-" /></td>
</tr>
<tr>
<th>Plural</th>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="plural_pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="plural_direct_object_pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="plural_definite_article" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="plural_indefinite_article" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="inflection" :counter="counter" prepend="-" append="s" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -1,40 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th>Subject</th>
<th>Object</th>
<th>Possessive determiner</th>
<th>Possessive pronoun</th>
<th>Reflexive</th>
</tr>
</thead>
<tbody>
<tr>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_subject" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_object" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_determiner" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="reflexive" :counter="counter" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -18,6 +18,26 @@ pronouns:
- 'adjective_ao'
- 'adjective_ur_t'
- 'adjective_ur_urt'
grammarTables:
-
columnHeader:
-
name: 'Hvørfall'
-
name: 'Hvønnfall'
-
name: 'Hvørjumfall'
-
name: 'Hvørsfall'
sections:
-
variants:
-
morphemeCells:
- 'pronoun_nominative'
- 'pronoun_accusative'
- 'pronoun_dative'
- 'pronoun_genitive'
route: 'fornøvn'
any: 'øll'
plurals: true

View File

@ -1,38 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th>Hvørfall</th>
<th>Hvønnfall</th>
<th>Hvørjumfall</th>
<th>Hvørsfall</th>
</tr>
</thead>
<tbody>
<tr>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_nominative" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_accusative" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_dative" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_genitive" :counter="counter" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -17,6 +17,26 @@ pronouns:
- 'inflection_x'
- 'inflection_e'
- 'inflection_n'
grammarTables:
-
columnHeader:
-
name: 'Sujet'
-
name: 'Objet direct'
-
name: 'Objet indirect'
-
name: 'Possessif'
sections:
-
variants:
-
morphemeCells:
- 'pronoun_subject'
- 'pronoun_object'
- 'pronoun_disjunctive'
- 'pronoun_possessive'
route: 'pronoms'
any: 'n-importe'
plurals: true

View File

@ -1,38 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th>Sujet</th>
<th>Objet direct</th>
<th>Objet indirect</th>
<th>Possessif</th>
</tr>
</thead>
<tbody>
<tr>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_subject" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_object" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_disjunctive" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_possessive" :counter="counter" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -1,40 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th>Subject</th>
<th>Object</th>
<th>Possessive determiner</th>
<th>Possessive pronoun</th>
<th>Reflexive</th>
</tr>
</thead>
<tbody>
<tr>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_subject" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_object" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_determiner" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="reflexive" :counter="counter" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -1,40 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th>Subject</th>
<th>Object</th>
<th>Possessive determiner</th>
<th>Possessive pronoun</th>
<th>Reflexive</th>
</tr>
</thead>
<tbody>
<tr>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_subject" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_object" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_determiner" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="reflexive" :counter="counter" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -1,38 +0,0 @@
<script setup lang="ts">
import type { Pronoun } from '~/src/classes.ts';
import { loadPronounExamples } from '~/src/data.ts';
import type { Example } from '~/src/language/examples.ts';
const props = defineProps<{
selectedPronoun: Pronoun;
counter: number;
}>();
const config = useConfig();
const grammarTables = config.pronouns.grammarTables;
const exampleValues = computed(() => props.selectedPronoun.toExampleValues(props.counter));
const pronounExamples = await loadPronounExamples();
const examples = computed((): Example[] => {
return pronounExamples.map((pronounExample) => pronounExample.example(props.selectedPronoun, props.counter));
});
</script>
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<GrammarTable
v-for="(grammarTable, t) in grammarTables"
:key="t"
:grammar-table="grammarTable"
:example-values
:examples
/>
</section>
</template>

View File

@ -1 +0,0 @@
<template></template>

View File

@ -1,40 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th>Subject</th>
<th>Object</th>
<th>Possessive determiner</th>
<th>Possessive pronoun</th>
<th>Reflexive</th>
</tr>
</thead>
<tbody>
<tr>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_subject" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_object" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_determiner" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="reflexive" :counter="counter" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -19,6 +19,47 @@ pronouns:
- 'plural_direct_object_pronoun'
- 'inflection'
- 'inflection_l'
grammarTables:
-
columnHeader:
-
name: 'Pronombre'
-
name: 'Pr. de objekto direkto'
-
name: 'Artikolo determinado'
-
name: 'Artikolo indeterminado'
-
name: 'Fleksyon'
sections:
-
header:
name: 'Singolar'
variants:
-
morphemeCells:
- 'pronoun'
- 'direct_object_pronoun'
- 'definite_article'
- 'indefinite_article'
-
morpheme: 'inflection'
prefix: '-'
-
header:
name: 'Plural'
variants:
-
morphemeCells:
- 'plural_pronoun'
- 'plural_direct_object_pronoun'
- 'plural_definite_article'
- 'plural_indefinite_article'
-
morpheme: 'inflection'
prefix: '-'
suffix: 's'
route: 'pronombres'
any: 'kualkiera'
plurals: false

View File

@ -1,50 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th></th>
<th>Pronombre</th>
<th>Pr. de objekto direkto</th>
<th>Artikolo determinado</th>
<th>Artikolo indeterminado</th>
<th>Fleksyon</th>
</tr>
</thead>
<tbody>
<tr>
<th>Singolar</th>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="direct_object_pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="definite_article" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="indefinite_article" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="inflection" :counter="counter" prepend="-" /></td>
</tr>
<tr>
<th>Plural</th>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="plural_pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="plural_direct_object_pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="plural_definite_article" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="plural_indefinite_article" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="inflection" :counter="counter" prepend="-" append="s" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -13,6 +13,23 @@ pronouns:
- 'pronoun_subject'
- 'pronoun_object'
- 'possessive'
grammarTables:
-
columnHeader:
-
name: 'Subjekt'
-
name: 'Objekt'
-
name: 'Possessiv'
sections:
-
variants:
-
morphemeCells:
- 'pronoun_subject'
- 'pronoun_object'
- 'possessive'
any: 'hvilke som helst'
plurals: false
honorifics: false

View File

@ -1,36 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th>Subjekt</th>
<th>Objekt</th>
<th>Possessiv</th>
</tr>
</thead>
<tbody>
<tr>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_subject" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_object" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive" :counter="counter" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -14,6 +14,29 @@ pronouns:
- 'pronominal_poss'
- 'predicative_poss'
- 'dative'
grammarTables:
-
columnHeader:
-
name: 'Onderwerp'
-
name: 'Lijdend voorwerp'
-
name: 'Meewerkend voorwerp'
-
name: 'Bezittelijk (bijvoeglijk)'
-
name: 'Bezittelijk (zelfstandig)'
sections:
-
variants:
-
morphemeCells:
- 'nominative'
- 'accusative'
- 'dative'
- 'pronominal_poss'
- 'predicative_poss'
route: 'voornaamwoorden'
any: 'elk'
plurals: false

View File

@ -1,40 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th>Onderwerp</th>
<th>Lijdend voorwerp</th>
<th>Meewerkend voorwerp</th>
<th>Bezittelijk (bijvoeglijk)</th>
<th>Bezittelijk (zelfstandig)</th>
</tr>
</thead>
<tbody>
<tr>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="nominative" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="accusative" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="dative" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronominal_poss" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="predicative_poss" :counter="counter" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -13,6 +13,23 @@ pronouns:
- 'pronoun_subject'
- 'pronoun_object'
- 'possessive'
grammarTables:
-
columnHeader:
-
name: 'Subjekt'
-
name: 'Objekt'
-
name: 'Possessiv'
sections:
-
variants:
-
morphemeCells:
- 'pronoun_subject'
- 'pronoun_object'
- 'possessive'
any: 'kva som helst'
plurals: false
honorifics: false

View File

@ -1,36 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th>Subjekt</th>
<th>Objekt</th>
<th>Possessiv</th>
</tr>
</thead>
<tbody>
<tr>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_subject" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_object" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive" :counter="counter" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -1 +0,0 @@
<template></template>

View File

@ -25,6 +25,43 @@ pronouns:
- 'possessive'
- 'demonstrative_ss'
- 'demonstrative_st'
grammarTables:
-
columnHeader:
-
name: 'Artigo definido'
-
name: 'Artigo indefinido'
-
name: 'Pronome pessoal'
-
name: 'Flexão'
sections:
-
header:
name: 'Singular'
variants:
-
morphemeCells:
- 'definite_article'
- 'indefinite_article'
- 'pronoun'
-
morpheme: 'inflection'
prefix: '-'
-
header:
name: 'Plural'
variants:
-
morphemeCells:
- 'plural_definite_article'
- 'plural_indefinite_article'
- 'plural_pronoun'
-
morpheme: 'inflection'
prefix: '-'
suffix: 's'
route: 'pronomes'
any: 'qualquer'
plurals: false

View File

@ -1,47 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th></th>
<th>Artigo definido</th>
<th>Artigo indefinido</th>
<th>Pronome pessoal</th>
<th>Flexão</th>
</tr>
</thead>
<tbody>
<tr>
<th>Singular</th>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="definite_article" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="indefinite_article" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="inflection" :counter="counter" prepend="-" /></td>
</tr>
<tr>
<th>Plural</th>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="plural_definite_article" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="plural_indefinite_article" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="plural_pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="inflection" :counter="counter" prepend="-" append="s" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -14,6 +14,23 @@ pronouns:
- 'strengthening'
- 'first_article'
- 'second_article'
grammarTables:
-
columnHeader:
-
name: 'Nominativ/Acuzativ/Vocativ'
-
name: 'Dativ/Genitiv'
-
name: 'Întărire'
sections:
-
variants:
-
morphemeCells:
- 'pronoun_n'
- 'pronoun_dg'
- 'strengthening'
route: 'pronume'
any: 'oricare'
plurals: true

View File

@ -1,36 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th>Nominativ/Acuzativ/Vocativ</th>
<th>Dativ/Genitiv</th>
<th>Întărire</th>
</tr>
</thead>
<tbody>
<tr>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_n" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_dg" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="strengthening" :counter="counter" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -12,6 +12,23 @@ pronouns:
- 'pronoun_nominative'
- 'pronoun_object'
- 'possessive'
grammarTables:
-
columnHeader:
-
name: 'Subjekt'
-
name: 'Objekt'
-
name: 'Possessiv'
sections:
-
variants:
-
morphemeCells:
- 'pronoun_nominative'
- 'pronoun_object'
- 'possessive'
route: 'pronomen'
any: 'alla'
plurals: false

View File

@ -1,36 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th>Subjekt</th>
<th>Objekt</th>
<th>Possessiv</th>
</tr>
</thead>
<tbody>
<tr>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_nominative" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_object" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive" :counter="counter" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -1 +0,0 @@
<template></template>

View File

@ -1,40 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th>Subject</th>
<th>Object</th>
<th>Possessive determiner</th>
<th>Possessive pronoun</th>
<th>Reflexive</th>
</tr>
</thead>
<tbody>
<tr>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_subject" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_object" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_determiner" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="reflexive" :counter="counter" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -1 +0,0 @@
<template></template>

View File

@ -1,40 +0,0 @@
<template>
<section>
<h2 class="h4">
<Icon v="spell-check" />
<T>pronouns.grammarTable</T><T>quotation.colon</T>
</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tr>
<th>Subject</th>
<th>Object</th>
<th>Possessive determiner</th>
<th>Possessive pronoun</th>
<th>Reflexive</th>
</tr>
</thead>
<tbody>
<tr>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_subject" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="pronoun_object" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_determiner" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="possessive_pronoun" :counter="counter" /></td>
<td><PronounsMorphemeWithPronunciation :pronoun="selectedPronoun" morpheme="reflexive" :counter="counter" /></td>
</tr>
</tbody>
</table>
</div>
</section>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>

View File

@ -1,11 +0,0 @@
<template>
</template>
<script>
export default {
props: {
selectedPronoun: { required: true },
counter: { required: true },
},
};
</script>