diff options
author | Martin Dürst <duerst@it.aoyama.ac.jp> | 2021-07-04 17:11:22 +0900 |
---|---|---|
committer | Martin Dürst <duerst@it.aoyama.ac.jp> | 2021-07-08 14:45:03 +0900 |
commit | 94fc4b18695d3ffa7a379b0ee7150eef237ac1cf (patch) | |
tree | ea07151991337f8a55f0be7ee2d95360f31ad6da /tool/enc-unicode.rb | |
parent | b6113a3fd8471a9bd41a866c602746e3eb391de0 (diff) |
Adjust tool/enc-unicode.rb to deal with new location of some emoji files
- Change location of file emoji-data.txt
- Change range of files in emoji directory
([stz] is for emoji-sequences.txt, emoji-test.txt, and emoji-zwj-sequences.txt)
- Make sure that version of all emoji files is checked against Emoji version
Diffstat (limited to 'tool/enc-unicode.rb')
-rwxr-xr-x | tool/enc-unicode.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/enc-unicode.rb b/tool/enc-unicode.rb index f64cecb881..93f6e869f8 100755 --- a/tool/enc-unicode.rb +++ b/tool/enc-unicode.rb @@ -138,7 +138,7 @@ def parse_scripts(data, categories) {:fn => 'DerivedCoreProperties.txt', :title => 'Derived Property'}, {:fn => 'Scripts.txt', :title => 'Script'}, {:fn => 'PropList.txt', :title => 'Binary Property'}, - {:fn => 'emoji-data.txt', :title => 'Emoji'} + {:fn => 'emoji/emoji-data.txt', :title => 'Emoji'} ] current = nil cps = [] @@ -305,13 +305,13 @@ def constantize_blockname(name) end def get_file(name) - File.join(ARGV[name.start_with?("emoji-") ? 1 : 0], name) + File.join(ARGV[name.start_with?("emoji-[stz]") ? 1 : 0], name) end def data_foreach(name, &block) fn = get_file(name) warn "Reading #{name}" - if /^emoji-/ =~ name + if /^emoji/ =~ name sep = "" pat = /^# #{Regexp.quote(File.basename(name))}.*^# Version: ([\d.]+)/m type = :Emoji |