Minor fixes to work with Unicode 8.0.0 data

This commit is contained in:
Jiahao Chen 2015-06-20 08:03:40 -04:00
parent f7219d516e
commit d18963cc46

View File

@ -27,6 +27,7 @@ end
function parsesfd(filename::String, CharWidths::Dict{Int,Int}=Dict{Int,Int}())
state=:seekchar
lineno = 0
codepoint = width = nothing
for line in readlines(open(filename))
lineno += 1
if state==:seekchar #StartChar: nonmarkingreturn
@ -91,7 +92,7 @@ function catcode(c)
end
# use Base.UTF8proc module to get category codes constants, since
# we aren't goint to change these in utf8proc.
# we won't change these in utf8proc.
import Base.UTF8proc
for c in keys(CharWidths)