2 Commits 48e5ae9a17 ... 05fe9906e4

Autor SHA1 Mensaje Fecha
  Ralph Giles 05fe9906e4 Use 'var' in for loop variables. hace 5 años
  Ralph Giles a66c5d5224 Repeat clobbered readings. hace 5 años
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  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 {