Difference between revisions of "Test date handlers"
m (→Lexeme inflections) |
m (→Lexeme inflections) |
||
Line 16: | Line 16: | ||
A '''lexeme''': | A '''lexeme''': | ||
− | # (''linguistics'') Roughly, the set of inflected forms taken by a single word, such as the lexeme RUN including as members "run" (lemma), "running" (inflected form), or "ran", and excluding "runner" (derived term). | + | # (''linguistics'') Roughly, the set of inflected forms taken by a single word, such as the lexeme ''RUN'' including as members "''run''" (lemma), "''running''" (inflected form), or "''ran''", and excluding "''runner''" (derived term). |
− | #(''computing'') an individual instance of a continuous character sequence without spaces, used in lexical analysis ( | + | #(''computing'') an individual instance of a continuous character sequence without spaces, used in lexical analysis (token) |
:source : https://en.wiktionary.org/wiki/lexeme | :source : https://en.wiktionary.org/wiki/lexeme |
Revision as of 13:42, 8 February 2014
See date handler for new method on master (trunk).
List of date handlers is available.
Migrations and refactorings
> $ PYTHONPATH=/usr/local/lib/python2.7/site-packages/ GRAMPS_RESOURCES=$PWD LANGUAGE=de python -m gramps.gen.datehandler._datestrings
LC_TIME={lang_region}.utf8 or LANGUAGE={lang} should match all available date handlers.
See # 6926 for patches. Git => revision 918785..
Lexeme inflections
A lexeme:
- (linguistics) Roughly, the set of inflected forms taken by a single word, such as the lexeme RUN including as members "run" (lemma), "running" (inflected form), or "ran", and excluding "runner" (derived term).
- (computing) an individual instance of a continuous character sequence without spaces, used in lexical analysis (token)
TO_CHECK
>$ PYTHONPATH=/usr/local/lib/python2.7/site-packages/ LC_ALL=en_GB.utf8 LANG=en_GB.utf8 GRAMPS_RESOURCES=$PWD python -m unittest discover -p 'date*test.py'
locale | score | date formats MAX: 8 |
---|---|---|
ar | 6 | |
bg | 6 | |
ca | 6 | |
cs | 6 | |
da | 6 | |
de | Ran 59 tests in 7.665s (using the fallback 'C' locale) | 6 |
en | Ran 59 tests in 7.558s (using the fallback 'C' locale) | 6 |
el | 5 | |
es | 6 | |
fi | 2 | |
fr | Ran 59 tests in 9.007s (skipped=1) | 8 |
hr | Ran 59 tests in 7.771s (using the fallback 'C' locale) | 6 |
it | 6 | |
lt | 3 | |
nb | 6 | |
nl | 6 | |
nn | 6 | |
ru | Ran 59 tests in 7.646s (using the fallback 'C' locale) | 6 |
pl | 6 | |
pt | 6 | |
sk | 6 | |
sl | 4 | |
sr | 5 | |
sv | Ran 59 tests in 7.662s (using the fallback 'C' locale) | 6 |
uk | 6 | |
.. | .. | .. |
> $ PYTHONPATH=/usr/local/lib/python2.7/site-packages/ GRAMPS_RESOURCES=$PWD python -m gramps.gen.datehandler.__init__