From: Mohammad Hossein Bateni <bateni@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Problems with indexing (+feature requests)
Date: Mon, 22 Aug 2016 04:49:32 -0400 [thread overview]
Message-ID: <CAMHZ1dYyytQG+TUehwdFM+z6mrouCHJnOiyr8iNAquWt1+riUw@mail.gmail.com> (raw)
In-Reply-To: <CAMHZ1da=nMZZJN5_YrhkTvoNdsjeM46z2WboKNYJ0am5-bvMSw@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3154 bytes --]
Same problem, item (6) of email below, observed with arabtype font. See
attached. MWE follows.
\definefontfamily [myfamily] [serif] [arabictypesetting] [features=arabic]
\setupbodyfont [myfamily]
\setupalign[r2l]
\setupdirections[bidi=global,method=two]
\setupmixedcolumns[register][direction=reverse]
\setupregister[index][
before=,after=,
command=\MyCommand,
alternative=b,
color=red,
]
\def\MyCommand#1{#1}
%\def\MyCommand#1{\inframed[frame=no]{#1}} % this fixes the problem
\showboxes
\starttext
\index{آب}
\index{عذر}
\index[تک]{TEX}
testing
\placeindex
\stoptext
any insights about other items in the previous email?
—MHB
On Wed, Aug 17, 2016 at 10:48 PM, Mohammad Hossein Bateni <bateni@gmail.com>
wrote:
> Hello,
>
> For a few days I have been playing with registers to generate an RTL
> index. Beside sorting, I ran into the following.
>
> 1) How can I get the index section using \subject? In some styles, I do
> not want to see the section number.
>
> 2) How can I get the Persian comma used instead of the English comma in
> page numbers and also before "see also"? The first one I can fix by a hack
> but not the second one: defining a custom pagecommand that sets \
> registerpageseparatorsymbol to the Persian comma! There is a TODO
> comment in strc-reg.mkiv that the comma customization has been planned.
>
> 3) In RTL registers, if an entry starts with an LTR char, the order of
> index entry and page number will be incorrect. We had similar issues with
> section headings before. I can "fix" this by setting pagestyle=\zwnj, but
> is there a more principled way to handle this? See the MWE below.
>
> 4) Is there a way to define the style of "see also" different from
> pagestyle? What if I want to distinguish "see also" from the actual entry
> this is referring to?
>
> 5) Currently I use \setupmixedcolumns[register][direction=reverse] to get
> the two-column register in the correct order. What if I have two index
> registers, one for RTL and another for LTR? Is there a way to set the
> direction key for a specific register?
>
> 6) In a two-column Persian index, using almost any (non-mono) font, some
> letter headings (those extending significantly below the baseline) end up
> with extra space below. See attached PDF and the MWE. (I could not
> reproduce this with DejaVuSans or ALM Fixed.)
>
>
> \definefontfamily [myfamily] [serif] [Scheherazade] [features=arabic]
> \setupbodyfont [myfamily]
> \setupalign[r2l]
> \setupdirections[bidi=global,method=two]
>
> \setupmixedcolumns[register][direction=reverse]
> \setupregister[index][
> before=,after=,
>
> command=\MyCommand,
> alternative=b,
> color=red,
> ]
>
> \def\MyCommand#1{#1}
>
> %\def\MyCommand#1{\inframed[frame=no]{#1}} % this fixes the problem
>
> \showboxes
>
> \starttext
> \index{آب}
> \index{عذر}
> \index[تک]{TEX}
> testing
> \placeindex
> \stoptext
>
>
> Some of the setups are to refute suspected causes. Notice that using
> \inframed fixes the problem.
>
> Thanks,
> Hossein
>
[-- Attachment #1.2: Type: text/html, Size: 4842 bytes --]
[-- Attachment #2: i.pdf --]
[-- Type: application/pdf, Size: 40912 bytes --]
[-- Attachment #3: 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
___________________________________________________________________________________
next prev parent reply other threads:[~2016-08-22 8:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-18 2:48 Mohammad Hossein Bateni
2016-08-22 8:49 ` Mohammad Hossein Bateni [this message]
2016-08-22 9:06 ` Wolfgang Schuster
2016-08-27 16:50 ` 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=CAMHZ1dYyytQG+TUehwdFM+z6mrouCHJnOiyr8iNAquWt1+riUw@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).