*** empty log message ***
[m17n/m17n-db.git] / CASED.awk
index 3dd9250..20fb6cd 100644 (file)
--- a/CASED.awk
+++ b/CASED.awk
@@ -18,8 +18,8 @@
 
 # You should have received a copy of the GNU Lesser General Public
 # License along with the m17n library; if not, write to the Free
-# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-# 02111-1307, USA.
+# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
 
 BEGIN {
   tohex["0"] = 1;
@@ -45,7 +45,6 @@ BEGIN {
   tohex["e"] = 15;
   tohex["f"] = 16;
 
-  FILE = "UnicodeData.txt";
   FS = "[ \t]*[;#][ \t]*";
 }
 
@@ -76,22 +75,19 @@ function range(str, bit) {
 }
 
 /^[^\#]/ {
-
-  if (FILE == "UnicodeData.txt") {
+  if (FILENAME == "UNIDATA/UnicodeData.txt") {
     if ($3 ~ /L[ltu]/)
       single($1, 1);
     else if ($3 ~ /Mn|Me|Cf|Lm|Sk/)
       single($1, 2);
-    next;
   }
 
-  else if (FILE == "PropList.txt") {
+  else if (FILENAME == "UNIDATA/PropList.txt") {
     if ($2 ~ /Other_(Upp|Low)ercase/) {
       if (index($1, "."))
        range($1, 1);
       else
        single($1, 1);
-      next;
     }
   }
 
@@ -101,19 +97,10 @@ function range(str, bit) {
        range($1, 2);
       else
        single($1, 2);
-      next;
     }
   }
 }
 
-/^\# PropList-.+\.txt/ {
-  FILE = "PropList.txt";
-}
-
-/^\# WordBreakProperty-.+\.txt/ {
-  FILE = "WordBreakProperty.txt";
-}
-
 END {
   for (i in cased)
     printf ("0x%X %d\n", i, cased[i]);