0.06
Low commit activity in last 3 years
A long-lived project that still receives updates
Decodes strings formatted in LaTeX to equivalent Unicode strings.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies
 Project Readme

LaTeX::Decode

ci coverage

LaTeX::Decode is a Ruby gem to convert LaTeX input to Unicode. Its original use was as an input filter for [BibTeX-Ruby][] but it can be used independently to decode LaTeX. Many of the patterns used by this Ruby gem are based on François Charette's equivalent Perl module LaTeX::Decode.

Quickstart

$ [sudo] gem install latex-decode
$ irb
>> require 'latex/decode'
>> LaTeX.decode "dipl\\^{o}me d'\\'{e}tudes sup\\'erieures"
=> "diplôme d'études supérieures"

Issues

Please use the tracker of the project's repository to report any issues. When describing intended behaviour, please use the syntax of the Cucumber features used by LaTeX::Decode. For instance, you could describe the example above as:

    Feature: Decode LaTeX accents
      As a hacker who works with LaTeX
      I want to be able to decode LaTeX accents

      Scenario: A French sentence
        When I decode the string "dipl\\^{o}me d'\\'{e}tudes sup\\'erieures"
        Then the result should be "diplôme d'études supérieures"

Credits

Kudos and thanks to all contributors who have made LaTeX::Decode possible!

Copyright (C) 2011-2022 Sylvester Keil Copyright (C) 2010 François Charette