LyX ⇒ Spell checking doesn't work in LyX 2.0.5.1 on OS X 10.6.8
Spell checking doesn't work in LyX 2.0.5.1 on OS X 10.6.8
I've tried manually putting this right, but I'm out of time - I just can't keep plugging away at this bug forever as I have work to do, so hence asking here.
Bog standard install (.dmg), using smaller version of MacTex (TeXLive-2012-Basic).
Surely spelling check dictionaries for LyX get installed by default? Anyway, it seems there are none. None of the spelling options work (Native,* Aspell or Hunspell). Manually downloading and placing the dictionaries in /Library/Spelling does not help. Manually creating /usr/share/myspell/dict and manually places the dictionaries there does not help. LyX gives generic messages, e.g. "Spellchecker has no dictionaries" so I've no leads from that. (Where is it looking?, what is it looking for?, etc.)
(* It's not clear what "Native" *is*, either - the defaults in /Library/Dictionaries?)
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Re: Spell checking doesn't work in LyX 2.0.5.1 on OS X 10.6.
This reveals an ugly quirk of LyX, however.
Many (all?) sequences of f+next letter are not being understood by Skim, so I presume LyX is generating these in some unexpected way. They visually look correct, but the effect is that clearly correct words with 'f' in them are flagged as errors, e.g. first, different.
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Re: Spell checking doesn't work in LyX 2.0.5.1 on OS X 10.6.
If you can reproduce this bug on 2.0.5.1 (the newest version), please file a bug report
http://www.lyx.org/trac
so that it can be fixed for the next version.
I'm not sure how things work on Mac. I would not be surprised if the spell check dictionaries are not installed by default. Can you try installing one, reconfiguring LyX, and seeing if you still have a problem?
Scott
Re: Spell checking doesn't work in LyX 2.0.5.1 on OS X 10.6.
I don't know enough of the internals to make full sense of this, but the issue appears to be a mix of an OS set up to prefer a variant of English and LyX "preferring" the default to be plain English. In this situation LyX seems to think (or reports) there are no dictionaries when in fact there are, it's just the English the system is using is a variant (e.g. English (UK)).
Here's what I've written elsewhere (lightly edited):
You can see this more clearly if you try use the Thesaurus. 'English' is offered but the pulldown list indicates it's not present, whereas
'English (UK)' is available to be used.
On systems that are not set with this as the default system version of English, the spellchecker "decides" it hasn't got a dictionary. The spellchecker then bails out without letting the user have the chance to try one of the other English variants. (Thesaurus by contrast lets you try them. The spellchecker complains about reaching the end of the document, then the spellchecker disappears.)
Manually setting the *system* (OS X) language to "prefer" English then the variants temporarily resolves this. But that's not suitable if you want (say) British English first.
A work-around seems to be to select the document language to be what you want (e.g. English (UK)) and select that setting to become LyX's default document language.
A "proper" solution, AFAICT, would be to have LyX realise that some
systems will not have "plain" English as a preferred language and correctly check what is in fact the system language in use. It's made more confusing, I think, by the LyX Preferences not having a setting for this - they only set the user interface language; the documents/spellchecking language seems to be separate, but that's not clear to users and the document language setting is a bit "buried", so many users won't be aware that there.
(Another, hopefully unrelated, confusion is that I have a system
Preference Pane for Spelling that something has installed (ha) that says it can't run on Intel-based systems...! Perhaps that "arrived" as a
consequence of installing Hunspell while I was trying to figure this
out.)
On an unrelated note, I'm still not sure what's up with the 'f' character issue, but it might be related to fonts.
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Spell checking doesn't work in LyX 2.0.5.1 on OS X 10.6.8
This is because of ligatures. This is because of LaTeX, not LyX. There are probably changes that you can make. Perhaps searching for ligatures + LaTeX would lead to some tips.GJacobs wrote:On an unrelated note, I'm still not sure what's up with the 'f' character issue, but it might be related to fonts.