<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Words whose characters span multiple languages should not undergo spell checking"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=131487#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Words whose characters span multiple languages should not undergo spell checking"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=131487">bug 131487</a>
from <span class="vcard"><a class="email" href="mailto:mihhkel@gmail.com" title="Mihkel Tõnnov <mihhkel@gmail.com>"> <span class="fn">Mihkel Tõnnov</span></a>
</span></b>
<pre>(In reply to Mihkel Tõnnov from <a href="show_bug.cgi?id=131487#c6">comment #6</a>)
Ugh, I messed up examples in my first paragraph while moving things around
there. It should read like this:
In Estonian, foreign words should be written in italics and if there's a case
ending, then it has to be separated by an apostrophe, e.g. "<i>status
quo</i>'ni". Case endings by themselves are not valid words, so apostrophe as
word separator definitely wouldn't help; and apostrophe is also used for other
purposes, like to indicate emission of character(s) from a word (e.g. to
imitate everyday speech).
Somewhat similarly, hyphens can be used to separate foreign part and native
part in compound words, e.g. "<i>flamenco</i>-tantsija", "tele-<i>show</i>".
(Note that hyphen separates complete words, while apostrophe is used with case
endings.)
I'm not sure it would be beneficial to completely ignore such words in
spellcheck, as any misspellings in them would then pass unflagged (and at least
some foreign words are rather prone to misspellings - take the Italian coffee
terms that the rest of the world often struggles to write correctly :)
Could the request here maybe be re-purposed and implemented as follows?
1) If a word (as currently detected by LibO) contains characters in multiple
languages, check if there is some punctuation mark separating the different
language parts.
2a) If there's an apostrophe (' or ’ - but probably not ‘): check which
language the apostrophe belongs to, and as far as spellcheck is concerned,
separate the "word" at the border of languages, keeping the apostrophe together
with the preceding or following characters, as appropriate.
2b) If there's a hyphen: ignore the hyphen and spellcheck the word parts as if
separated by space.
2c) If there's no separating character, underline the whole "word" as
misspelled.
@Sergio: you said that "quell'" alone is not an Italian word - how is it
currently handled by spellcheck, if used before an Italian word? Would 2a as
described above work for Italian?
Also, I'm not sure if 2c would be OK for all languages, though - does anyone
have counterexamples for this?</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>