Wenn UTF-8-Daten als Form D vorliegen, so steigt LaTeX aus, weil es
diese Form nicht kennt.
use strict;
use Cwd;
+use Unicode::Normalize qw();
sub new {
my $type = shift;
return 0;
}
- binmode OUT, ":utf8" if $::locale->is_utf8;
- print(OUT $new_contents);
+ if ($::locale->is_utf8) {
+ binmode OUT, ":utf8";
+ print OUT Unicode::Normalize::normalize('C', $new_contents);
+
+ } else {
+ print OUT $new_contents;
+ }
if ($form->{"format"} =~ /postscript/i) {
return $self->convert_to_postscript();