Changeset 38761 for main/trunk
- Timestamp:
- 2024-02-20T21:30:00+13:00 (3 months ago)
- Location:
- main/trunk/greenstone2/bin/script
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/gti-process-spreadsheet.pl
r28503 r38761 106 106 107 107 # Remove the blank space Excel adds at the start of each line 108 $source_file_chunk_text =~ s/\n /\n/g; 109 $target_file_chunk_text =~ s/\n /\n/g; 108 # New excel conversion (noticed Feb 2024) didn't require this change 109 #$source_file_chunk_text =~ s/\n /\n/g; 110 #$target_file_chunk_text =~ s/\n /\n/g; 110 111 111 112 # Remove Excel's doubled-up quotes … … 117 118 $target_file_chunk_text =~ s/ /\n/g; 118 119 120 # New excel conversion (noticed Feb 2024) 121 $source_file_chunk_text =~ s/ //g; 122 $target_file_chunk_text =~ s/ //g; 123 119 124 print "<SourceFileText key=\"" . $source_file_chunk_key . "\">\n" . $source_file_chunk_text . "\n</SourceFileText>\n"; 120 125 print "<TargetFileText key=\"" . $target_file_chunk_key . "\">\n" . $target_file_chunk_text . "\n</TargetFileText>\n"; -
main/trunk/greenstone2/bin/script/gti.pl
r38547 r38761 665 665 foreach my $submission_line (@submission_lines) { 666 666 $submission_line =~ s/\r$//; 667 $submission_line =~ s/ +$// ;667 $submission_line =~ s/ +$// if ($translation_file_key eq "glihelp"); 668 668 #&log_message(" $submission_line"); 669 669 } … … 738 738 739 739 # Make sure the submitted source chunk matches the source file chunk 740 #if ($source_file_key_to_submission_mapping{$chunk_key} ne $source_file_key_to_text_mapping{$chunk_key} 741 # && $source_file_key_to_submission_mapping{$chunk_key} ne &unmake_text_xml_safe($source_file_key_to_text_mapping{$chunk_key})) { 740 742 if (trim($source_file_key_to_submission_mapping{$chunk_key}) ne trim($source_file_key_to_text_mapping{$chunk_key}) 741 743 && trim($source_file_key_to_submission_mapping{$chunk_key}) ne &unmake_text_xml_safe(trim($source_file_key_to_text_mapping{$chunk_key}))) { 742 # if (&unmake_text_xml_safe($source_file_key_to_submission_mapping{$chunk_key}) ne &unmake_text_xml_safe($source_file_key_to_text_mapping{$chunk_key})) {744 ##if (&unmake_text_xml_safe($source_file_key_to_submission_mapping{$chunk_key}) ne &unmake_text_xml_safe($source_file_key_to_text_mapping{$chunk_key})) { 743 745 #&log_message("**** submission source:\n|$source_file_key_to_submission_mapping{$chunk_key}|\n"); 744 746 #&log_message("**** unmake xml safe source:\n|" . &unmake_text_xml_safe($source_file_key_to_text_mapping{$chunk_key}) ."|\n");
Note:
See TracChangeset
for help on using the changeset viewer.