On 06-Mar-2000 Kevin Atkinson wrote:
> Juergen Vigna wrote:
>  
>> What I've noticed more is your equation "1 document" == "1 language"
>> that seems not correct to me (in general). I would like to change LyX
>> to have multi-lingual support (maybe as a character-option, this means
>> just the first character of each word :) and so we would need to be
>> able to switch between languages as spell-checking the document.
> 
> The interface can easily support multilingual documents.  Simple have
> more than one PspellManager class for each document, one for each
> language the document supports.

Well it would seem more usefull to me to be able to change the actual
language on the fly. Otherwise I have to recreate a manager-class for
every single call I make to the spellchecker (when the language changes)
as otherwise I would always to keep track which languages I already
have a manger for and only alocate a new one in a list if I didn't have
it, this seem a bit complicated to me, if we could have it really much
more simple.

Well we could make a helper function which does just this something like

spellcheck_this_string(language, string)

and then in there have the different managers for the different languages.
But this seems to me as a work the library should do (obviouly it would not
be too hard). And then we also would not have to create a new manager for
every document as we can just use the same function for all documents.

Greets J�rgen

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. J�rgen Vigna                      E-Mail: [EMAIL PROTECTED]
Italienallee 13/N                     Tel:    +39-0471-450260
I-39100 Bozen                         Fax:    +39-0471-450296
ITALY                                 Web:    http://www.sad.it/~jug

The Wright Bothers weren't the first to fly.  They were just the first
not to crash.

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Reply via email to