Hi,
I am currently writing a html parser to generate a translation input of length 'x' and send it to translation API. I was wondering if I can keep the inline elements like <span>
in input string.
For example, can I send an input string as "Company X earned a profit of <span> $100000 </span> in year <span>2017</span>"?
The reason I want to keep this span elements is because the attributes of this span elements contain offsets for source linking (which should not be changed) and we want them to be around the same words in the output.
In this case, does google do some pre processing to ignore the tags and consider only the text "Company X earned a profit of $100000 in year 2017" and then put those tags back in the output at correct positions looking at the context? If not, how does does google translation handles tags ?
Also would google charge for this inline tags in the input?
Thanks for your help !