Home | Trees | Indices | Help |
|
---|
|
This is a set of validation checks that can be performed on translation units.
Derivatives of UnitChecker (like StandardUnitChecker) check translation units, and derivatives of TranslationChecker (like StandardChecker) check (source, target) translation pairs.
When adding a new test here, please document and explain the behaviour on the wiki.
|
|||
FilterFailure This exception signals that a Filter didn't pass, and gives an explanation or a comment |
|||
SeriousFilterFailure This exception signals that a Filter didn't pass, and the bad translation might break an application (so the string will be marked fuzzy) |
|||
CheckerConfig object representing the configuration of a checker |
|||
UnitChecker Parent Checker class which does the checking based on functions available in derived classes. |
|||
TranslationChecker A checker that passes source and target strings to the checks, not the whole unit. |
|||
TeeChecker A Checker that controls multiple checkers. |
|||
StandardChecker The basic test suite for source -> target translations. |
|||
OpenOfficeChecker | |||
MozillaChecker | |||
DrupalChecker | |||
GnomeChecker | |||
KdeChecker | |||
CCLicenseChecker | |||
StandardUnitChecker The standard checks for common checks on translation units. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
xliff = None Parse an instance of this class from the start of the given string. |
|||
printf_pat = re.compile('%((?:(?P<ord>\d+)\$|\((?P<key>\w+)\))
|
|||
tagname_re = re.compile("<[\s]*([\w\/]*)")
|
|||
property_re = re.compile(" (\w*)=((\\\\?\".*?\\\\?\")|(\\\\?'.
|
|||
tag_re = re.compile("<[^>]+>")
|
|||
gconf_attribute_re = re.compile('"[a-z_]+?"')
|
|||
common_ignoretags = [(None, "xml-lang", None)]
|
|||
common_canchangetags = [("img", "alt", None)]
|
|||
openofficeconfig = CheckerConfig(accelmarkers= ["~"], varmatch
|
|||
mozillaconfig = CheckerConfig(accelmarkers= ["&"], varmatches=
|
|||
drupalconfig = CheckerConfig(varmatches= [("%", None), ("@", N
|
|||
gnomeconfig = CheckerConfig(accelmarkers= ["_"], varmatches= [
|
|||
kdeconfig = CheckerConfig(accelmarkers= ["&"], varmatches= [("
|
|||
cclicenseconfig = CheckerConfig(varmatches= [("@", "@")])
|
|||
projectcheckers = {"openoffice": OpenOfficeChecker, "mozilla":
|
Imports: helpers, decoration, prefilters, spelling, factory, data, re
|
Tests to see if pair == (a,b,c) is in list, but handles None entries in list as wildcards (only allowed in positions "a" and "c"). We take a shortcut by only considering "c" if "b" has already matched. |
|
printf_pat
|
property_re
|
openofficeconfig
|
mozillaconfig
|
drupalconfig
|
gnomeconfig
|
kdeconfig
|
projectcheckers
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Oct 15 13:53:49 2009 | http://epydoc.sourceforge.net |