Package pology :: Package lang :: Package sr :: Module charsets

Module charsets

Conversions between character sets in Serbian texts.


Author: Chusslove Illich (Часлав Илић) <caslav.ilic@gmx.net>

License: GPLv3

Functions
 
limit_to_isocyr(text)
Limit characters to those available in ISO-8859-5 [type F1A hook].
 
limit_to_isolat(text)
Limit characters to those available in ISO-8859-2 [type F1A hook].
Variables
  chset_iso8859_5 = set([u' ', u'!', u'"', u'#', u'$', u'%', u'&...
  translit_iso8859_5 = {}
  chset_iso8859_2 = set([u' ', u'!', u'"', u'#', u'$', u'%', u'&...
  translit_iso8859_2 = {u'×': u'×'}
  translit_ascii = {u' ': ' ', u'©': 'c', u'×': 'x', u'ä': 'ae',...
  __package__ = 'pology.lang.sr'
Function Details

limit_to_isocyr(text)

 

Limit characters to those available in ISO-8859-5 [type F1A hook].

If a character is neither available in the target character set nor can be transliterated to it, conversion is undefined, and warning is reported to stderr.

Returns:
text

limit_to_isolat(text)

 

Limit characters to those available in ISO-8859-2 [type F1A hook].

If a character is neither available in the target character set nor can be transliterated to it, conversion is undefined, and warning is reported to stderr.

Returns:
text

Variables Details

chset_iso8859_5

Value:
set([u' ',
     u'!',
     u'"',
     u'#',
     u'$',
     u'%',
     u'&',
     u''',
...

chset_iso8859_2

Value:
set([u' ',
     u'!',
     u'"',
     u'#',
     u'$',
     u'%',
     u'&',
     u''',
...

translit_ascii

Value:
{u' ': ' ',
 u'©': 'c',
 u'×': 'x',
 u'ä': 'ae',
 u'ö': 'oe',
 u'ü': 'ue',
 u'': '',
 u'': '',
...