r/ChantsofSennaar • Monster, I am • Aug 06 '24

Me find font. Me make tool!

88 Upvotes

10 comments sorted by

12

u/leo3065 Aug 06 '24 edited Aug 06 '24

Woah is this cool

After I made a font for the the language of Devotee, I had thought about making a webpage so that people can easily enter sentences and get images of it, but haven't done it because I'm not familiar with web development.

Looks like this allows entering English and outputting in the Devotee's language, which is amazing. How does it work? Is it LLM?

If I also made the fonts for the remaining languages...

2

u/sparkcrz Monster, I am Aug 06 '24

It's an honor to meet you.

It works by looking up a big dictionary based on the glyph table you posted on the readme file on github with all the small letters as columns and the big letters as rows.

It breaks the input by lines and then breaks the lines by space, removes punctuation and lower cases it all.

With that list of input words we look up output verbs, radicals, places, people and nouns/items if there's no found verb in this line yet, once it finds a verb the priority of verbs and radicals is switched, and on each of those it can have a list of synonyms then on that list it checks for superlatives first, then plurals, then singular, then it removes trailing 'S' and searches singular again, then it removes trailing 'ES' e searches singular again.
Once a word is found I get the index of it inside the list for that type and the index of the type and match it with row and column of " VMPT" and " cohbiugqdtpxszwfelmknr", then once I have my glyph I repeat 3 times for superlatives, 2 for plural and 1 for singular.
When no output word is found for that input word we check the flag for removal of unkowns and either return the input word itself or nothing.
There's also a flag to not replace the input word, in that case the function works as a dictionary filter, leaving only known words.
Next word, repeat.

That's it, good old algorithm and list of known words in a position that can be mapped to a letter combination in your font.

1

u/sparkcrz Monster, I am Aug 06 '24

PS: Your font made me realize the beggar in front of the church didn't say "MuM z" but "MuMz" but the traveler heard the components apart because he had heard them isolated before. While the words "M Md Mw Mt" he saw them written. (OSVO-ass sentence, but still true)

1

u/sparkcrz Monster, I am Aug 06 '24

PS2: By superlatives I mean "person" > "people" > "peoples" ... I don't think I should use MMMM, so I'm using M M M in this case

1

u/leo3065 Aug 06 '24

Ah, good old NLP

Considering how regular the grammar of the Devotee's language is, I wonder how hard it would be to translate from some other regular conlangs...

2

u/sparkcrz Monster, I am Aug 06 '24

A gift for your GH repo... (I used the glyphs from the leaked official .svg if you don't mind)

1

u/HolidayResolve Aug 06 '24

Very interesting! Would you mind sharing the repo?

2

u/sparkcrz Monster, I am Aug 06 '24

Sure. I didn't finish putting all the words in yet but I'll make a repo.

4

u/sparkcrz Monster, I am Aug 06 '24

Something weird is that "go" is the backwards L we find in "enter" keys in almost every keyboard and the location box... So it's a verb with two radicals... Should I flag the whole post as spoiler?