Skip to content

Commit

Permalink
Added missing Korean characters
Browse files Browse the repository at this point in the history
  • Loading branch information
ozdemirburak committed Oct 3, 2024
1 parent 65412d4 commit d0cea52
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ozdemirburak/morse-code-translator",
"version": "5.0.3",
"version": "5.0.4",
"description": "Morse code translator helps you convert text to Morse code and vice versa, with the option to play Morse code audio.",
"keywords": [
"morse",
Expand Down
5 changes: 3 additions & 2 deletions src/characters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ const baseCharacters: Characters = {
'゛': '00', '゜': '00110', '。': '010100', 'ー': '01101', '、': '010101',
'(': '101101', ')': '010010'
},
'11': { // Korean Alphabet => https://en.wikipedia.org/wiki/SKATS
'11': { // Korean Alphabet => https://ko.wikipedia.org/wiki/%EB%AA%A8%EC%8A%A4_%EB%B6%80%ED%98%B8
'ㄱ': '0100', 'ㄴ': '0010', 'ㄷ': '1000', 'ㄹ': '0001', 'ㅁ': '11', 'ㅂ': '011',
'ㅅ': '110', 'ㅇ': '101', 'ㅈ': '0110', 'ㅊ': '1010', 'ㅋ': '1001', 'ㅌ': '1100',
'ㅍ': '111', 'ㅎ': '0111', 'ㅏ': '0', 'ㅑ': '00', 'ㅓ': '1', 'ㅕ': '000',
'ㅗ': '01', 'ㅛ': '10', 'ㅜ': '0000', 'ㅠ': '010', 'ㅡ': '100', 'ㅣ': '001'
'ㅗ': '01', 'ㅛ': '10', 'ㅜ': '0000', 'ㅠ': '010', 'ㅡ': '100', 'ㅣ': '001',
'ㅐ': '1101', 'ㅔ': '1011'
},
'12': { // Thai Alphabet => https://th.wikipedia.org/wiki/รหัสมอร์ส
'ก': '110', 'ข': '1010', 'ค': '101', 'ง': '10110', 'จ': '10010',
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ const baseCharacters = {
'ㄱ': '0100', 'ㄴ': '0010', 'ㄷ': '1000', 'ㄹ': '0001', 'ㅁ': '11', 'ㅂ': '011',
'ㅅ': '110', 'ㅇ': '101', 'ㅈ': '0110', 'ㅊ': '1010', 'ㅋ': '1001', 'ㅌ': '1100',
'ㅍ': '111', 'ㅎ': '0111', 'ㅏ': '0', 'ㅑ': '00', 'ㅓ': '1', 'ㅕ': '000',
'ㅗ': '01', 'ㅛ': '10', 'ㅜ': '0000', 'ㅠ': '010', 'ㅡ': '100', 'ㅣ': '001'
'ㅗ': '01', 'ㅛ': '10', 'ㅜ': '0000', 'ㅠ': '010', 'ㅡ': '100', 'ㅣ': '001',
'ㅐ': '1101', 'ㅔ': '1011'
},
'12': {
'ก': '110', 'ข': '1010', 'ค': '101', 'ง': '10110', 'จ': '10010',
Expand Down

0 comments on commit d0cea52

Please sign in to comment.