Skip to content

Commit

Permalink
Add Danish replacements (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhnorskov authored Apr 6, 2020
1 parent 53b45ee commit 4058138
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ This includes special handling for:
- Arabic
- Armenian
- Czech
- Danish
- Dhivehi
- Georgian
- German (umlauts)
Expand Down
8 changes: 8 additions & 0 deletions replacements.js
Original file line number Diff line number Diff line change
Expand Up @@ -748,4 +748,12 @@ module.exports = [
['і', 'i'],
['ї', 'yi'],
['ґ', 'g']

// Danish
// ['Æ', 'Ae'],
// ['Ø', 'Oe'],
// ['Å', 'Aa'],
// ['æ', 'ae'],
// ['ø', 'oe'],
// ['å', 'aa']
];
4 changes: 4 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ test('supports Czech', t => {
t.is(transliterate('č ž Ň'), 'c z N');
});

test.failing('supports Danish', t => {
t.is(transliterate('æ ø å Æ Ø Å'), 'ae oe aa Ae Oe Aa');
});

test('supports Dhivehi', t => {
t.is(transliterate('ޝ ޓ ބ'), 'sh t b');
});
Expand Down

0 comments on commit 4058138

Please sign in to comment.