From 2401217a4019938d1c1cc61b6e33ccb233eb6e74 Mon Sep 17 00:00:00 2001 From: polwex Date: Tue, 3 Jun 2025 09:34:29 +0700 Subject: this is golden thanks claude --- src/lib/types/cards.ts | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'src/lib/types') diff --git a/src/lib/types/cards.ts b/src/lib/types/cards.ts index 1a62a44..39e2b15 100644 --- a/src/lib/types/cards.ts +++ b/src/lib/types/cards.ts @@ -223,3 +223,35 @@ export enum SyllablePart { OTHER_OFFSET = "c", CODA = "$", } + +export type ProsodyWordDB = Omit & { + syllables: string; +}; +export interface ProsodyWord { + id: number; + spelling: string; + frequency: number | null; + lang: string; + ipa: string; + tags: string; + syllables: ProsodySyllable[]; + notes: string | null; +} +// -o is spelling, -/ is ipa +export type ProsodySyllable = { + ipa: string; + spelling: string; + long: boolean; + notes: string | null; + onseto: string; + onset: string; + nucleuso: string; + nucleus: string; + codao: string; + coda: string; + rhymeo: string; + rhyme: string; + tonen: string; + tonenm: string; + tone: string; +}; -- cgit v1.2.3