Mostafa Vahedi wrote:
a) Currently the characters are painted in two ways in the current source:
  1) the source itself handles the shaping
  2) Qt handles the shaping
It seems that it is possible to let Qt do a part (not all) of the first item 
too. I am not sure yet! I will investigate the suggestion more.


I see no great advantage to doing this at the moment, and on the other hand I think it would involve a large amount of work, and major changes which would almost certainly introduce new bugs. Given that the current situation is very stable, I think it would be a mistake to try to switch, unless there is a very compelling reason to do so.

b) The current code in the method "Paragraph::transformChar" has a bug,
when the prev_char is a COMPOSE character (such as FATHA) and the previous BASE 
character is a SPECIAL character (such as ALEF). In this case the current 
character (such as BAA) gets the medial form and gets connected to the previous 
SPECIAL character which is not correct. The correct way to handle this 
situation is that, similar to the next_char, the first previous non-COMPOSE 
character should be assigned to the prev_char if exists.


Any progress with this, Mostafa? I don't know the transformChar code, but it sounds like the changes you're suggesting shouldn't be too hard...? If I can help out in any way, I'd be happy to try...

c) Suppose that we have a text with a mixture of English, Arabic, and Farsi languages. Therefore 
consider a paragraph that its main language is English and it contains both Arabic and Farsi words. 
The current part of the source that converts LyX to LaTeX uses the command "\R{}" for 
both Arabic and Farsi words. Of course I am not a LaTeX and/or Babel expert but it seems better if 
LyX uses the  command "\foreinlanguage" instead. Otherwise, how can LaTeX distinguish 
between these two languages?

As I answered previously, multiple languages is still problematic, at a few different levels. I think the first thing to work out is how this can be done at the latex level, then we can move on to seeing how it can be done in LyX. If you already know how to do it in latex (e.g., this \foreignlanguage that you mention), please let us know!


d) When TeX-LaTeX is not installed the menu item "Export to LaTeX (plain)" does 
not exist. Isn't it strange?

Mostafa


Again, if you have any questions, please ask --- either we'll be able to help out, or we won't ;) .

Dov

Reply via email to