mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 04:34:15 -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 config = useConfig();
|
||||||
|
|
||||||
const grammarTables = computed((): GrammarTableDefinition[] => {
|
const grammarTables = computed((): (GrammarTableDefinition | string)[] => {
|
||||||
if (!config.pronouns.grammarTables) {
|
if (!config.pronouns.grammarTables) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
@ -35,12 +35,19 @@ const examples = computed((): Example[] => {
|
|||||||
<Icon v="spell-check" />
|
<Icon v="spell-check" />
|
||||||
<T>pronouns.grammarTable</T><T>quotation.colon</T>
|
<T>pronouns.grammarTable</T><T>quotation.colon</T>
|
||||||
</h2>
|
</h2>
|
||||||
<GrammarTable
|
<template
|
||||||
v-for="(grammarTable, t) in grammarTables"
|
v-for="(grammarTable, t) in grammarTables"
|
||||||
:key="t"
|
:key="t"
|
||||||
:grammar-table="grammarTable"
|
>
|
||||||
:example-values
|
<p v-if="typeof grammarTable === 'string'" class="small">
|
||||||
:examples
|
<LinkedText :text="grammarTable" />
|
||||||
/>
|
</p>
|
||||||
|
<GrammarTable
|
||||||
|
v-else
|
||||||
|
:grammar-table="grammarTable"
|
||||||
|
:example-values
|
||||||
|
:examples
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
@ -40,6 +40,80 @@ pronouns:
|
|||||||
- 'verb_go'
|
- 'verb_go'
|
||||||
- 'verb_o'
|
- 'verb_o'
|
||||||
- 'honorific'
|
- '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'
|
route: 'zaimki'
|
||||||
any: 'dowolne'
|
any: 'dowolne'
|
||||||
plurals: true
|
plurals: true
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import type { MorphemeValue } from '~/src/language/morphemes.ts';
|
import type { MorphemeValue } from '~/src/language/morphemes.ts';
|
||||||
|
|
||||||
export type GrammarTablesDefinition = GrammarTableDefinition[]
|
export type GrammarTablesDefinition = (GrammarTableDefinition | string)[]
|
||||||
| { simple: GrammarTableDefinition[]; comprehensive: GrammarTableDefinition[] };
|
| { simple: (GrammarTableDefinition | string)[]; comprehensive: (GrammarTableDefinition | string)[] };
|
||||||
|
|
||||||
export interface Header {
|
export interface Header {
|
||||||
name: string;
|
name: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user