On 7/24/07, Steve Litt <[EMAIL PROTECTED]> wrote:
> > > After having written a piece of a document, there is apparently no way
> > > of changing the overall language of the document, in the sense that
> > > the part already written remains as written with the previous
> > > language, i.e., looking in the LyX file with a text editor, one sees
> > >
> > > \lang "previous language"
> > >
> > > before of each paragraph previously written with the old language.
> > >
> > > I am using LyX 1.5.0rc2 on Fedora Linux 7.
> > >
> > > Do you confirm this as a bug?
> >
> > I have no idea if it's a bug, but you can use Vim's search and replace to
> > mass switch all the \lang in front of each paragraph. I regularly use Vim
> > to tweak LyX native language when the LyX front end can't do the job.
> > This is one of my favorite things about LyX -- it doesn't require LyX :-)
>
> Thanks, Steve. If it is not a bug, then many users like me -- I guess
> -- would be very happy if they were given the option of choosing as
> global the change of language, i.e., affecting all paragraphs and not
> only the the new ones.
>
> Paul
Hi Paul,
If U send me a LyX file with the problem (two languages -- one the earlier and
one the later), I think I can write a script that takes the intended language
as an argument, that globally corrects any wrong languages. Not quite what
you want, but a close second. I'll be glad to make the script available to
all of LyXdom.
Thanks, Steve. I have just noticed that the change of language is in
fact global. The problem shows up when one copies something from a
document written in a different language; then no language change can
be global. The obvious workaround is to change the language of the
document before copying from it, and no need for a script.
This seems to be a bug. Do others confirm this bug?
Paul