update for MAST PDF

This commit is contained in:
Henry Whitney 2020-07-13 16:54:52 -04:00
parent 961f0b15e4
commit fd57fc0030
4 changed files with 969 additions and 104 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
# Mark in Entries_not_handled.txt those Strong's numbers listed in Consistent_Deletes.NT.txt
# Mark in Entries_not_handled.txt those Strong's numbers listed in Consistent_Deletes.txt
use 5.12.0;
use File::Slurp;
@ -15,7 +15,7 @@ if ($^O eq "darwin" || $^O eq "linux") {$d = "/"}
my (@deletes);
open LOG, ">:utf8", "$Bin${d}Logs${d}Consistent_deletes.log" or die;
open LOG, ">:utf8", "$Bin${d}Logs${d}Consistent_deletes_log.txt" or die;
# my $fileText = read_file("Exceptions${d}Consistent_Deletes.txt", binmode => 'utf8');
#say LOG $fileText;

View File

@ -225,9 +225,19 @@ sub ParseLine {
sub FindVerseInGlossed {
system "grep '$book_name,$ch,$vs' /Users/Henry/Documents/WACS/Tips_and_Hacks/MAST_tW_PDF_Updater/FilesForUpdates/Output/tWs_for_PDF.txt > Temp/temp.tmp; perl -i -pe 's/^(.*)\$/<p>\$1<\\/p>/' Temp/temp.tmp";
my $soFar = read_file "Temp/temp.tmp";
my ($sch, $svs, $soFar) = ($ch, $vs, "");
$sch =~ s/^0+//;
$svs =~ s/^0//;
my $checkText = read_file("/Users/Henry/Documents/WACS/Tips_and_Hacks/MAST_tW_PDF_Updater/FilesForUpdates/Output/tWs_for_PDF.txt", binmode => 'utf8');
say LOG "&&&\n$book_name,$sch,$svs\n&&&";
while ($checkText =~ /$book_name,$sch,$svs,[^\n]*/g) {
$soFar .= "<p>$&</p>\n"
}
open OUT, ">:utf8", "$results_file" or die;

View File

@ -1,3 +0,0 @@
<p>Genesis,33,11,God,kt,god</p>
<p>Genesis,33,11,graciously,kt,grace</p>
<p>Genesis,33,11,urged,kt,exhort</p>