Skip to content

Commit 42f44f4

Browse files
committed
Merge branch 'breaking-changes' into develop
2 parents 2bc19fc + 740f5eb commit 42f44f4

15 files changed

Lines changed: 18 additions & 187 deletions

File tree

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import './lib/tex-full.js';
22

33
import {registerTeX} from '../tex/register.js';
4-
import {rename} from '../tex/extensions/rename.js';
54
import {Loader} from '../../../../js/components/loader.js';
65
import {AllPackages} from '../../../../js/input/tex/AllPackages.js';
76
import '../../../../js/input/tex/require/RequireConfiguration.js';
@@ -13,7 +12,3 @@ Loader.preLoad(
1312
);
1413

1514
registerTeX(['require',...AllPackages]);
16-
rename('amsCd', 'amscd', true);
17-
rename('colorV2', 'colorv2', false);
18-
rename('configMacros', 'configmacros', false);
19-
rename('tagFormat', 'tagformat', true);
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
import './lib/amscd.js';
2-
import {rename} from '../rename.js';
3-
4-
rename('amsCd', 'amscd', true);
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
import './lib/colorv2.js';
2-
import {rename} from '../rename.js';
3-
4-
rename('colorV2', 'colorv2', false);
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
import './lib/configmacros.js';
2-
import {rename} from '../rename.js';
3-
4-
rename('configMacros', 'configmacros', false);

components/src/input/tex/extensions/rename.js

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
import './lib/tagformat.js';
2-
import {rename} from '../rename.js';
3-
4-
rename('tagFormat', 'tagformat', true);

ts/a11y/explorer.ts

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ export function ExplorerMathDocumentMixin<B extends MathDocumentConstructor<HTML
284284
* @constructor
285285
*/
286286
constructor(...args: any[]) {
287-
processSreOptions(args[2]);
288287
super(...args);
289288
const ProcessBits = (this.constructor as typeof BaseDocument).ProcessBits;
290289
if (!ProcessBits.has('explorer')) {
@@ -329,32 +328,6 @@ export function ExplorerMathDocumentMixin<B extends MathDocumentConstructor<HTML
329328

330329
}
331330

332-
//
333-
// TODO(v3.2): This is for backward compatibility of old option parameters.
334-
//
335-
/**
336-
* Processes old a11y options for backward compatibility.
337-
* @param {OptionList} options The options to process.
338-
*/
339-
function processSreOptions(options: OptionList) {
340-
if (!options || !options.a11y) {
341-
return;
342-
}
343-
if (!options.sre) {
344-
options.sre = {};
345-
}
346-
if (options.a11y.locale) {
347-
options.sre.locale = options.a11y.locale;
348-
delete options.a11y.locale;
349-
}
350-
if (options.a11y.speechRules) {
351-
let [domain, style] = (options.a11y.speechRules as string).split('-');
352-
options.sre.domain = domain;
353-
options.sre.style = style;
354-
delete options.a11y.speechRules;
355-
}
356-
}
357-
358331

359332
/*==========================================================================*/
360333

@@ -551,19 +524,6 @@ export function setA11yOption(document: HTMLDOCUMENT, option: string, value: str
551524
break;
552525
}
553526
break;
554-
//
555-
// TODO(v3.2): These two cases should be handled directly in the menu
556-
// variable actions.
557-
//
558-
case 'speechRules':
559-
let [domain, style] = (value as string).split('-');
560-
document.options.sre.domain = domain;
561-
document.options.sre.style = style;
562-
break;
563-
case 'locale':
564-
document.options.sre.locale = value;
565-
SRE.setupEngine({locale: value as string});
566-
break;
567527
default:
568528
document.options.a11y[option] = value;
569529
}

ts/a11y/semantic-enrich.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ export function EnrichedMathDocumentMixin<N, T, D, B extends MathDocumentConstru
276276
* @constructor
277277
*/
278278
constructor(...args: any[]) {
279-
processSreOptions(args[2]);
280279
super(...args);
281280
MmlJax.setMmlFactory(this.mmlFactory);
282281
const ProcessBits = (this.constructor as typeof AbstractMathDocument).ProcessBits;
@@ -362,24 +361,3 @@ export function EnrichHandler<N, T, D>(handler: Handler<N, T, D>, MmlJax: MathML
362361
);
363362
return handler;
364363
}
365-
366-
367-
//
368-
// TODO(v3.2): This is for backward compatibility of old option parameters.
369-
//
370-
/**
371-
* Processes old enrichment option for backward compatibility.
372-
* @param {OptionList} options The options to process.
373-
*/
374-
function processSreOptions(options: OptionList) {
375-
if (!options) {
376-
return;
377-
}
378-
if (!options.sre) {
379-
options.sre = {};
380-
}
381-
if (options.enrichSpeech) {
382-
options.sre.speech = options.enrichSpeech;
383-
delete options.enrichSpeech;
384-
}
385-
}

ts/output/chtml.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ CommonOutputJax<N, T, D, CHTMLWrapper<N, T, D>, CHTMLWrapperFactory<N, T, D>, CH
6060
public static OPTIONS: OptionList = {
6161
...CommonOutputJax.OPTIONS,
6262
adaptiveCSS: true, // true means only produce CSS that is used in the processed equations
63+
matchFontHeight: true, // true to match ex-height of surrounding font
6364
};
6465

6566
/**

ts/output/chtml/BBox.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)