summaryrefslogtreecommitdiff
path: root/source/luametatex
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2023-05-27 23:41:49 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2023-05-27 23:41:49 +0200
commitca9e3e4bd07d6d644818ffcfe746030923031afd (patch)
tree2999b914eeb660af4b55156604419fe0bf37ad6a /source/luametatex
parent32381f97e98465953bfde24b4436093e70fbe70f (diff)
downloadcontext-ca9e3e4bd07d6d644818ffcfe746030923031afd.tar.gz
2023-05-27 23:25:00
Diffstat (limited to 'source/luametatex')
-rw-r--r--source/luametatex/source/tex/texcommands.h4
-rw-r--r--source/luametatex/source/tex/texrules.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/source/luametatex/source/tex/texcommands.h b/source/luametatex/source/tex/texcommands.h
index 372066049..04f8fb606 100644
--- a/source/luametatex/source/tex/texcommands.h
+++ b/source/luametatex/source/tex/texcommands.h
@@ -247,8 +247,8 @@ typedef enum tex_command_code {
set_interaction_cmd, /*tex define level of interaction (|\batchmode|, etc.) */
/*tex
Here ends the section that is part of the big switch. What follows are commands that are
- intercepted when expanding tokens. The strint one came from a todo list and moved to a
- maybe list.
+ intercepted when expanding tokens. The |string_cmd| came from a todo list and moved to a
+ maybe list and finally became obsolete.
*/
undefined_cs_cmd, /*tex initial state of most |eq_type| fields */
expand_after_cmd, /*tex special expansion (|\expandafter|) */
diff --git a/source/luametatex/source/tex/texrules.c b/source/luametatex/source/tex/texrules.c
index 560ca73df..7d9adb7ef 100644
--- a/source/luametatex/source/tex/texrules.c
+++ b/source/luametatex/source/tex/texrules.c
@@ -236,7 +236,7 @@ void tex_aux_check_text_strut_rule(halfword rule, halfword style)
halfword tex_get_rule_font(halfword n, halfword style)
{
- if (node_subtype(n) == virtual_rule_subtype) {
+ if (node_subtype(n) != virtual_rule_subtype) {
halfword fnt = rule_strut_font(n);
if (fnt >= rule_font_fam_offset) {
halfword fam = fnt - rule_font_fam_offset;
@@ -256,7 +256,7 @@ halfword tex_get_rule_font(halfword n, halfword style)
halfword tex_get_rule_family(halfword n)
{
- if (node_subtype(n) == virtual_rule_subtype) {
+ if (node_subtype(n) != virtual_rule_subtype) {
halfword fnt = rule_strut_font(n);
if (fnt >= rule_font_fam_offset) {
halfword fam = fnt - rule_font_fam_offset;
@@ -270,7 +270,7 @@ halfword tex_get_rule_family(halfword n)
void tex_set_rule_font(halfword n, halfword fnt)
{
- if (node_subtype(n) == virtual_rule_subtype) {
+ if (node_subtype(n) != virtual_rule_subtype) {
if (fnt < 0 || fnt >= rule_font_fam_offset) {
rule_strut_font(n) = 0;
} else {
@@ -281,7 +281,7 @@ void tex_set_rule_font(halfword n, halfword fnt)
void tex_set_rule_family(halfword n, halfword fam)
{
- if (node_subtype(n) == virtual_rule_subtype) {
+ if (node_subtype(n) != virtual_rule_subtype) {
if (fam < 0 || fam >= max_n_of_math_families) {
rule_strut_font(n) = rule_font_fam_offset;
} else {