1LaTeX::ToUnicode(3)   User Contributed Perl Documentation  LaTeX::ToUnicode(3)
2
3
4

NAME

6       LaTeX::ToUnicode - Convert LaTeX commands to Unicode
7

VERSION

9       version 0.05
10

SYNOPSIS

12         use LaTeX::ToUnicode qw( convert );
13
14         convert( '{\"a}'           ) eq 'ä';  # true
15         convert( '"a', german => 1 ) eq 'ä';  # true, `german' package syntax
16         convert( '"a',             ) eq '"a'; # not enabled by default
17

DESCRIPTION

19       This module provides a method to convert LaTeX-style markups for
20       accents etc.  into their Unicode equivalents. It translates commands
21       for special characters or accents into their Unicode equivalents and
22       removes formatting commands.
23
24       I use this module to convert values from BibTeX files into plain text,
25       if your use case is different, YMMV.
26
27       In contrast to TeX::Encode, this module does not create HTML of any
28       kind.
29

FUNCTIONS

31   convert( $string, %options )
32       Convert the text in $string that contains LaTeX into a plain(er)
33       Unicode string. All escape sequences for special characters (e.g. \i,
34       \"a, ...) are converted, formatting commands (e.g. {\it ...}) are
35       removed.
36
37       %options allows you to enable additional translations. This values are
38       recognized:
39
40       "german"
41           If true, the commands introduced by the package `german' (e.g. ""a"
42           eq "ä", note the missing backslash) are also handled.
43

AUTHOR

45       Gerhard Gossen <gerhard.gossen@googlemail.com> and Boris Veytsman
46       <boris@varphi.com>
47
49       This software is copyright (c) 2010-2015 by Gerhard Gossen and Boris
50       Veytsman
51
52       This is free software; you can redistribute it and/or modify it under
53       the same terms as the Perl 5 programming language system itself.
54
55
56
57perl v5.28.1                      2016-11-23               LaTeX::ToUnicode(3)
Impressum