From 4f6aee405c3506652666d92c14c4c104aa0703d3 Mon Sep 17 00:00:00 2001 From: adueck Date: Sat, 18 Jan 2025 14:58:52 -0500 Subject: [PATCH] finish mayonnaise --- src/content/index.ts | 6 +- src/content/inflection/MayoSandwiches.tsx | 57 +++++++++++ src/content/inflection/ablative-notes.txt | 24 ----- src/content/inflection/ablative.mdx | 116 ---------------------- src/content/inflection/mayonnaise.mdx | 115 +++++++++++++++++++++ 5 files changed, 175 insertions(+), 143 deletions(-) create mode 100644 src/content/inflection/MayoSandwiches.tsx delete mode 100644 src/content/inflection/ablative-notes.txt delete mode 100644 src/content/inflection/ablative.mdx create mode 100644 src/content/inflection/mayonnaise.mdx diff --git a/src/content/index.ts b/src/content/index.ts index 4613f4e..0ced6c9 100644 --- a/src/content/index.ts +++ b/src/content/index.ts @@ -108,7 +108,7 @@ import * as inflectionPatterns from "./inflection/inflection-patterns.mdx"; // @ts-ignore import * as vocative from "./inflection/vocative.mdx"; // @ts-ignore -import * as ablative from "./inflection/ablative.mdx"; +import * as mayonnaise from "./inflection/mayonnaise.mdx"; // @ts-ignore import * as sandwiches from "./sandwiches/sandwiches.mdx"; @@ -201,8 +201,8 @@ export const contentTree: (ChapterSection | ChaptersSection)[] = "slug": "vocative" }, { - "import": ablative, - "slug": "ablative" + "import": mayonnaise, + "slug": "mayonnaise" } ] }, diff --git a/src/content/inflection/MayoSandwiches.tsx b/src/content/inflection/MayoSandwiches.tsx new file mode 100644 index 0000000..4f374d4 --- /dev/null +++ b/src/content/inflection/MayoSandwiches.tsx @@ -0,0 +1,57 @@ +import { + defaultTextOptions as opts, + Examples, + Types as T, +} from "@lingdocs/ps-react"; + +const mayoSandwiches = [ + { + meaning: "from / than", + sandwiches: [ + { p: "له ...", f: "la ...", required: true }, + { p: "له ... نه", f: "la ... na", required: false }, + { + p: "له ... څخه", + f: "la ... tsúkha", + required: false, + }, + ], + }, + { + meaning: "without", + sandwiches: [ + { p: "بې ...", f: "be ...", required: true }, + { p: "بې له ...", f: "be la ...", required: true }, + { p: "له ... پرته", f: "la ... prata", required: false }, + { p: "پرته له ...", f: "prata la ...", required: true }, + ], + }, + { + meaning: "until / up to", + sandwiches: [ + { p: "تر ...", f: "tur ...", required: true }, + { + p: "تر ... پورې", + f: "tur ... pore", + required: true, + }, + ], + }, +]; + +export default function MayoSandwiches({ opts }: { opts: T.TextOptions }) { + return ( +
+ {mayoSandwiches.map((section) => ( +
+
"{section.meaning}"
+
+ {section.sandwiches.map((sandwich) => ( + {[sandwich]} + ))} +
+
+ ))} +
+ ); +} diff --git a/src/content/inflection/ablative-notes.txt b/src/content/inflection/ablative-notes.txt deleted file mode 100644 index 67f5d49..0000000 --- a/src/content/inflection/ablative-notes.txt +++ /dev/null @@ -1,24 +0,0 @@ -For the sandwich with just on the front, mayonnaise is _required_. It is _optional_ for sandwiches with an ending part. - - - {[ - { - p: "له ...", - f: "la ...", - e: "from / than", - sub: Required, - }, - { - p: "له ... نه", - f: "la ... na", - e: "from / than", - sub: Optional, - }, - { - p: "له ... څخه", - f: "la ... tsúkha", - e: "from / than", - sub: Optional, - }, - ]} - \ No newline at end of file diff --git a/src/content/inflection/ablative.mdx b/src/content/inflection/ablative.mdx deleted file mode 100644 index 8b29457..0000000 --- a/src/content/inflection/ablative.mdx +++ /dev/null @@ -1,116 +0,0 @@ ---- -title: Ablative / Mayonnaise ---- - -import Link from "../../components/Link"; -import { - defaultTextOptions as opts, - InlinePs, - Examples, -} from "@lingdocs/ps-react"; -import mayoImage from "../../images/mayonnaise-a.jpg"; -import psmd from "../../lib/psmd"; - -In the earlier chapters we learned that words inside sandwiches inflect. There is also a certain type of sandwiches that adds a little something extra to the inflection. Linguists would call this the "ablative" case, but we will call this **mayonnaise**. - -
- picture of mayonnaise with 'a' ending beside it -
- -Sandwiches talking about separation, source, or absence get mayonnaise - - - {[ - { p: "له ...", f: "la ...", e: "from / than" }, - { p: "له ... نه", f: "la ... na", e: "from / than" }, - { p: "له ... څخه", f: "la ... tsúkha", e: "from / than" }, - { p: "بې له ...", f: "be la ...", e: "without" }, - { p: "له ... پرته", f: "la ... prata", e: "without" }, - { p: "تر ...", f: "tur ...", e: "until / up to" }, - { p: "تر ... پورې", f: "tur ... pore", e: "until / up to" }, - ]} - - -When we put Pattern #1 masculine, singular words in these sandwiches, we add a little on the end of these words. Anything else just inflects normally. - -For example, the word is a Pattern #1 masculine, singular noun. Normally if we put it in a sandwich, it wouldn't change, but in these sandwiches, it gets a bit of mayonnaise by adding on the end. - - - {psmd([ - { - p: "زه **له کوره** ووتم", - f: "zu **la kóra** óowatum", - e: "I went out from the house", - }, - { - p: "دا ځای **له کوره څخه** لرې دی", - f: "daa dzaay **la kóra tsukha** lúre day", - e: "That place is far from home", - }, - ])} - - -But when the noun is plural, it just inflects normally. - - - {psmd([ - { - p: "مونږ **له کورونو** ووتو", - f: "moonG **la koróono** óowatoo", - e: "We went out from the houses", - }, - { - p: "دا ځای **له کورونو څخه** لرې دی", - f: "daa dzaay **la koróono tsukha** lúre day", - e: "That place is far from the houses", - }, - ])} - - -Other words like that would inflect, also inflect normally. Mayonnaise only gets added to Pattern #1 masculine, singular words. - - - {psmd([ - { - p: "زه **له کوټې** ووتم", - f: "zu **la koTé** óowatum", - e: "I went out from the room", - }, - { - p: "دا ځای **له کوټې څخه** لرې دی", - f: "daa dzaay **la kóTe tsukha** lúre day", - e: "That place is far from the room", - }, - ])} - - -For the sandwich with just on the front, mayonnaise is _required_. It is _optional_ for sandwiches with an ending part. - - - {[ - { - p: "له ...", - f: "la ...", - e: "from / than", - sub: Required, - }, - { - p: "له ... نه", - f: "la ... na", - e: "from / than", - sub: Optional, - }, - { - p: "له ... څخه", - f: "la ... tsúkha", - e: "from / than", - sub: Optional, - }, - ]} - - -... more soon. 🚧 diff --git a/src/content/inflection/mayonnaise.mdx b/src/content/inflection/mayonnaise.mdx new file mode 100644 index 0000000..7c2b1d3 --- /dev/null +++ b/src/content/inflection/mayonnaise.mdx @@ -0,0 +1,115 @@ +--- +title: Mayonnaise +--- + +import Link from "../../components/Link"; +import { + defaultTextOptions as opts, + InlinePs, + Examples, +} from "@lingdocs/ps-react"; +import mayoImage from "../../images/mayonnaise-a.jpg"; +import psmd from "../../lib/psmd"; +import MayoSandwiches from "./MayoSandwiches"; + +In the earlier chapters we learned that words inside sandwiches inflect. There is also a certain type of sandwiches that adds a little extra to certain words. Some linguists might call this the "ablative" case, but that term doesn't quite fit how it's used in Pashto. In the interest of linguistic accuracy, we will call this **mayonnaise**. + +
+ picture of mayonnaise with 'a' ending beside it +
+ +## When to Use Mayo + +To add mayonnaise to a sandwich there are **two conditions**: + +1. It has to be one of the mayo-friendly sandwiches below. +2. The words getting mayo have to be Pattern #1 masculine, singular words. + +## Mayo-Friendly Sandwiches 🥪 + + + +## Examples + +Let's look at some examples of how we add mayo to these sandwiches when they contain Pattern #1 masculine, singular words. + +With : + + + {psmd([ + { + p: "زه **له کوره** ووتم", + f: "zu **la kóra** óowatum", + e: "I went out from the house", + }, + { + p: "دا ځای **له کوره څخه** لرې دی", + f: "daa dzaay **la kóra tsukha** lúre day", + e: "That place is far from home", + }, + { + p: "**تر کوره پورې** ما سره ځي", + f: "**tur kóra pore** maa sara dzée", + e: "He goes with me up until (my) house", + }, + ])} + + +With : + + + {psmd([ + { + p: "**بې له زحمته** راحت نشته", + f: "**be la zahmáta** raahát nushta", + e: "There's no comfort without effort", + }, + ])} + + +Notice that with other kinds of words in these sandwiches, they just inflect as they normally would. + + + {psmd([ + { + p: "زه **له کوټې** ووتم", + f: "zu **la koTé** óowatum", + e: "I went out from the room", + }, + { + p: "دا ځای **له کورونو څخه** لرې دی", + f: "daa dzaay **la koróono tsukha** lúre day", + e: "That place is far from the houses", + }, + ])} + + +If we put a Pattern #1 masculine, singular noun in a sandwich, any Pattern #1 adjectives and intensifiers will also inflect. + + + {psmd([ + { + p: "زه له ډېره غټه کوره ووتم", + f: "zu **la Déra ghúTa kóra** óowatum", + e: "I went out from the really big house", + }, + ])} + + +The words and are also Pattern #1 masculine, singular words, so they also get mayonnaise! + +## Other notes + +### Mayo Only Goes on Pattern #1 Words + +If a word is Pattern #4 or Pattern #5, it does not get mayonnaise. Some of these words may look the same as the Pattern #1 words because they end in a consonant. But remember, Pattern #4 and Pattern #5 words are different. They have their own way of inflecting. + +### Is Mayo Optional or Required? + +If the sandwich has **no end-piece** (e.g. or ) then mayonnaise is **required**. You cannot make the sandwich without it. + +If the sandwich has an end-piece (e.g. ) then mayonnaise is optional. In that case, it's a matter of taste.