<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:jluth@mail.com" title="Justin L <jluth@mail.com>"> <span class="fn">Justin L</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN FILESAVE: handle \noproof and w:noProof to disable spell checking on a run/style."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=118214">bug 118214</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Summary</td>
<td>FILEOPEN FILESAVE RTF treats MS language ID 1024 wrong
</td>
<td>FILEOPEN FILESAVE: handle \noproof and w:noProof to disable spell checking on a run/style.
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>jluth@mail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN FILESAVE: handle \noproof and w:noProof to disable spell checking on a run/style."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=118214#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN FILESAVE: handle \noproof and w:noProof to disable spell checking on a run/style."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=118214">bug 118214</a>
from <span class="vcard"><a class="email" href="mailto:jluth@mail.com" title="Justin L <jluth@mail.com>"> <span class="fn">Justin L</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>