Skip to content

Commit bc3decc

Browse files
committed
Make bboldx delimiters be plain characters, as in the actual package.
1 parent 2e5c45b commit bc3decc

3 files changed

Lines changed: 18 additions & 23 deletions

File tree

ts/input/tex/bboldx/BboldxConfiguration.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ Configuration.create('text-bboldx', {
3939
'text-bboldx-mathchar0miBold',
4040
'text-bboldx-delimiterBold',
4141
],
42-
[HandlerType.DELIMITER]: [
43-
'text-bboldx-delimiterNormal',
44-
'text-bboldx-delimiterBold',
45-
],
4642
},
4743
});
4844

@@ -59,7 +55,6 @@ export const BboldxConfiguration = Configuration.create('bboldx', {
5955
'bboldx-mathchar0miBold',
6056
'bboldx-delimiterBold',
6157
],
62-
[HandlerType.DELIMITER]: ['bboldx-delimiterNormal', 'bboldx-delimiterBold'],
6358
},
6459
[ConfigurationType.OPTIONS]: {
6560
bboldx: {

ts/input/tex/bboldx/BboldxMappings.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ new CharacterMap('bboldx-mathchar0miNormal', BboldxMethods.mathchar0miNormal, {
7171
/**
7272
* Macros for delimiters.
7373
*/
74-
new DelimiterMap('bboldx-delimiterNormal', BboldxMethods.delimiterNormal, {
75-
'\\bbLparen': '\u0028',
76-
'\\bbRparen': '\u0029',
77-
'\\bbLbrack': '\u005B',
78-
'\\bbRbrack': '\u005D',
79-
'\\bbLangle': '\u2329',
80-
'\\bbRangle': '\u232A',
74+
new CharacterMap('bboldx-delimiterNormal', BboldxMethods.delimiterNormal, {
75+
bbLparen: '\u0028',
76+
bbRparen: '\u0029',
77+
bbLbrack: '\u005B',
78+
bbRbrack: '\u005D',
79+
bbLangle: '\u2329',
80+
bbRangle: '\u232A',
8181
});
8282

8383
/**
@@ -127,13 +127,13 @@ new CharacterMap('bboldx-mathchar0miBold', BboldxMethods.mathchar0miBold, {
127127
/**
128128
* Macros for delimiters.
129129
*/
130-
new DelimiterMap('bboldx-delimiterBold', BboldxMethods.delimiterBold, {
131-
'\\bfbbLparen': '\u0028',
132-
'\\bfbbRparen': '\u0029',
133-
'\\bfbbLbrack': '\u005B',
134-
'\\bfbbRbrack': '\u005D',
135-
'\\bfbbLangle': '\u2329',
136-
'\\bfbbRangle': '\u232A',
130+
new CharacterMap('bboldx-delimiterBold', BboldxMethods.delimiterBold, {
131+
bfbbLparen: '\u0028',
132+
bfbbRparen: '\u0029',
133+
bfbbLbrack: '\u005B',
134+
bfbbRbrack: '\u005D',
135+
bfbbLangle: '\u2329',
136+
bfbbRangle: '\u232A',
137137
});
138138

139139
new CommandMap('bboldx', {

ts/input/tex/bboldx/BboldxMethods.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ export const BboldxMethods = {
7373
},
7474

7575
/**
76-
* Handle bboldx delimiters as mi in normal variant.
76+
* Handle bboldx delimiters as mo in normal variant.
7777
*
7878
* @param {TexParser} parser The current tex parser.
7979
* @param {Token} delim The parsed token.
8080
*/
8181
delimiterNormal: function (parser: TexParser, delim: Token) {
8282
const font = getBbxFont(parser, '-bboldx', '-bboldx-light', '-bboldx-bold');
83-
const def = { fence: false, stretchy: false, mathvariant: font };
83+
const def = { stretchy: false, mathvariant: font };
8484
const node = parser.create('token', 'mo', def, delim.char);
8585
parser.Push(node);
8686
},
@@ -103,14 +103,14 @@ export const BboldxMethods = {
103103
},
104104

105105
/**
106-
* Handle bboldx delimiters as mi in bold variant.
106+
* Handle bboldx delimiters as mo in bold variant.
107107
*
108108
* @param {TexParser} parser The current tex parser.
109109
* @param {Token} delim The parsed token.
110110
*/
111111
delimiterBold: function (parser: TexParser, delim: Token) {
112112
const font = getBbxFont(parser, '-bboldx-bold', '-bboldx', '-bboldx-bold');
113-
const def = { fence: false, stretchy: false, mathvariant: font };
113+
const def = { stretchy: false, mathvariant: font };
114114
const node = parser.create('token', 'mo', def, delim.char);
115115
parser.Push(node);
116116
},

0 commit comments

Comments
 (0)