|
@@ -55,8 +55,8 @@ var akkad_readings = {
|
|
'𒄣': ['kum'],
|
|
'𒄣': ['kum'],
|
|
|
|
|
|
// Lesson 13
|
|
// Lesson 13
|
|
- '𒀭': ['AN', 'DINGER'],
|
|
|
|
- '𒈬': ['MU'],
|
|
|
|
|
|
+ '𒀭': ['an', 'AN', 'DINGER'],
|
|
|
|
+ '𒈬': ['mu', 'MU'],
|
|
'': ['DUMU'],
|
|
'': ['DUMU'],
|
|
'𒊔': ['SAG'],
|
|
'𒊔': ['SAG'],
|
|
'𒂍': ['É'],
|
|
'𒂍': ['É'],
|
|
@@ -85,17 +85,17 @@ var akkad_readings = {
|
|
};
|
|
};
|
|
|
|
|
|
var akkad_table = {};
|
|
var akkad_table = {};
|
|
-for (sign in akkad_readings) {
|
|
|
|
- for (reading of akkad_readings[sign]) {
|
|
|
|
|
|
+for (var sign in akkad_readings) {
|
|
|
|
+ for (var reading of akkad_readings[sign]) {
|
|
akkad_table[reading] = sign;
|
|
akkad_table[reading] = sign;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
var convert = function(text) {
|
|
var convert = function(text) {
|
|
var wedges = [];
|
|
var wedges = [];
|
|
- for (word of text.split(' ')) {
|
|
|
|
|
|
+ for (var word of text.split(' ')) {
|
|
var code = '';
|
|
var code = '';
|
|
- for (sign of word.split('-')) {
|
|
|
|
|
|
+ for (var sign of word.split('-')) {
|
|
if (sign in akkad_table) {
|
|
if (sign in akkad_table) {
|
|
code += akkad_table[sign];
|
|
code += akkad_table[sign];
|
|
} else {
|
|
} else {
|