Skip to content

Commit c2b91fb

Browse files
committed
Texcomp integration.
1 parent 04353a0 commit c2b91fb

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

ts/input/tex/textcomp/TextcompConfiguration.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ import './TextcompMappings.js';
2727

2828

2929
export const TextcompConfiguration = Configuration.create(
30-
'textcomp', {handler: {macro: ['textcomp-macros', 'textcomp-oldstyle']}}
30+
'textcomp', {
31+
parser: 'tex',
32+
handler: {macro: ['textcomp-macros', 'textcomp-oldstyle']}
33+
}
3134
);
3235

ts/input/tex/textcomp/TextcompMappings.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {CharacterMap, CommandMap} from '../SymbolMap.js';
2727
import {Symbol} from '../Symbol.js';
2828
import {TexConstant} from '../TexConstants.js';
2929
import {TextMacrosMethods} from '../textmacros/TextMacrosMethods.js';
30-
import TexParser from '../TexParser.js';
30+
import {TextParser} from '../textmacros/TextParser.js';
3131

3232

3333
/**
@@ -163,10 +163,10 @@ new CommandMap('textcomp-macros', {
163163

164164
/**
165165
* Handle old style characters.
166-
* @param {TexParser} parser The current tex parser.
166+
* @param {TextParser} parser The current tex parser.
167167
* @param {Symbol} mchar The parsed symbol.
168168
*/
169-
function mathchar0miOldstyle(parser: TexParser, mchar: Symbol) {
169+
function mathchar0miOldstyle(parser: TextParser, mchar: Symbol) {
170170
const def = mchar.attributes || {};
171171
def.mathvariant = TexConstant.Variant.OLDSTYLE;
172172
const node = parser.create('token', 'mi', def, mchar.char);

0 commit comments

Comments
 (0)