diff --git a/src/App.css b/src/App.css index 225208d..f6b938a 100644 --- a/src/App.css +++ b/src/App.css @@ -156,3 +156,8 @@ cursor: pointer; } +blockquote { + border-left: 3px solid rgb(99, 99, 99); + padding-left: 1rem; + font-style: italic; +} \ No newline at end of file diff --git a/src/components/Carousel.js b/src/components/Carousel.js index 9cbe5e2..dd26814 100644 --- a/src/components/Carousel.js +++ b/src/components/Carousel.js @@ -44,7 +44,11 @@ export default function(props) { alt={"previous"} onClick={back} /> -
{title}
+ {title ? +
{title}
+ : +
{body}
+ } {"next"} -
+ {title &&
{body} -
+
} ) } \ No newline at end of file diff --git a/src/components/EquativeFormChoice.js b/src/components/EquativeFormChoice.js new file mode 100644 index 0000000..9c025ff --- /dev/null +++ b/src/components/EquativeFormChoice.js @@ -0,0 +1,30 @@ +import React, { useState } from "react"; +import { + VerbFormDisplay, + ButtonSelect, +} from "@lingdocs/pashto-inflector"; + +function EquativeFormChoice({forms, opts}) { + const [choice, setChoice] = useState("pure"); + return ( +
+
+ setChoice(p)} + /> +
+ +
+ ); +} + +export default EquativeFormChoice; \ No newline at end of file diff --git a/src/components/formula/Formula.js b/src/components/formula/Formula.js new file mode 100644 index 0000000..29e7273 --- /dev/null +++ b/src/components/formula/Formula.js @@ -0,0 +1,18 @@ +import React from "react"; +import "./formula.css"; +import teacher from "./teacher-small.png"; + +function Formula(props) { + console.log(props); + return ( +
+
{props.title}
+
{props.children}
+
+ teacher +
+
+ ) +} + +export default Formula; \ No newline at end of file diff --git a/src/components/formula/formula.css b/src/components/formula/formula.css new file mode 100644 index 0000000..48ae24c --- /dev/null +++ b/src/components/formula/formula.css @@ -0,0 +1,25 @@ +.formula-wrapper { + margin-bottom: -3rem; +} + +.formula-title { + font-size: larger; + margin-bottom: 0.5rem; +} + +.formula-box { + padding: 1.75rem 1.75rem 2.5rem 1.75rem; + /* background-color: rgba(148, 182, 255, 0.63); */ + background-color: #516E5C; + color: rgb(243, 243, 243); +} + +.formula-box * { + color: rgb(243, 243, 243); +} + +.formula-teacher { + max-width: 5rem; + position: relative; + top: -2.5rem; +} \ No newline at end of file diff --git a/src/components/formula/teacher-small.png b/src/components/formula/teacher-small.png new file mode 100644 index 0000000..6ea10b5 Binary files /dev/null and b/src/components/formula/teacher-small.png differ diff --git a/src/content/about.mdx b/src/content/about.mdx index efbc8de..e7de707 100644 --- a/src/content/about.mdx +++ b/src/content/about.mdx @@ -21,14 +21,16 @@ But once we dive in and see how the language works we will see that **Pashto has For native speakers, grammar is something that is internalized from childhood. 👶 It just 'feels right' and they never need to think consciously about what these rules are or why they work the way they do. -For adult learners, it's a little more complicated. There *is* a degree of subconscious internalization of these grammar rules that happens just by exposure or immersion in a new language. Our adult brains are able to discern and internalize *some* of the patterns and rules automatically. But just as with accent, the adult brain doesn't automatically pick up the grammar perfectly. We misunderstand things and are puzzled about what some sentences mean or how to say certain things. We can feel really confident that we are saying something correctly, but in reality be spewing awkward gibberish. 😬 +For adult learners, it's a little more complicated. There *is* a degree of subconscious internalization of these grammar rules that happens just by exposure or immersion in a new language. Our adult brains are able to discern and internalize *some* of the patterns and rules automatically. But just as with accent, **the adult brain doesn't automatically pick up the grammar perfectly**. We misunderstand things and are puzzled about what some sentences mean or how to say certain things. We can feel really confident that we are saying something correctly, but in reality be spewing awkward gibberish. 😬 So, **when learning any language we need to put in some good hard effort in to discover what these rules of the language are**, so we can understand how words and phrases are put together to express ideas clearly. -Learning a language and its grammar is more than just discovering and memorizing a few rules. It's a constant process of discovery, understanding, and internalizing or re-training our brains to follow these new rules automatically. Our brains learn alot (maybe most) through exposure and subconscious processing of the language. But we also need to check ourselves, to see if we're really understanding how a certain rule or structure works, or if we're just carrying over a habit or a rule from another language we know. Then, once we understand how something really does work in the new language, we need to internalize it (through lots of exposure and pratice) so that it becomes automatic or natural for us. +Learning a language and its grammar is more than just discovering and memorizing a few rules. It's a constant process of discovery, understanding, and internalizing or re-training our brains to follow these new rules automatically. Our brains learn a lot (maybe most) through exposure and subconscious processing of the language. But we also need to check ourselves, to see if we're really understanding how a certain rule or structure works, or if we're just carrying over a habit or a rule from another language we know. Then, once we understand how something really does work in the new language, we need to internalize it (through lots of exposure and pratice) so that it becomes automatic or natural for us. This grammar aims to help in this process of learning and getting used to the beautiful but often misunderstood language of Pashto. If you really want you can read through it front to back, but probably most will use it as a reference, looking at different sections as needed. This is very much a work in progress. 🏗👷‍♂️ I am slowly adding more and more to this grammar as I learn and understand more Pashto. Many additions and corrections will be needed. +> "Part of the task of the grammarian is ... to unravel the complexities of languages, and, as far as possible, simplify them." Frank Palmer - [Grammar](https://www.amazon.com/gp/product/B000S5VSAS) + I hope this grammar helps to show that **Pashto isn't difficult... it's rich and beautiful**. diff --git a/src/content/equatives/equative-forms.mdx b/src/content/equatives/equative-others.mdx similarity index 82% rename from src/content/equatives/equative-forms.mdx rename to src/content/equatives/equative-others.mdx index 9ed0732..5b7ed75 100644 --- a/src/content/equatives/equative-forms.mdx +++ b/src/content/equatives/equative-others.mdx @@ -1,5 +1,5 @@ --- -title: Equative Forms +title: Other Equatives --- + +import EquativeFormChoice from "../../components/EquativeFormChoice"; +import Carousel from "../../components/Carousel"; +import { useState } from "react"; +import { + grammarUnits, + Examples, + defaultTextOptions, + ButtonSelect, + addToForm, + InlinePs, +} from "@lingdocs/pashto-inflector"; + +The [equative](https://en.wikipedia.org/wiki/Equative) might be the most basic way of joining words together. We use it to say that something *is/equals* something else. It's kind of like an equals "=" sign in math. + +
+
+
A
+
subject
+
I
+
He
+
We
+
+
+
=
+
equative
+
am
+
is
+
are
+
+
+
B
+
complement
+
tired.
+
here.
+
students.
+
+
+ +When we look at these 3 sentences, we notice 2 rules that will be true for both English and Pashto. + +1. **You have to use the right equative for the subject**. It would sound strange to say "I are tired." +2. **The subject and complement have to agree**. It would be wrong to say "We are student." + +But **in Pashto, the word order is different**. Here are those same three sentences, written in Pashto: + +export function EquativeIllustration({forms, opts}) { + const [choice, setChoice] = useState("f"); + return ( +
+
+ setChoice(p)} + /> +
+ {choice === "f" ? +
+
+
A
+
subject
+
zu
+
haghá
+
moonG
+
+
+
B
+
complement
+
stuRey
+
dălta
+
zdakawóonkee
+
+
+
=
+
equative
+
yum.
+
dey.
+
yoo.
+
+
+ : +
+
+
ا
+
subject
+
زه
+
هغه
+
مونږ
+
+
+
ب
+
complement
+
ستړی
+
دلته
+
زدکوونکي
+
+
+
=
+
equative
+
یم.
+
دی.
+
یو.
+
+
+ } +
+ ); +}; + + + +**Warning: ⚠** Often times English speakers learning Pashto will be tempted to just forget the equative when they get to the end of the sentence because it might feel like they're done, or it might be hard to remember which equative to use. But don't leave it out, it's a vital part of the sentence! + +As we noticed earlire, there are two main rules about joining things together with equatives: + +1. You have to use the right equative for the subject +2. The subject and the complement have to agree + +First of all, let's look at which equatives you have to use depending on what the subject is: + +## 1. Present Equative Form + + + +**Note**: in colloquial speech with some dialects, people will use for both masculine and feminine subjects. + +Flip through the following examples and notice how the equative changes depending on the subject. + + ({ + body: {[item]}, + })} +/> + +## 2. Subject / Complement Agreement + +We also mentioned how the subject and the complement need to agree. + +### Agreement in number + +Natually, if the subject is plural, the complement will be plural as well. + +{[ + { p: "هغه ماشوم دی", f: "haghá mashóom dey", e: "He is a child" }, + { p: "هغوي ماشومان دي", f: "haghwée mashoomáan dee", e: "They are children" }, + { p: "ته ډاکټر یې؟", f: "tu DakTár ye?", e: "Are you a doctor?" }, + { p: "تاسو ډاکټران یئ؟", f: "taaso DakTaráan yeyy?", e: "Are you (pl.) doctors?" }, + { p: "دا ستا کور دی", f: "daa staa kor dey", e: "That's your house" }, + { p: "دا ستا کورونه دی", f: "daa staa koróona dee", e: "Those are your houses" }, +]} + +### Agreement in gender + +But that's not all, in Pashto, many nouns and adjectives inflect (change) according to their gender. The subject and complement need to agree in gender as well. + +{[ + { p: "زه ستړی یم", f: "zu stúRey yum", e: "I (m.) am tired 👨"}, + { p: "زه ستړې یم", f: "zu stúRe yum", e: "I (f.) am tired 👩"}, + { p: "ته پښتون یې؟", f: "tu puxtoon ye?", e: "Are you (m.) a Pashtun?" }, + { p: "ته پښتنه یې؟", f: "tu puxtana ye?", e: "Are you (f.) a Pashtun?" }, + { p: "تاسو پښتانه یې؟", f: "taaso puxtaanu yeyy?", e: "Are you (m. pl.) Pashtuns?" }, + { p: "تاسو پښتنې یې؟", f: "taaso puxtane yeyy?", e: "Are you (f. pl.) Pashtuns?" }, +]} + +Note: To understand why/how these words are changing, you will need to read up on *inflection*. + +## Notes on word order + +When you're asking a question, all you have to do is change the intonation. You don't have to change the word order like you do in English. + +{[ + { p: "ته پښتون یې.", f: "tu puxtoon ye.", e: "You (m.) are a Pashtun." }, + { p: "ته پښتون یې؟", f: "tu puxtoon ye?", e: "Are you (m.) a Pashtun?" }, +]} + +**99.9% of the time the equative will go at the end of the sentence.** But in poetry the order often gets flipped around. You can also flip the order around to make an emphatic point. + +{[ + { p: "خو ته یې افعان", f: "kho tu ye afgháan", e: "But you are Afghan!" } +]} diff --git a/src/content/index.js b/src/content/index.js index 43d0947..7cc51f6 100644 --- a/src/content/index.js +++ b/src/content/index.js @@ -9,7 +9,8 @@ /* eslint-disable import/no-webpack-loader-syntax */ import * as about from "!babel-loader!mdx-loader!./about.mdx"; -import * as equativesForms from "!babel-loader!mdx-loader!./equatives/equative-forms.mdx"; +import * as equativePresent from "!babel-loader!mdx-loader!./equatives/equative-present.mdx" +import * as equativeOthers from "!babel-loader!mdx-loader!./equatives/equative-others.mdx"; // import * as advancedEquative from "!babel-loader!mdx-loader!./equative/equative-advanced.mdx"; import * as verbEndings from "!babel-loader!mdx-loader!./verbs/verb-endings.mdx"; @@ -31,13 +32,13 @@ const contentTree = [ subdirectory: "equatives", chapters: [ { - import: equativesForms, - slug: "equative-forms", + import: equativePresent, + slug: "equative-present", + }, + { + import: equativeOthers, + slug: "equative-others", }, - // { - // import: advancedEquative, - // slug: "equative-advanced", - // }, ], }, { diff --git a/yarn.lock b/yarn.lock index ec9742a..7a72d9c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1505,9 +1505,9 @@ chalk "^4.0.0" "@lingdocs/pashto-inflector@^0.3.3": - version "0.3.3" - resolved "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-0.3.3.tgz#4121f5fb7aca110ec55e42656175abd35bde1956" - integrity sha512-63PVVepthTsn4LuT753KL5JYCf8OgZ93jwdfdLyvzz2qDiwGpsh7lnRYUQX+I8QgMQZYlDv3OurTrvLGp9k5Qw== + version "0.3.5" + resolved "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-0.3.5.tgz#c6e99e807d38addf61aed93997c95eafde6bb2ab" + integrity sha512-m8IzUE+gxLcI/Cyu7iLEx+R65juaHmztJFMtsAP33mfyOseBq0ZTD8xC9CjRz/n8PvIPFcy+lpYrTcaBd0cPvQ== dependencies: classnames "^2.2.6" pbf "^3.2.1"