2 Incheckningar 48e5ae9a17 ... 05fe9906e4

Upphovsman SHA1 Meddelande Datum
  Ralph Giles 05fe9906e4 Use 'var' in for loop variables. 5 år sedan
  Ralph Giles a66c5d5224 Repeat clobbered readings. 5 år sedan
1 ändrade filer med 6 tillägg och 6 borttagningar
  1. 6 6
      glyph.js

+ 6 - 6
glyph.js

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