Name Description Size Coverage
__init__.py Package 'grit' 479 -
clique.py Collections of messages and their translations, called cliques. Also collections of cliques (uber-cliques). 18082 -
clique_unittest.py Unit tests for grit.clique 10736 -
constants.py Constant definitions for GRIT. 862 -
exception.py Exception types for GRIT. 3048 -
extern -
format -
gather -
grd_reader.py Class for reading GRD files into memory, without processing them. 7858 -
grd_reader_unittest.py Unit tests for grd_reader package 12542 -
grit-todo.xml 13198 -
grit_runner.py Command processor for GRIT. This is the script you invoke to run the various GRIT tools. 8926 -
grit_runner_unittest.py Unit tests for grit.py 1113 -
lazy_re.py In GRIT, we used to compile a lot of regular expressions at parse time. Since many of them never get used, we use lazy_re to compile them on demand the first time they are used, thus speeding up startup time in some cases. 1535 -
lazy_re_unittest.py Unit test for lazy_re. 970 -
node -
pseudo.py Pseudotranslation support. Our pseudotranslations are based on the P-language, which is a simple vowel-extending language. Examples of P: - "hello" becomes "hepellopo" - "howdie" becomes "hopowdiepie" - "because" becomes "bepecaupause" (but in our implementation we don't handle the silent e at the end so it actually would return "bepecaupausepe" The P-language has the excellent quality of increasing the length of text by around 30-50% which is great for pseudotranslations, to stress test any GUI layouts etc. To make the pseudotranslations more obviously "not a translation" and to make them exercise any code that deals with encodings, we also transform all English vowels into equivalent vowels with diacriticals on them (rings, acutes, diaresis, and circumflex), and we write the "p" in the P-language as a Hebrew character Qof. It looks sort of like a latin character "p" but it is outside the latin-1 character set which will stress character encoding bugs. 4117 -
pseudo_rtl.py Pseudo RTL, (aka Fake Bidi) support. It simply wraps each word with Unicode RTL overrides. More info at https://sites.google.com/a/chromium.org/dev/Home/fake-bidi 3700 -
pseudo_unittest.py Unit tests for grit.pseudo 1861 -
shortcuts.py Stuff to prevent conflicting shortcuts. 2946 -
shortcuts_unittest.py Unit tests for grit.shortcuts 3095 -
tclib.py Adaptation of the extern.tclib classes for our needs. 7229 -
tclib_unittest.py Unit tests for grit.tclib 8112 -
test_suite_all.py Unit test suite that collects all test cases for GRIT. 901 -
testdata -
tool -
util.py Utilities used by GRIT. 21349 -
util_unittest.py Unit test that checks some of util functions. 4131 -
xtb_reader.py Fast and efficient parser for XTB files. 4947 -
xtb_reader_unittest.py Unit tests for grit.xtb_reader 4073 -