Skip to content

Commit d0cea52

Browse files
committed
Added missing Korean characters
1 parent 65412d4 commit d0cea52

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ozdemirburak/morse-code-translator",
3-
"version": "5.0.3",
3+
"version": "5.0.4",
44
"description": "Morse code translator helps you convert text to Morse code and vice versa, with the option to play Morse code audio.",
55
"keywords": [
66
"morse",

src/characters.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,12 @@ const baseCharacters: Characters = {
7373
'゛': '00', '゜': '00110', '。': '010100', 'ー': '01101', '、': '010101',
7474
'(': '101101', ')': '010010'
7575
},
76-
'11': { // Korean Alphabet => https://en.wikipedia.org/wiki/SKATS
76+
'11': { // Korean Alphabet => https://ko.wikipedia.org/wiki/%EB%AA%A8%EC%8A%A4_%EB%B6%80%ED%98%B8
7777
'ㄱ': '0100', 'ㄴ': '0010', 'ㄷ': '1000', 'ㄹ': '0001', 'ㅁ': '11', 'ㅂ': '011',
7878
'ㅅ': '110', 'ㅇ': '101', 'ㅈ': '0110', 'ㅊ': '1010', 'ㅋ': '1001', 'ㅌ': '1100',
7979
'ㅍ': '111', 'ㅎ': '0111', 'ㅏ': '0', 'ㅑ': '00', 'ㅓ': '1', 'ㅕ': '000',
80-
'ㅗ': '01', 'ㅛ': '10', 'ㅜ': '0000', 'ㅠ': '010', 'ㅡ': '100', 'ㅣ': '001'
80+
'ㅗ': '01', 'ㅛ': '10', 'ㅜ': '0000', 'ㅠ': '010', 'ㅡ': '100', 'ㅣ': '001',
81+
'ㅐ': '1101', 'ㅔ': '1011'
8182
},
8283
'12': { // Thai Alphabet => https://th.wikipedia.org/wiki/รหัสมอร์ส
8384
'ก': '110', 'ข': '1010', 'ค': '101', 'ง': '10110', 'จ': '10010',

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ const baseCharacters = {
7979
'ㄱ': '0100', 'ㄴ': '0010', 'ㄷ': '1000', 'ㄹ': '0001', 'ㅁ': '11', 'ㅂ': '011',
8080
'ㅅ': '110', 'ㅇ': '101', 'ㅈ': '0110', 'ㅊ': '1010', 'ㅋ': '1001', 'ㅌ': '1100',
8181
'ㅍ': '111', 'ㅎ': '0111', 'ㅏ': '0', 'ㅑ': '00', 'ㅓ': '1', 'ㅕ': '000',
82-
'ㅗ': '01', 'ㅛ': '10', 'ㅜ': '0000', 'ㅠ': '010', 'ㅡ': '100', 'ㅣ': '001'
82+
'ㅗ': '01', 'ㅛ': '10', 'ㅜ': '0000', 'ㅠ': '010', 'ㅡ': '100', 'ㅣ': '001',
83+
'ㅐ': '1101', 'ㅔ': '1011'
8384
},
8485
'12': {
8586
'ก': '110', 'ข': '1010', 'ค': '101', 'ง': '10110', 'จ': '10010',

0 commit comments

Comments
 (0)