the Tab problem


Subject: the Tab problem
From: Tomas Frydrych (tomas@frydrych.uklinux.net)
Date: Sat Oct 06 2001 - 16:43:40 CDT


I have been fidling with the tabs, and found the reason why they are
not working in right-justified paragraphs (major problem for the bidi
build). It turns out that fp_Line::layout() will have to be completely
rewritten, because it is conceptually flawed; essentially to start
with it asks the alignment classess to tell it where the line begins,
which of course they have no way of knowing until the layout
calculation itself is finished. Basically, for right aligned lines we will
have to calculate the layout from the end of the line, not from the
start as we do; for center-aligned lines I suspect we will have to do
a multistep iterration over the line adjusting the tab widths and
overall position. (I do not particuarly care about tabs in centered
lines, but the bidi build needs right-aligned stuff handled correctly.)
I may have some time to look into this in the coming week.

If it is any consolation, Word2000 cannot handle tabs in right- and
center- aligned paragraphs either, which is an extra reason why
AW should :-).

Tomas



This archive was generated by hypermail 2b25 : Sat Oct 06 2001 - 16:44:04 CDT