/usr/bin/refdb_latex2utf8txt is in refdb-clients 1.0.2-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | #!/usr/bin/perl -w
#
# refdb_latex2utf8txt 2006-07-13 mhoenicka@users.sourceforge.net
#
# modification of:
# latex2utf8txt, Jun 18 2005 Peter Csizmadia
#
use strict;
while(<>) {
s/^[ \t]+//g;
s/[ \t]+$//g;
s/^``(\w)/"$1/g;
s/ ``(\w)/ "$1/g;
s/([\w\.])''$/$1"/g;
s/([\w\.])'' /$1" /g;
# incomplete
s/\{\\'a\}|\\'a/á/g;
s/\{\\'A\}|\\'A/Á/g;
s/\{\\`a\}|\\`a/à/g;
s/\{\\`A\}|\\`A/À/g;
s/\{\\^a\}|\\^a/â/g;
s/\{\\^A\}|\\^A/Â/g;
s/\{\\'e\}|\\'e/é/g;
s/\{\\'E\}|\\'E/É/g;
s/\{\\`e\}|\\`e/è/g;
s/\{\\`E\}|\\`E/È/g;
s/\{\\^e\}|\\^e/ê/g;
s/\{\\^E\}|\\^E/Ê/g;
s/\{\\'\\i\}|\\'\\i/í/g;
s/\{\\'I\}|\\'I/Í/g;
s/\{\\`\\i\}|\\`\\i/ì/g;
s/\{\\`I\}|\\`I/Ì/g;
s/\{\\^\\i\}|\\^\\i/î/g;
s/\{\\^I\}|\\^I/Î/g;
s/\{\\'o\}|\\'o/ó/g;
s/\{\\'O\}|\\'O/Ó/g;
s/\{\\`o\}|\\`o/ò/g;
s/\{\\`O\}|\\`O/Ò/g;
s/\{\\"o\}|\\"o/ö/g;
s/\{\\"O\}|\\"O/Ö/g;
s/\{\\~o\}|\\~o/õ/g;
s/\{\\~O\}|\\~O/Õ/g;
s/\{\\^o\}|\\^o/ô/g;
s/\{\\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