Skip to content

Commit

Permalink
PWG: missing VN
Browse files Browse the repository at this point in the history
  • Loading branch information
funderburkjim committed Oct 7, 2024
1 parent 438ba98 commit 325a057
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion v02/makotemplates/web/webtc/basicadjust.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function line_adjust($line) {
// 06-21-2024 For all dictionaries with some metaline with <h>
$dicts_with_h = array("ap90", "bhs", "bop", "cae", "ccs",
"gra", "gst", "inm", "mci", "md",
"mw", "mw72", "pe", "pui", "pwg",
"mw", "mw72", "pe", "pui", "pwg","pw","pwkvn",
"stc", "vei", "lan");
if (in_array($this->getParms->dict, $dicts_with_h)) {
$line = preg_replace("|<key2>(.*?)<hom>.*?</hom>(.*?<body>)|","<key2>$1$2",$line);
Expand Down
22 changes: 17 additions & 5 deletions v02/makotemplates/web/webtc/basicdisplay.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,21 @@ public function sthndl($xp,$el,$attribs) {
// we just display the IAST text, so do nothing with this element
} else if ($el == "etym") {
$this->row .= "<i>";
} else if ($el == "info") {
} else if ($el == "info") {
// 10-05-2024
if (in_array($this->dict,array('pwg'))) {
$attrval = $attribs["n"];
$x = ''; // text to add
if (in_array($attrval,array("rev","sup"))) {
if ($attrval == "rev") {
$y = "revision";
}else if ($attrval == "sup") {
$y = "supplement";
}
$x = "<span style='color:red'> ($y)</span>";
}
$this->row .= $x;
}
} else if ($el == "pc"){
} else if ($el == "to") {
} else if ($el == "ns") {
Expand All @@ -463,9 +477,7 @@ public function sthndl($xp,$el,$attribs) {
} else if ($el == "pcol") {
} else if ($el == "nsi") {
} else if ($el == "pb"){
if ($this->dict == "mw") {
# do nothing.
}else if (in_array($this->dict,array("bur","stc"))) {
if (in_array($this->dict,array("bur","stc","mw","pwg"))) {
# do nothing
}else {
$this->row .= "<br/>";
Expand Down Expand Up @@ -680,7 +692,7 @@ public function endhndl($xp,$el) {
} else if ($el == "i"){
$this->row .= "</i>";
} else if ($el == "pb"){
if (in_array($this->dict,array("mw","bur","stc","abch","acph","acsj"))) {
if (in_array($this->dict,array("mw","bur","stc","abch","acph","acsj","pwg"))) {
# do nothing
}else {
$this->row .= "<br/>";
Expand Down
3 changes: 2 additions & 1 deletion v02/makotemplates/web/webtc1/listhierview.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public function __construct($listmatches,$getParms) {
}else {
$class = " class='$sdata'";
}
// 07-07-2024 revsup
// 07-07-2024 revsup for mw.
// 10-05-2024 pwg not useful for rev
$revsup = "";
if (in_array($getParms->dict,array('mw'))) {
if (preg_match('|<info n="sup"/>|',$data2,$matches)) {
Expand Down

0 comments on commit 325a057

Please sign in to comment.