On Fri, Jul 13, 2007 at 03:21:42AM +0300, Dov Feldstern wrote:
> Dov Feldstern wrote:
> > Enrico Forestieri wrote:
> >> On Fri, Jul 13, 2007 at 02:31:05AM +0300, Dov Feldstern wrote:
> >>> Enrico Forestieri wrote:
> >>>>> With your patch applied, when I mark as english the footnote 
> >>>>> content I correctly see a \selectlanguage{english} inserted before 
> >>>>> "bla bla bla".
> >>>>> But I also see that the whole footnote inset is marked as foreign, 
> >>>>> so I
> >>>>> select the whole of it and mark it as english. Now it is not 
> >>>>> underlined
> >>>>> anymore but the \selectlanguage{english} is gone, too!
> >>> That's fine: once you set the language of the inset to be equal to 
> >>> that of the text inside it, then the language switch command will 
> >>> happen *before* the inset, and therefore there's no need for the 
> >>> language switch to happen inside.
> >>
> >> Hope you are right, as what I obtain in this case is:
> >>
> >> \selectlanguage{italian}
> >> BLA BLA BLA\foreignlanguage{english}{}%
> >> \footnote{bla bla bla%
> >> }\selectlanguage{english}
> >>
> >> I would like "bla bla bla" to be in English, but it seems to me that
> >> it will be in Italian, instead...
> >>
> > 
> > hmmm, I don't know about the \foreignlanguage command, I've been playing 
> > around with either \selectlanguage or \L and \R, which are RTL-specific. 
> > Is there nothing you can type inside the footnote that will appear 
> > differently, depending on the language it's in? punctuation or something?
> > 
> > 
> A google search shows one way to test for the language:
> 
> \iflanguage{<language>}{<true text>}{<false text>}
> 
> However, based on this same page 
> (http://theoval.cmp.uea.ac.uk/~nlct/latex/novices/node51.html), it looks 
> like the result you have is not good: The foreignlangauge command is 
> closing *before* the footnote, which is *not* what I want... Can you try 
> this with the latest version I sent a few minutes ago? But it looks like 
> the patch will still require some adjustments, I've only been trying it 
> with Hebrew--English...

Note that this occurs with or without your patch, which however works
when only the content of the footnote inset is marked. So, this seems
to be a different bug, independent of the one you are addressing.

> I'm going to sleep now, though...

Me too...

-- 
Enrico

Reply via email to