Hi,
one more question to my arabic-german table environment. See this code:
\definefont[amiri][file:UthmanTN1Ver10.ttf*arabic at 11 pt] % or
amiri-regular.ttf
\define[1]\Arab{\setupalign[r2l]\amiri#1}
%\showgrid
\startsetups[arde]
\setupTABLE[c][1][rightframe=on]
\stopsetups
\def\startarde
{\bTABLE[frame=off,width=.5\textwidth,setups=arde,split=yes]}
\def\stoparde
{\eTABLE}
\define[2]\arde
{\bTR
\bTD [align={tolerant, stretch},
roffset=1ex,style={\setupinterlinespace[line=3ex]}] #1\eTD
\bTD[align={r2l,tolerant,stretch},
loffset=1ex,style={\amiri\setupinterlinespace[line=5.4ex]}] #2 \eTD
\eTR}
\starttext
\startarde
\arde{%
Dies ist nur ein vollkommen sinnfreier Text und hat rein gar nichts mit
dem Arabischen auf der rechten Seiten zutun. Wirklich gar nichts.
Glauben Sie es mir? Also versuchen Sie nicht den Sinn des Arabischen
hierdurch zu erfassen.
}
{%
اللهُمَّ ارْزُقْنِي حَجَّ بَيْتِك الحَرامِ فِي عامِي هذا وَفِي كُلِّ عامٍ ما أَبْقَيْتَنِي فِي يُسْرٍ مِنْكَ
وَعافِيَةٍ وَسَعَةِ رِزْقِ، وَلا تُخْلِنِي
مِنْ تِلْكَ المَواقِفِ الكَرِيِمَةِ وَالمَشاهِدِ الشَّرِيفَةِ، وَزِيارَةِ قَبْرِ نَبِيِّكَ صَلَواتُكَ عَلَيْهِ
وَآلِهِ، وَفِي جَمِيعِ حَوائِجِ الدُّنْيا وَالآخرةِ فَكُنْ
}
\stoparde
\blank
{\bf Should be the same like:}\blank
\startarde
\arde{%
Dies ist nur ein vollkommen sinnfreier Text und hat rein gar nichts mit
dem Arabischen auf der rechten Seiten zutun.
}
{%
اللهُمَّ ارْزُقْنِي حَجَّ بَيْتِك الحَرامِ فِي عامِي هذا وَفِي كُلِّ عامٍ ما أَبْقَيْتَنِي فِي يُسْرٍ مِنْكَ
وَعافِيَةٍ وَسَعَةِ رِزْقِ، وَلا تُخْلِنِي
}
\arde{Wirklich gar nichts. Glauben Sie es mir? Also versuchen Sie nicht
den Sinn des Arabischen hierdurch zu erfassen.}{مِنْ تِلْكَ المَواقِفِ الكَرِيِمَةِ
وَالمَشاهِدِ الشَّرِيفَةِ، وَزِيارَةِ قَبْرِ نَبِيِّكَ صَلَواتُكَ عَلَيْهِ وَآلِهِ، وَفِي جَمِيعِ حَوائِجِ
الدُّنْيا وَالآخرةِ فَكُنْ }
\stoparde
\stoptext
In the code you see two \startarde\stoparde blocks. The first block is
the example, the correct setting. But the first block can not be broken
over pages. This is fixed by the second block, where I seperated the
text into two "\arde", so now it can be broken over pages, because they
are now two different tables. But if they are NOT broken over pages,
they sould be set as if they were only one table, so as in the first
"\startarde\stoparde" block. But the are not. You see the small distance
between them.
Is there a way to produce the behavior I descibed? It would be a
workaround to get natural tables, which can be broken over pages (my
manually sperating them). (Only natural tables are possible for this
environment, and not normales tables, because of the needed different
interlinespace of the two columns).
Thanks.
Huseyin
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________