On Fri, Apr 07, 2000 at 03:08:32PM +0200, Jean-Marc Lasgouttes wrote:
> >>>>> "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes:
> Dekel> does not effect the language of the existing text (should it be
> Dekel> fixed? namely, after changing the language in the document
> Dekel> layout popup, a new yes/no popup appears asking you if you want
> Dekel> to change the language of the existing text). 
> 
> This should not be a problem. For your changes to be transparent, the
> language of any paragraph should be "default", meaning that the
> paragraph has the language of the document. It should be set to
> "american" or whatever only if the language of the paragraph is
> changed _explicitly_. I really prefer this to a popup solution, which
> is not really natural IMO. 

But what if you don't want to change the language of existing text?

> I'd like the new language support to be transparent for people who do
> not use it.

I'm attaching a patch that does the following:
When changing the language of the document in the document layout popup,
if the document contains only one language, then the language of the existing
text is changed into the new document language (otherwise, nothing is done).

The patch also contains a rewrite of the Right-to-Left support.
The new code is much more cleaner (it is ~100 lines shorter).
Note that the file direction.h, so it should be erased from the CVS.

patch.gz

Reply via email to