* Issue with the latest beta of context standalone
@ 2019-01-27 12:17 Fabrice Couvreur
2019-01-27 14:24 ` Otared Kavian
2019-01-27 15:55 ` Hans Hagen
0 siblings, 2 replies; 7+ messages in thread
From: Fabrice Couvreur @ 2019-01-27 12:17 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1504 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 2528 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Issue with the latest beta of context standalone
2019-01-27 12:17 Issue with the latest beta of context standalone Fabrice Couvreur
@ 2019-01-27 14:24 ` Otared Kavian
2019-01-27 15:55 ` Hans Hagen
1 sibling, 0 replies; 7+ messages in thread
From: Otared Kavian @ 2019-01-27 14:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
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 <fabrice1.couvreur@gmail.com> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Issue with the latest beta of context standalone
2019-01-27 12:17 Issue with the latest beta of context standalone Fabrice Couvreur
2019-01-27 14:24 ` Otared Kavian
@ 2019-01-27 15:55 ` Hans Hagen
2019-01-27 16:22 ` Otared Kavian
1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2019-01-27 15:55 UTC (permalink / raw)
To: mailing list for ConTeXt users, Fabrice Couvreur
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Issue with the latest beta of context standalone
2019-01-27 15:55 ` Hans Hagen
@ 2019-01-27 16:22 ` Otared Kavian
2019-01-27 16:30 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Otared Kavian @ 2019-01-27 16:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
> On 27 Jan 2019, at 16:55, Hans Hagen <j.hagen@xs4all.nl> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Issue with the latest beta of context standalone
2019-01-27 16:22 ` Otared Kavian
@ 2019-01-27 16:30 ` Wolfgang Schuster
2019-01-27 16:53 ` Otared Kavian
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2019-01-27 16:30 UTC (permalink / raw)
To: mailing list for ConTeXt users, Otared Kavian
Otared Kavian schrieb am 27.01.19 um 17:22:
>
>
>> On 27 Jan 2019, at 16:55, Hans Hagen <j.hagen@xs4all.nl> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Issue with the latest beta of context standalone
2019-01-27 16:30 ` Wolfgang Schuster
@ 2019-01-27 16:53 ` Otared Kavian
2019-02-04 10:21 ` Fabrice Couvreur
0 siblings, 1 reply; 7+ messages in thread
From: Otared Kavian @ 2019-01-27 16:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1106 bytes --]
> On 27 Jan 2019, at 17:30, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com <mailto:wolfgang.schuster.lists@gmail.com>> 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
[-- Attachment #1.2: Type: text/html, Size: 3083 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Issue with the latest beta of context standalone
2019-01-27 16:53 ` Otared Kavian
@ 2019-02-04 10:21 ` Fabrice Couvreur
0 siblings, 0 replies; 7+ messages in thread
From: Fabrice Couvreur @ 2019-02-04 10:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3244 bytes --]
Hi,
I added the patch but the output is not that expected because I get d = 4m
= 02 y = 2019 instead of "4 février 2019"
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={4},
month={02},
year={2019},
location={Seconde GTE},
time={55 minutes}]
\starttext
\input Knuth
\stoptext
Le dim. 27 janv. 2019 à 17:54, Otared Kavian <otared@gmail.com> a écrit :
> On 27 Jan 2019, at 17:30, Wolfgang Schuster <
> wolfgang.schuster.lists@gmail.com> 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
>
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 6614 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-02-04 10:21 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-27 12:17 Issue with the latest beta of context standalone Fabrice Couvreur
2019-01-27 14:24 ` Otared Kavian
2019-01-27 15:55 ` Hans Hagen
2019-01-27 16:22 ` Otared Kavian
2019-01-27 16:30 ` Wolfgang Schuster
2019-01-27 16:53 ` Otared Kavian
2019-02-04 10:21 ` Fabrice Couvreur
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).