X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=CASED.awk;h=20fb6cd5bc3ce207e63d3136cf108b0f824226b2;hb=133ee7c99151e7cb352b24c976dc66882714444f;hp=3dd925088468f1717b2af239e8c1742151fdaeb2;hpb=a7c0960f33cfc76e38328d592f5f18109e9caed7;p=m17n%2Fm17n-db.git diff --git a/CASED.awk b/CASED.awk index 3dd9250..20fb6cd 100644 --- 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]);