Package pology :: Package lang :: Package sr :: Module accents

Module accents

Process letter accents in Serbian Cyrillic text.


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

License: GPLv3

Functions
 
resolve_agraphs(text)
Convert accent graphs into real accented letters [type F1A hook].
 
remove_accents(text)
Remove accents from all accented letters [type F1A hook].
Variables
  __package__ = None
  accent = u'ô'
Function Details

resolve_agraphs(text)

 

Convert accent graphs into real accented letters [type F1A hook].

Accented Cyrillic letters still cannot be widely entered directly by keyboard, and in such cases this module allows converting graphical accent-letter representations into actual Unicode compositions.

Returns:
text

Note: At the moment, only genitive endings are supported.

remove_accents(text)

 

Remove accents from all accented letters [type F1A hook].

Sometimes it is convenient to operate on text without accents, e.g. when checking spelling.

Returns:
text