diff --git a/package.json b/package.json index 0779662..7370680 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "@formkit/auto-animate": "^1.0.0-beta.1", "@fortawesome/fontawesome-free": "^5.15.4", "@lingdocs/lingdocs-main": "^0.3.1", - "@lingdocs/pashto-inflector": "^3.1.8", + "@lingdocs/pashto-inflector": "^3.1.9", "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", diff --git a/src/App.css b/src/App.css index 5692f14..d81d964 100644 --- a/src/App.css +++ b/src/App.css @@ -18,7 +18,7 @@ overflow-y: auto; } -@media (max-width: 980px) { +@media (max-width: 900px) { .table-of-contents { display: none; } diff --git a/src/components/Link.js b/src/components/Link.js index 67d396e..4d3b587 100644 --- a/src/components/Link.js +++ b/src/components/Link.js @@ -12,7 +12,10 @@ import { Link } from "react-router-dom"; export default function L(props) { const { to } = props || ""; - if (to.includes("#")) { + const toA = (to.includes("#") && to.split("#")[0] === window.location.pathname) + ? ("#" + to.split("#")[1]) + : to; + if (toA.includes("#")) { // If it's a hash link return the special hash link return {props.children}; } // If it's a regular link return the regular router linker - return {props.children}; + return {props.children}; }; \ No newline at end of file diff --git a/src/components/terms-links.tsx b/src/components/terms-links.tsx index 56d46f4..860248a 100644 --- a/src/components/terms-links.tsx +++ b/src/components/terms-links.tsx @@ -1,25 +1,33 @@ import Link from "./Link"; -export function NP({ text }: { text: string}) { +export function NP({ text }: { text: string }) { return {text || "NP"}; } -export function AP({ text }: { text: string}) { +export function AP({ text }: { text: string }) { return {text || "AP"}; } -export function VP({ text }: { text: string}) { +export function VP({ text }: { text: string }) { return {text || "VP"}; } -export function EP({ text }: { text: string}) { +export function EP({ text }: { text: string }) { return {text || "EP"}; } -export function KidsSection({ text }: { text: string}) { +export function KidsSection({ text }: { text: string }) { return {text || "kids' section"}; } -export function MiniPronoun({ text }: { text: string}) { +export function MiniPronoun({ text }: { text: string }) { return {text || "mini-pronoun"}; +} + +export function BlockTerm({ text }: { text: string }) { + return { text || "block"}; +} + +export function PerfectiveHead({ text }: { text: string }) { + return { text || "perfective head"}; } \ No newline at end of file diff --git a/src/content/index.ts b/src/content/index.ts index 35d3187..ea7f337 100644 --- a/src/content/index.ts +++ b/src/content/index.ts @@ -58,6 +58,8 @@ import * as imperativeVerbs from "!babel-loader!@lingdocs/mdx-loader!./verbs/imp // @ts-ignore import * as verbEndings from "!babel-loader!@lingdocs/mdx-loader!./verbs/verb-endings.mdx"; // @ts-ignore +import * as negativeVerbs from "!babel-loader!@lingdocs/mdx-loader!./verbs/negative.mdx"; +// @ts-ignore import * as rootsAndStems from "!babel-loader!@lingdocs/mdx-loader!./verbs/roots-and-stems.mdx"; // @ts-ignore import * as pastVerbs from "!babel-loader!@lingdocs/mdx-loader!./verbs/past-verbs.mdx"; @@ -221,6 +223,10 @@ const contentTree = [ import: pastVerbs, slug: "past-verbs", }, + { + import: negativeVerbs, + slug: "negative-verbs", + }, { import: verbEndings, slug: "verb-endings", diff --git a/src/content/phrase-structure/blocks-and-kids.mdx b/src/content/phrase-structure/blocks-and-kids.mdx index 5bae718..a7d1d68 100644 --- a/src/content/phrase-structure/blocks-and-kids.mdx +++ b/src/content/phrase-structure/blocks-and-kids.mdx @@ -86,7 +86,7 @@ Click on the on the following examples to see where the kids' sec {"blocks":[{"key":0.27231313024586834,"block":{"type":"subjectSelection","selection":{"type":"NP","selection":{"type":"pronoun","person":0,"distance":"far"}}}},{"key":0.6810015291689175,"block":{"type":"objectSelection","selection":{"type":"NP","selection":{"type":"pronoun","person":5,"distance":"far"}}}}],"verb":{"type":"verb","verb":{"entry":{"ts":1527812275,"i":11610,"p":"لیدل","f":"leedul","g":"leedul","e":"to see","c":"v. trans./gramm. trans.","psp":"وین","psf":"ween","tppp":"لید","tppf":"leed","ec":"see,sees,seeing,saw,seen"}},"verbTense":"perfectivePast","perfectTense":"presentPerfect","imperativeTense":"imperfectiveImperative","tenseCategory":"perfect","transitivity":"transitive","isCompound":false,"voice":"active","negative":true,"canChangeTransitivity":true,"canChangeVoice":true,"canChangeStatDyn":false},"form":{"removeKing":true,"shrinkServant":true}} } -Here are the kids that go in the kids' section, and they always line up **in this order**. +Here are the kids go in the kids' section, and they always line up **in this order**.