Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/harfbuzz/contrib/tables/combining-class-parse.py

Issue 384503008: Delete third_party/harfbuzz (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove public header Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/harfbuzz/contrib/tables/combining-class-parse.py
diff --git a/third_party/harfbuzz/contrib/tables/combining-class-parse.py b/third_party/harfbuzz/contrib/tables/combining-class-parse.py
deleted file mode 100644
index c591dddc42947fbd780192b63d289bb71d81dc7d..0000000000000000000000000000000000000000
--- a/third_party/harfbuzz/contrib/tables/combining-class-parse.py
+++ /dev/null
@@ -1,34 +0,0 @@
-import sys
-from unicode_parse_common import *
-
-# http://www.unicode.org/Public/5.1.0/ucd/extracted/DerivedCombiningClass.txt
-
-class IdentityMap(object):
- def __getitem__(_, key):
- return key
-
-def main(infile, outfile):
- ranges = unicode_file_parse(infile, IdentityMap(), '0')
- ranges = sort_and_merge(ranges)
-
- print >>outfile, '// Generated from Unicode tables\n'
- print >>outfile, '#ifndef COMBINING_PROPERTIES_H_'
- print >>outfile, '#define COMBINING_PROPERTIES_H_\n'
- print >>outfile, '#include <stdint.h>'
- print >>outfile, 'struct combining_property {'
- print >>outfile, ' uint32_t range_start;'
- print >>outfile, ' uint32_t range_end;'
- print >>outfile, ' uint8_t klass;'
- print >>outfile, '};\n'
- print >>outfile, 'static const struct combining_property combining_properties[] = {'
- for (start, end, value) in ranges:
- print >>outfile, ' {0x%x, 0x%x, %s},' % (start, end, value)
- print >>outfile, '};\n'
- print >>outfile, 'static const unsigned combining_properties_count = %d;\n' % len(ranges)
- print >>outfile, '#endif // COMBINING_PROPERTIES_H_'
-
-if __name__ == '__main__':
- if len(sys.argv) != 3:
- print 'Usage: %s <input .txt> <output .h>' % sys.argv[0]
- else:
- main(file(sys.argv[1], 'r'), file(sys.argv[2], 'w+'))
« no previous file with comments | « third_party/harfbuzz/contrib/tables/category-properties.h ('k') | third_party/harfbuzz/contrib/tables/combining-properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698