From d0cea523967a15f5196d69afd689fc320fe6d6ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20=C3=96zdemir?= Date: Thu, 3 Oct 2024 17:13:42 +0300 Subject: [PATCH] Added missing Korean characters --- package.json | 2 +- src/characters.ts | 5 +++-- src/index.js | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index fbce9fe..fb6bc53 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/characters.ts b/src/characters.ts index 80df332..5460667 100644 --- a/src/characters.ts +++ b/src/characters.ts @@ -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', diff --git a/src/index.js b/src/index.js index 17d7bdc..2b6c45e 100644 --- a/src/index.js +++ b/src/index.js @@ -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',