From 20d3cb30841f8988c0f16a4a10f86e3a998ee126 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Wed, 15 Sep 2021 04:32:47 -0700 Subject: [PATCH] Redesigning Saimiar anciliary information --- src/App.scss | 15 ++++++++++++- src/Entries.tsx | 58 +++++++++++++++++++++++++------------------------ 2 files changed, 44 insertions(+), 29 deletions(-) diff --git a/src/App.scss b/src/App.scss index 87b2334..ded7e96 100644 --- a/src/App.scss +++ b/src/App.scss @@ -41,6 +41,19 @@ input { padding-bottom: 1em; } -.synclass { +.additionalNotes { color: #a63333; } + +.semField { + font-variant: small-caps; + color: #6a3131; +} + +.saimiarNounMorpho { + color: #a63333; + i { + color: #6a3131; + + } +} diff --git a/src/Entries.tsx b/src/Entries.tsx index d10b636..0dab169 100644 --- a/src/Entries.tsx +++ b/src/Entries.tsx @@ -54,16 +54,11 @@ const EntryBase = (props: BaseProps) => { : Edit); }; - const expand = (evt) => { - evt.preventDefault(); - }; - return (
{ props.conlangEntry } { engTranslation } - Expand
@@ -77,38 +72,45 @@ const SaiEntry = (props: {entry: SaiEntryProps}) => { const synCategory = entry.syn_category; const isNominal = synCategory === "nominal"; + const barStyle = { + display: "inline-flex", + gap: "1em", + }; + + let morphology = null; + if (isNominal) { + const decl = declineSaimiar(entry); + if (decl) { + morphology = ( + Abs: {decl.abs}, Erg: {decl.erg}, Adp: {decl.adp}, + All: {decl.all}, Loc: {decl.loc}, Ell: {decl.ell}, + Inst: {decl.inst}, Rel: {decl.rel} + ); + } + } const langSpecific = ( -
- - { entry.syn_category } - { entry.morph_type ? `\t\t${entry.morph_type}` : null } -
- { isNominal ? formatMorphology(entry) : null } +
+ + + { entry.syn_category } + + + { entry.morph_type ? `\t\t${entry.morph_type}` : null } + + { entry.etym ? etym.: {entry.etym} + : null + } + { entry.semantic_field ? {entry.semantic_field} : null } +
+ { morphology }
); return ; }; -function formatMorphology(entry) { - const decl = declineSaimiar(entry); - if (!decl) { - return ""; - } - - return ( - Abs: {decl.abs}, Erg: {decl.erg}, - Adp: {decl.adp}, - All: {decl.all}, - Loc: {decl.loc}, - Ell: {decl.ell}, - Inst: {decl.inst}, - Rel: {decl.rel} - ); -} - const JutEntry = (props: {entry: JutEntryProps}) => { const {entry} = props;