Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/host/interface/abstract_tts.js

Issue 2383173002: Fix reading of password values. (Closed)
Patch Set: Bullets everywhere Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 Base class for Text-to-Speech engines that actually transform 6 * @fileoverview Base class for Text-to-Speech engines that actually transform
7 * text to speech. 7 * text to speech.
8 * 8 *
9 */ 9 */
10 10
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 '.': 'dot', 435 '.': 'dot',
436 '<': 'less_than', 436 '<': 'less_than',
437 '>': 'greater_than', 437 '>': 'greater_than',
438 '/': 'slash', 438 '/': 'slash',
439 '?': 'question_mark', 439 '?': 'question_mark',
440 '"': 'quote', 440 '"': 'quote',
441 '\'': 'apostrophe', 441 '\'': 'apostrophe',
442 '\t': 'tab', 442 '\t': 'tab',
443 '\r': 'return', 443 '\r': 'return',
444 '\n': 'new_line', 444 '\n': 'new_line',
445 '\\': 'backslash' 445 '\\': 'backslash',
446 '\u2022': 'bullet'
446 }; 447 };
447 448
448 449
449 /** 450 /**
450 * Pronunciation dictionary. Each key must be lowercase, its replacement 451 * Pronunciation dictionary. Each key must be lowercase, its replacement
451 * should be spelled out the way most TTS engines will pronounce it 452 * should be spelled out the way most TTS engines will pronounce it
452 * correctly. This particular dictionary only handles letters and numbers, 453 * correctly. This particular dictionary only handles letters and numbers,
453 * no symbols. 454 * no symbols.
454 * @type {Object<string>} 455 * @type {Object<string>}
455 */ 456 */
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 */ 544 */
544 cvox.AbstractTts.substitutionDictionaryRegexp_; 545 cvox.AbstractTts.substitutionDictionaryRegexp_;
545 546
546 547
547 /** 548 /**
548 * repetition filter regexp. 549 * repetition filter regexp.
549 * @type {RegExp} 550 * @type {RegExp}
550 * @private 551 * @private
551 */ 552 */
552 cvox.AbstractTts.repetitionRegexp_ = 553 cvox.AbstractTts.repetitionRegexp_ =
553 /([-\/\\|!@#$%^&*\(\)=_+\[\]\{\}.?;'":<>])\1{2,}/g; 554 /([-\/\\|!@#$%^&*\(\)=_+\[\]\{\}.?;'":<>\u2022])\1{1,}/g;
554 555
555 556
556 /** 557 /**
557 * Constructs a description of a repeated character. Use as a param to 558 * Constructs a description of a repeated character. Use as a param to
558 * string.replace. 559 * string.replace.
559 * @param {string} match The matching string. 560 * @param {string} match The matching string.
560 * @return {string} The description. 561 * @return {string} The description.
561 * @private 562 * @private
562 */ 563 */
563 cvox.AbstractTts.repetitionReplace_ = function(match) { 564 cvox.AbstractTts.repetitionReplace_ = function(match) {
564 var count = match.length; 565 var count = match.length;
565 return ' ' + (new goog.i18n.MessageFormat(Msgs.getMsg( 566 return ' ' + (new goog.i18n.MessageFormat(Msgs.getMsg(
566 cvox.AbstractTts.CHARACTER_DICTIONARY[match[0]]))) 567 cvox.AbstractTts.CHARACTER_DICTIONARY[match[0]])))
567 .format({'COUNT': count}) + ' '; 568 .format({'COUNT': count}) + ' ';
568 }; 569 };
569 570
570 571
571 /** 572 /**
572 * @override 573 * @override
573 */ 574 */
574 cvox.AbstractTts.prototype.getDefaultProperty = function(property) { 575 cvox.AbstractTts.prototype.getDefaultProperty = function(property) {
575 return this.propertyDefault[property]; 576 return this.propertyDefault[property];
576 }; 577 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698