mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-21 19:45:23 -04:00
(grammar) allow explanatory text between grammar tables
This commit is contained in:
parent
5caa8b10f5
commit
f6c919bfbf
@ -12,7 +12,7 @@ const props = defineProps<{
|
||||
|
||||
const config = useConfig();
|
||||
|
||||
const grammarTables = computed((): GrammarTableDefinition[] => {
|
||||
const grammarTables = computed((): (GrammarTableDefinition | string)[] => {
|
||||
if (!config.pronouns.grammarTables) {
|
||||
return [];
|
||||
}
|
||||
@ -35,12 +35,19 @@ const examples = computed((): Example[] => {
|
||||
<Icon v="spell-check" />
|
||||
<T>pronouns.grammarTable</T><T>quotation.colon</T>
|
||||
</h2>
|
||||
<GrammarTable
|
||||
<template
|
||||
v-for="(grammarTable, t) in grammarTables"
|
||||
:key="t"
|
||||
:grammar-table="grammarTable"
|
||||
:example-values
|
||||
:examples
|
||||
/>
|
||||
>
|
||||
<p v-if="typeof grammarTable === 'string'" class="small">
|
||||
<LinkedText :text="grammarTable" />
|
||||
</p>
|
||||
<GrammarTable
|
||||
v-else
|
||||
:grammar-table="grammarTable"
|
||||
:example-values
|
||||
:examples
|
||||
/>
|
||||
</template>
|
||||
</section>
|
||||
</template>
|
||||
|
@ -40,6 +40,80 @@ pronouns:
|
||||
- 'verb_go'
|
||||
- 'verb_o'
|
||||
- 'honorific'
|
||||
grammarTables:
|
||||
-
|
||||
columnHeader:
|
||||
-
|
||||
name: 'Mianownik'
|
||||
-
|
||||
name: 'Dopełniacz'
|
||||
-
|
||||
name: 'Celownik'
|
||||
-
|
||||
name: 'Biernik'
|
||||
-
|
||||
name: 'Narzędnik'
|
||||
-
|
||||
name: 'Miejscownik'
|
||||
sections:
|
||||
-
|
||||
variants:
|
||||
-
|
||||
morphemeCells:
|
||||
- 'pronoun_n'
|
||||
-
|
||||
-
|
||||
morpheme: 'pronoun_g'
|
||||
-
|
||||
morpheme: 'pronoun_g_acc'
|
||||
-
|
||||
morpheme: 'pronoun_g_prep'
|
||||
-
|
||||
-
|
||||
morpheme: 'pronoun_d'
|
||||
-
|
||||
morpheme: 'pronoun_d_acc'
|
||||
-
|
||||
morpheme: 'pronoun_d_prep'
|
||||
-
|
||||
-
|
||||
morpheme: 'pronoun_a'
|
||||
-
|
||||
morpheme: 'pronoun_a_acc'
|
||||
-
|
||||
morpheme: 'pronoun_a_prep'
|
||||
- 'pronoun_i'
|
||||
- 'pronoun_l'
|
||||
- >
|
||||
Skąd w polszczyźnie tyle różnych form zaimków? Zapraszamy do lektury artykułu:
|
||||
{/jak-dzia%C5%82aj%C4%85-zaimki=Co warto wiedzieć o używaniu (i tworzeniu) zaimków?}
|
||||
-
|
||||
columnHeader:
|
||||
-
|
||||
name: '1 os.'
|
||||
-
|
||||
name: '2 os.'
|
||||
-
|
||||
name: '3 os.'
|
||||
-
|
||||
name: 'Przymiotniki'
|
||||
sections:
|
||||
-
|
||||
variants:
|
||||
-
|
||||
morphemeCells:
|
||||
-
|
||||
morpheme: 'verb_middle_inter'
|
||||
prefix: '–'
|
||||
-
|
||||
morpheme: 'verb_middle_inter'
|
||||
prefix: '–'
|
||||
-
|
||||
morpheme: 'verb_end_about'
|
||||
prefix: '–'
|
||||
-
|
||||
morpheme: 'adjective_n'
|
||||
prefix: '–'
|
||||
route: 'zaimki'
|
||||
any: 'dowolne'
|
||||
plurals: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { MorphemeValue } from '~/src/language/morphemes.ts';
|
||||
|
||||
export type GrammarTablesDefinition = GrammarTableDefinition[]
|
||||
| { simple: GrammarTableDefinition[]; comprehensive: GrammarTableDefinition[] };
|
||||
export type GrammarTablesDefinition = (GrammarTableDefinition | string)[]
|
||||
| { simple: (GrammarTableDefinition | string)[]; comprehensive: (GrammarTableDefinition | string)[] };
|
||||
|
||||
export interface Header {
|
||||
name: string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user