[Libreoffice-bugs] [Bug 118214] FILEOPEN FILESAVE: handle \noproof and w:noProof to disable spell checking on a run/style.

2021-04-05 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=118214

Justin L  changed:

   What|Removed |Added

   Assignee|libreoffice-b...@lists.free |jl...@mail.com
   |desktop.org |
 Status|NEW |ASSIGNED

--- Comment #6 from Justin L  ---
Proposed import fix at https://gerrit.libreoffice.org/c/core/+/113614

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 118214] FILEOPEN FILESAVE: handle \noproof and w:noProof to disable spell checking on a run/style.

2021-04-05 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=118214

Justin L  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||jl...@mail.com

--- Comment #5 from Justin L  ---
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_DEFAULTLanguageType(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.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs