ozdemirburak / morse-code-translator

Translate text to Morse code and vice versa, with the option to play Morse code audio.
https://morsecodetranslator.com
MIT License
216 stars 57 forks source link

Added Thai alphabets #2

Closed AimeTPGM closed 7 years ago

AimeTPGM commented 7 years ago

Hello, there I added all of Thai alphabets to this PR. But there are some issues.

First, In Thai, there are some characters and vowels those have duplicated sound, so, they use the same morse code. For example, ท, ธ, ฑ and ฒ are different characters but have the same sound, so it uses the same morse code –··– –

Anyway, I added all of them but comment out the duplications and remains the "most used" characters in the code. (ท is the most used character in the suite, so I selected ท and comment ธ, ฑ and ฒ in the back, Kindly check)

Also, in test file, I included the full test of duplication characters. Just in case if we can use it after figure out how to deal with those duplications.

Seconds, ฯ and ฯลฯ are different and I guess the character reader is encoding 1 character to 1 morse code. so in usage, ฯลฯ will be encoded to ฯ and ล and ฯ (which should be ฯลฯ – one single character) so I commented out 'conflicts with ฯ'

it's a fun project :) I like it and thank you for letting me have a hand in this. Thank you again!

ozdemirburak commented 7 years ago

Thank you, appreciated :)