On 06/02/2011 08:07 PM, Enrico Forestieri wrote:
> On Thu, Jun 02, 2011 at 11:36:08PM +0200, Enrico Forestieri wrote:
>
>> On Thu, Jun 02, 2011 at 03:56:42PM -0400, Richard Heck wrote:
>>
>>> I think so. I've had a look at it, and it's more difficult than it might
>>> seem. A comment in the code (this is output_latex.cpp, lines 770ff)
>>> suggests that sometimes we do need to restore the language, whereas it
>>> seems that in this sort of case we do not. That suggests we need a
>>> layout tag.
>> I am not sure it's so difficult. Note that \selectlanguage is used when the
>> language is changed at the start of a paragraph, otherwise \foreignlanguage
>> is used. In the given example, a workaround is inserting {} in ERT right
>> before "word" and then changing the language of "word" only. You can see
>> that \foreignlanguage is then employed. Maybe \selectlanguage could be
>> used at the start of a paragraph only if Text::isMainText() is true.
> See attached patch.
>
Well, you understand this part of the code much (MUCH!) better than I
do, which is pretty much not at all. Jurgen, you care to comment (for
branch)?

Richard


Reply via email to