From 19a87a2ca57d3fc3b2fa8bd143b9b7052fef38c9 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Tue, 23 Aug 2022 17:26:19 +0400 Subject: [PATCH] oops --- package.json | 2 +- src/lib/phrase-building/compile.ts | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 235e916..06dc653 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "3.7.6", + "version": "3.7.7", "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", diff --git a/src/lib/phrase-building/compile.ts b/src/lib/phrase-building/compile.ts index 09d649a..6d922f9 100644 --- a/src/lib/phrase-building/compile.ts +++ b/src/lib/phrase-building/compile.ts @@ -1,7 +1,7 @@ import * as T from "../../types"; import { capitalizeFirstLetter, - concatPsString, getLong, getShort, + concatPsString, getLong, getShort, isVerbBlock, } from "../p-text-helpers"; import { negativeParticle } from "../../lib/grammar-units"; import * as grammarUnits from "../grammar-units"; @@ -21,6 +21,7 @@ import { getSubjectSelectionFromBlocks, getVerbFromBlocks, hasEquativeWithLengths, + isRenderedVerbB, specifyBlockLength, specifyEquativeLength, } from "./blocks-utils"; @@ -166,7 +167,10 @@ function combineIntoText(piecesWVars: (T.Block | T.Kid | T.PsString)[][], subjec const rest = pieces.slice(1); const firstPs = ("p" in first) ? [first] - : (blankOut?.equative && "block" in first && first.block.type === "equative") + : ( + (blankOut?.equative && "block" in first && first.block.type === "equative") || + (blankOut?.verb && "block" in first && isRenderedVerbB(first.block)) + ) ? [blank] : ((blankOut?.ba) && "kid" in first && first.kid.type === "ba") ? [kidsBlank]