On Wed, 06 Oct 2004 19:05:59 +0300 (EEST) Martin Vermeer <[EMAIL PROTECTED]> wrote:
> On Wed, 06 Oct 2004 16:02:32 +0100 Angus Leeming <[EMAIL PROTECTED]> > wrote: > > > Martin Vermeer wrote: > > > > > On Wed, 2004-10-06 at 17:48, Angus Leeming wrote: > > >> Martin Vermeer wrote: > > >> > So I re-wrote the patch like attached... only problem is, > > >> > runparams.lang appears to be empty, no matter what I set as > > document > > >> > language or even "paint" the surroundings of the index inset to > > >> > another language. > > >> > > > >> > Sure this is supposed to work? Stumped. > > >> > > >> Me too, because this is your earlier patch... > > > > > > Mysteries, mysteries. > > > > > > - Martin > > > > Martin, get a grip! All three are identical. > > Angus > > > > Original: > > @@ -398,7 +402,10 @@ > > lyxerr[Debug::LATEX] << "idx file has been made," > > " running makeindex on file " > > << f << endl; > > - string tmp = lyxrc.index_command + " "; > > + string tmp = lyxrc.index_command + " "; > > + Buffer * buf = bufferlist.first(); > > + string s = (*buf).params().language->babel(); > > + tmp = subst(tmp, "$$lang", s); > > tmp += QuoteName(f); > > Systemcall one; > > one.startscript(Systemcall::Wait, tmp); > > > > Version 2: > > @@ -398,7 +402,10 @@ > > lyxerr[Debug::LATEX] << "idx file has been made," > > " running makeindex on file " > > << f << endl; > > - string tmp = lyxrc.index_command + " "; > > + string tmp = lyxrc.index_command + " "; > > + Buffer * buf = bufferlist.first(); > > + string s = (*buf).params().language->babel(); > > + tmp = subst(tmp, "$$lang", s); > > tmp += QuoteName(f); > > Systemcall one; > > one.startscript(Systemcall::Wait, tmp); > > > > Version 3: > > @@ -398,7 +402,10 @@ > > lyxerr[Debug::LATEX] << "idx file has been made," > > " running makeindex on file " > > << f << endl; > > - string tmp = lyxrc.index_command + " "; > > + string tmp = lyxrc.index_command + " "; > > + Buffer * buf = bufferlist.first(); > > + string s = (*buf).params().language->babel(); > > + tmp = subst(tmp, "$$lang", s); > > tmp += QuoteName(f); > > Systemcall one; > > one.startscript(Systemcall::Wait, tmp); > > > > > > -- > > Angus > Wow!. Tell me I'm dreaming. > I *verified* that the x.diff I attached was the right one -- but > apparently it wasn't. > I suspect I took it from the wrong directory... the right one added > runparams to the call of makeLaTeX and then used runparms.lang for > string s. It was considtently empty. > > BTW the old version (which you saw three times now) *does* work. > - Martin > PS I cannot get to my machine at work now. So you'll have to wait until > friday probably. > This is a serious Evolution usability bug... cannot see outgoing attachments. Mutt had me spoiled :-) - Martin