combineIntoText exposed

This commit is contained in:
adueck 2023-07-27 21:39:06 +04:00
parent 6128dfa1d3
commit 742a1acf61
6 changed files with 202 additions and 240 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "pashto-inflector", "name": "pashto-inflector",
"version": "6.0.1", "version": "6.0.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "pashto-inflector", "name": "pashto-inflector",
"version": "6.0.1", "version": "6.0.2",
"hasInstallScript": true, "hasInstallScript": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {

View File

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

View File

@ -1,12 +1,12 @@
{ {
"name": "@lingdocs/ps-react", "name": "@lingdocs/ps-react",
"version": "6.0.1", "version": "6.0.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lingdocs/ps-react", "name": "@lingdocs/ps-react",
"version": "6.0.1", "version": "6.0.2",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@formkit/auto-animate": "^1.0.0-beta.3", "@formkit/auto-animate": "^1.0.0-beta.3",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lingdocs/ps-react", "name": "@lingdocs/ps-react",
"version": "6.0.1", "version": "6.0.2",
"description": "Pashto inflector library module with React components", "description": "Pashto inflector library module with React components",
"main": "dist/components/library.js", "main": "dist/components/library.js",
"module": "dist/components/library.js", "module": "dist/components/library.js",

View File

@ -6,12 +6,8 @@
* *
*/ */
import { import { conjugateVerb } from "./src/verb-conjugation";
conjugateVerb, import { inflectWord } from "./src/pashto-inflector";
} from "./src/verb-conjugation";
import {
inflectWord,
} from "./src/pashto-inflector";
import { import {
getVerbInfo, getVerbInfo,
getPassiveRootsAndStems, getPassiveRootsAndStems,
@ -20,13 +16,9 @@ import {
import { makeVPSelectionState } from "./src/phrase-building/verb-selection"; import { makeVPSelectionState } from "./src/phrase-building/verb-selection";
import { vpsReducer } from "./src/phrase-building/vps-reducer"; import { vpsReducer } from "./src/phrase-building/vps-reducer";
import { isPastTense } from "./src/phrase-building/vp-tools"; import { isPastTense } from "./src/phrase-building/vp-tools";
import { import { getInflectionPattern } from "./src/inflection-pattern";
getInflectionPattern, import { makePsString, removeFVarients } from "./src/accent-and-ps-utils";
} from "./src/inflection-pattern";
import {
makePsString,
removeFVarients,
} from "./src/accent-and-ps-utils";
import { import {
addToForm, addToForm,
concatPsString, concatPsString,
@ -46,12 +38,8 @@ import {
getLength, getLength,
psStringEquals, psStringEquals,
} from "./src/p-text-helpers"; } from "./src/p-text-helpers";
import { import { joiningTails } from "./src/misc-text";
joiningTails, import { getEnglishWord } from "./src/get-english-word";
} from "./src/misc-text";
import {
getEnglishWord,
} from "./src/get-english-word";
import { import {
standardizePashto, standardizePashto,
standardizePhonetics, standardizePhonetics,
@ -67,28 +55,20 @@ import {
getEnglishFromRendered, getEnglishFromRendered,
getPashtoFromRendered, getPashtoFromRendered,
} from "./src/phrase-building/np-tools"; // TODO should be one np-tools file? } from "./src/phrase-building/np-tools"; // TODO should be one np-tools file?
import { import { convertSpelling, revertSpelling } from "./src/convert-spelling";
convertSpelling,
revertSpelling,
} from "./src/convert-spelling";
import { import {
dictionaryEntryBooleanFields, dictionaryEntryBooleanFields,
dictionaryEntryNumberFields, dictionaryEntryNumberFields,
dictionaryEntryTextFields, dictionaryEntryTextFields,
} from "../types"; } from "../types";
import { import { validateEntry, standardizeEntry } from "./src/validate-entry";
validateEntry,
standardizeEntry,
} from "./src/validate-entry";
import { import {
readDictionary, readDictionary,
writeDictionary, writeDictionary,
readDictionaryInfo, readDictionaryInfo,
writeDictionaryInfo, writeDictionaryInfo,
} from "./src/protobuf"; } from "./src/protobuf";
import { import { pashtoConsonants } from "./src/pashto-consonants";
pashtoConsonants,
} from "./src/pashto-consonants";
import { import {
isNounAdjOrVerb, isNounAdjOrVerb,
getEnglishPersonInfo, getEnglishPersonInfo,
@ -110,15 +90,9 @@ import {
ensureNonComboVerbInfo, ensureNonComboVerbInfo,
entryOfFull, entryOfFull,
} from "./src/misc-helpers"; } from "./src/misc-helpers";
import { import { simplifyPhonetics } from "./src/simplify-phonetics";
simplifyPhonetics, import { translatePhonetics } from "./src/translate-phonetics";
} from "./src/simplify-phonetics"; import { addDiacritics } from "./src/diacritics";
import {
translatePhonetics,
} from "./src/translate-phonetics";
import {
addDiacritics,
} from "./src/diacritics";
import { import {
removeAccents, removeAccents,
hasAccents, hasAccents,
@ -132,36 +106,23 @@ import {
makeLocativeAdverbSelection, makeLocativeAdverbSelection,
makeParticipleSelection, makeParticipleSelection,
} from "./src/phrase-building/make-selections"; } from "./src/phrase-building/make-selections";
import { import { renderEP } from "./src/phrase-building/render-ep";
renderEP, import { renderVP } from "./src/phrase-building/render-vp";
} from "./src/phrase-building/render-ep"; import { renderNPSelection } from "./src/phrase-building/render-np";
import {
renderVP,
} from "./src/phrase-building/render-vp";
import {
renderNPSelection,
} from "./src/phrase-building/render-np";
import { import {
compileEP, compileEP,
compileVP, compileVP,
flattenLengths, flattenLengths,
combineIntoText,
} from "./src/phrase-building/compile"; } from "./src/phrase-building/compile";
import { import { isPashtoScript } from "./src/is-pashto";
isPashtoScript, import { renderAPSelection } from "./src/phrase-building/render-ap";
} from "./src/is-pashto"; import { renderSandwich } from "./src/phrase-building/render-sandwich";
import {
renderAPSelection,
} from "./src/phrase-building/render-ap";
import {
renderSandwich,
} from "./src/phrase-building/render-sandwich";
import { import {
humanReadableVerbForm, humanReadableVerbForm,
humanReadableEquativeTense, humanReadableEquativeTense,
} from "./src/human-readable"; } from "./src/human-readable";
import { import { splitPsString } from "./src/splitPsString";
splitPsString,
} from "./src/splitPsString";
import shuffleArray from "./src/shuffle-array"; import shuffleArray from "./src/shuffle-array";
import defaultTextOptions from "./src/default-text-options"; import defaultTextOptions from "./src/default-text-options";
import * as grammarUnits from "./src/grammar-units"; import * as grammarUnits from "./src/grammar-units";
@ -252,6 +213,7 @@ export {
makeVPSelectionState, makeVPSelectionState,
getLength, getLength,
psStringEquals, psStringEquals,
combineIntoText,
joiningTails, joiningTails,
blockUtils, blockUtils,
blank, blank,
@ -274,4 +236,4 @@ export {
dictionaryEntryBooleanFields, dictionaryEntryBooleanFields,
// TYPES // TYPES
Types, Types,
} };

View File

@ -1,6 +1,6 @@
{ {
"name": "@lingdocs/inflect", "name": "@lingdocs/inflect",
"version": "6.0.1", "version": "6.0.2",
"description": "Pashto inflector library", "description": "Pashto inflector library",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/lib/library.d.ts", "types": "dist/lib/library.d.ts",