{"ScriptPreparationCode":"var varregexp = /{{\\[([^ .[\\]{}]*?)]\\.([^ .[\\]{}]*?)}}/g;\r\nvar htmlregexp = /(\u003C([^\u003E]\u002B)\u003E)/gi;\r\nvar html = \u0060\u003Cspeak\u003E\r\n Normal volume {{[var2].name2}} for the first sentence.\r\n \u003Cprosody volume=\u0022x-loud\u0022\u003ELouder volume for the second sentence\u003C/prosody\u003E.\r\n When I wake up, \u003Cprosody rate=\u0022x-slow\u0022\u003EI speak quite slowly\u003C/prosody\u003E.\r\n I can speak with my normal pitch,{{[var].name}}\r\n \u003Cprosody pitch=\u0022x-high\u0022\u003E but also with a much higher pitch \u003C/prosody\u003E, \r\n and also \u003Cprosody pitch=\u0022low\u0022\u003Ewith a lower pitch\u003C/prosody\u003E.\r\n My favorite chemical element is \u003Csub alias=\u0022aluminum\u0022\u003EAl\u003C/sub\u003E,\r\n but Al prefers \u003Csub alias=\u0022magnesium\u0022\u003EMg\u003C/sub\u003E. \r\n Here is a number spoken as a cardinal number: \r\n \u003Csay-as interpret-as=\u0022cardinal\u0022\u003E{{[var3].name3}}\u003C/say-as\u003E.\r\n Here is the same number with each digit spoken separately:\r\n \u003Csay-as interpret-as=\u0022digits\u0022\u003E12345\u003C/say-as\u003E.\r\n Here is a word spelled out: \u003Csay-as interpret-as=\u0022spell-out\u0022\u003E{{[var4].name4}}\u003C/say-as\u003E\r\n\u003C/speak\u003E\u0060\r\n\r\nvar getLabel = (str) =\u003E str;\r\nvar replacevars = (str) =\u003E str.replace(varregexp, \u0027\u0027);\r\nvar replacehtml = (str) =\u003E str.replace(htmlregexp, \u0027\u0027);","TestCases":[{"Name":"label","Code":"getLabel(html)","IsDeferred":false},{"Name":"vars","Code":"replacevars(getLabel(html))","IsDeferred":false},{"Name":"html","Code":"replacehtml(getLabel(html))","IsDeferred":false},{"Name":"vars and html","Code":"replacehtml(replacevars(getLabel(html)))","IsDeferred":false},{"Name":"html and vars","Code":"replacevars(replacehtml(getLabel(html)))","IsDeferred":false}]}