File tree Expand file tree Collapse file tree 7 files changed +18
-13
lines changed Expand file tree Collapse file tree 7 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ html: $(name).html
2525% .pdf : $(name ) .html
2626 cp tutorial-simple.css tutorial.css
2727 ebook-convert $< $@ \
28- --override-profile-size \
2928 --margin-bottom 10 \
3029 --margin-top 10 \
3130 --margin-left 10 \
Original file line number Diff line number Diff line change 11# !/usr/bin/env perl
22
3- use encoding ' utf8' ;
3+ use v5.10.1;
4+ use utf8;
45use strict;
56use warnings;
67
8586$res .= " </ul>\n " ;
8687
8788for my $infile (@ARGV ) {
88- open my $in , $infile
89+ open my $in , " <:encoding(utf-8) " , $infile
8990 or die " Cannot open $infile for reading: $! \n " ;
9091 $res .= do { local $/ ; <$in > };
9192 close $in ;
9495$res .= " </body></html>" ;
9596
9697if ($outfile ) {
97- open my $out , " >:encoding(UTF -8)" , $outfile
98+ open my $out , " >:encoding(utf -8)" , $outfile
9899 or die " Cannot open $outfile for writing: $! \n " ;
99100
100101 print $out $res ;
Original file line number Diff line number Diff line change 11# !/usr/bin/env perl
22
3- use encoding ' utf8' ;
3+ use v5.10.1;
4+ use utf8;
45use strict;
56use warnings;
67
9192$res .= " <section class=\" content\" >\n " ;
9293
9394for my $infile (@ARGV ) {
94- open my $in , $infile
95+ open my $in , " <:encoding(utf-8) " , $infile
9596 or die " Cannot open $infile for reading: $! \n " ;
9697 $res .= " <article>\n " ;
9798 my $c = do { local $/ ; <$in > };
Original file line number Diff line number Diff line change 11# !/usr/bin/env perl
22
3+ use v5.10.1;
34use utf8;
45use strict;
56use warnings;
3637my $infile = shift or
3738 usage();
3839
39- open my $in , " <:encoding(UTF -8)" , $infile
40+ open my $in , " <:encoding(utf -8)" , $infile
4041 or die " cannot open $infile for reading: $! \n " ;
4142
4243my $prev ;
7677
7778utf8::encode($src );
7879
79- open $in , " <:encoding(UTF -8)" , \$src or die $! ;
80+ open $in , " <:encoding(utf -8)" , \$src or die $! ;
8081
8182my $wiki = ' ' ;
8283undef $prev ;
211212$wiki =~ s / ^\s +|\s +$// sg ;
212213
213214if ($outfile ) {
214- open my $out , " >:encoding(UTF -8)" , $outfile
215+ open my $out , " >:encoding(utf -8)" , $outfile
215216 or die " Cannot open $outfile for writing: $! \n " ;
216217
217218 print $out $wiki ;
Original file line number Diff line number Diff line change 11# !/usr/bin/env perl
22
3+ use v5.10.1;
4+ use utf8;
35use strict;
46use warnings;
5- use encoding ' utf8' ;
67
78use Getopt::Std;
89my %opts ;
Original file line number Diff line number Diff line change 11# !/usr/bin/env perl
22
3+ use v5.10.1;
34use utf8;
45use strict;
56use warnings;
4445 die " Bad input file $infile \n " ;
4546}
4647
47- open my $in , " <:encoding(UTF -8)" , $infile
48+ open my $in , " <:encoding(utf -8)" , $infile
4849 or die " Cannot open $infile for reading: $! \n " ;
4950
5051my $ctx = {};
9697# $html .= " </body>\n</html>\n";
9798
9899if ($outfile ) {
99- open my $out , " >:encoding(UTF -8)" , $outfile
100+ open my $out , " >:encoding(utf -8)" , $outfile
100101 or die " Cannot open $outfile for writing: $! \n " ;
101102
102103 print $out $html ;
Original file line number Diff line number Diff line change 11# !/usr/bin/env perl
22
3- use encoding ' utf8' ;
3+ use v5.10.1;
4+ use utf8;
45use strict;
56use warnings;
67
You can’t perform that action at this time.
0 commit comments