diff options
author | Steven G. Johnson <stevenj@mit.edu> | 2018-04-27 12:50:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-27 12:50:19 -0400 |
commit | d736adeff1a7ae06b6071cd74389061d9b39a6c4 (patch) | |
tree | c3249ac6758cc9fc083edf8f705cd6dd81c0393a /data/charwidths.jl | |
parent | d688ac122660e465dc65c8eb7b1c2444fcd52829 (diff) | |
download | libutf8proc-d736adeff1a7ae06b6071cd74389061d9b39a6c4.tar.gz libutf8proc-d736adeff1a7ae06b6071cd74389061d9b39a6c4.tar.bz2 |
update to unicode 10 (#132)
Diffstat (limited to 'data/charwidths.jl')
-rw-r--r-- | data/charwidths.jl | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/data/charwidths.jl b/data/charwidths.jl index bdcbc6c..ba54ccb 100644 --- a/data/charwidths.jl +++ b/data/charwidths.jl @@ -7,17 +7,6 @@ # Requires Julia (obviously) and FontForge. ############################################################################# -# Julia 0.3/0.4 compatibility (taken from Compat package) -if VERSION < v"0.4.0-dev+1387" - typealias AbstractString String -end -if VERSION < v"0.4.0-dev+1419" - const UInt32 = Uint32 -end -if VERSION < v"0.4.0-dev+3874" - Base.parse{T<:Integer}(::Type{T}, s::AbstractString) = parseint(T, s) -end - CharWidths = Dict{Int,Int}() ############################################################################# @@ -97,7 +86,7 @@ CharWidths=parsesfd("unifont_upper.sfd", CharWidths) for line in readlines(open("EastAsianWidth.txt")) #Strip comments - line[1] == '#' && continue + (isempty(line) || line[1] == '#') && continue precomment = split(line, '#')[1] #Parse code point range and width code tokens = split(precomment, ';') |