This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
name: "pronounce", | |
author: { name: "Walter Chang", email: "[email protected]" }, | |
license: "Creative Commons 3.0 (by nc)", | |
description: "Pronounce a selected or typed English word", | |
takes: {"word": noun_arb_text}, | |
preview: function(pblock, text) { | |
var msg = 'Pronounces "${word}"'; | |
var subs = { word: this._pickWord(text.text) }; | |
pblock.innerHTML = CmdUtils.renderTemplate(msg, subs); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
name: "tw-stock", | |
author: { name: "Walter Chang", email: "[email protected]" }, | |
license: "Creative Commons 3.0 (by nc)", | |
description: "Quote a stock symbol from Taiwan Stock Exchange", | |
takes: {"stock symbol": noun_arb_text}, | |
preview: function(pblock, what) { | |
var msg = 'Gets stock quote for "${stockSymbol}"'; | |
var subs = { stockSymbol: what.text }; | |
pblock.innerHTML = CmdUtils.renderTemplate(msg, subs); |
NewerOlder