[NTG-context] outer floats on doublesided pages

2013-09-10 Thread R. Ermers
Dear all,

I have problems with the placement of floats. I need them to be placed in the 
outer edge of the text, but Context puts them in the middle of the page. The 
outer, inner, outeredge, inneredge, commands do not work. Right and left do 
work.

Preferably the criterium option should also work, e.g. criterium=0.67.
A minimal test file is attached. Try it out with a dummy, or with cow picture, 
or with any other picture of your liking.

I updated my context installation today to a bèta version. The version is: 
2013.08.30 02.05.

All help is welcome!
Many thanks in advance,

Robert



tmp1.tex
Description: Binary data


%%

\setuppapersize[A4][A4]

\setuppagenumbering[alternative=doublesided,location=footer]

\definefloat[edgefigure][figure]

\setupfloat
[edgefigure]
[leftmargindistance=-\outercombitotal,
 rightmargindistance=-\outercombitotal,
 default={outer,none,low,high}]

\setupcaption[edgefigure][number=no]

\useexternalfigure[cow][./cow.pdf]

\starttext

\startsection[title={insight},reference=insight]

\placeedgefigure[][]{}{\framed[frame=off]{\externalfigure[cow][scale=150]}}
When the first volume of Donald Knuth's The Art of Computer Programming was 
published in 1969, it was typeset using hot metal type set by a Monotype 
Corporation typecaster with a hot metal typesetting machine from the 19th 
century which produced a good classic style appreciated by Knuth. When the 
second edition of the second volume was published, in 1976, the whole book had 
to be typeset again because the Monotype technology had been largely replaced 
by photographic techniques, and the original fonts were no longer available.[4] 
When Knuth received the galley proofs of the new book on 30 March 1977, he 
found them awful.[5] Around that time, Knuth saw for the first time the output 
of a high-quality digital typesetting system, and became interested in digital 
typography. The disappointing galley proofs gave him the final motivation to 
solve the problem at hand once and for all by designing his own typesetting 
system. On 13 May 1977, he wrote a memo to himself describing the basic 
features of TeX.[6]

\placeedgefigure[][]{}{\framed[frame=off]{\externalfigure[cow][scale=150]}}
He planned to finish it on his sabbatical in 1978, but as it happened the 
language was not frozen until 1989, more than ten years later. Guy Steele 
happened to be at Stanford during the summer of 1978, when Knuth was developing 
his first version of TeX. When Steele returned to MIT that autumn, he rewrote 
TeX's I/O to run under the ITS operating system. The first version of TeX was 
written in the SAIL programming language to run on a PDP-10 under Stanford's 
WAITS operating system. For later versions of TeX, Knuth invented the concept 
of literate programming, a way of producing compilable source code and 
cross-linked documentation typeset in TeX from the same original file. The 
language used is called WEB and produces programs in DEC PDP-10 Pascal.


\placeedgefigure[][]{}{\framed[frame=off]{\externalfigure[cow][scale=150]}}
When the first volume of Donald Knuth's The Art of Computer Programming was 
published in 1969, it was typeset using hot metal type set by a Monotype 
Corporation typecaster with a hot metal typesetting machine from the 19th 
century which produced a good classic style appreciated by Knuth. When the 
second edition of the second volume was published, in 1976, the whole book had 
to be typeset again because the Monotype technology had been largely replaced 
by photographic techniques, and the original fonts were no longer available.[4] 
When Knuth received the galley proofs of the new book on 30 March 1977, he 
found them awful.[5] Around that time, Knuth saw for the first time the output 
of a high-quality digital typesetting system, and became interested in digital 
typography. The disappointing galley proofs gave him the final motivation to 
solve the problem at hand once and for all by designing his own typesetting 
system. On 13 May 1977, he wrote a memo to himself describing the basic 
features of TeX.[6]
He planned to finish it on his sabbatical in 1978, but as it happened the 
language was not frozen until 1989, more than ten years later. Guy Steele 
happened to be at Stanford during the summer of 1978, when Knuth was developing 
his first version of TeX. When Steele returned to MIT that autumn, he rewrote 
TeX's I/O to run under the ITS operating system. The first version of TeX was 
written in the SAIL programming language to run on a PDP-10 under Stanford's 
WAITS operating system. For later versions of TeX, Knuth invented the concept 
of literate programming, a way of producing compilable source code and 
cross-linked documentation typeset in TeX from the same original file. The 
language used is called WEB and produces programs in DEC PDP-10 Pascal.

\stopsection

\stoptext



___
If your question is of 

Re: [NTG-context] repost add bib category?

2013-09-10 Thread Meer, H. van der
I am reposting this, because I did not see someone reply. Is there anyone who 
can help me out?
Thanks in advance.

Hans van der Meer


On 6 sep. 2013, at 09:36, Meer, H. van der 
h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote:

I am in need of a reference to a bachelor thesis but the file bxml-apa.mkiv 
only provides phdthesis as a possibility. Adding the following code to 
bxml-apa.mkiv doesn't work or is not enough to add the bachelorthesis as an 
extra.
I did search for phdthesis in the ConTeXt base files and was found once: in 
the bxml-apa.mkiv file.

How to?

\startxmlsetups bibtex:apa:bachelorthesis
   \setvariables[bibtex:temp][label=Bachelor thesis]
   \bibxmlsetup{bibtex:apa:common:thesis}
\stopxmlsetups

used in the .bib file as:

@bachelorthesis{rijneveld:13,
Author = {A. Author},
School = {Excellent University},
Title = {{How the Dutch.}},
Year = {2013}}

 Hans van der Meer



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

Re: [NTG-context] outer floats on doublesided pages

2013-09-10 Thread Marco Patzer
On 2013–09–10 R. Ermers wrote:

 I have problems with the placement of floats. I need them to be
 placed in the outer edge of the text, but Context puts them in the
 middle of the page. The outer, inner, outeredge, inneredge,
 commands do not work. Right and left do work.

You probably confused edge and margin. By default the edge has zero
width and has to be enabled using \setuplayout.

 Preferably the criterium option should also work

\setupexternalfigures
  [location=default]

\setuppagenumbering
  [alternative=doublesided]

\definefloat
  [marginfigure]
  [marginfigures]
  [figure]

\setupfloat
  [marginfigure]
  [default=margin,
   criterium=\marginwidth]

\setupcaption
  [marginfigure]
  [number=no]

\showframe
\starttext
  \dorecurse{9}{%%
\input knuth
\startplacemarginfigure
  \externalfigure [cow] [width=\recurselevel cm]
\stopplacemarginfigure}
\stoptext

Marco


signature.asc
Description: Digital signature
___
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
___

[NTG-context] extra - in reference

2013-09-10 Thread Meer, H. van der
Doing \in{Figure}[fig:figname] neatly typesets for example: figure 1.4 
Defined as: \startplacefigure[title=figure-title,reference=fig:figname]

But if I define:\startchapter[title=chapter-title,reference=chap:chapname]
Then \in{Chapter}[chap:chapname] produces: chapter 6 - 
Thus an extra space + minus sign + space are put behind the chapter reference.

This is annoying, because I would like my chapter reference to be chapter 6 
without any additions. Besides, the figure reference and chapter reference 
behave differently, an unexpected phenomenon.
It seems the \startchapter defines a reference different from the reference in 
\startplacefigure.

Is this difference in behaviour intentional? Is it a bug? How can I revert my 
chapter references to the form without the trailing characters?

Thanks in advance
 Hans van der Meer



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


[NTG-context] [***SPAM***] \part without adding partnumber to other headers

2013-09-10 Thread H. Özoguz
I want to use \part without the number of the part as a piece of the 
headnumbers (of chapter, section, subsection ).


E.g.:

\part{One}
\chapter{Chapter}
\section{Section}
\part{Two}
\chapter{Chapter}
\section{Section}

gives this compile:

1.1 Chapter
1.1.1 Section
2.1 Chapter
2.1.1 Section

But I only want:

1 Chapter
1.1 Section
1 Chapter
1.1 Section

(because the number of the current part is already written in the 
header). So actually, I want to use \part as a resetter of the 
headnumbers. Is that possible?


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
___


Re: [NTG-context] [***SPAM***] \part without adding partnumber to other headers

2013-09-10 Thread Wolfgang Schuster

Am 10.09.2013 um 11:10 schrieb H. Özoguz h.oezo...@mmnetz.de:

 I want to use \part without the number of the part as a piece of the 
 headnumbers (of chapter, section, subsection ).
 
 E.g.:
 
 \part{One}
 \chapter{Chapter}
 \section{Section}
 \part{Two}
 \chapter{Chapter}
 \section{Section}
 
 gives this compile:
 
 1.1 Chapter
 1.1.1 Section
 2.1 Chapter
 2.1.1 Section
 
 But I only want:
 
 1 Chapter
 1.1 Section
 1 Chapter
 1.1 Section
 
 (because the number of the current part is already written in the header). So 
 actually, I want to use \part as a resetter of the headnumbers. Is that 
 possible?

\setuphead[sectionsegments=2:*]
\setuphead[part][placehead=hidden]

\starttext

\part{One}
\chapter{Chapter}
\section{Section}
\part{Two}
\chapter{Chapter}
\section{Section}

\stoptext

Wolfgang
___
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
___


Re: [NTG-context] [***SPAM***] \part without adding partnumber to other headers

2013-09-10 Thread Alan BRASLAU
To all:

The (strange) default handling of part is a continual source of
confusion to users...

Alan


On Tue, 10 Sep 2013 11:21:39 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 10.09.2013 um 11:10 schrieb H. Özoguz h.oezo...@mmnetz.de:
 
  I want to use \part without the number of the part as a piece of
  the headnumbers (of chapter, section, subsection ).
  
  E.g.:
  
  \part{One}
  \chapter{Chapter}
  \section{Section}
  \part{Two}
  \chapter{Chapter}
  \section{Section}
  
  gives this compile:
  
  1.1 Chapter
  1.1.1 Section
  2.1 Chapter
  2.1.1 Section
  
  But I only want:
  
  1 Chapter
  1.1 Section
  1 Chapter
  1.1 Section
  
  (because the number of the current part is already written in the
  header). So actually, I want to use \part as a resetter of the
  headnumbers. Is that possible?
 
 \setuphead[sectionsegments=2:*]
 \setuphead[part][placehead=hidden]
 
 \starttext
 
 \part{One}
 \chapter{Chapter}
 \section{Section}
 \part{Two}
 \chapter{Chapter}
 \section{Section}
 
 \stoptext
 
 Wolfgang

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

Re: [NTG-context] [***SPAM***] \part without adding partnumber to other headers

2013-09-10 Thread H. Özoguz

\setuphead[sectionsegments=2:*]
\setuphead[part][placehead=hidden]

\starttext

\part{One}
\chapter{Chapter}
\section{Section}
\part{Two}
\chapter{Chapter}
\section{Section}

\stoptext

Wolfgang


That gives this compile:

1.1 Chapter
1 Section
1 Chapter
1.1 Section

That is not what I intended. (btw.: I do not understand, what happens 
here...) The second chapter and section is ok, but what happended to the 
first ones?


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
___


Re: [NTG-context] [***SPAM***] \part without adding partnumber to other headers

2013-09-10 Thread Wolfgang Schuster

Am 10.09.2013 um 11:38 schrieb H. Özoguz h.oezo...@mmnetz.de:

 \setuphead[sectionsegments=2:*]
 \setuphead[part][placehead=hidden]
 
 \starttext
 
 \part{One}
 \chapter{Chapter}
 \section{Section}
 \part{Two}
 \chapter{Chapter}
 \section{Section}
 
 \stoptext
 
 Wolfgang
 
 That gives this compile:
 
 1.1 Chapter
 1 Section
 1 Chapter
 1.1 Section
 
 That is not what I intended. (btw.: I do not understand, what happens 
 here...) The second chapter and section is ok, but what happended to the 
 first ones?

It works when you remove the part setup or when you change the placehead 
setting to yes, no or empty.

Wolfgang
___
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
___


[NTG-context] How to typeset two columns with longer text

2013-09-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

suppose we need to typeset text into two (generally: several) columns.

Depending on the length of the text in the first (generally: i-th) column we 
need to choose an alternative:

1)

Short-text   Some-text-in-the-second-column
Another-text Some-other-text

or:

2)

Very-long-text-in-the-1st-column
 Some-text-in-the-second-column
Another-text Some-other-text

So, when the text in the first (or i-th resp.) column is too long, we need to 
go to the next row (generally: leaving all remaining columns empty) and skip 
the first column (generally: all columns being too long so far) automatically.

Is there a way how to achieve this automatically, without manual check?

(Suppose typesetting columns with \tabulate command(s) with width of the first column 
specified, like |lw(2in)|p|.)

Thanks in advance.

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

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


Re: [NTG-context] extra - in reference

2013-09-10 Thread Meer, H. van der
Culprit found by experimenting with your example that indeed is correct.

The problem is in the sectionstopper in the setup:
   \setuphead[chapter][sectionstopper={ – }]
This sectionstopper inserts something between chapter marker and chapter title:
  Chapter 1 – Chapter title

I didn't expect this sectionstopper to turn up in the reference to the chapter 
number. Can you point out how to suppress the sectionstopper in the references 
(if for now) while keeping it between the marker and the title?

And if you are also of the opinion that the sectionstopper shouldn't turn up at 
the end of the reference, will this be changed in an upcoming beta?

Hans van der Meer



On 10 sep. 2013, at 11:16, Wolfgang Schuster schuster.wolfg...@gmail.com
 wrote:

 
 Am 10.09.2013 um 10:51 schrieb Meer, H. van der h.vanderm...@uva.nl:
 
 Doing \in{Figure}[fig:figname] neatly typesets for example: figure 1.4 
 Defined as: \startplacefigure[title=figure-title,reference=fig:figname]
 
 But if I define:\startchapter[title=chapter-title,reference=chap:chapname]
 Then \in{Chapter}[chap:chapname] produces: chapter 6 - 
 Thus an extra space + minus sign + space are put behind the chapter 
 reference.
 
 This is annoying, because I would like my chapter reference to be chapter 
 6 without any additions. Besides, the figure reference and chapter 
 reference behave differently, an unexpected phenomenon.
 It seems the \startchapter defines a reference different from the reference 
 in \startplacefigure.
 
 Is this difference in behaviour intentional? Is it a bug? How can I revert 
 my chapter references to the form without the trailing characters?
 
 
 Make a minimal example because I can’t reproduce your results.
 
 \useMPlibrary[dum]
 
 \starttext
 
 \startchapter[title=chapter-title,reference=chap:chapname]
 
 \startplacefigure[title=figure-title,reference=fig:figname]
  \externalfigure[dummy]
 \stopplacefigure
 
 Take a look at \in{Figure}[fig:figname] in \in{Chapter}[chap:chapname].
 
 \stopchapter
 
 \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
___


Re: [NTG-context] devanagari rendering (2 errors)

2013-09-10 Thread Hans Hagen

On 9/10/2013 6:43 AM, Peter Graif wrote:




Can you make a as-small-as-possible test file?

Preferable with proper utf-8 sequences (+ comment mentioning numbers/classes), 
good and wrong.

I can probably figure it out but I cannot read or input easily this kind of 
scripts.

Hans



Sure thing. I don't understand how opentype features are represented nor how 
the ligature logic is dividd up between the font and the engine, so I'm not 
quite sure what information is helpful or relevant. But, here's a minimal 
document that contains all the problem sequences I've identified.

As a rough guide, here's another image with the current ConTeXt rendering in 
black and the desired rendering in red:
http://i.imgur.com/MyvMneg.png

Is that the information you need? Or is there something else I can do?


it's ok

it took me quite a while to notice that it's a side effect of two 
features that are turned on


you can play with

\definefontfeature
  [devanagari-one]
  [devanagari-one]
  [rphf=no]

and

\definefontfeature
  [devanagari-one]
  [devanagari-one]
  [half=no]

maybe Kai can have a look at it: as these are dealt with in a different 
we probably don't need to enable them in the feature processor (even 
block them)


btw, you can play with

\showotfcomposition{file:chandas.ttf*devanagari-one}{l2r}{\char0915 
\char094D \char0930}


to see what happens

(i also noticed a few possible further optimizations but that's for later)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] outer floats on doublesided pages

2013-09-10 Thread R. Ermers
Hi Marco,

Thank you very much indeed for your reply. This topic apparently does not 
interest many people.

In your suggestion the figures are put in the outer margin in a vertical row 
below one another close to the top of the page, and not near the position in 
the text.

I want them positioned close to the place in the text which should flow around 
them. I have seen examples of this made by Context. This can be obtained by 
specifying default=left, or default=right, only I need the figures to protrude 
into the (outer) margin. This for some reason does not work under mkiv.

I still have some time, but my deadline is approaching.

Thanks again!

Kind regards,

Robert


Op 10 sep. 2013, om 09:59 heeft Marco Patzer het volgende geschreven:

 On 2013–09–10 R. Ermers wrote:
 
 I have problems with the placement of floats. I need them to be
 placed in the outer edge of the text, but Context puts them in the
 middle of the page. The outer, inner, outeredge, inneredge,
 commands do not work. Right and left do work.
 
 You probably confused edge and margin. By default the edge has zero
 width and has to be enabled using \setuplayout.
 
 Preferably the criterium option should also work
 
 \setupexternalfigures
  [location=default]
 
 \setuppagenumbering
  [alternative=doublesided]
 
 \definefloat
  [marginfigure]
  [marginfigures]
  [figure]
 
 \setupfloat
  [marginfigure]
  [default=margin,
   criterium=\marginwidth]
 
 \setupcaption
  [marginfigure]
  [number=no]
 
 \showframe
 \starttext
  \dorecurse{9}{%%
\input knuth
\startplacemarginfigure
  \externalfigure [cow] [width=\recurselevel cm]
\stopplacemarginfigure}
 \stoptext
 
 Marco
 ___
 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
 ___

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


[NTG-context] wrong behaviour with ConTeXt unicode bidi

2013-09-10 Thread Vafa Khalighi
Hi

The following document shows the wrong behaviour (the second parentheses is
mirrored incorrectly and it should be after the number not before the
number).

Assuming test is an RTL word when I write (test 1363) I expect to get
exactly that but somehow I get (test (1363

One related question: is it possible to change font automatically when
luatex sees a LTR word?

Thanks

Vafa Khalighi


test.tex
Description: TeX document


test.pdf
Description: Adobe PDF document
___
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
___

[NTG-context] Kashide in ConTeXt

2013-09-10 Thread Vafa Khalighi
Hi

How do you use automatic and manual Kashide for Arabic in ConTeXt? I could
not find any documentation on this.

Thanks

Vafa Khalighi
___
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
___

Re: [NTG-context] outer floats on doublesided pages

2013-09-10 Thread Marco Patzer
On 2013–09–10 R. Ermers wrote:

 I want them positioned close to the place in the text which should
 flow around them. I have seen examples of this made by Context.
 This can be obtained by specifying default=left, or default=right,
 only I need the figures to protrude into the (outer) margin.

I misunderstood your requirements. That's not what my example was
supposed to do.

 This for some reason does not work under mkiv.

Confirmed. And I don't know if it has ever worked in MkIV.

Marco


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] outer floats on doublesided pages

2013-09-10 Thread Jörg Hagmann
Maybe what I did helps: see Figures III on
http://wiki.contextgarden.net/Biochemistry_textbook.  Although I used
mkII at the time.

Cheers, Jörg

R. Ermers writes:

 Hi Marco,

 Thank you very much indeed for your reply. This topic apparently does not 
 interest many people.

 In your suggestion the figures are put in the outer margin in a vertical row 
 below one another close to the top of the page, and not near the position in 
 the text.

 I want them positioned close to the place in the text which should flow 
 around them. I have seen examples of this made by Context. This can be 
 obtained by specifying default=left, or default=right, only I need the 
 figures to protrude into the (outer) margin. This for some reason does not 
 work under mkiv.

 I still have some time, but my deadline is approaching.

 Thanks again!

 Kind regards,

 Robert


 Op 10 sep. 2013, om 09:59 heeft Marco Patzer het volgende geschreven:

 On 2013–09–10 R. Ermers wrote:
 
 I have problems with the placement of floats. I need them to be
 placed in the outer edge of the text, but Context puts them in the
 middle of the page. The outer, inner, outeredge, inneredge,
 commands do not work. Right and left do work.
 
 You probably confused edge and margin. By default the edge has zero
 width and has to be enabled using \setuplayout.
 
 Preferably the criterium option should also work
 
 \setupexternalfigures
  [location=default]
 
 \setuppagenumbering
  [alternative=doublesided]
 
 \definefloat
  [marginfigure]
  [marginfigures]
  [figure]
 
 \setupfloat
  [marginfigure]
  [default=margin,
   criterium=\marginwidth]
 
 \setupcaption
  [marginfigure]
  [number=no]
 
 \showframe
 \starttext
  \dorecurse{9}{%%
\input knuth
\startplacemarginfigure
  \externalfigure [cow] [width=\recurselevel cm]
\stopplacemarginfigure}
 \stoptext
 
 Marco
___
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
___

Re: [NTG-context] outer floats on doublesided pages

2013-09-10 Thread R. Ermers
Hi Jörg and Marco,

Thanks for your replies.

I have tried the chemistry textbook examples too, especially vignette seems to 
do what I want. I noticed you used mkii at the time, but I have mkiv now. 
Should I return to mkii if I want to obtain this?

Regards,

Robert


Op 10 sep. 2013, om 15:18 heeft Jörg Hagmann het volgende geschreven:

 Maybe what I did helps: see Figures III on
 http://wiki.contextgarden.net/Biochemistry_textbook.  Although I used
 mkII at the time.
 
 Cheers, Jörg
 
 R. Ermers writes:
 
 Hi Marco,
 
 Thank you very much indeed for your reply. This topic apparently does not 
 interest many people.
 
 In your suggestion the figures are put in the outer margin in a vertical row 
 below one another close to the top of the page, and not near the position in 
 the text.
 
 I want them positioned close to the place in the text which should flow 
 around them. I have seen examples of this made by Context. This can be 
 obtained by specifying default=left, or default=right, only I need the 
 figures to protrude into the (outer) margin. This for some reason does not 
 work under mkiv.
 
 I still have some time, but my deadline is approaching.
 
 Thanks again!
 
 Kind regards,
 
 Robert
 
 
 Op 10 sep. 2013, om 09:59 heeft Marco Patzer het volgende geschreven:
 
 On 2013–09–10 R. Ermers wrote:
 
 I have problems with the placement of floats. I need them to be
 placed in the outer edge of the text, but Context puts them in the
 middle of the page. The outer, inner, outeredge, inneredge,
 commands do not work. Right and left do work.
 
 You probably confused edge and margin. By default the edge has zero
 width and has to be enabled using \setuplayout.
 
 Preferably the criterium option should also work
 
 \setupexternalfigures
 [location=default]
 
 \setuppagenumbering
 [alternative=doublesided]
 
 \definefloat
 [marginfigure]
 [marginfigures]
 [figure]
 
 \setupfloat
 [marginfigure]
 [default=margin,
  criterium=\marginwidth]
 
 \setupcaption
 [marginfigure]
 [number=no]
 
 \showframe
 \starttext
 \dorecurse{9}{%%
   \input knuth
   \startplacemarginfigure
 \externalfigure [cow] [width=\recurselevel cm]
   \stopplacemarginfigure}
 \stoptext
 
 Marco
 ___
 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
 ___

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


Re: [NTG-context] beta

2013-09-10 Thread Khaled Hosny
On Mon, Sep 09, 2013 at 08:01:30PM +0200, Hans Hagen wrote:
 Hi,
 
 I uploaded a beta with additional bidi code. There are now three methods:
 
 default : the original one, the fastest, wil be improved a bit
 one : unicode bidi, derived from khaleds t-bidi, cleaned up and
 optimized plus some thingies, but in working still close to the
 original
 two : unicode bidi, the version that will evolve
 
 All methods come with the usual context kind of tracing.
 
 Some of these methods have different options (default has local and
 global behaviour), one has no options, and for two one can disable
 fancy fences heuristics. More will follow once we have investigated
 all upcoming changes, circulating wishes, conflicting demands etc.
 Eventually there will be a manual about these matters.

Method two seems to be broken here:
error: .../context/tex/texmf-context/tex/context/base/typo-dir.lua:151: attempt 
to call global 'hasbit' (a nil value)

Regards,
Khaled
___
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
___


Re: [NTG-context] Kashide in ConTeXt

2013-09-10 Thread Hans Hagen

On 9/10/2013 2:59 PM, Vafa Khalighi wrote:

Hi

How do you use automatic and manual Kashide for Arabic in ConTeXt? I
could not find any documentation on this.


i have no clue what is it but google relates it to poems so maybe

\usemodule[hemistich] is what you want

(search the mail archive for usage)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] wrong behaviour with ConTeXt unicode bidi

2013-09-10 Thread Hans Hagen

On 9/10/2013 2:57 PM, Vafa Khalighi wrote:

Hi

The following document shows the wrong behaviour (the second parentheses
is mirrored incorrectly and it should be after the number not before the
number).

Assuming test is an RTL word when I write (test 1363) I expect to get
exactly that but somehow I get (test (1363


new beta ... also with fix for issue khaled mentioned

\starttext

\setupalign[r2l]

\definefont[arabicfont][Arial*arabic at 20pt]

\enabletrackers[typesetters.directions.one]
\enabletrackers[typesetters.directions.two]

\setupdirections[bidi=global,method=default] \arabicfont این (یک آزمایش 
1363) است. \par
\setupdirections[bidi=global,method=one] \arabicfont این (یک آزمایش 
1363) است. \par
\setupdirections[bidi=global,method=two] \arabicfont این (یک آزمایش 
1363) است. \par


\stoptext


One related question: is it possible to change font automatically when
luatex sees a LTR word?


no, but you can define start\stop commands that deal with such switches

also, you can combine fonts (and there a yet not documented auto 
script/language switcher .. i have no time now to explain that one)


btw, never use \textdir and \pardir directly (i might even define them 
as no-ops some day) but use the higher level alignment commands


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___

Re: [NTG-context] new mp trickery / next challenge for alan and mari

2013-09-10 Thread Alan BRASLAU
Indeed a challenge!

Alan

On Tue, 10 Sep 2013 18:11:13 +0200
Hans Hagen pra...@wxs.nl wrote:

 Hi,
 
 There's now a convenient way to pass data back from an mprun to the
 tex instance:
 
 \starttext
 
 \startMPcode
  passvariable(version,1.0) ;
  passvariable(number,123) ;
  passvariable(string,whatever) ;
  passvariable(point,(1,2)) ;
  passvariable(triplet,(1,2,3)) ;
  passvariable(quad,(1,2,3,4)) ;
  passvariable(boolean,false) ;
  passvariable(path,fullcircle scaled 1cm) ;
 
  draw fullcircle scaled 20pt ;
 \stopMPcode
 
 \ctxlua{inspect(metapost.variables)}
 
 \ctxcommand{mprunvar(number)}
 \ctxcommand{mprunvar(string)}
 
 \stoptext
 
 the inspect shows:
 
 table={
   [boolean]=false,
   [number]=123,
   [path]={
{ 10.02177, 10.02177, 12.67969, 7.36386, 7.36386, 12.67969 },
{ 0, 14.17323, 3.75914, 14.17323, -3.75914, 14.17323 },
{ -10.02177, 10.02177, -7.36386, 12.67969, -12.67969, 7.36386 },
{ -14.17323, 0, -14.17323, 3.75914, -14.17323, -3.75914 },
{ -10.02177, -10.02177, -12.67969, -7.36386, -7.36386, -12.67969 },
{ 0, -14.17323, -3.75914, -14.17323, 3.75914, -14.17323 },
{ 10.02177, -10.02177, 7.36386, -12.67969, 12.67969, -7.36386 },
{ 14.17323, 0, 14.17323, -3.75914, 14.17323, 3.75914 },
   },
   [point]={ 1, 2 },
   [quad]={ 1, 2, 3, 4 },
   [string]=whatever,
   [triplet]={ 1, 2, 3 },
   [version]=1.0,
 }
 
 the mprunvar pips a value or concatination to tex

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


Re: [NTG-context] devanagari rendering (2 errors)

2013-09-10 Thread Peter Graif
 it took me quite a while to notice that it's a side effect of two features 
 that are turned on
 
 you can play with
 
 \definefontfeature
  [devanagari-one]
  [devanagari-one]
  [rphf=no]
 
 and
 
 \definefontfeature
  [devanagari-one]
  [devanagari-one]
  [half=no]
 
 maybe Kai can have a look at it: as these are dealt with in a different we 
 probably don't need to enable them in the feature processor (even block them)
 
 btw, you can play with
 
 \showotfcomposition{file:chandas.ttf*devanagari-one}{l2r}{\char0915 
 \char094D \char0930}
 
 to see what happens
 
 (i also noticed a few possible further optimizations but that's for later)
 
 Hans

Thanks, Hans.

Those are indeed the relevant features. Unfortunately, turning them off 
completely breaks other things. I have attached another demonstration below. 
The good news is that we can now produce proper devanagari by switching the 
features on and off as needed in the middle of words. I am understanding 
OpenType better now and I will try again to look at the relevant source code 
tonight.

-Peter
--
\definefontfeature[devyes][devanagari-one][rphf=yes,half=yes]
\definefontfeature[devno][devanagari-one][rphf=no,half=no]

\definefont [DevaWith] [file:chandas.ttf*devyes at 14pt]
\definefont [DevaWithout] [file:chandas.ttf*devno at 14pt]

\starttext

{\bf When rphf=yes (current default)}

r-first conjucts ([r]+[half]+\{consonant\}) work:

{\DevaWith [U+0930 \char0930][U+094D \char094D][U+0915 \char0915]: 
\char0930 \char094D \char0915 ~(correct)}

but r-second conjucts (\{consonant\} +[half]+[r]) don't:

{\DevaWith [U+0915 \char0915][U+094D \char094D][U+0930 \char0930]: 
\char0915 \char094D \char0930 ~(incorrect)}

\blank[big]

{\bf When rphf=no}

r-first conjucts ([r]+[half]+\{consonant\}) stop working:

{\DevaWithout [U+0930 \char0930][U+094D \char094D][U+0915 \char0915]: 
\char0930 \char094D \char0915 ~(incorrect)}

but r-second conjucts (\{consonant\} +[half]+[r]) now work properly:

{\DevaWithout [U+0915 \char0915][U+094D \char094D][U+0930 \char0930]: 
\char0915 \char094D \char0930 ~(correct)}


\blank[3*big]


{\bf When half=yes (current default)}

consonant clusters (\{consonant\}+[half]+\{consonant\}) work:

{\DevaWith [U+0915 \char0915][U+094D \char094D][U+0915 \char0915]: 
\char0915 \char094D \char0915 ~(correct)}

but word-final viramas (\{consonant\} +[half]) don't:

{\DevaWith [U+0915 \char0915][U+094D \char094D] : \char0915 \char094D 
~(incorrect)}

\blank[big]

{\bf When half=no}

consonant clusters (\{consonant\}+[half]+\{consonant\}) stop working:

{\DevaWithout [U+0915 \char0915][U+094D \char094D][U+0915 \char0915]: 
\char0915 \char094D \char0915 ~(incorrect)}

but word-final viramas (\{consonant\} +[half]) work properly:

{\DevaWithout [U+0915 \char0915][U+094D \char094D] : \char0915 \char094D 
~(correct)}


\blank[2*big]

With careful bracketing, it's possible to produce correct devanagari.

On: {\DevaWith 
\char092E\char0915\char094D\char0915\char092E\char0915\char094D} (no 
good)

Off: {\DevaWithout 
\char092E\char0915\char094D\char0915\char092E\char0915\char094D} (no 
good)

Mixed: {\DevaWith 
\char092E\char0915\char094D\char0915\char092E{\DevaWithout 
\char0915\char094D}} (perfect)

That's not sustainable for long texts, perhaps, but it's a great move in that 
direction.

\blank[big]

Note: I've used the consonant [U+0915: {\DevaWith \char0915}] here throughout, 
but you can substitute any consonant \{U+0915--U+0939, U+0958--U+095F\} and see 
the same patterns.

\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
___


[NTG-context] new mp trickery / next challenge for alan and mari

2013-09-10 Thread Hans Hagen

Hi,

There's now a convenient way to pass data back from an mprun to the tex 
instance:


\starttext

\startMPcode
passvariable(version,1.0) ;
passvariable(number,123) ;
passvariable(string,whatever) ;
passvariable(point,(1,2)) ;
passvariable(triplet,(1,2,3)) ;
passvariable(quad,(1,2,3,4)) ;
passvariable(boolean,false) ;
passvariable(path,fullcircle scaled 1cm) ;

draw fullcircle scaled 20pt ;
\stopMPcode

\ctxlua{inspect(metapost.variables)}

\ctxcommand{mprunvar(number)}
\ctxcommand{mprunvar(string)}

\stoptext

the inspect shows:

table={
 [boolean]=false,
 [number]=123,
 [path]={
  { 10.02177, 10.02177, 12.67969, 7.36386, 7.36386, 12.67969 },
  { 0, 14.17323, 3.75914, 14.17323, -3.75914, 14.17323 },
  { -10.02177, 10.02177, -7.36386, 12.67969, -12.67969, 7.36386 },
  { -14.17323, 0, -14.17323, 3.75914, -14.17323, -3.75914 },
  { -10.02177, -10.02177, -12.67969, -7.36386, -7.36386, -12.67969 },
  { 0, -14.17323, -3.75914, -14.17323, 3.75914, -14.17323 },
  { 10.02177, -10.02177, 7.36386, -12.67969, 12.67969, -7.36386 },
  { 14.17323, 0, 14.17323, -3.75914, 14.17323, 3.75914 },
 },
 [point]={ 1, 2 },
 [quad]={ 1, 2, 3, 4 },
 [string]=whatever,
 [triplet]={ 1, 2, 3 },
 [version]=1.0,
}

the mprunvar pips a value or concatination to tex


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


[NTG-context] outer floats on doublesided pages UNSOLVED

2013-09-10 Thread R. Ermers
Hi,

Does anyone know if positioning figures  protruding into the outer margin can 
be done in mkiv?

Regards,

Robert


 Hi Jörg and Marco,
 
 Thanks for your replies.
 
 I have tried the chemistry textbook examples too, especially vignette seems 
 to do what I want. I noticed you used mkii at the time, but I have mkiv now. 
 Should I return to mkii if I want to obtain this?
 
 Regards,
 
 Robert
 
 
 Op 10 sep. 2013, om 15:18 heeft Jörg Hagmann het volgende geschreven:
 
 Maybe what I did helps: see Figures III on
 http://wiki.contextgarden.net/Biochemistry_textbook.  Although I used
 mkII at the time.
 
 Cheers, Jörg
 
 R. Ermers writes:
 
 Hi Marco,
 
 Thank you very much indeed for your reply. This topic apparently does not 
 interest many people.
 
 In your suggestion the figures are put in the outer margin in a vertical 
 row below one another close to the top of the page, and not near the 
 position in the text.
 
 I want them positioned close to the place in the text which should flow 
 around them. I have seen examples of this made by Context. This can be 
 obtained by specifying default=left, or default=right, only I need the 
 figures to protrude into the (outer) margin. This for some reason does not 
 work under mkiv.
 
 I still have some time, but my deadline is approaching.
 
 Thanks again!
 
 Kind regards,
 
 Robert
 
 
 Op 10 sep. 2013, om 09:59 heeft Marco Patzer het volgende geschreven:
 
 On 2013–09–10 R. Ermers wrote:
 
 I have problems with the placement of floats. I need them to be
 placed in the outer edge of the text, but Context puts them in the
 middle of the page. The outer, inner, outeredge, inneredge,
 commands do not work. Right and left do work.
 
 You probably confused edge and margin. By default the edge has zero
 width and has to be enabled using \setuplayout.
 
 Preferably the criterium option should also work
 
 \setupexternalfigures
 [location=default]
 
 \setuppagenumbering
 [alternative=doublesided]
 
 \definefloat
 [marginfigure]
 [marginfigures]
 [figure]
 
 \setupfloat
 [marginfigure]
 [default=margin,
 criterium=\marginwidth]
 
 \setupcaption
 [marginfigure]
 [number=no]
 
 \showframe
 \starttext
 \dorecurse{9}{%%
  \input knuth
  \startplacemarginfigure
\externalfigure [cow] [width=\recurselevel cm]
  \stopplacemarginfigure}
 \stoptext
 
 Marco
 ___
 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
 ___
 
 ___
 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
 ___

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


[NTG-context] Gray unit

2013-09-10 Thread Christian Prim
Hello

the physical unit Gray has Gy as symbol (see
http://en.wikipedia.org/wiki/Gray_(unit)  ).
Context returns Gr.

MWE:

\starttext
\unit{1 Gray}
\stoptext

Thanks for fixing this little bug.

Christian
___
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
___

Re: [NTG-context] beta

2013-09-10 Thread Hans Hagen

On 9/10/2013 3:50 PM, Khaled Hosny wrote:

On Mon, Sep 09, 2013 at 08:01:30PM +0200, Hans Hagen wrote:

Hi,

I uploaded a beta with additional bidi code. There are now three methods:

default : the original one, the fastest, wil be improved a bit
one : unicode bidi, derived from khaleds t-bidi, cleaned up and
optimized plus some thingies, but in working still close to the
original
two : unicode bidi, the version that will evolve

All methods come with the usual context kind of tracing.

Some of these methods have different options (default has local and
global behaviour), one has no options, and for two one can disable
fancy fences heuristics. More will follow once we have investigated
all upcoming changes, circulating wishes, conflicting demands etc.
Eventually there will be a manual about these matters.


Method two seems to be broken here:
error: .../context/tex/texmf-context/tex/context/base/typo-dir.lua:151: attempt 
to call global 'hasbit' (a nil value)


ok, i'll fix it .. (it went unnoticed because i ran experimental faster 
code here)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Kashide in ConTeXt

2013-09-10 Thread Vafa Khalighi
it is about stretching words.


On Wed, Sep 11, 2013 at 1:23 AM, Hans Hagen pra...@wxs.nl wrote:

 On 9/10/2013 2:59 PM, Vafa Khalighi wrote:

 Hi

 How do you use automatic and manual Kashide for Arabic in ConTeXt? I
 could not find any documentation on this.


 i have no clue what is it but google relates it to poems so maybe

 \usemodule[hemistich] is what you want

 (search the mail archive for usage)

 Hans


 --**--**-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 --**--**-
 __**__**
 ___
 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 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/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___



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

Re: [NTG-context] wrong behaviour with ConTeXt unicode bidi

2013-09-10 Thread Vafa Khalighi
Sorry that is not fixed. If you type two of these, the second one will be
broken.

\starttext

\setupalign[r2l]

\definefont[arabicfont][Arial*arabic at 20pt]



\setupdirections[bidi=global,method=default] \arabicfont

این (آزمایش 1363) و
یک (آزمایش 1984) خوب
 است  و باقی ماجرا.


\stoptext


Vafa Khalighi


On Wed, Sep 11, 2013 at 1:45 AM, Vafa Khalighi persian-...@tug.org wrote:

 Thanks. That is now fixed.


 On Wed, Sep 11, 2013 at 1:26 AM, Hans Hagen pra...@wxs.nl wrote:

 On 9/10/2013 2:57 PM, Vafa Khalighi wrote:

 Hi

 The following document shows the wrong behaviour (the second parentheses
 is mirrored incorrectly and it should be after the number not before the
 number).

 Assuming test is an RTL word when I write (test 1363) I expect to get
 exactly that but somehow I get (test (1363


 new beta ... also with fix for issue khaled mentioned

 \starttext

 \setupalign[r2l]

 \definefont[arabicfont][Arial***arabic at 20pt]

 \enabletrackers[typesetters.**directions.one]
 \enabletrackers[typesetters.**directions.two]

 \setupdirections[bidi=global,**method=default] \arabicfont این (یک
 آزمایش 1363) است. \par
 \setupdirections[bidi=global,**method=one] \arabicfont این (یک
 آزمایش 1363) است. \par
 \setupdirections[bidi=global,**method=two] \arabicfont این (یک
 آزمایش 1363) است. \par

 \stoptext


  One related question: is it possible to change font automatically when
 luatex sees a LTR word?


 no, but you can define start\stop commands that deal with such switches

 also, you can combine fonts (and there a yet not documented auto
 script/language switcher .. i have no time now to explain that one)

 btw, never use \textdir and \pardir directly (i might even define them as
 no-ops some day) but use the higher level alignment commands

 Hans

 --**--**-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 --**--**-
 __**__**
 ___
 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 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/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___



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

Re: [NTG-context] wrong behaviour with ConTeXt unicode bidi

2013-09-10 Thread Vafa Khalighi
Thanks. That is now fixed.


On Wed, Sep 11, 2013 at 1:26 AM, Hans Hagen pra...@wxs.nl wrote:

 On 9/10/2013 2:57 PM, Vafa Khalighi wrote:

 Hi

 The following document shows the wrong behaviour (the second parentheses
 is mirrored incorrectly and it should be after the number not before the
 number).

 Assuming test is an RTL word when I write (test 1363) I expect to get
 exactly that but somehow I get (test (1363


 new beta ... also with fix for issue khaled mentioned

 \starttext

 \setupalign[r2l]

 \definefont[arabicfont][Arial***arabic at 20pt]

 \enabletrackers[typesetters.**directions.one]
 \enabletrackers[typesetters.**directions.two]

 \setupdirections[bidi=global,**method=default] \arabicfont این (یک آزمایش
 1363) است. \par
 \setupdirections[bidi=global,**method=one] \arabicfont این (یک آزمایش
 1363) است. \par
 \setupdirections[bidi=global,**method=two] \arabicfont این (یک آزمایش
 1363) است. \par

 \stoptext


  One related question: is it possible to change font automatically when
 luatex sees a LTR word?


 no, but you can define start\stop commands that deal with such switches

 also, you can combine fonts (and there a yet not documented auto
 script/language switcher .. i have no time now to explain that one)

 btw, never use \textdir and \pardir directly (i might even define them as
 no-ops some day) but use the higher level alignment commands

 Hans

 --**--**-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 --**--**-
 __**__**
 ___
 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 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/http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __**__**
 ___
___
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
___

Re: [NTG-context] devanagari rendering (2 errors)

2013-09-10 Thread Rajeesh K Nambiar
Hi Hans,

On Tue, Sep 10, 2013 at 2:04 PM, Hans Hagen pra...@wxs.nl wrote:


 it took me quite a while to notice that it's a side effect of two features
 that are turned on

 you can play with

 \definefontfeature
   [devanagari-one]
   [devanagari-one]
   [rphf=no]

 and

 \definefontfeature
   [devanagari-one]
   [devanagari-one]
   [half=no]

 maybe Kai can have a look at it: as these are dealt with in a different we
 probably don't need to enable them in the feature processor (even block
 them)


As far as I understand, 'rphf' and 'half' forms are essential for
Devanagari, so skipping them completely might not be a good idea...

 btw, you can play with

 \showotfcomposition{file:chandas.ttf*devanagari-one}{l2r}{\char0915
 \char094D \char0930}



-- 
Cheers,
Rajeesh
___
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
___