Skip to content

Google translate removes spaces around math #171

@dave-doty

Description

@dave-doty

Not sure whether this is more the fault of decker or Google Translate, but if I use Google translate, it tries to translate from German, and surrounds text near math with font tags that remove a space:

Image Image

Here's the HTML just before the SVG for the rendered math, before and after, showing how the spaces get stripped above:

Before translating:

For example, if <span class="math inline"><mjx-container class="MathJax" jax="SVG" style="font-size: 90%;"><svg 
...

After translating:

<font dir="auto" style="vertical-align: inherit;"><font dir="auto" style="vertical-align: inherit;">
For example, if</font></font><span class="math inline"><mjx-container class="MathJax" jax="SVG" style="font-size: 90%;"><svg 
...

Even if this is Google Translate being dumb, perhaps there's some Decker workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions