Language-Dashrep
view release on metacpan or search on metacpan
lib/Language/Dashrep.pm view on Meta::CPAN
# Handle the action:
# linewise-translate-xml-tags-in-file-to-dashrep-phrases-in-file
#
# The output filename is edited to remove any path
# specifications, so that only local files
# are affected.
# If a tag does not end on the same line as it
# starts, more lines are read in an attempt
# to reach the end of the tag, but this
# capability is not robust. This is done to
# accomodate XHTML generated by the "Tidy"
# utility.
} elsif ( $input_text =~ /^ *linewise-translate-xml-tags-in-file-to-dashrep-phrases-in-file +([^ \[\]]+) +([^ \[\]]+) *$/ )
{
$source_filename = $1 ;
$target_filename = $2 ;
$target_filename =~ s/^.*[\\\/]// ;
$target_filename =~ s/^\.+// ;
if ( open ( INFILE , "<" . $source_filename ) )
{
( run in 1.334 second using v1.01-cache-2.11-cpan-49f99fa48dc )