App-MakeEPUB
view release on metacpan or search on metacpan
lib/App/MakeEPUB.pm view on Meta::CPAN
my @manifest = ();
my $type;
foreach my $path (keys %$paths) {
my $id = $paths->{$path};
next if $path eq 'mimetype';
next if $path eq 'META-INF/container.xml';
next if $path eq $c_opf;
if ($path =~ /\.html$/i) {
$type = 'application/xhtml+xml';
}
elsif ($path =~ /\.png$/i) {
$type = 'image/png';
}
elsif ($path =~ /\.jpe?g$/i) {
$type = 'image/jpeg';
}
elsif ($path =~ /toc\.ncx$/i) {
$type = 'application/x-dtbncx+xml';
$id = 'ncx';
}
elsif ($path =~ /\.css$/i) {
$type = 'text/css';
( run in 1.295 second using v1.01-cache-2.11-cpan-df04353d9ac )