Skip to content

Commit

Permalink
fixup! Port ruby data_generator.rb to Julia
Browse files Browse the repository at this point in the history
  • Loading branch information
c42f committed Jan 2, 2024
1 parent f6b55eb commit 5aff327
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions data/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ GraphemeBreakTest.txt:
emoji-data.txt:
$(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://unicode.org/Public/$(UNICODE_VERSION)/ucd/emoji/emoji-data.txt

Uppercase.txt: DerivedCoreProperties.txt
$(JULIA) -e 'print(match(r"# Derived Property: Uppercase.*?# Total code points:"s, read("DerivedCoreProperties.txt", String)).match)' > $@

Lowercase.txt: DerivedCoreProperties.txt
$(JULIA) -e 'print(match(r"# Derived Property: Lowercase.*?# Total code points:"s, read("DerivedCoreProperties.txt", String)).match)' > $@

clean:
rm -f UnicodeData.txt EastAsianWidth.txt GraphemeBreakProperty.txt DerivedCoreProperties.txt CompositionExclusions.txt CaseFolding.txt NormalizationTest.txt GraphemeBreakTest.txt emoji-data.txt
rm -f Uppercase.txt Lowercase.txt
rm -f utf8proc_data.c.new

0 comments on commit 5aff327

Please sign in to comment.