Skip to content

Conversation

@personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Jan 7, 2026

Summary

Previously, HTML imported from OneNote always had lang="en" set on the <html> element, even if the imported content was not English. With this change, the <html> element lacks a lang attribute.

Note

The lang attribute on <html> seems to be ignored by Joplin when rendering HTML notes.

Note

A better (but much more complicated) fix would be to set lang="..." to the language of the document content. See https://github.com/personalizedrefrigerator/joplin/tree/pr/desktop/onenote-import/fix-language-code for a work-in-progress fix that does this.

@personalizedrefrigerator personalizedrefrigerator changed the title Desktop: OneNote import: Remove often-incorrect "lang=" in generated HTML Desktop: OneNote import: Fix all imported notes have the language marked as "English" Jan 7, 2026
@laurent22
Copy link
Owner

A better (but much more complicated) fix would be to set lang="..." to the language of the document content.

Thanks for looking into this but I don't feel that will be needed, especially if we don't currently use this information in Joplin. Should it ever become needed, I'm guessing that it will be possible to reliably detect the language using AI for these notes and others.

@laurent22 laurent22 merged commit 04f9bda into laurent22:dev Jan 8, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants