From f21a8820bd4d9c89cff465b17978749681c4251c Mon Sep 17 00:00:00 2001 From: Jaimos Skriletz Date: Fri, 12 Dec 2025 21:36:17 -0700 Subject: [PATCH] Use strong and em instead of b and i tags for bold and italic. PGML should use strong and emphasis for bold and italic. This also updates `$BITALIC` and `$EITALIC` in PGbasicmacros.pl to use emphasis. The `$BBOLD` and `$EBOLD` variables were already using strong, so this also makes things consistent. --- macros/core/PGML.pl | 4 ++-- macros/core/PGbasicmacros.pl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/macros/core/PGML.pl b/macros/core/PGML.pl index 355c2c3de..34cba7fc0 100644 --- a/macros/core/PGML.pl +++ b/macros/core/PGML.pl @@ -1613,13 +1613,13 @@ sub Par { sub Bold { my $self = shift; my $item = shift; - return '' . $self->string($item) . ''; + return '' . $self->string($item) . ''; } sub Italic { my $self = shift; my $item = shift; - return '' . $self->string($item) . ''; + return '' . $self->string($item) . ''; } our %openQuote = ('"' => "“", "'" => "‘"); diff --git a/macros/core/PGbasicmacros.pl b/macros/core/PGbasicmacros.pl index 94b8e5657..c730e6727 100644 --- a/macros/core/PGbasicmacros.pl +++ b/macros/core/PGbasicmacros.pl @@ -1319,8 +1319,8 @@ sub SPACE { sub EBOLD { MODES(TeX => '}', HTML => '', PTX => ''); } sub BLABEL { MODES(TeX => '', HTML => '', PTX => ''); } -sub BITALIC { MODES(TeX => '{\\it ', HTML => '', PTX => ''); } -sub EITALIC { MODES(TeX => '} ', HTML => '', PTX => ''); } +sub BITALIC { MODES(TeX => '{\\it ', HTML => '', PTX => ''); } +sub EITALIC { MODES(TeX => '} ', HTML => '', PTX => ''); } sub BUL { MODES(TeX => '\\underline{', HTML => '', PTX => ''); } sub EUL { MODES(TeX => '}', HTML => '', PTX => ''); }