Attribute Based Markup of HTML w/ SSML
Opened this issue · 1 comments
I had sent a suggestion via email and was asked to create a GitHub issue for it:
I personally prefer an attribute based approach to adding SSML to HTML, but don't particularly like the JSON version. I don't like mixing JSON with an XML derivative so my suggestion is to embed the actual SSML tag as an attribute and then any other related SSML attributes as an additional SSML attribute using the 'data-ssml-' prefix.
For example, instead of
According the 2010 US Census, the population of <span data-ssml='{"say-as" : {"interpret-as":"digits"}}'>90274</span>
increased to 25209 from 24976 over the past 10 years.
it'd be
According the 2010 US Census, the population of <span data-ssml='say-as' data-ssml-interpret-as='digits'>90274</span>
increased to 25209 from 24976 over the past 10 years.
Once we get our demo text ready, we can try to format to this style.