alphabet.js must be a function that uses callback functions
Instead of this:
const alphabet = {
a: 0b00001,
b: 0b00010,
c: 0b00011
}
do something like this:
const decorator = {
GRAVE: 'grave',
ACUTE: 'acute',
CIRCUMFLEX: 'circumflex',
NINA: 'nina',
CEDILLA: 'cedilla',
};
function alphabet(drawGlyphLetter, toUpperCase, addDecorator) {
return dict = {
'a': drawGlyphLetter(0b00001),
'b': drawGlyphLetter(0b00010),
'c': drawGlyphLetter(0b00011),
'A': toUpperCase('a'),
'B': toUpperCase('b'),
'C': toUpperCase('c'),
'à': addDecorator('a', decorator.GRAVE),
'â': addDecorator('a', decorator.CIRCUMFLEX),
}
}
required fo #7.