Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore elements with translate=no attribute #401

Open
jelmervdl opened this issue Apr 11, 2022 · 1 comment
Open

Ignore elements with translate=no attribute #401

jelmervdl opened this issue Apr 11, 2022 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed mod: html Issues related to handling HTML

Comments

@jelmervdl
Copy link
Member

See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/translate

I can make elements with this attribute skip into the skip-element function, which is used for ignoring <code> etc. But that might mess up sentences, as this attribute can also apply to named entities. Those would, when the skip-element trick is used, completely disappear from the sentence when it is submitted to the translator, which might not like missing words (or names).

@jelmervdl jelmervdl added enhancement New feature or request help wanted Extra attention is needed mod: html Issues related to handling HTML labels Apr 11, 2022
@kpu
Copy link
Member

kpu commented Apr 11, 2022

Yeah in general the MT system would need to be trained with a placeholder to do this correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed mod: html Issues related to handling HTML
Projects
None yet
Development

No branches or pull requests

2 participants