[Libreoffice-bugs] [Bug 118214] FILEOPEN FILESAVE: handle \noproof and w:noProof to disable spell checking on a run/style.
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Apr 5 08:50:49 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=118214
Justin L <jluth at mail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|FILEOPEN FILESAVE RTF |FILEOPEN FILESAVE: handle
|treats MS language ID 1024 |\noproof and w:noProof to
|wrong |disable spell checking on a
| |run/style.
CC| |jluth at mail.com
--- Comment #5 from Justin L <jluth at mail.com> ---
Using Word 2016, loading a document with \lang1024, the language is
English(UK), and spell-checking-on-the-fly is checking for British spelling. So
LO is acting in the same manner as Word in this case. [The problem is that LO
doesn't handle \noproof.]
>From include/i18nlangtag/lang.h
/*! use only for import/export of MS documents, number formatter maps it to
*! LANGUAGE_SYSTEM and then to effective system language */
#define LANGUAGE_PROCESS_OR_USER_DEFAULT LanguageType(0x0400) //aka 1024
And of course as Phil indicated, this is what is returned by Language None:
#define LANGUAGE_NONE LanguageType(0x00FF) //aka 255
DOCX:
LO exports "[None]" to DOCX uses w:lang w:val="zxx"
Microsoft doesn't really allow you to select either system default, or None as
a language. It does have a flag to disable spell checking on a character run
(w:noProof). However, LO does not import that.
case NS_ooxml::LN_EG_RPrBase_noProof: // no grammar and spell checking,
unsupported
Since MS doesn't seem to have a direct corollary to LO's Language:None, it
makes sense to "invent" a language (zxx) or a number (255) so that LO can
round-trip its own settings.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210405/d0669102/attachment.htm>
More information about the Libreoffice-bugs
mailing list