From b2f3dfe93c3db4db9f7605d081a5164429936a20 Mon Sep 17 00:00:00 2001 From: adueck Date: Tue, 6 Aug 2024 13:29:50 -0400 Subject: [PATCH] fixed phonetics on inflection patterns --- .../src/HumanReadableInflectionPattern.tsx | 42 ++++++++++++------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/src/components/src/HumanReadableInflectionPattern.tsx b/src/components/src/HumanReadableInflectionPattern.tsx index e19c1df..2eb4c26 100644 --- a/src/components/src/HumanReadableInflectionPattern.tsx +++ b/src/components/src/HumanReadableInflectionPattern.tsx @@ -1,18 +1,30 @@ import * as T from "../../types"; import InlinePs from "./InlinePs"; -export default function HumanReadableInflectionPattern(p: T.InflectionPattern, textOptions: T.TextOptions): JSX.Element | null { - return p === 1 - ? #1 Basic - : p === 2 - ? #2 Unstressed {{ p: "ی", f: "ey", e: "" }} - : p === 3 - ? #3 Stressed {{ p: "ی", f: "éy", e: "" }} - : p === 4 - ? #4 "Pashtoon" - : p === 5 - ? #5 Short Squish - : p === 6 - ? #6 Fem. inan. {{ p: "ي", f: "ee", e: "" }} - : null; -} \ No newline at end of file +export default function HumanReadableInflectionPattern( + p: T.InflectionPattern, + textOptions: T.TextOptions +): JSX.Element | null { + return p === 1 ? ( + #1 Basic + ) : p === 2 ? ( + + #2 Unstressed{" "} + {{ p: "ی", f: "ay", e: "" }} + + ) : p === 3 ? ( + + #3 Stressed{" "} + {{ p: "ی", f: "áy", e: "" }} + + ) : p === 4 ? ( + #4 "Pashtoon" + ) : p === 5 ? ( + #5 Short Squish + ) : p === 6 ? ( + + #6 Fem. inan.{" "} + {{ p: "ي", f: "ee", e: "" }} + + ) : null; +}