[***SPAM***] Two-language environment and page breaking
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
On Tue, May 21 2013, H. Özoguz wrote:
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.
Hi, I don't know a real solution, just 2 workarounds: 1.) A \vskip-3pt between the 2 paragraphs. 2.) My cld-hack, as shown in the 2 attached files. -- Peter
participants (2)
-
"H. Özoguz"
-
Peter Münster