4
4
/*************************************************************
5
5
*
6
6
* MathJax/jax/output/SVG/autoload/mglyph.js
7
- *
7
+ *
8
8
* Implements the SVG output for <mglyph> elements.
9
9
*
10
10
* ---------------------------------------------------------------------
11
- *
11
+ *
12
12
* Copyright (c) 2011-2018 The MathJax Consortium
13
- *
13
+ *
14
14
* Licensed under the Apache License, Version 2.0 (the "License");
15
15
* you may not use this file except in compliance with the License.
16
16
* You may obtain a copy of the License at
17
- *
17
+ *
18
18
* http://www.apache.org/licenses/LICENSE-2.0
19
- *
19
+ *
20
20
* Unless required by applicable law or agreed to in writing, software
21
21
* distributed under the License is distributed on an "AS IS" BASIS,
22
22
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -30,7 +30,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
30
30
SVG = MathJax . OutputJax . SVG ,
31
31
BBOX = SVG . BBOX ,
32
32
LOCALE = MathJax . Localization ;
33
-
33
+
34
34
var XLINKNS = "http://www.w3.org/1999/xlink" ;
35
35
36
36
BBOX . MGLYPH = BBOX . Subclass ( {
@@ -51,7 +51,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
51
51
this . d = this . D = - y ; this . l = 0 ;
52
52
}
53
53
} ) ;
54
-
54
+
55
55
MML . mglyph . Augment ( {
56
56
toSVG : function ( variant , scale ) {
57
57
this . SVGgetStyles ( ) ; var svg = this . SVG ( ) , img , err ;
@@ -82,7 +82,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
82
82
} else {
83
83
var mu = this . SVGgetMu ( svg ) ;
84
84
svg . Add ( BBOX . MGLYPH ( this . img . img , values . width , values . height , values . valign , mu ,
85
- { alt : values . alt , title :values . alt } ) ) ;
85
+ { 'aria-label' :values . alt } ) ) ;
86
86
}
87
87
}
88
88
svg . Clean ( ) ;
@@ -98,9 +98,9 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
98
98
} , {
99
99
GLYPH : { } // global list of all loaded glyphs
100
100
} ) ;
101
-
101
+
102
102
MathJax . Hub . Startup . signal . Post ( "SVG mglyph Ready" ) ;
103
103
MathJax . Ajax . loadComplete ( SVG . autoloadDir + "/mglyph.js" ) ;
104
-
104
+
105
105
} ) ;
106
106
0 commit comments