From 3618a0f4b02526d44ec04c03a0a5f6ca5bcde0d2 Mon Sep 17 00:00:00 2001 From: Janet Blackquill Date: Fri, 19 Apr 2024 18:14:38 -0400 Subject: [PATCH] ruby text time --- src/lib/words.ts | 152 ++++++++++++++++++++++++++++ src/routes/font/[name]/+page.svelte | 144 +++++++++++--------------- 2 files changed, 213 insertions(+), 83 deletions(-) create mode 100644 src/lib/words.ts diff --git a/src/lib/words.ts b/src/lib/words.ts new file mode 100644 index 0000000..7141c9c --- /dev/null +++ b/src/lib/words.ts @@ -0,0 +1,152 @@ +type Dict = { + [id: string]: string +} + +export const pu: Dict = { + "A": "\u{F1900}", + "AKESI": "\u{F1901}", + "ALA": "\u{F1902}", + "ALASA": "\u{F1903}", + "ALE": "\u{F1904}", + "ANPA": "\u{F1905}", + "ANTE": "\u{F1906}", + "ANU": "\u{F1907}", + "AWEN": "\u{F1908}", + "E": "\u{F1909}", + "EN": "\u{F190A}", + "ESUN": "\u{F190B}", + "IJO": "\u{F190C}", + "IKE": "\u{F190D}", + "ILO": "\u{F190E}", + "INSA": "\u{F190F}", + "JAKI": "\u{F1910}", + "JAN": "\u{F1911}", + "JELO": "\u{F1912}", + "JO": "\u{F1913}", + "KALA": "\u{F1914}", + "KALAMA": "\u{F1915}", + "KAMA": "\u{F1916}", + "KASI": "\u{F1917}", + "KEN": "\u{F1918}", + "KEPEKEN": "\u{F1919}", + "KILI": "\u{F191A}", + "KIWEN": "\u{F191B}", + "KO": "\u{F191C}", + "KON": "\u{F191D}", + "KULE": "\u{F191E}", + "KULUPU": "\u{F191F}", + "KUTE": "\u{F1920}", + "LA": "\u{F1921}", + "LAPE": "\u{F1922}", + "LASO": "\u{F1923}", + "LAWA": "\u{F1924}", + "LEN": "\u{F1925}", + "LETE": "\u{F1926}", + "LI": "\u{F1927}", + "LILI": "\u{F1928}", + "LINJA": "\u{F1929}", + "LIPU": "\u{F192A}", + "LOJE": "\u{F192B}", + "LON": "\u{F192C}", + "LUKA": "\u{F192D}", + "LUKIN": "\u{F192E}", + "LUPA": "\u{F192F}", + "MA": "\u{F1930}", + "MAMA": "\u{F1931}", + "MANI": "\u{F1932}", + "MELI": "\u{F1933}", + "MI": "\u{F1934}", + "MIJE": "\u{F1935}", + "MOKU": "\u{F1936}", + "MOLI": "\u{F1937}", + "MONSI": "\u{F1938}", + "MU": "\u{F1939}", + "MUN": "\u{F193A}", + "MUSI": "\u{F193B}", + "MUTE": "\u{F193C}", + "NANPA": "\u{F193D}", + "NASA": "\u{F193E}", + "NASIN": "\u{F193F}", + "NENA": "\u{F1940}", + "NI": "\u{F1941}", + "NIMI": "\u{F1942}", + "NOKA": "\u{F1943}", + "O": "\u{F1944}", + "OLIN": "\u{F1945}", + "ONA": "\u{F1946}", + "OPEN": "\u{F1947}", + "PAKALA": "\u{F1948}", + "PALI": "\u{F1949}", + "PALISA": "\u{F194A}", + "PAN": "\u{F194B}", + "PANA": "\u{F194C}", + "PI": "\u{F194D}", + "PILIN": "\u{F194E}", + "PIMEJA": "\u{F194F}", + "PINI": "\u{F1950}", + "PIPI": "\u{F1951}", + "POKA": "\u{F1952}", + "POKI": "\u{F1953}", + "PONA": "\u{F1954}", + "PU": "\u{F1955}", + "SAMA": "\u{F1956}", + "SELI": "\u{F1957}", + "SELO": "\u{F1958}", + "SEME": "\u{F1959}", + "SEWI": "\u{F195A}", + "SIJELO": "\u{F195B}", + "SIKE": "\u{F195C}", + "SIN": "\u{F195D}", + "SINA": "\u{F195E}", + "SINPIN": "\u{F195F}", + "SITELEN": "\u{F1960}", + "SONA": "\u{F1961}", + "SOWELI": "\u{F1962}", + "SULI": "\u{F1963}", + "SUNO": "\u{F1964}", + "SUPA": "\u{F1965}", + "SUWI": "\u{F1966}", + "TAN": "\u{F1967}", + "TASO": "\u{F1968}", + "TAWA": "\u{F1969}", + "TELO": "\u{F196A}", + "TENPO": "\u{F196B}", + "TOKI": "\u{F196C}", + "TOMO": "\u{F196D}", + "TU": "\u{F196E}", + "UNPA": "\u{F196F}", + "UTA": "\u{F1970}", + "UTALA": "\u{F1971}", + "WALO": "\u{F1972}", + "WAN": "\u{F1973}", + "WASO": "\u{F1974}", + "WAWA": "\u{F1975}", + "WEKA": "\u{F1976}", + "WILE": "\u{F1977}", +} +export const ku: Dict = { + "NAMAKO": "\u{F1978}", + "KIN": "\u{F1979}", + "OKO": "\u{F197A}", + "KIPISI": "\u{F197B}", + "LEKO": "\u{F197C}", + "MONSUTA": "\u{F197D}", + "TONSI": "\u{F197E}", + "JASIMA": "\u{F197F}", + "KIJETESANTAKALU": "\u{F1980}", + "SOKO": "\u{F1981}", + "MESO": "\u{F1982}", + "EPIKU": "\u{F1983}", + "KOKOSILA": "\u{F1984}", + "LANPAN": "\u{F1985}", + "N": "\u{F1986}", + "MISIKEKE": "\u{F1987}", + "KU": "\u{F1988}", + "POWE": "\u{F19A3}", + // "ISIPIN": "\u{F19A4}", + // "KAN": "\u{F19A5}", + // "OKE": "\u{F19A6}", + // "PASILA": "\u{F19A7}", + // "PO": "\u{F19A8}", + // "SAN": "\u{F19A9}", +} diff --git a/src/routes/font/[name]/+page.svelte b/src/routes/font/[name]/+page.svelte index d718513..1418e12 100644 --- a/src/routes/font/[name]/+page.svelte +++ b/src/routes/font/[name]/+page.svelte @@ -4,11 +4,11 @@ import { ucsur } from '$lib/translation'; import type { PageData } from './$types'; import { decompress } from '$lib/compress-json/src/core' + import { pu, ku } from '$lib/words' export let data: PageData const font = decompress(data.data) let selectedStyle: number = 0 - console.warn(font) @@ -146,125 +146,103 @@ o lukin e sitelen ale pi nasin ni -
-

nimi pu ale

- -
- 󱤀󱤁󱤂󱤃󱤄󱤅󱤆󱤇󱤈
- 󱤉󱤊󱤋
- 󱤌󱤍󱤎󱤏
- 󱤐󱤑󱤒󱤓
- 󱤔󱤕󱤖󱤗󱤘󱤙󱤚󱤛󱤜󱤝󱤞󱤟󱤠
- 󱤡󱤢󱤣󱤤󱤥󱤦󱤧󱤨󱤩󱤪󱤫󱤬󱤭󱤮󱤯
- 󱤰󱤱󱤲󱤳󱤴󱤵󱤶󱤷󱤸󱤹󱤺󱤻󱤼
- 󱤽󱤾󱤿󱥀󱥁󱥂󱥃
- 󱥄󱥅󱥆󱥇
- 󱥈󱥉󱥊󱥋󱥌󱥍󱥎󱥏󱥐󱥑󱥒󱥓󱥔󱥕
- 󱥖󱥗󱥘󱥙󱥚󱥛󱥜󱥝󱥞󱥟󱥠󱥡󱥢󱥣󱥤󱥥󱥦
- 󱥧󱥨󱥩󱥪󱥫󱥬󱥭󱥮
- 󱥯󱥰󱥱
- 󱥲󱥳󱥴󱥵󱥶󱥷
-
-
- a akesi ala alasa ale anpa ante anu awen
- e en esun
- ijo ike ilo insa
- jaki jan jelo jo
- kala kalama kama kasi ken kepeken kili kiwen ko kon kule kulupu kute
- la lape laso lawa len lete li lili linja lipu loje lon luka lukin lupa
- ma mama mani meli mi mije moku moli monsi mu mun musi mute
- nanpa nasa nasin nena ni nimi noka
- o olin ona open
- pakala pali palisa pan pana pi pilin pimeja pini pipi poka poki pona pu
- sama seli selo seme sewi sijelo sike sin sina sinpin sitelen sona soweli suli suno supa suwi
- tan taso tawa telo tenpo toki tomo tu
- unpa uta utala
- walo wan waso wawa weka wile
-
-
-
+
-

nimi ku suli

+

nimi pu ale

-
- 󱥹󱥺󱥻󱥼󱥽󱥾󱥿󱦀󱦁󱦂󱦃󱦄󱦅󱦆󱦇󱦈 -
-
- kin oko kipisi leko monsuta tonsi jasima kijetesantakalu soko meso epiku kokosila lanpan n misikeke ku +
+ {#each Object.entries(pu) as [word, ucsur]} + {ucsur}{word.toLowerCase()} + {/each} +
+
+

+ {#each Object.entries(pu) as [word, ucsur]} + {word.toLowerCase()}{word.toLowerCase()}​ + {/each} +

-

nimi ku lili

+

nimi ku

-
- 󱦠󱦡󱦢󱦣 +
+ {#each Object.entries(ku) as [word, ucsur]} + {ucsur}{word.toLowerCase()} + {/each}
-
- pake apeja majuna powe +
+ {#each Object.entries(ku) as [word, ucsur]} + {word.toLowerCase()}{word.toLowerCase()}​ + {/each}
-

sitelen tan sitelen Ansi

+

sitelen tan sitelen Ansi

- - - - - - - - - - - - - -
sitelen lili konsitelen lili enteto
+ sitelen lili kon + sitelen lili en + te + to
- - - - - - - - - - - - -
sitelen lili konsitelen lili enteto
+ sitelen lili kon + sitelen lili en + te + to
-

sitelen ante pi sitelen pona

+

sitelen ante pi sitelen pona

- 󱦐󱦑󱦜󱦝 + 󱦐open poki + 󱦑pini poki + 󱦜sike + 󱦝sike tu
- 󱦐󱦑󱦜󱦝 + 󱦐open poki + 󱦑pini poki + 󱦜sike + 󱦝sike tu
-

sitelen ante pi sitelen Lasina

+

sitelen ante pi sitelen Lasina

- {}.: + (open sike + )pini sike + {open linja + }pini linja + .sike pini + :sike ni
- (){}.: + (open sike + )pini sike + {open linja + }pini linja + .sike pini + :sike ni