Re: Spellchecking not working on Mac OS X

2013-04-22 Thread Gregory Jefferis

On 19 Apr 2013, at 08:25, Grant Jacobs wrote:

> A work-around seems to be to select the document language to be what you
> want (e.g. English (UK)) and select that to become LyX's default
> document language.

This isn't particularly intuitive (one might expect it to be accessible from 
the main Preferences window, Language tab, perhaps it isn't because it is 
somehow tied to different document classes) but it does work just fine for me 
with 2.0.5-1 with English (UK). Is there an outstanding issue that this doesn't 
solve?

Best wishes,

Greg.

Re: Spellchecking not working on Mac OS X

2013-04-19 Thread Stephan Witt
Am 19.04.2013 um 07:07 schrieb Grant Jacobs :

> I'm using LyX 2.0.5.1 on Mac OS X 10.6.8

Hi Grant,

> Spell checking is stubbornly refusing to work :-(
> 
> None of the three options work (Native, Aspell, Hunspell).
> 
> Have tried installing Hunspell (I would prefer to use the system
> dictionaries, but selecting 'native'  for the dictionary doesn't work so
> have tried this to get *something* to work.) 

LyX's spell checker on Mac supports
* Native - the OS service.
* Hunspell - builtin alternative including the dictionaries.
* Aspell - builtin alternative without dictionaries.

> Have put aspell-type dictionaries in what "sound" to be the right places
> (there seems to be no  documentation for how to do this for OS X). 

Aspell dictionaries can be installed with mac ports and should be found after 
doing so.

> LyX persistently, and maddeningly, informs me that it can't find
> dictionaries. Can't find out where  it's looking so don't know where to
> check. (Documentation for Linux says to try 'lyx -dbg files' to learn
> this but on OS X 'which lyx' draws a blank.) And so on...
> 
> Any thoughts?

The debug output is placed in the message pane.
You may enable and configure it with View -> Messages.

> (I know about running 'Reconfigure'. There appear to be no good
> instructions anyway for installing dictionaries on OS X -- there is a
> brief account of how to install the hunspell *software*, but nothing
> about *dictionaries* for OS X that I can find.)

There is not need to install dictionaries.

The spell checker uses the language of your text markup. This should simply 
work.

Can you please send me an example document for non-working spell check?

Regards,
Stephan

Re: Spellchecking not working on Mac OS X

2013-04-19 Thread Grant Jacobs
I believe I've made some progress on this. Typical for that to come
after a lot of effort in other directions then posting on a forum...
(Sigh.)

There seems to be an assumption by LyX, or at least my installation,
that the default language is 'English'—not 'English (UK)', etc., plain
'English'—whereas the OS is set to use an English variant.

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 then
bails out without letting the user have the chance to try one of the
other English variants. (It complains about reaching the end of the
document, then 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 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 to become LyX's default
document language.

A "proper" solution, AFAICT, would be to have LyX realise that some
systems will not have 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.)



Spellchecking not working on Mac OS X

2013-04-18 Thread Grant Jacobs
I'm using LyX 2.0.5.1 on Mac OS X 10.6.8

Spell checking is stubbornly refusing to work :-(

None of the three options work (Native, Aspell, Hunspell).

Have tried installing Hunspell (I would prefer to use the system
dictionaries, but selecting 'native'  for the dictionary doesn't work so
have tried this to get *something* to work.) 

Have put aspell-type dictionaries in what "sound" to be the right places
(there seems to be no  documentation for how to do this for OS X). 

LyX persistently, and maddeningly, informs me that it can't find
dictionaries. Can't find out where  it's looking so don't know where to
check. (Documentation for Linux says to try 'lyx -dbg files' to learn
this but on OS X 'which lyx' draws a blank.) And so on...

Any thoughts?



(I know about running 'Reconfigure'. There appear to be no good
instructions anyway for installing dictionaries on OS X -- there is a
brief account of how to install the hunspell *software*, but nothing
about *dictionaries* for OS X that I can find.)