X-Git-Url: http://git.projectaon.org/?p=project-aon.git;a=blobdiff_plain;f=common%2Fscripts%2Fgbtoepub.pl;h=93586eb72d8ae2ca5752cde19f615d79fda48b6b;hp=da50fbed82acfcef5b7e850387f4818d12311bfe;hb=8971569b2aeeb44c7666cc0ec59f06d7a4edd202;hpb=195eff31df03c6416660c0095263990b1efc6675 diff --git a/common/scripts/gbtoepub.pl b/common/scripts/gbtoepub.pl index da50fbe..93586eb 100755 --- a/common/scripts/gbtoepub.pl +++ b/common/scripts/gbtoepub.pl @@ -485,40 +485,6 @@ sub get_series_number { return $series_number; } -# Convert character entities to their correspondent values -sub convert_entities { - my ($text) = @_; - - $text =~ s/\/'/g; - $text =~ s/\/ /g; - $text =~ s/\/+-/g; - $text =~ s/\/á/g; - $text =~ s/\/é/g; - $text =~ s/\/í/g; - $text =~ s/\/ó/g; - $text =~ s/\/ú/g; - $text =~ s/\/ñ/g; - $text =~ s/\/Á/g; - $text =~ s/\/É/g; - $text =~ s/\/Í/g; - $text =~ s/\/Ó/g; - $text =~ s/\/Ú/g; - $text =~ s/\/ä/g; - $text =~ s/\/ë/g; - $text =~ s/\/ï/g; - $text =~ s/\/ö/g; - $text =~ s/\/ü/g; - $text =~ s/\/Ñ/g; - $text =~ s/\/´/g; - $text =~ s/\/¡/g; - $text =~ s/\/¿/g; - $text =~ s/\/«/g; - $text =~ s/\/»/g; - $text =~ s/\/&/g; - - return $text; -} - # Quote metacaracters for shell use sub quote_shell { my ($text) = @_;