jProgr / TokiPonaDictionary

A Toki Pona - English dictionary with search function
https://jprogr.github.io/TokiPonaDictionary/
Other
48 stars 11 forks source link

Added compounds and nimi ku suli #26

Closed kmaasrud closed 3 years ago

kmaasrud commented 3 years ago

This PR adds compound words from Sonja's compounds.txt. I've only added words with a usage of 60 and higher.

The compounds are shown in italic, which is explained on the bottom of the page (along with a disclaimer). They also have the class .compound for further styling. I've also increased the page width a bit, since 90px was a bit too cramped. The page width is responsive.

kmaasrud commented 3 years ago

I've now added the most frequently used words from ku. I ignored "kokosila" as I'm not really a fan of the negative nature of it and don't see the practical use.

In addition, compounds are now hidden when the search bar is empty. This allows one to browse the dictionary without a lot of noise. The solution is a bit hacky, but it works and is quite speedy.

jProgr commented 3 years ago

See https://github.com/jProgr/TokiPonaDictionary/issues/25#issuecomment-886885058