From: "\"H. Özoguz\"" <h.oezoguz@mmnetz.de>
To: ntg-context@ntg.nl
Subject: [***SPAM***] Two-language environment and page breaking
Date: Tue, 21 May 2013 08:01:01 +0200 [thread overview]
Message-ID: <519B0D9D.8030203@mmnetz.de> (raw)
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
___________________________________________________________________________________
next reply other threads:[~2013-05-21 6:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-21 6:01 "H. Özoguz" [this message]
2013-05-22 19:51 ` Peter Münster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=519B0D9D.8030203@mmnetz.de \
--to=h.oezoguz@mmnetz.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).