ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: footnotes when using RtL (Arabic)
@ 2015-07-21 19:56 talazem
  2015-07-30 13:00 ` talazem
  0 siblings, 1 reply; 35+ messages in thread
From: talazem @ 2015-07-21 19:56 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 409 bytes --]

I’m reviving this old thread, as the problem appears to still exist. Consider the following:

> \starttext \showframe
> 
> \definenote[afootnote][rule={on,right},paragraph=no]
> 
> \startalignment[r2l]
> Testing.\afootnote{This is footnote one.}
> Testing testing.\afootnote{This is footnote two.}
> Testing testing testing.\afootnote{This is footnote three.}
> \stopalignment
> 
> \stoptext


[-- Attachment #2: r2l.pdf --]
[-- Type: application/pdf, Size: 10176 bytes --]

[-- Attachment #3: Type: text/plain, Size: 291 bytes --]



In the output (r2l.pdf), the text runs from right to left as it should, and the footnote reference numbers are in the right margin, as they should be.

However, if we switch the option “paragraph” to “yes”, the entire frame no longer runs r2l (see the output in r2l-yes.pdf).

[-- Attachment #4: r2l-yes.pdf --]
[-- Type: application/pdf, Size: 10109 bytes --]

[-- Attachment #5: Type: text/plain, Size: 504 bytes --]


What I want is for the text to read as follows:
> .eerht etontoof si sihT 3  .owt etontoof si sihT 2  .eno etontoof si sihT 1

where the entire frame begins at the right margin, such that the first footnote number (1) is in the right margin, instead of in the left margin as it is in r2l-yes.pdf. To say it another way, the entire footnote frame should be r2l, regardless of its contents, perhaps (as Idris wrote to me) through some hard direction switch for the entire frame.

Best wishes,
Talal

[-- Attachment #6: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 35+ messages in thread
* footnotes when using RtL (Arabic)
@ 2010-10-05 12:48 Talal Al-Azem
  2010-10-05 13:28 ` Wolfgang Schuster
  0 siblings, 1 reply; 35+ messages in thread
From: Talal Al-Azem @ 2010-10-05 12:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear all,

Two quick questions regarding footnotes and Arabic:

1. How do I get a footnote rule/marker to go from right-to-left (i.e. to begin at the right margin instead of the left margin)?

2. I would like some of my footnote streams to run RtL for Arabic, and also for those footnotes to be in paragraph form (i.e. \setupnote[afootnote][paragraph=yes] ). But when I add this command, my footnote instead runs LtR, the letters get cut up (i.e. the Arabic script is not connected), and I lose my footnote marker to add insult to injury. How should I define a footnote stream to run RtL in paragraph form?

Many thanks in advance.

Kind regards,
Talal

p.s. Below is my attempt thus far, with the problem of defining paragraph=yes, and with the problem of the footnote rule/marker. Reference to what I should change in this example would be most helpful:

==========================

%%%	SETUP AREA

%%	PAGE SETUP
\setuppapersize[A4][A4]
\setuplayout[grid=on]
\showgrid
\setupinterlinespace[line=3.8ex]
\setupindenting[yes,big]

%%	FONTS
\usemodule[simplefonts]
\setupsimplefonts[size=12pt]
\definefontfeature[default]  [default]  [mode=node,script=arabic]
\setmainfontfallback[Lotus Linotype]  [scale=1.33,features=arabic,range={arabic,arabicsupplement}]

%%	PARAGRAPH DIRECTION & SPACING - ARABIC - ENGLISH
\def\arabpar	{\textdir TRT\pardir TRT}
\automigrateinserts % to ensure that certain levels of footnotes show up (raw MKIV feature)

%%	FOOTNOTES
\setupfootnotedefinition[location=serried]

\definenote[afootnote][conversion=set 2]
\setupnote[afootnote][paragraph=yes]


%%%	TEXT
\starttext

\input knuth

\startbaselinecorrection\setupinterlinespace[line=5ex]
\arabpar{
هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير
\afootnote{هذه فوتنوت.}
هذه رسالة جامعة مانعة ألفه الشيخ ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة
}
\stopbaselinecorrection

Thus, I came to the conclusion that the designer\footnote{Such as Knuth himself.} of a new system must not only be the implementer and first large--scale user; the designer should also write the first user manual.

The separation of any of these four components would have hurt TEX significantly. 

\stoptext

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

^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2015-08-03 19:14 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-21 19:56 footnotes when using RtL (Arabic) talazem
2015-07-30 13:00 ` talazem
2015-07-30 14:26   ` Pablo Rodriguez
2015-07-30 14:43     ` talazem
2015-07-30 15:08       ` Pablo Rodriguez
2015-07-30 17:54     ` Wolfgang Schuster
2015-07-30 18:15       ` Idris Samawi Hamid ادريس سماوي حامد
2015-07-30 18:17       ` talazem
2015-07-30 18:18       ` Pablo Rodriguez
2015-07-30 18:37       ` talazem
2015-07-30 19:04         ` Wolfgang Schuster
2015-07-30 23:51           ` talazem
2015-07-31  8:39             ` Hans Hagen
2015-07-31 11:07               ` talazem
2015-07-31 12:05                 ` Idris Samawi Hamid ادريس سماوي حامد
2015-07-31 14:47                 ` Hans Hagen
2015-08-01 22:36                 ` talazem
2015-08-02  7:52                   ` Pablo Rodriguez
2015-08-02  9:20                     ` talazem
2015-08-02 10:02                       ` talazem
2015-08-02 10:47                         ` Pablo Rodriguez
2015-08-02 11:09                           ` talazem
2015-08-02 11:11                           ` Pablo Rodriguez
2015-08-03 19:14                             ` talazem
  -- strict thread matches above, loose matches on Subject: below --
2010-10-05 12:48 Talal Al-Azem
2010-10-05 13:28 ` Wolfgang Schuster
2010-10-05 14:18   ` Talal Al-Azem
2010-10-05 14:53     ` Khaled Hosny
2010-10-05 15:07     ` Wolfgang Schuster
2010-10-05 15:18       ` Talal Al-Azem
2010-10-05 15:25       ` Hans Hagen
2010-10-05 15:55         ` Talal Al-Azem
2010-10-05 16:20           ` Hans Hagen
2010-10-05 21:19   ` Hans Hagen
2010-10-05 21:50     ` Talal Al-Azem

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).