doc/share/examples/vim/sgml2accents.pl
Nik Clayton 2ee8a10ad2 Sample .vimrc and associated files for editing FDP documentation, and
maintaining structure, and so on.

Submitted by:   Robert Brive <brive@freebsd-fr.org
1999-11-15 19:41:09 +00:00

72 lines
1.1 KiB
Perl
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/perl
# $FreeBSD$
# Transform SGML notation in Iso-8859-1 accents
while (<>) {
s/&Agrave;/À/g;
s/&Aacute;/Á/g;
s/&Acirc;/Â/g;
s/&Atilde;/Ã/g;
s/&Auml;/Ä/g;
s/&Aring;/Å/g;
s/&Aring;/Å/g;
s/&AElig;/Æ/g;
s/&Ccedil;/Ç/g;
s/&Egrave'/È/g;
s/&Eacute;/É/g;
s/&Ecirc;/Ê/g;
s/&Euml;/Ë/g;
s/&Igrave;/Ì/g;
s/&Iacute;/Í/g;
s/&Icirc;/Î/g;
s/&Iuml;/Ï/g;
s/&ETH;/Ð/g;
s/&Ntilde;/Ñ/g;
s/&Ograve;/Ò/g;
s/&Oacute;/Ó/g;
s/&Ocirc;/Ô/g;
s/&Otilde;/Õ/g;
s/&Ouml;/Ö/g;
s/&times;/×/g;
s/&Oslash;/Ø/g;
s/&Ugrave;/Ù/g;
s/&Uacute;/Ú/g;
s/&Ucirc;/Û/g;
s/&Uuml;/Ü/g;
s/&Yacute;/Ý/g;
s/&THORN;/Þ/g;
s/&szlig;/ß/g;
s/&agrave;/à/g;
s/&aacute;/á/g;
s/&acirc;/â/g;
s/&atilde;/ã/g;
s/&auml;/ä/g;
s/&aring;/å/g;
s/&aring;/å/g;
s/&aelig;/æ/g;
s/&ccedil;/ç/g;
s/&egrave;/è/g;
s/&eacute;/é/g;
s/&ecirc;/ê/g;
s/&euml;/ë/g;
s/&igrave;/ì/g;
s/&iacute;/í/g;
s/&icirc;/î/g;
s/&iuml;/ï/g;
s/&eth;/ð/g;
s/&ntilde;/ñ/g;
s/&ograve;/ò/g;
s/&oacute;/ó/g;
s/&ocirc;/ô/g;
s/&otilde;/õ/g;
s/&ouml;/ö/g;
s/&divide;/÷/g;
s/&oslash;/ø/g;
s/&ugrave;/ù/g;
s/&uacute;/ú/g;
s/&ucirc;/û/g;
s/&uuml;/ü/g;
s/&yacute;/ý/g;
s/&thorn;/þ/g;
s/&yuml;/ÿ/g;
print;
}