"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "data/charwidths.jl" between
utf8proc-2.4.0.tar.gz and utf8proc-2.5.0.tar.gz

About: utf8proc is a clean C library for processing UTF-8 Unicode data: normalization, case-folding, graphemes, and other operations.

charwidths.jl  (utf8proc-2.4.0):charwidths.jl  (utf8proc-2.5.0)
skipping to change at line 55 skipping to change at line 55
const UTF8PROC_CATEGORY_ZL = 24 const UTF8PROC_CATEGORY_ZL = 24
const UTF8PROC_CATEGORY_ZP = 25 const UTF8PROC_CATEGORY_ZP = 25
const UTF8PROC_CATEGORY_CC = 26 const UTF8PROC_CATEGORY_CC = 26
const UTF8PROC_CATEGORY_CF = 27 const UTF8PROC_CATEGORY_CF = 27
const UTF8PROC_CATEGORY_CS = 28 const UTF8PROC_CATEGORY_CS = 28
const UTF8PROC_CATEGORY_CO = 29 const UTF8PROC_CATEGORY_CO = 29
############################################################################# #############################################################################
# Use a default width of 1 for all character categories that are # Use a default width of 1 for all character categories that are
# letter/symbol/number-like, as well as for unassigned/private-use chars. # letter/symbol/number-like, as well as for unassigned/private-use chars.
# This can be overriden by UAX 11 # This can be overridden by UAX 11
# below, but provides a useful nonzero fallback for new codepoints when # below, but provides a useful nonzero fallback for new codepoints when
# a new Unicode version has been released but Unifont hasn't been updated yet. # a new Unicode version has been released but Unifont hasn't been updated yet.
zerowidth = Set{Int}() # categories that may contain zero-width chars zerowidth = Set{Int}() # categories that may contain zero-width chars
push!(zerowidth, UTF8PROC_CATEGORY_MN) push!(zerowidth, UTF8PROC_CATEGORY_MN)
push!(zerowidth, UTF8PROC_CATEGORY_MC) push!(zerowidth, UTF8PROC_CATEGORY_MC)
push!(zerowidth, UTF8PROC_CATEGORY_ME) push!(zerowidth, UTF8PROC_CATEGORY_ME)
push!(zerowidth, UTF8PROC_CATEGORY_SK) # push!(zerowidth, UTF8PROC_CATEGORY_SK) # see issue #167
push!(zerowidth, UTF8PROC_CATEGORY_ZL) push!(zerowidth, UTF8PROC_CATEGORY_ZL)
push!(zerowidth, UTF8PROC_CATEGORY_ZP) push!(zerowidth, UTF8PROC_CATEGORY_ZP)
push!(zerowidth, UTF8PROC_CATEGORY_CC) push!(zerowidth, UTF8PROC_CATEGORY_CC)
push!(zerowidth, UTF8PROC_CATEGORY_CF) push!(zerowidth, UTF8PROC_CATEGORY_CF)
push!(zerowidth, UTF8PROC_CATEGORY_CS) push!(zerowidth, UTF8PROC_CATEGORY_CS)
for c in 0x0000:0x110000 for c in 0x0000:0x110000
if catcode(c) ∉ zerowidth if catcode(c) ∉ zerowidth
CharWidths[c] = 1 CharWidths[c] = 1
end end
end end
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)