ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mohammad Hossein Bateni <bateni@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: RTL \definedescriptions
Date: Sun, 1 May 2016 11:53:24 -0400	[thread overview]
Message-ID: <CAMHZ1dZs2Rwc57cXji5Znh8K9+p8UzcMDiB01Xo5=0Pw5QJKRg@mail.gmail.com> (raw)
In-Reply-To: <CAMHZ1db7wAzAYkg6Z9dbidZQrLgWyBK39puh5YVP0dEEkkx-ig@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2123 bytes --]

Hans & Wolfgang,

I'm updating the RTL page <http://wiki.contextgarden.net/RTL>.  The version
used on the wiki, apparently the stable version from texlive 2015, does
certain things differently.  When using alternative=serried, the last line
of the paragraph has incorrect alignment.  This is not the case in the beta
version.

On the other hand, with bidi algorithm turned on, the wiki context places
the head on the right if I use alternative=top, only when the text is in
Persian.  In the beta, the situation is more stable but incorrect: it
places the head on the left-hand side no matter what.

—MHB

On Thu, Apr 28, 2016 at 9:22 PM, Mohammad Hossein Bateni <bateni@gmail.com>
wrote:

> Hello Hans and Wolfgang,
>
> I tried different options in \definedescription and compared LTR and RTL
> behavior.  There are certain inconsistencies/bugs in the RTL setting.
> Attached you can see a TeX file and the resulting PDF, trying different
> options.  The first two pages consider different parameters in the LTR
> setting and then the same come in the RTL environment.
>
> In the following I use alt instead of alternative.
>
> Here are the issues I noticed:
>
> 1) Why isn't the head text consistently mirrored in the RTL environment?
> It happens only in alt=serried.
>
> 2) Option hang=2 produces a strange result for RTL.  The hanging part
> appears on the opposite side of the head text, which somehow pushes the
> head text outside the text area.
>
> 3) Option alt=top for RTL still puts the head text on the left-hand side.
>
> 4) I expect the LTR and RTL versions of the same settings to mirror one
> another, but they do not.   Although LTR/alt=left and RTL/alt=right look
> pretty similar (and so do LTR/alt=right and RTL/alt=left), but these pairs
> do not mirror one another.  In particular, there is some space to the right
> of the head text in LTR/alt=right, while there is none to the left of
> LTR/alt=left.  The same thing shows in the margin alternatives where the
> distance between the head text and the body is different in RTL and LTR.
>
> —MHB
>

[-- Attachment #1.2: Type: text/html, Size: 2692 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2016-05-01 15:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-29  1:22 Mohammad Hossein Bateni
2016-05-01 15:53 ` Mohammad Hossein Bateni [this message]
2016-05-01 20:37   ` Mohammad Hossein Bateni

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='CAMHZ1dZs2Rwc57cXji5Znh8K9+p8UzcMDiB01Xo5=0Pw5QJKRg@mail.gmail.com' \
    --to=bateni@gmail.com \
    --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).