OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @fileoverview Speech rule store for mathml and mathjax trees. | 6 * @fileoverview Speech rule store for mathml and mathjax trees. |
7 */ | 7 */ |
8 | 8 |
9 goog.provide('cvox.MathmlStore'); | 9 goog.provide('cvox.MathmlStore'); |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 cvox.MathmlStore.prototype.defineMathmlRule = function(name, domain, rule) { | 32 cvox.MathmlStore.prototype.defineMathmlRule = function(name, domain, rule) { |
33 this.defineRule(name, domain, rule, 'self::mathml:' + name); | 33 this.defineRule(name, domain, rule, 'self::mathml:' + name); |
34 }; | 34 }; |
35 | 35 |
36 | 36 |
37 /** | 37 /** |
38 * Adds a new MathML speech rule for the default.default domain. | 38 * Adds a new MathML speech rule for the default.default domain. |
39 * @param {string} name Rule name which corresponds to the MathML tag name. | 39 * @param {string} name Rule name which corresponds to the MathML tag name. |
40 * @param {string} rule String version of the speech rule. | 40 * @param {string} rule String version of the speech rule. |
41 */ | 41 */ |
42 cvox.MathmlStore.prototype.defineDefaultMathmlRule = function(name, rule) { | 42 cvox.MathmlStore.prototype.defineDefaultMathmlRule = function(name, rule) { |
43 this.defineRule(name, 'default.default', rule, 'self::mathml:' + name); | 43 this.defineRule(name, 'default.default', rule, 'self::mathml:' + name); |
44 }; | 44 }; |
OLD | NEW |