Changeset 12834 for trunk/gsdl/perllib/plugins/WordPlug.pm
- Timestamp:
- 2006-09-22T16:03:36+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/WordPlug.pm
r12169 r12834 115 115 $self->{'convert_options'} = "-windows_scripting" if $self->{'windows_scripting'}; 116 116 117 # we always save as utf-8 118 if ($self->{'input_encoding'} eq "auto") { 119 $self->{'input_encoding'} = "utf8"; 120 } 121 117 122 my $secondary_plugin_options = $self->{'secondary_plugin_options'}; 118 123 if (defined $self->{'windows_scripting'}) { … … 120 125 $secondary_plugin_options->{'StructuredHTMLPlug'} = []; 121 126 my $structhtml_options = $secondary_plugin_options->{'StructuredHTMLPlug'}; 122 if ($self->{'input_encoding'} eq "auto") { 123 $self->{'input_encoding'} = "utf8"; 124 $self->{'extract_language'} = 1; 125 #push(@$structhtml_options,"-input_encoding", "utf8"); 126 push(@$structhtml_options,"-extract_language"); 127 } 128 127 129 128 # Instruct HTMLPlug (when eventually accessed through read_into_doc_obj) 130 129 # to extract these metadata fields from the HEAD META fields … … 132 131 push (@$structhtml_options , "-title_sub", '^(Page\s+\d+)?(\s*1\s+)?'); 133 132 push (@$structhtml_options, "-description_tags") if $self->{'windows_scripting'}; 133 push(@$structhtml_options,"-extract_language") if $self->{'extract_language'}; 134 134 push (@$structhtml_options, "-delete_toc") if $self->{'delete_toc'}; 135 135 push (@$structhtml_options, "-toc_header", $self->{'toc_header'}) if $self->{'toc_header'}; … … 153 153 # wvWare will always produce html files encoded as utf-8, so make sure the secondary HTMLPlug knows this 154 154 push(@$html_options,"-input_encoding", "utf8"); 155 156 if ($self->{'input_encoding'} eq "auto") { 157 $self->{'input_encoding'} = "utf8"; 158 $self->{'extract_language'} = 1; 159 push(@$html_options,"-extract_language"); 160 } 161 if ($self->{'description_tags'} == 1) { 162 push(@$html_options, "-description_tags"); 163 } 155 push(@$html_options,"-extract_language") if $self->{'extract_language'}; 156 push(@$html_options, "-description_tags") if $self->{'description_tags'}; 157 164 158 # Instruct HTMLPlug (when eventually accessed through read_into_doc_obj) 165 159 # to extract these metadata fields from the HEAD META fields
Note:
See TracChangeset
for help on using the changeset viewer.