| 1 | /************************************************************* |
| 2 | * |
| 3 | * Copyright (c) 2021-2022 The MathJax Consortium |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | |
| 18 | |
| 19 | /** |
| 20 | * @fileoverview Configuration file for the upgreek package. |
| 21 | * |
| 22 | * @author [email protected] (Volker Sorge) |
| 23 | */ |
| 24 | |
| 25 | import {Configurationscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`Configuration.ts`/Configuration#} from '../Configuration.js'scip-typescript npm mathjax-full 3.2.2 ts/input/tex/`Configuration.ts`/; |
| 26 | import {Symbolscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`Symbol.ts`/Symbol#} from '../Symbol.js'scip-typescript npm mathjax-full 3.2.2 ts/input/tex/`Symbol.ts`/; |
| 27 | import {CharacterMapscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`SymbolMap.ts`/CharacterMap#} from '../SymbolMap.js'scip-typescript npm mathjax-full 3.2.2 ts/input/tex/`SymbolMap.ts`/; |
| 28 | import {TexConstantscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`TexConstants.ts`/TexConstant/} from '../TexConstants.js'scip-typescript npm mathjax-full 3.2.2 ts/input/tex/`TexConstants.ts`/; |
| 29 | import TexParserscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`TexParser.ts`/TexParser# from '../TexParser.js'scip-typescript npm mathjax-full 3.2.2 ts/input/tex/`TexParser.ts`/; |
| 30 | |
| 31 | |
| 32 | /** |
| 33 | * Handle greek mathchar as mi in normal variant. |
| 34 | * @param {TexParser} parser The current tex parser. |
| 35 | * @param {Symbol} mchar The parsed symbol. |
| 36 | */ |
| 37 | function mathchar0miNormalscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/mathchar0miNormal().(parserscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/mathchar0miNormal().(parser): TexParserscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`TexParser.ts`/TexParser#, mcharscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/mathchar0miNormal().(mchar): Symbolscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`Symbol.ts`/Symbol#) { |
| 38 | const def = mcharscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/mathchar0miNormal().(mchar).attributesscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`Symbol.ts`/Symbol#`<get>attributes`(). || {}; |
| 39 | def.mathvariant = TexConstantscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`TexConstants.ts`/TexConstant/.Variantscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`TexConstants.ts`/TexConstant/Variant..NORMALscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`TexConstants.ts`/NORMAL0:; |
| 40 | const node = parserscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/mathchar0miNormal().(parser).createscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`TexParser.ts`/TexParser#create().('token', 'mi', def, mcharscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/mathchar0miNormal().(mchar).charscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`Symbol.ts`/Symbol#`<get>char`().); |
| 41 | parserscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/mathchar0miNormal().(parser).Pushscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`TexParser.ts`/TexParser#Push().(node); |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Upright Greek characters. |
| 46 | */ |
| 47 | new CharacterMapscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`SymbolMap.ts`/CharacterMap#`<constructor>`().('upgreek', mathchar0miNormalscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/mathchar0miNormal()., { |
| 48 | upalphascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upalpha0:: '\u03B1', |
| 49 | upbetascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upbeta0:: '\u03B2', |
| 50 | upgammascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upgamma0:: '\u03B3', |
| 51 | updeltascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/updelta0:: '\u03B4', |
| 52 | upepsilonscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upepsilon0:: '\u03F5', |
| 53 | upzetascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upzeta0:: '\u03B6', |
| 54 | upetascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upeta0:: '\u03B7', |
| 55 | upthetascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/uptheta0:: '\u03B8', |
| 56 | upiotascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upiota0:: '\u03B9', |
| 57 | upkappascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upkappa0:: '\u03BA', |
| 58 | uplambdascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/uplambda0:: '\u03BB', |
| 59 | upmuscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upmu0:: '\u03BC', |
| 60 | upnuscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upnu0:: '\u03BD', |
| 61 | upxiscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upxi0:: '\u03BE', |
| 62 | upomicronscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upomicron0:: '\u03BF', |
| 63 | uppiscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/uppi0:: '\u03C0', |
| 64 | uprhoscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/uprho0:: '\u03C1', |
| 65 | upsigmascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upsigma0:: '\u03C3', |
| 66 | uptauscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/uptau0:: '\u03C4', |
| 67 | upupsilonscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upupsilon0:: '\u03C5', |
| 68 | upphiscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upphi0:: '\u03D5', |
| 69 | upchiscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upchi0:: '\u03C7', |
| 70 | uppsiscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/uppsi0:: '\u03C8', |
| 71 | upomegascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upomega0:: '\u03C9', |
| 72 | upvarepsilonscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upvarepsilon0:: '\u03B5', |
| 73 | upvarthetascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upvartheta0:: '\u03D1', |
| 74 | upvarpiscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upvarpi0:: '\u03D6', |
| 75 | upvarrhoscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upvarrho0:: '\u03F1', |
| 76 | upvarsigmascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upvarsigma0:: '\u03C2', |
| 77 | upvarphiscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/upvarphi0:: '\u03C6', |
| 78 | |
| 79 | Upgammascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/Upgamma0:: '\u0393', |
| 80 | Updeltascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/Updelta0:: '\u0394', |
| 81 | Upthetascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/Uptheta0:: '\u0398', |
| 82 | Uplambdascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/Uplambda0:: '\u039B', |
| 83 | Upxiscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/Upxi0:: '\u039E', |
| 84 | Uppiscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/Uppi0:: '\u03A0', |
| 85 | Upsigmascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/Upsigma0:: '\u03A3', |
| 86 | Upupsilonscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/Upupsilon0:: '\u03A5', |
| 87 | Upphiscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/Upphi0:: '\u03A6', |
| 88 | Uppsiscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/Uppsi0:: '\u03A8', |
| 89 | Upomegascip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/Upomega0:: '\u03A9' |
| 90 | }); |
| 91 | |
| 92 | |
| 93 | export const UpgreekConfigurationscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/UpgreekConfiguration. = Configurationscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`Configuration.ts`/Configuration#.createscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`Configuration.ts`/Configuration#create().( |
| 94 | 'upgreek', { |
| 95 | handlerscip-typescript npm mathjax-full 3.2.2 ts/input/tex/`Configuration.ts`/Configuration#create().(config)typeLiteral39:handler.: {macroscip-typescript npm mathjax-full 3.2.2 ts/input/tex/upgreek/`UpgreekConfiguration.ts`/macro0:: ['upgreek']}, |
| 96 | } |
| 97 | ); |
| 98 |