Skip to content
Snippets Groups Projects
Commit 194f4fc2 authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

Adjektiv-gruppene på plass

parent 5577c561
No related branches found
No related tags found
No related merge requests found
<!-- eslint-disable -->
<template>
<div>
<h1 class="article_header" v-for="(lemma, index) in lemmas" :key="index">
......@@ -7,15 +8,10 @@
<div class="inflection">
<div v-for="(lemma, index) in lemmas" :key="index">
<h4>{{lemma.lemma}}</h4>
<table v-for="(std, index) in lemma.paradigm_info" :key="index">
<tr>
<th rowspan="2">{{std.tags ? std.tags.join(', ') : ''}}</th>
<th v-for="(inflection, index) in std.inflection" :key="index">{{inflection.tags.join(', ')}}</th>
</tr>
<tr>
<td v-for="(inflection, index) in std.inflection" :key="index">{{inflection.word_form}}</td>
</tr>
</table>
<component v-for="(std, index) in lemma.paradigm_info"
:key="index"
:is="std.inflection_group.replace('/', '_')"
:standardisations="[std]"></component>
</div>
</div>
</details>
......@@ -23,7 +19,12 @@
</template>
<script>
/* eslint-disable */
import helpers from '../utils/helpers.js'
import ADJ from './inflection/Adjective.vue'
import ADJ_adv from './inflection/AdjectiveAdv.vue'
import ADJ_masc_fem from './inflection/AdjectiveMF.vue'
import ADJ_masc_fem_fem from './inflection/AdjectiveMF_F.vue'
export default {
name: 'Header',
......@@ -36,6 +37,10 @@ export default {
}
},
components: {
ADJ,
ADJ_adv,
ADJ_masc_fem,
ADJ_masc_fem_fem
}
}
</script>
......@@ -54,18 +59,6 @@ h1.article_header {
display: inline;
}
.inflection table {
border-collapse: collapse;
margin: 10px;
}
.inflection td, .inflection th {
border: solid;
border-width: 1px;
margin: 0px 0px 0px 0px;
padding: 3px;
}
details > summary {
padding: 2px 6px;
width: 15em;
......
<template>
<table>
<tr>
<th rowspan="2">Adjektiv</th><th colspan="3">Entall</th><th>Flertall</th><th colspan="3">Gradbøying</th>
</tr>
<tr>
<th>Hankjønn og hunkjønn</th>
<th>Intetkjønn</th>
<th>Bestemt form</th>
<th></th>
<th>Komparativ</th>
<th>Superlativ</th>
<th>Superlativ, bestemt form</th>
</tr>
<tr v-for="(std, index) in standardisations" :key="index">
<td></td>
<td>{{std.inflection[0].word_form}}</td>
<td>{{std.inflection[3].word_form}}</td>
<td>{{std.inflection[2].word_form}}</td>
<td>{{std.inflection[1].word_form}}</td>
<td>{{std.inflection[4].word_form}}</td>
<td>{{std.inflection[5].word_form}}</td>
<td>{{std.inflection[6].word_form}}</td>
</tr>
</table>
</template>
<script>
export default {
name: "ADJ",
props: {
standardisations: Array
}
}
</script>
<style scoped>
table {
border-collapse: collapse;
margin: 10px;
}
td, th {
border: solid;
border-width: 1px;
margin: 0px 0px 0px 0px;
padding: 3px;
}
</style>
<template>
<table>
<tr>
<th>Adjektiv, adverbtype</th><th>Positiv</th><th>Komparativ</th><th>Superlativ</th>
</tr>
<tr v-for="(std, index) in standardisations" :key="index">
<td></td>
<td>{{std.inflection[0].word_form}}</td>
<td>{{std.inflection[1].word_form}}</td>
<td>{{std.inflection[2].word_form}}</td>
</tr>
</table>
</template>
<script>
export default {
name: "ADJ_adv",
props: {
standardisations: Array
}
}
</script>
<style scoped>
table {
border-collapse: collapse;
margin: 10px;
}
td, th {
border: solid;
border-width: 1px;
margin: 0px 0px 0px 0px;
padding: 3px;
}
</style>
<template>
<table>
<tr>
<th rowspan="2">Adjektiv</th><th colspan="4">Entall</th><th>Flertall</th><th colspan="3">Gradbøying</th>
</tr>
<tr>
<th>Hankjønn</th>
<th>Hokjønn</th>
<th>Inkjekjønn</th>
<th>Bunden form</th>
<th></th>
<th>Komparativ</th>
<th>Superlativ</th>
<th>Superlativ, bunden form</th>
</tr>
<tr v-for="(std, index) in standardisations" :key="index">
<td></td>
<td>{{std.inflection[0].word_form}}</td>
<td>{{std.inflection[1].word_form}}</td>
<td>{{std.inflection[2].word_form}}</td>
<td>{{std.inflection[3].word_form}}</td>
<td>{{std.inflection[4].word_form}}</td>
<td>{{std.inflection[5].word_form}}</td>
<td>{{std.inflection[6].word_form}}</td>
<td>{{std.inflection[7].word_form}}</td>
</tr>
</table>
</template>
<script>
export default {
name: "ADJ_masc_fem",
props: {
standardisations: Array
}
}
</script>
<style scoped>
table {
border-collapse: collapse;
margin: 10px;
}
td, th {
border: solid;
border-width: 1px;
margin: 0px 0px 0px 0px;
padding: 3px;
}
</style>
<template>
<table>
<tr>
<th rowspan="2">Adjektiv</th><th colspan="4">Entall</th><th>Flertall</th><th colspan="3">Gradbøying</th>
</tr>
<tr>
<th>Hankjønn/Hokjønn</th>
<th>Hokjønn</th>
<th>Inkjekjønn</th>
<th>Bunden form</th>
<th></th>
<th>Komparativ</th>
<th>Superlativ</th>
<th>Superlativ, bunden form</th>
</tr>
<tr v-for="(std, index) in standardisations" :key="index">
<td></td>
<td>{{std.inflection[0].word_form}}</td>
<td>{{std.inflection[1].word_form}}</td>
<td>{{std.inflection[2].word_form}}</td>
<td>{{std.inflection[3].word_form}}</td>
<td>{{std.inflection[4].word_form}}</td>
<td>{{std.inflection[5].word_form}}</td>
<td>{{std.inflection[6].word_form}}</td>
<td>{{std.inflection[7].word_form}}</td>
</tr>
</table>
</template>
<script>
export default {
name: "ADJ_masc_fem_fem",
props: {
standardisations: Array
}
}
</script>
<style scoped>
table {
border-collapse: collapse;
margin: 10px;
}
td, th {
border: solid;
border-width: 1px;
margin: 0px 0px 0px 0px;
padding: 3px;
}
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment