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

Unified Diff: third_party/liblouis/liblouis_list_tables.py

Issue 589133002: Make undefined Unicode characters show up in a nicer way in braille. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moretables
Patch Set: Fix typo. Created 6 years, 3 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
« no previous file with comments | « third_party/liblouis/cvox-common.cti ('k') | third_party/liblouis/liblouis_nacl.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/liblouis/liblouis_list_tables.py
diff --git a/third_party/liblouis/liblouis_list_tables.py b/third_party/liblouis/liblouis_list_tables.py
index e42e5daee21b3fc0224d8740049000371acf4542..9cd3fb8b9ac8355fd387d19a823eceee27ab9309 100755
--- a/third_party/liblouis/liblouis_list_tables.py
+++ b/third_party/liblouis/liblouis_list_tables.py
@@ -66,7 +66,9 @@ def DoMain(argv):
parser.prog = 'liblouis_list_tables'
parser.set_usage('usage: %prog [options] listfile')
parser.add_option('-D', '--directory', dest='directories',
- action='append', help='Where to search for table files')
+ action='append', help='Where to search for table files')
+ parser.add_option('-e', '--extra_file', dest='extra_files', action='append',
+ default=[], help='Extra liblouis table file to process')
(options, args) = parser.parse_args(argv)
if len(args) != 1:
@@ -77,7 +79,10 @@ def DoMain(argv):
tables = LoadTablesFile(args[0])
output_set = set()
for table in tables:
- ProcessFile(output_set, table['fileName'], options.directories)
+ for name in table['fileNames'].split(','):
+ ProcessFile(output_set, name, options.directories)
+ for name in options.extra_files:
+ ProcessFile(output_set, name, options.directories)
return '\n'.join(output_set)
« no previous file with comments | « third_party/liblouis/cvox-common.cti ('k') | third_party/liblouis/liblouis_nacl.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698