Re: [NTG-context] Bidi-related register problem

2019-01-27 Thread Hans Hagen

On 1/27/2019 7:15 PM, Rik Kabel wrote:

That allows the compilation to complete, but method=three breaks other 
stuff. Try this:


\starttext
\setupdirections [bidi=on,method=three]
\rightaligned{(( How is this?}
\stoptext

(I also see problems with boxes set in the margin where before they were 
set centered in the textblock, but cannot construct an example yet.)

small samples will help (after i updated the beta)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bidi-related register problem

2019-01-27 Thread Rik Kabel

On 1/27/2019 12:07, Hans Hagen wrote:

On 1/27/2019 12:59 AM, Rik Kabel wrote:

Here is a much-closer-to minimal example.


  \setupregister   [index] [maxwidth=4cm]
  \setupdirections [bidi=on,method=two]
  \starttext
  .\index{Mairzy doats and dozy doats and liddle lamzy divey}
  \placeindex
  \stoptext

With the \setupdirections line removed, all is well. However, that 
line is otherwise required. Setting bidi off around \placeindex is 
not an option either, since some index entries require it.
Tricky ... i'll catch it but better use method tree then (later this 
year i might redo some r2l code)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-


That allows the compilation to complete, but method=three breaks other 
stuff. Try this:


   \starttext
   \setupdirections [bidi=on,method=three]
   \rightaligned{(( How is this?}
   \stoptext

(I also see problems with boxes set in the margin where before they were 
set centered in the textblock, but cannot construct an example yet.)


--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bidi-related register problem

2019-01-27 Thread Hans Hagen

On 1/27/2019 12:59 AM, Rik Kabel wrote:

Here is a much-closer-to minimal example.


  \setupregister   [index] [maxwidth=4cm]
  \setupdirections [bidi=on,method=two]
  \starttext
  .\index{Mairzy doats and dozy doats and liddle lamzy divey}
  \placeindex
  \stoptext

With the \setupdirections line removed, all is well. However, that line 
is otherwise required. Setting bidi off around \placeindex is not an 
option either, since some index entries require it.
Tricky ... i'll catch it but better use method tree then (later this 
year i might redo some r2l code)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian
> On 27 Jan 2019, at 17:30, Wolfgang Schuster 
>  > wrote:
> 
> […]
> 1. You don’t have to remake the format for patches in cont-new.mkiv because 
> the file is loaded at runtime.
> 
> 2. The patch works and I get “2019 januari 27” with your example.
> 

Hi Wolfgang,

Thanks for the clarification about cont-new.mkiv.
The corrected cont-new.mkiv begins with

\unprotect

\def\syst_converters_check_date
 {\edef\temp{\systemparameter\c!d}\scratchcounterone \ifx\temp\empty\normalday  
\else\temp\fi
  \edef\temp{\systemparameter\c!m}\scratchcountertwo 
\ifx\temp\empty\normalmonth\else\temp\fi
\edef\temp{\systemparameter\c!y}\scratchcounterthree\ifx\temp\empty\normalyear 
\else\temp\fi}

\writestatus\m!system{beware: some patches loaded from cont-new.mkiv}


However I still get the wrong date with the example I sent, and Fabrice's 
example with \mainlanguage[fr], as well as with \mainlanguage[nl], gives an 
incorrect result (even though the result is correct with \mainlanguage[en]).

Best regards: OK___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Wolfgang Schuster

Otared Kavian schrieb am 27.01.19 um 17:22:




On 27 Jan 2019, at 16:55, Hans Hagen  wrote:

[…]
put this in cont-new.mkiv  (after \unprotect)

\def\syst_converters_check_date
  {\edef\temp{\systemparameter\c!d}\scratchcounterone \ifx\temp\empty\normalday 
 \else\temp\fi
   \edef\temp{\systemparameter\c!m}\scratchcountertwo 
\ifx\temp\empty\normalmonth\else\temp\fi
\edef\temp{\systemparameter\c!y}\scratchcounterthree\ifx\temp\empty\normalyear 
\else\temp\fi}


Hi Hans,

Thanks for your attention.
Unfortunately this does not seem to solve the problem after remaking the 
formats. The following example


1. You don’t have to remake the format for patches in cont-new.mkiv 
because the file is loaded at runtime.


2. The patch works and I get “2019 januari 27” with your example.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian


> On 27 Jan 2019, at 16:55, Hans Hagen  wrote:
> 
> […]
> put this in cont-new.mkiv  (after \unprotect)
> 
> \def\syst_converters_check_date
>  {\edef\temp{\systemparameter\c!d}\scratchcounterone 
> \ifx\temp\empty\normalday  \else\temp\fi
>   \edef\temp{\systemparameter\c!m}\scratchcountertwo 
> \ifx\temp\empty\normalmonth\else\temp\fi
> \edef\temp{\systemparameter\c!y}\scratchcounterthree\ifx\temp\empty\normalyear
>  \else\temp\fi}

Hi Hans,

Thanks for your attention.
Unfortunately this does not seem to solve the problem after remaking the 
formats. The following example

\mainlanguage[nl]

\starttext
\currentdate
\stoptext

gives 2019 maart 27.

Best regards: OK
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Hans Hagen

On 1/27/2019 1:17 PM, Fabrice Couvreur wrote:

Hi,
I just updated context standalone and if I compile the following file, 
the date does not appear anymore.


side effect of some experiments by alan and me

put this in cont-new.mkiv  (after \unprotect)

\def\syst_converters_check_date
  {\edef\temp{\systemparameter\c!d}\scratchcounterone 
\ifx\temp\empty\normalday  \else\temp\fi
   \edef\temp{\systemparameter\c!m}\scratchcountertwo 
\ifx\temp\empty\normalmonth\else\temp\fi


\edef\temp{\systemparameter\c!y}\scratchcounterthree\ifx\temp\empty\normalyear 
\else\temp\fi}




Thank you
Fabrice

   \mainlanguage[fr]

   \setupbackgrounds
     [header]
     [text]
     [frame=off,
  topframe=off,
  bottomframe=on,
  framecolor=,
  rulethickness=1pt]

   \defineframed
    [headerframed]
    [frame=off,
     height=fit,
     width=fit]

    \startsetups [headertext]
     \setupheadertexts
     [{
     \startframed [headerframed] [foregroundstyle=bold]
     \getvariable{headertext}{title} 
n\high{o}\,\getvariable{headertext}{number}

     \stopframed
     }]

     \setupheadertexts
     [{
     \startframed [headerframed] 
[align=flushleft,foregroundstyle=\ssx]

     \getvariable{headertext}{location}\\
     \getvariable{headertext}{time}
     \stopframed
     }]
     [{
     \startframed [headerframed] 
[align=flushright,foregroundstyle=\ssx]

     Lycée LA SALLE\\
 
\date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]

     \stopframed
     }]

   \stopsetups

   \setvariable{headertext}{set}{\directsetup{headertext}}

   \setvariables
   [headertext]
   [title={Interrogation écrite},
    number={6},
    day={29},
    month={01},
    year={2019},
    location={Seconde GTE},
    time={55 minutes}]

    \starttext
  \input Knuth
    \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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian
Hi Hans,

I can confirm that with version 2019.01.25 20:06, when the main language is set 
to fr, the \date command does not work correctly.
However setting
\mainlanguage[en]
gives the correct behavior of \date, in english, in the example file sent by 
Fabrice.

Also this minimal example gives a wrong date:

\mainlanguage[fr]
 \starttext
  \currentdate
 \stoptext

gives 27 mars 2019 (with two months in advance… :-)
\mainlanguage[en]
or any other language, gives the same error (March 27, 2019).

Best regards: OK

> On 27 Jan 2019, at 13:17, Fabrice Couvreur  
> wrote:
> 
> Hi,
> I just updated context standalone and if I compile the following file, the 
> date does not appear anymore.
> Thank you
> Fabrice
> 
>   \mainlanguage[fr]
> 
>   \setupbackgrounds
> [header]
> [text]
> [frame=off,
>  topframe=off,
>  bottomframe=on,
>  framecolor=,
>  rulethickness=1pt]
> 
>   \defineframed
>[headerframed]
>[frame=off,
> height=fit,
> width=fit]
> 
>\startsetups [headertext]
> \setupheadertexts
> [{
> \startframed [headerframed] [foregroundstyle=bold]
> \getvariable{headertext}{title} 
> n\high{o}\,\getvariable{headertext}{number}
> \stopframed
> }]
> 
> \setupheadertexts
> [{
> \startframed [headerframed] [align=flushleft,foregroundstyle=\ssx]
> \getvariable{headertext}{location}\\
> \getvariable{headertext}{time}
> \stopframed
> }]
> [{
> \startframed [headerframed] 
> [align=flushright,foregroundstyle=\ssx]
> Lycée LA SALLE\\
> 
> \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
> \stopframed
> }]
> 
>   \stopsetups
> 
>   \setvariable{headertext}{set}{\directsetup{headertext}}
> 
>   \setvariables
>   [headertext]
>   [title={Interrogation écrite},
>number={6},
>day={29},
>month={01},
>year={2019},
>location={Seconde GTE},
>time={55 minutes}]
> 
>\starttext
>  \input Knuth
>\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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Intrusion in footnotes

2019-01-27 Thread Hans van der Meer
De following intrusion of a twocolumn placement of endnotes in the footnote 
area is to be avoided, of course.
The code is:

text with footnotes.
\placefootnotes
\placefloats
\startcolumns
\placenotes[endnote]
\stopcolumns

Can this be avoided? How?



dr. 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Fabrice Couvreur
Hi,
I just updated context standalone and if I compile the following file, the
date does not appear anymore.
Thank you
Fabrice

  \mainlanguage[fr]

  \setupbackgrounds
[header]
[text]
[frame=off,
 topframe=off,
 bottomframe=on,
 framecolor=,
 rulethickness=1pt]

  \defineframed
   [headerframed]
   [frame=off,
height=fit,
width=fit]

   \startsetups [headertext]
\setupheadertexts
[{
\startframed [headerframed] [foregroundstyle=bold]
\getvariable{headertext}{title}
n\high{o}\,\getvariable{headertext}{number}
\stopframed
}]

\setupheadertexts
[{
\startframed [headerframed]
[align=flushleft,foregroundstyle=\ssx]
\getvariable{headertext}{location}\\
\getvariable{headertext}{time}
\stopframed
}]
[{
\startframed [headerframed]
[align=flushright,foregroundstyle=\ssx]
Lycée LA SALLE\\

\date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
\stopframed
}]

  \stopsetups

  \setvariable{headertext}{set}{\directsetup{headertext}}

  \setvariables
  [headertext]
  [title={Interrogation écrite},
   number={6},
   day={29},
   month={01},
   year={2019},
   location={Seconde GTE},
   time={55 minutes}]

   \starttext
 \input Knuth
   \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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] How to pass a parameter with \definedescription[]

2019-01-27 Thread Fabrice Couvreur
Hi,
Hans and Wolfgang helped me to design this framed text. How to pass in text
parameter as we can for the length?
The text is set to "Note" and I would like it to be "Vocabulary" for the
second framed text.
Thank you
Fabrice

\definecolor[MyColorA][s=0.8784]
\definecolor[MyColorB][m=0.27,y=1]

\defineframed
   [FrameTitle]
   [frame=off,
foregroundstyle=\bfx\ss,
foregroundcolor=white,
background=color,
backgroundcolor=MyColorB,
location=depth]

\defineframedtext
   [FramedText]
   [offset=0.5em,
style=\ss,
toffset=.25\lineheight,
background=color,
backgroundcolor=MyColorA,
foregroundstyle={\switchtobodyfont[12pt]},
align={right, broad},
frame=off,
corner=round,
radius=1em,
width=10cm]

\definedescription
   [Info]
   [before=,
after=,
text=Note,
title=no,
width=fit,
distance=1em,
headcommand=\FrameTitle,
alternative=serried]

\starttext

\startFramedText[width=\textwidth]
  \startInfo
Cette suite d'appels sera notée Anissa--Boris--Gween et on dira qu'elle a
pour longueur 2.
  \stopInfo
\stopFramedText

\startFramedText[width=\textwidth]
  \startInfo
La matrice \m{M} est appelée {\bf matrice d'adjacence} du graphe.
  \stopInfo
\stopFramedText



\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Color a column (xtable, lua)

2019-01-27 Thread Wolfgang Schuster

Fabrice Couvreur schrieb am 27.01.19 um 00:59:

Hi Henry,
Thank you for your proposition. I tested both : the first work  but 
not the second.

Fabrice
Remove the empty line between the two arguments of the \defineoverlay 
command.


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___