bragefuglseth / keypunch

Practice your typing skills
GNU General Public License v3.0
85 stars 13 forks source link

[Language Request]: Hindi #6

Closed shellheim closed 1 month ago

shellheim commented 1 month ago

English Name

Hindi

Native Name

हिन्दी

Syntax

Hindi is written in the devnagari script. Letters like क, ख, ग etc. It's the most spoken language in northern India and has presence in the rest of India. It has vowels like अ, आ, इ etc. which give signs to the consonants like आ + क = का, आ + ग = गा, इ + म = मि etc.

These signs are called 'matras'. Consonants are without the 'अ' matra (generally not in listing them or in most words) and considered 'half'. The letter 'क' for example is pronounced 'kau' and has the sound of 'अ' (auo), without it there is a sign called a halant placed after a consonant looks like क् (could be any consonant ज् , ग् etc).

Sentences are ended with '।' called a 'purnaviram' (full stop) and it has all the other punctuation marks of English (!, ?, ;) and sentences are quoted with double quotes ("") and dubious/self-proclaimed things are enclosed in single quotes ('').

Implementation Assistance

Additional Information

If you implement hindi, everything is almost identical in marathi, nepali, odia, maithili etc. and these should be easier to implement.

bragefuglseth commented 1 month ago

Hi, the Hindi implementation is ready for testing! To check it out, download the latest development build and choose "हिन्दी" in the language dialog. You should check if the words used are OK, and if the advanced text generation looks correct. There won't be any meaningful sentences since all the words are selected at random, but the punctuation should be on point.

If this looks good to you and I don't get any further feedback from the Nepali in #5, I'll probably close that issue as well, since Nepali uses the same text generation code but with Nepali words.

shellheim commented 1 month ago

Every thing else is great but there are random numbers sprinkled in between text in advanced mode.

Screenshot_2024_06_08_59_52

bragefuglseth commented 1 month ago

That’s intentional, to make it possible to practice the number keys. Is there any reason it stands out to you? Should the behavior be dropped/changed for Hindi?

shellheim commented 1 month ago

Oh that's fine. Btw devnagari has its own numbers, but it's not really used so I think the Arabic numerals are fine. Now I think we can close this issue.

bragefuglseth commented 1 month ago

Thanks a lot for the help! If you’d like to, you can provide a name (and optionally a website), and I’ll credit you in the orthography section in the about dialog.

shellheim commented 1 month ago

Just go with the github name "Shellheim". Thanks for the effort of putting Hindi in!