PennController for IBEX › Forums › Requests › Auto-translator issue › Reply To: Auto-translator issue
November 26, 2019 at 2:17 pm
#4647
Jeremy
Keymaster
Hi Leo,
Thank you, it’s good to know that the method you describe is efficient against auto-translation issues! And since it is, maybe your Python script can be transposed into javascript, e.g. like this:
function insertHtmlTags(s) { if (typeof(s) != "string" || s.length == 0) return s; return s.replace(/(.)(.)/g, '$1$2'); } PennController( newText( insertHtmlTags("Hello world!") ) .print() , newButton("OK") .print() .wait() )
Does this also break the auto-translation plugin?
Jeremy