Juergen Vigna wrote:
> 
> 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.

NO the manager class EXCEPTS to only be working with one document.  The
main reason right now is due to the store_repl method but I am sure
other reasons will come up.  Please keep in mind the the manager class
will generally not take up very much space as it will share dictionaries
as appropriate.

Multilingual support might be added in the future once the other parts
are working.  Also left it is the ability to spell check regions of text
and not just words.  That will also be added in the future and will be
similar to what it was in our earlier dission when I first brought this
up a couple of months ago.

--- 
Kevin Atkinson
[EMAIL PROTECTED]
http://metalab.unc.edu/kevina/

Reply via email to