ability to avoid using tails on the roots and stems display

This commit is contained in:
lingdocs 2022-07-27 13:36:12 -05:00
parent 8da8afdd26
commit 8f559e0665
3 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@lingdocs/pashto-inflector",
"version": "3.5.8",
"version": "3.5.9",
"author": "lingdocs.com",
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
"homepage": "https://verbs.lingdocs.com",

View File

@ -23,6 +23,7 @@
<meta name="twitter:description" content="A playground for exploring Pashto verbs with all their forms and conjugations">
<meta name="twitter:image" content="https://verbs.lingdocs.com/android-chrome-512x512.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:creator" content="@lingdocs" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>Pashto Verb Explorer</title>

View File

@ -39,11 +39,12 @@ const title: CSSProperties = {
marginTop: "0.5rem",
};
export function RootsAndStems({ textOptions, info, hidePastParticiple, highlighted }: {
export function RootsAndStems({ textOptions, info, hidePastParticiple, highlighted, noTails }: {
textOptions: T.TextOptions,
info: T.NonComboVerbInfo | T.PassiveRootsStems,
hidePastParticiple?: boolean,
highlighted?: T.RootsOrStemsToHighlight,
noTails?: boolean,
}) {
const hasPerfectiveSplit = !!(info.root.perfectiveSplit || info.stem.perfectiveSplit);
const showPersInf = hasPersInfs(info);
@ -117,7 +118,7 @@ export function RootsAndStems({ textOptions, info, hidePastParticiple, highlight
<VerbInfoItemDisplay
item={pickPersInf(info.stem.imperfective, persInf)}
textOptions={textOptions}
tails
tails={!noTails}
/>
</div>
</div>
@ -129,7 +130,7 @@ export function RootsAndStems({ textOptions, info, hidePastParticiple, highlight
<VerbInfoItemDisplay
item={pickPersInf(perfectiveStem, persInf)}
textOptions={textOptions}
tails
tails={!noTails}
/>
</div>
</div>