Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the Tengwar unicode character for five #410

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ five.dutch() // vijf
five.elvish() // lempë
five.elvish('quenya') // lempë
five.elvish('sindarin') // leben
five.elvish('tengwar') //  (not supported by most fonts, use Code2001 for example)
five.english() // five
five.esperanto() // kvin
five.estonian() // viis
Expand Down
1 change: 1 addition & 0 deletions five.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
switch(type) {
case 'quenya': return 'lempë';
case 'sindarin': return 'leben';
case 'tengwar': return '\ue065';
default: return 'lempë';
}
};
Expand Down
1 change: 1 addition & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ assert.equal('vijf', five.dutch(), 'A dutch five should be vijf');
assert.equal('lempë', five.elvish(), 'An elvish five should be lempë');
assert.equal('lempë', five.elvish('quenya'), 'An elvish five in Quenya should be lempë');
assert.equal('leben', five.elvish('sindarin'), 'An elvish five in Sindarin should be leben');
assert.equal('', five.elvish('tengwar'), 'A five in tengwar should be the corresponding unicode character');
assert.equal('five', five.english(), 'A english five should be five');
assert.equal('kvin', five.esperanto(), 'An esperanto five should be kvin');
assert.equal('viis', five.estonian(), 'An estonian five should be viis');
Expand Down