Skip to content

Commit 86d9f9c

Browse files
committed
remove a wrong character from latin ext.
1 parent aca1d23 commit 86d9f9c

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

dist/morsify.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,10 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterat
101101
'Ć': '10100',
102102
'Ĉ': '10100',
103103
'Č': '110',
104-
'Đ': '00100',
105104
'Ð': '00110',
106105
'È': '01001',
107-
'Ë': '00100',
108106
'Ę': '00100',
107+
'Ë': '00100',
109108
'É': '00100',
110109
'Ê': '10010',
111110
'Ğ': '11010',

dist/morsify.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "morsify",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "Morse code translator, morse encoder and decoder, which can also generate audio.",
55
"keywords": [
66
"morsify",
@@ -36,17 +36,17 @@
3636
"url": "https://github.com/ozdemirburak/morsify.git"
3737
},
3838
"devDependencies": {
39-
"@babel/core": "^7.6.4",
40-
"@babel/preset-env": "^7.6.3",
39+
"@babel/core": "^7.7.2",
40+
"@babel/preset-env": "^7.7.1",
4141
"coveralls": "^3.0.7",
4242
"gulp": "^4.0.2",
4343
"gulp-babel": "^8.0.0",
4444
"gulp-babel-minify": "^0.5.1",
4545
"gulp-concat": "^2.6.1",
4646
"istanbul": "^0.4.5",
47-
"jshint": "^2.10.2",
47+
"jshint": "^2.10.3",
4848
"lodash": "^4.17.15",
49-
"mocha": "^6.2.1"
49+
"mocha": "^6.2.2"
5050
},
5151
"main": "./src/morsify.js",
5252
"files": [

src/morsify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
'4': { // Latin Extended => https://ham.stackexchange.com/questions/1379/international-characters-in-morse-code
3131
'Ã': '01101', 'Á': '01101', 'Å': '01101', 'À': '01101', 'Â': '01101', 'Ä': '0101',
3232
'Ą': '0101', 'Æ': '0101', 'Ç': '10100', 'Ć': '10100', 'Ĉ': '10100', 'Č': '110',
33-
'Đ': '00100', 'Ð': '00110', 'È': '01001', 'Ë': '00100', 'Ę': '00100', 'É': '00100',
33+
'Ð': '00110', 'È': '01001', 'Ę': '00100', 'Ë': '00100', 'É': '00100',
3434
'Ê': '10010', 'Ğ': '11010', 'Ĝ': '11010', 'Ĥ': '1111', 'İ': '01001', 'Ï': '10011',
3535
'Ì': '01110', 'Ĵ': '01110', 'Ł': '01001', 'Ń': '11011', 'Ñ': '11011', 'Ó': '1110',
3636
'Ò': '1110', 'Ö': '1110', 'Ô': '1110', 'Ø': '1110', 'Ś': '0001000', 'Ş': '01100',

test/morsify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('morsify', function () {
2929
it('encodes non-english alphabet', function () {
3030
t.equal(morsify.encode('ÃÁÅÀÂÄ'), '.--.- .--.- .--.- .--.- .--.- .-.-');
3131
t.equal(morsify.encode('ĄÆÇĆĈČ'), '.-.- .-.- -.-.. -.-.. -.-.. --.');
32-
t.equal(morsify.encode('ĐÐÈËĘÉ'), '..-.. ..--. .-..- ..-.. ..-.. ..-..');
32+
t.equal(morsify.encode('ĘÐÈËĘÉ'), '..-.. ..--. .-..- ..-.. ..-.. ..-..');
3333
t.equal(morsify.encode('ÊĞĜĤİÏ'), '-..-. --.-. --.-. ---- .-..- -..--');
3434
t.equal(morsify.encode('ÌĴŁŃÑÓ'), '.---. .---. .-..- --.-- --.-- ---.');
3535
t.equal(morsify.encode('ÒÖÔØŚŞ'), '---. ---. ---. ---. ...-... .--..');
@@ -40,7 +40,7 @@ describe('morsify', function () {
4040
const options = { priority: 4 };
4141
t.equal(morsify.decode('.--.- .--.- .--.- .--.- .--.- .-.-', options), 'ÃÃÃÃÃÄ');
4242
t.equal(morsify.decode('.-.- .-.- -.-.. -.-.. -.-.. --.', options), 'ÄÄÇÇÇČ');
43-
t.equal(morsify.decode('..-.. ..--. .-..- ..-.. ..-.. ..-..', options), 'ĐÐÈĐĐĐ');
43+
t.equal(morsify.decode('..-.. ..--. .-..- ..-.. ..-.. ..-..', options), 'ĘÐÈĘĘĘ');
4444
t.equal(morsify.decode('-..-. --.-. --.-. ---- .-..- -..--', options), 'ÊĞĞĤÈÏ');
4545
t.equal(morsify.decode('.---. .---. .-..- --.-- --.-- ---.', options), 'ÌÌÈŃŃÓ');
4646
t.equal(morsify.decode('---- ---- ...-. ... ... .--.. ..--', options), 'ĤĤŜSSŞÜ');

0 commit comments

Comments
 (0)