# 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;
tohex["e"] = 15;
tohex["f"] = 16;
- FILE = "UnicodeData.txt";
FS = "[ \t]*[;#][ \t]*";
}
}
/^[^\#]/ {
-
- 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;
}
}
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]);