Package Pyblio :: Package Parsers :: Package Syntax :: Package BibTeX :: Module Coding
[show private | hide private]
[frames | no frames]

Module Pyblio.Parsers.Syntax.BibTeX.Coding

Handles coding and decoding of LaTeX-escaped characters.

Coding and decoding tries to be as reversible as possible (though certain encodings are ambiguous).
Function Summary
  encode(text)
encode a unicode string into a valid BibTeX string

Variable Summary
dict basemap = {'`': {'A': u'\xc0', 'a': u'\xe0', 'E': u'\xc8...
dict staticmap = {'aa': (u'\xe5', 0), 'AA': (u'\xc5', 0), 'AE...

Function Details

encode(text)

encode a unicode string into a valid BibTeX string

Variable Details

basemap

Type:
dict
Value:
{'"': {'A': u'\xc4',
       'E': u'\xcb',
       'I': u'\xcf',
       'O': u'\xd6',
       'U': u'\xdc',
       'a': u'\xe4',
       'e': u'\xeb',
       'i': u'\xef',
...                                                                    

staticmap

Type:
dict
Value:
{'AA': (u'\xc5', 0),
 'AE': (u'\xc6', 0),
 'O': (u'\xd8', 0),
 'OE': (u'\u0152', 0),
 'aa': (u'\xe5', 0),
 'ae': (u'\xe6', 0),
 'copyright': (u'\xa9', 0),
 'o': (u'\xf8', 0),
...                                                                    

Generated by Epydoc 2.1 on Sun Sep 24 23:52:43 2006 http://epydoc.sf.net