pology.lang.es.compare_with_original

Package pology :: Package lang :: Package es :: Module compare_with_original |

# Module compare_with_original

Make some comparations between the translation and the original text.

Author: Javier Viñal <fjvinal@gmail.com>

License: GPLv3

Functions
test_if_empty_translation(msg, cat) Compare the translation with the original text, testing if the translation is empty. |
test_if_purepunc(msg, cat) Compare the translation with the original text, testing if the translation is different when the original text has not alphanumeric text. |
test_if_non_printable_characters(msg, cat) Compare the translation with the original text, testing if the translation is different when the original text has not alphanumeric text. |
test_if_very_long_translation(msg, cat) Compare the translation with the original text, testing if the transaled text is much longer than the original (As much twice with a correction for small text). |
test_if_very_short_translation(msg, cat) Compare the translation with the original text, testing if the transaled text is much shorter than the original. |
test_if_not_translated(msg, cat) Compare the translation with the original text, testing if the paragraph is not translated. |
test_paired_accelerators(msg, cat) Compare number of accelerators (&) between original and translated text. |
test_paired_strings(msg, cat) Compare number of some strings between original and translated text. |
test_paired_brackets(msg, cat) Compare number of some brackets between original and translated text. |
test_paired_expressions(msg, cat) Compare expressions (functions, parameters) between original and translated text. |
test_paired_numbers(msg, cat) Compare numbers and dates between original and translated text. |
test_paired_context_tags(msg, cat) Compare context tags between original and translated text. |
test_paired_xml_entities(msg, cat) Compare xml entities between original and translated text. |

Variables
| __package__ = ``'``pology.lang.es``'``

Function Details

### test_if_empty_translation(msg, cat) |
Compare the translation with the original text, testing if the translation is empty. [type V4A hook]. Returns: parts

### test_if_purepunc(msg, cat) |
Compare the translation with the original text, testing if the translation is different when the original text has not alphanumeric text. [type V4A hook]. Returns: parts

### test_if_non_printable_characters(msg, cat) |
Compare the translation with the original text, testing if the translation is different when the original text has not alphanumeric text. [type V4A hook]. Returns: parts

### test_if_very_long_translation(msg, cat) |
Compare the translation with the original text, testing if the transaled text is much longer than the original (As much twice with a correction for small text). [type V4A hook]. Returns: parts

### test_if_very_short_translation(msg, cat) |
Compare the translation with the original text, testing if the transaled text is much shorter than the original. [type V4A hook]. Returns: parts

### test_if_not_translated(msg, cat) |
Compare the translation with the original text, testing if the paragraph is not translated. [type V4A hook]. Returns: parts

### test_paired_accelerators(msg, cat) |
Compare number of accelerators (&) between original and translated text. [type V4A hook]. Returns: parts

### test_paired_strings(msg, cat) |
Compare number of some strings between original and translated text. [type V4A hook]. Returns: parts

### test_paired_brackets(msg, cat) |
Compare number of some brackets between original and translated text. [type V4A hook]. Returns: parts

### test_paired_expressions(msg, cat) |
Compare expressions (functions, parameters) between original and translated text. Should be the same. [type V4A hook]. Returns: parts

### test_paired_numbers(msg, cat) |
Compare numbers and dates between original and translated text. Should be the same (except for commas/colons and one digit numbers) [type V4A hook]. Returns: parts

### test_paired_context_tags(msg, cat) |
Compare context tags between original and translated text. Some of them should not be changed in the translation. [type V4A hook]. Returns: parts

### test_paired_xml_entities(msg, cat) |
Compare xml entities between original and translated text. Some of them should not be changed in the translation. [type V4A hook]. Returns: parts