Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix calligraphic font name #277

Merged
merged 3 commits into from
Jun 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/src/output/chtml/fonts/tex/copy.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"from": "../../../../../../mathjax3-ts/output/chtml/fonts/tex-woff-v2",
"copy": [
"MathJax_AMS-Regular.woff",
"MathJax_Caligraphic-Bold.woff",
"MathJax_Caligraphic-Regular.woff",
"MathJax_Calligraphic-Bold.woff",
"MathJax_Calligraphic-Regular.woff",
"MathJax_Fraktur-Bold.woff",
"MathJax_Fraktur-Regular.woff",
"MathJax_Main-Bold.woff",
Expand Down
2 changes: 1 addition & 1 deletion mathjax3-ts/input/tex/TexConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export namespace TexConstant {
TAILED: 'tailed',
LOOPED: 'looped',
STRETCHED: 'stretched',
CALIGRAPHIC: '-tex-caligraphic',
CALLIGRAPHIC: '-tex-calligraphic',
OLDSTYLE: '-tex-oldstyle'
};

Expand Down
2 changes: 1 addition & 1 deletion mathjax3-ts/input/tex/base/BaseMappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ new sm.CommandMap('macros', {
rm: ['SetFont', TexConstant.Variant.NORMAL],
mit: ['SetFont', TexConstant.Variant.ITALIC],
oldstyle: ['SetFont', TexConstant.Variant.OLDSTYLE],
cal: ['SetFont', TexConstant.Variant.CALIGRAPHIC],
cal: ['SetFont', TexConstant.Variant.CALLIGRAPHIC],
it: ['SetFont', '-tex-mathit'], // needs special handling
bf: ['SetFont', TexConstant.Variant.BOLD],
bbFont: ['SetFont', TexConstant.Variant.DOUBLESTRUCK],
Expand Down
4 changes: 2 additions & 2 deletions mathjax3-ts/input/tex/boldsymbol/BoldsymbolConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ BOLDVARIANT[TexConstant.Variant.ITALIC] = TexConstant.Variant.BOLDITALIC;
BOLDVARIANT[TexConstant.Variant.FRAKTUR] = TexConstant.Variant.BOLDFRAKTUR;
BOLDVARIANT[TexConstant.Variant.SCRIPT] = TexConstant.Variant.BOLDSCRIPT;
BOLDVARIANT[TexConstant.Variant.SANSSERIF] = TexConstant.Variant.BOLDSANSSERIF;
BOLDVARIANT['-tex-caligraphic'] = '-tex-caligraphic-bold';
BOLDVARIANT['-tex-oldstyle'] = '-tex-oldstyle-bold';
BOLDVARIANT['-tex-calligraphic'] = '-tex-bold-calligraphic';
BOLDVARIANT['-tex-oldstyle'] = '-tex-bold-oldstyle';


// Namespace
Expand Down
4 changes: 2 additions & 2 deletions mathjax3-ts/input/tex/physics/PhysicsMappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/**
* @fileoverview Mappings for TeX parsing of the physics package.
*
*
* @author [email protected] (Volker Sorge)
*/

Expand All @@ -45,7 +45,7 @@ new CommandMap('Physics-automatic-bracing-macros', {
'evaluated': 'Eval',
'eval': 'Eval',
'order': ['Quantity', '(', ')', true, 'O',
TexConstant.Variant.CALIGRAPHIC],
TexConstant.Variant.CALLIGRAPHIC],
'commutator': 'Commutator',
'comm': 'Commutator',
'anticommutator': ['Commutator', '\\{', '\\}'],
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 8 additions & 8 deletions mathjax3-ts/output/chtml/fonts/tex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ import {sansSerif} from './tex/sans-serif.js';
import {scriptBold} from './tex/script-bold.js';
import {script} from './tex/script.js';
import {smallop} from './tex/smallop.js';
import {texCaligraphicBold} from './tex/tex-caligraphic-bold.js';
import {texCaligraphic} from './tex/tex-caligraphic.js';
import {texCalligraphicBold} from './tex/tex-calligraphic-bold.js';
import {texCalligraphic} from './tex/tex-calligraphic.js';
import {texMathit} from './tex/tex-mathit.js';
import {texOldstyleBold} from './tex/tex-oldstyle-bold.js';
import {texOldstyle} from './tex/tex-oldstyle.js';
Expand Down Expand Up @@ -82,8 +82,8 @@ CommonTeXFontMixin<CHTMLCharOptions, CHTMLVariantData, CHTMLDelimiterData, CHTML
'-largeop': 'mjx-lop',
'-size3': 'mjx-s3',
'-size4': 'mjx-s4',
'-tex-caligraphic': 'mjx-cal',
'-tex-bold-caligraphic': 'mjx-cal mjx-b',
'-tex-calligraphic': 'mjx-cal',
'-tex-bold-calligraphic': 'mjx-cal mjx-b',
'-tex-mathit': 'mjx-mit',
'-tex-oldstyle': 'mjx-os',
'-tex-bold-oldstyle': 'mjx-os mjx-b',
Expand Down Expand Up @@ -117,8 +117,8 @@ CommonTeXFontMixin<CHTMLCharOptions, CHTMLVariantData, CHTMLDelimiterData, CHTML
'-largeop': largeop,
'-size3': texSize3,
'-size4': texSize4,
'-tex-caligraphic': texCaligraphic,
'-tex-bold-caligraphic': texCaligraphicBold,
'-tex-calligraphic': texCalligraphic,
'-tex-bold-calligraphic': texCalligraphicBold,
'-tex-mathit': texMathit,
'-tex-oldstyle': texOldstyle,
'-tex-bold-oldstyle': texOldstyleBold,
Expand Down Expand Up @@ -285,12 +285,12 @@ CommonTeXFontMixin<CHTMLCharOptions, CHTMLVariantData, CHTMLDelimiterData, CHTML

'@font-face /* 11 */': {
'font-family': 'MJXTEX-C',
src: 'url("%%URL%%/MathJax_Caligraphic-Regular.woff") format("woff")'
src: 'url("%%URL%%/MathJax_Calligraphic-Regular.woff") format("woff")'
},

'@font-face /* 12 */': {
'font-family': 'MJXTEX-C-B',
src: 'url("%%URL%%/MathJax_Caligraphic-Bold.woff") format("woff")'
src: 'url("%%URL%%/MathJax_Calligraphic-Bold.woff") format("woff")'
},

'@font-face /* 13 */': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
*/

import {CHTMLCharMap, AddCSS} from '../../FontData.js';
import {texCaligraphicBold as font} from '../../../common/fonts/tex/tex-caligraphic-bold.js';
import {texCalligraphicBold as font} from '../../../common/fonts/tex/tex-calligraphic-bold.js';

export const texCaligraphicBold: CHTMLCharMap = AddCSS(font, {
export const texCalligraphicBold: CHTMLCharMap = AddCSS(font, {
0x20: {c: ' '},
0x2F: {c: '/'},
0x30: {c: '0'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
*/

import {CHTMLCharMap, AddCSS} from '../../FontData.js';
import {texCaligraphic as font} from '../../../common/fonts/tex/tex-caligraphic.js';
import {texCalligraphic as font} from '../../../common/fonts/tex/tex-calligraphic.js';

export const texCaligraphic: CHTMLCharMap = AddCSS(font, {
export const texCalligraphic: CHTMLCharMap = AddCSS(font, {
0x20: {c: ' '},
0x30: {c: '0'},
0x31: {c: '1'},
Expand Down
8 changes: 4 additions & 4 deletions mathjax3-ts/output/common/fonts/tex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export function CommonTeXFontMixin<C extends CharOptions, V extends VariantData<
['-largeop', 'normal'],
['-size3', 'normal'],
['-size4', 'normal'],
['-tex-caligraphic', 'italic'],
['-tex-bold-caligraphic', 'bold-italic'],
['-tex-calligraphic', 'italic'],
['-tex-bold-calligraphic', 'bold-italic'],
['-tex-oldstyle', 'normal'],
['-tex-bold-oldstyle', 'bold'],
['-tex-mathit', 'italic'],
Expand All @@ -61,8 +61,8 @@ export function CommonTeXFontMixin<C extends CharOptions, V extends VariantData<
'-largeop': ['serif', false, false],
'-size3': ['serif', false, false],
'-size4': ['serif', false, false],
'-tex-caligraphic': ['cursive', true, false],
'-tex-bold-caligraphic': ['cursive', true, true],
'-tex-calligraphic': ['cursive', true, false],
'-tex-bold-calligraphic': ['cursive', true, true],
'-tex-oldstyle': ['serif', false, false],
'-tex-bold-oldstyle': ['serif', false, true],
'-tex-mathit': ['serif', true, false]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import {CharMap, CharOptions} from '../../FontData.js';

export const texCaligraphicBold: CharMap<CharOptions> = {
export const texCalligraphicBold: CharMap<CharOptions> = {
0x20: [0, 0, .25],
0x2F: [.711, .21, .894],
0x30: [.46, .017, .575],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import {CharMap, CharOptions} from '../../FontData.js';

export const texCaligraphic: CharMap<CharOptions> = {
export const texCalligraphic: CharMap<CharOptions> = {
0x20: [0, 0, .25],
0x30: [.452, .022, .5],
0x31: [.453, 0, .5],
Expand Down
12 changes: 6 additions & 6 deletions mathjax3-ts/output/svg/fonts/tex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ import {sansSerif} from './tex/sans-serif.js';
import {scriptBold} from './tex/script-bold.js';
import {script} from './tex/script.js';
import {smallop} from './tex/smallop.js';
import {texCaligraphicBold} from './tex/tex-caligraphic-bold.js';
import {texCaligraphic} from './tex/tex-caligraphic.js';
import {texCalligraphicBold} from './tex/tex-calligraphic-bold.js';
import {texCalligraphic} from './tex/tex-calligraphic.js';
import {texMathit} from './tex/tex-mathit.js';
import {texOldstyleBold} from './tex/tex-oldstyle-bold.js';
import {texOldstyle} from './tex/tex-oldstyle.js';
Expand Down Expand Up @@ -91,8 +91,8 @@ CommonTeXFontMixin<SVGCharOptions, SVGVariantData, SVGDelimiterData, SVGFontData
'-largeop': largeop,
'-size3': texSize3,
'-size4': texSize4,
'-tex-caligraphic': texCaligraphic,
'-tex-bold-caligraphic': texCaligraphicBold,
'-tex-calligraphic': texCalligraphic,
'-tex-bold-calligraphic': texCalligraphicBold,
'-tex-mathit': texMathit,
'-tex-oldstyle': texOldstyle,
'-tex-bold-oldstyle': texOldstyleBold,
Expand Down Expand Up @@ -121,8 +121,8 @@ CommonTeXFontMixin<SVGCharOptions, SVGVariantData, SVGDelimiterData, SVGFontData
'-largeop': 'LO',
'-size3': 'S3',
'-size4': 'S4',
'-tex-caligraphic': 'C',
'-tex-bold-caligraphic': 'BC',
'-tex-calligraphic': 'C',
'-tex-bold-calligraphic': 'BC',
'-tex-mathit': 'MI',
'-tex-oldstyle': 'OS',
'-tex-bold-oldstyle': 'BOS',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
*/

import {SVGCharMap, AddPaths} from '../../FontData.js';
import {texCaligraphicBold as font} from '../../../common/fonts/tex/tex-caligraphic-bold.js';
import {texCalligraphicBold as font} from '../../../common/fonts/tex/tex-calligraphic-bold.js';

export const texCaligraphicBold: SVGCharMap = AddPaths(font, {
export const texCalligraphicBold: SVGCharMap = AddPaths(font, {
0x20: '',
0x2F: '189 -210Q179 -210 170 -203T160 -179Q160 -171 162 -166Q164 -163 420 266T679 698Q686 711 704 711Q714 711 723 704T733 681Q733 672 730 667Q723 654 469 228T211 -201Q202 -210 189 -210',
0x30: '259 460H279Q352 460 403 444T491 378Q528 320 528 219Q528 100 475 45Q417 -17 287 -17Q152 -17 99 44T46 219Q46 246 47 265T57 318T82 376T131 422T210 454Q234 460 259 460ZM389 229V271Q389 351 371 380T280 409Q232 409 208 385Q194 371 190 345T185 229V210Q185 108 194 83Q208 35 287 35Q317 35 336 42Q372 55 380 85T389 204V229',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
*/

import {SVGCharMap, AddPaths} from '../../FontData.js';
import {texCaligraphic as font} from '../../../common/fonts/tex/tex-caligraphic.js';
import {texCalligraphic as font} from '../../../common/fonts/tex/tex-calligraphic.js';

export const texCaligraphic: SVGCharMap = AddPaths(font, {
export const texCalligraphic: SVGCharMap = AddPaths(font, {
0x20: '',
0x30: '39 213Q39 274 53 319T89 389T139 429T192 448T242 452Q347 452 400 400Q460 335 460 213Q460 -22 250 -22Q39 -22 39 213ZM364 242Q364 279 363 301T355 348T338 385T306 406T254 415Q250 415 245 415T238 416Q217 416 190 404T150 368Q136 339 136 221Q136 114 146 78T200 23Q219 16 250 16Q280 16 299 23Q341 41 352 77T364 221V242',
0x31: '116 410Q176 412 215 423T269 443T288 453H291Q293 453 301 447V254Q301 62 303 60Q307 52 322 49T394 46Q418 46 422 43T426 23Q426 8 424 4T411 0Q407 0 369 1T258 2T148 1T106 0Q96 0 94 4T91 23Q91 40 95 43T123 46Q180 46 195 49T215 61Q216 63 216 220V376Q192 367 119 364H93L86 371V403L92 410H116',
Expand Down