Dov Feldstern wrote: > Regarding 1820 --- I started looking at it a while ago, and I think that > the problem stems from this: in TeXOnePar, previous_language is set to > the language of the previous paragraph, or to the document language if > this is the first paragraph. Then, if the new paragraph's language is > different from the previous language, the language command is inserted, > otherwise it isn't. > > The problem is that inside an inset (such as a footnote), the paragraphs > are numbered from 0 again. So the first paragraph in the footnote is > identified as the "first", and therefore the previous_language is set to > the document language, namely English (say it's an English document).
That (and the proposed solution below) makes a lot of sense. I don't have time now to investigate, maybe you can put this analysis into bugzilla so that it does not get forgotten? Georg