Homec4science

textutils: translate LaTeX symbols to Unicode

Authored by Jan Aage Lavik <jan.age.lavik@cern.ch> on Apr 7 2011, 15:18.

Description

textutils: translate LaTeX symbols to Unicode

  • Adds a function in textutils that replaces LaTeX symbols to Unicode using an appropriate translation table.
  • Adds a default translation table mapping common LaTeX symbols to Unicode. Adds external contributions in THANKS.
  • Adds function decode_to_unicode() which attempts to detect input character encoding and decode it into Unicode. For optimal results it is recommended to install the 'chardet' module.
  • Also adds appropriate regression tests.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>May 31 2011, 11:15
Parents
R3600:c262994127c4: installation: new exactfirstauthor index
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:6cfab519695a: textutils: translate LaTeX symbols to Unicode (authored by Jan Aage Lavik <jan.age.lavik@cern.ch>).May 31 2011, 11:15