Re: [NTG-context] Quizz

2020-03-17 Thread luigi scarso
On Tue, Mar 17, 2020 at 9:40 AM Hans Hagen  wrote:

>
> I have no problem coming up with additional styles of code for remote
> learning and student support but it has to have some 'direction' and not
> be too random.
>
>
one constrain could be "it works under google chrome > Version
79.0.3945.130"
At least some it's some  grade of cross platforms, as  chrome seems to be
quite ubiquitous .
Kind of least common denominator.

-- 
luigi
___
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] Quizz

2020-03-17 Thread Hans Hagen

On 3/16/2020 7:46 PM, Otared Kavian wrote:



On 16 Mar 2020, at 11:14, Hans Hagen  wrote:

On 3/15/2020 10:34 AM, Fabrice Couvreur wrote:

[…]


there are some examples of form stuff in the test suite (widgets)

i'll send you a file from 2000 that does some mpc magic (including feedback and 
score calculations) but it's mkii (so you need to run pdftex). Maybe I should 
check it with mkiv too.


Could you please tell us where to find that file, even if it is only with mkii? 
(I need to prepare some material for my students, for the same reason as 
Fabrice…).
Where? On my machine, in various places. The problem with such things 
has always been that publishers are not really interested in it (or not 
ready, or whatever) so experiments end up as orphan files. Take for 
instance


http://www.pragma-ade.com/itdemos/external/ex-files/ex-files.pdf

We have all the examns from the mid 90's that way. That version doesn't 
have the selection part (choose examns and questions and generate 
remotely a set of examn files). Lack of interest in these matters made 
is drop all kind of support files for that.


Other experiments involve testing based on pdf documents, and/or student 
progress reports using pdf files (basically forms but not that 
recognizable as such) where after a click the student got an updated 
document that (s)he could store and expand later on. Again, we have 
basically all the building blocks in context (the sql database as well 
as the service itself were controlled by luatex).


Currently we're playing with yet another technology where a complete 
(already around for a while, free) math school method is available as 
pdf ad well as web but again, not something for publishers so hard to 
even break even (most of this, also tex related, stuff is kind of a 
bottomless drain of time and therefore money, so doing it is mostly 
hobyism).


Anyway, I'll mail a few files (no upload yes, maybe later).

I have no problem coming up with additional styles of code for remote 
learning and student support but it has to have some 'direction' and not 
be too random.


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] Quizz

2020-03-16 Thread Otared Kavian

> On 16 Mar 2020, at 11:14, Hans Hagen  wrote:
> 
> On 3/15/2020 10:34 AM, Fabrice Couvreur wrote:
>> […]
> 
> there are some examples of form stuff in the test suite (widgets)
> 
> i'll send you a file from 2000 that does some mpc magic (including feedback 
> and score calculations) but it's mkii (so you need to run pdftex). Maybe I 
> should check it with mkiv too.

Could you please tell us where to find that file, even if it is only with mkii? 
(I need to prepare some material for my students, for the same reason as 
Fabrice…).

Thanks in advance: Otared K.
___
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] Quizz

2020-03-16 Thread Hans Hagen

On 3/16/2020 4:26 PM, Fabrice Couvreur wrote:


Thank you, I will try to use your file.

i'll add a mkiv variant to the distribution (a few minor tweaks)

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] Quizz

2020-03-16 Thread Fabrice Couvreur
Hi Hans,
Thank you, I will try to use your file.
Fabrice

Le lun. 16 mars 2020 à 11:32, luigi scarso  a
écrit :

>
>
> On Mon, Mar 16, 2020 at 11:14 AM Hans Hagen  wrote:
>
>> On 3/15/2020 10:34 AM, Fabrice Couvreur wrote:
>> > Hi,
>> > With the Coronavirus pandemic, my school will close like all the
>> others.
>> > We chose to work with Microsoft Teams. I know how to file Math
>> exercises
>> > written with ConteXt and export to pdf format. Is it possible with
>> > ConteXt to create interactive Quizz?
>> it should be doable (in the past we've made those with choice, fill in
>> etc questions) but one problem with pdf is that there has been
>> introduced some restrictions, for instance one cannot save in the reader
>> so one then need to run a server that picks up the filled in stuff and
>> regenerates a pdf file ... no big deal but i must admit that i don't
>> have that code (if at all) around in loadable module form
>>
>
> In google chrome this seems to work, apart the choice fields (the choice
> selected has the red frame but  it has  no mark inside):
> https://martin-thoma.com/images/2012/02/pdf-form.pdf
>
> --
> luigi
>
> ___
> 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
___


Re: [NTG-context] Quizz

2020-03-16 Thread luigi scarso
On Mon, Mar 16, 2020 at 11:14 AM Hans Hagen  wrote:

> On 3/15/2020 10:34 AM, Fabrice Couvreur wrote:
> > Hi,
> > With the Coronavirus pandemic, my school will close like all the others.
> > We chose to work with Microsoft Teams. I know how to file Math exercises
> > written with ConteXt and export to pdf format. Is it possible with
> > ConteXt to create interactive Quizz?
> it should be doable (in the past we've made those with choice, fill in
> etc questions) but one problem with pdf is that there has been
> introduced some restrictions, for instance one cannot save in the reader
> so one then need to run a server that picks up the filled in stuff and
> regenerates a pdf file ... no big deal but i must admit that i don't
> have that code (if at all) around in loadable module form
>

In google chrome this seems to work, apart the choice fields (the choice
selected has the red frame but  it has  no mark inside):
https://martin-thoma.com/images/2012/02/pdf-form.pdf

-- 
luigi
___
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] Quizz

2020-03-16 Thread Hans Hagen

On 3/15/2020 10:34 AM, Fabrice Couvreur wrote:

Hi,
With the Coronavirus pandemic, my school will close like all the others. 
We chose to work with Microsoft Teams. I know how to file Math exercises 
written with ConteXt and export to pdf format. Is it possible with 
ConteXt to create interactive Quizz?
it should be doable (in the past we've made those with choice, fill in 
etc questions) but one problem with pdf is that there has been 
introduced some restrictions, for instance one cannot save in the reader 
so one then need to run a server that picks up the filled in stuff and 
regenerates a pdf file ... no big deal but i must admit that i don't 
have that code (if at all) around in loadable module form


there are some examples of form stuff in the test suite (widgets)

i'll send you a file from 2000 that does some mpc magic (including 
feedback and score calculations) but it's mkii (so you need to run 
pdftex). Maybe I should check it with mkiv too.


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] Quizz

2020-03-16 Thread Hans Hagen

On 3/15/2020 10:46 AM, Henning Hraban Ramm wrote:

Am 15.03.20 um 10:34 schrieb Fabrice Couvreur:

Hi,
With the Coronavirus pandemic, my school will close like all the 
others. We chose to work with Microsoft Teams. I know how to file Math 
exercises written with ConteXt and export to pdf format. Is it 
possible with ConteXt to create interactive Quizz?


You can create forms that work in Adobe Reader, but Radiobuttons are 
broken in ConTeXt, and if you want to add validation, then good luck 
getting JavaScript functions to work.
radiobuttons are broken by design: initialization, default rendering, 
synchronization over pages (we have a parent child model for which 
support seem to differ per viewer/version) ... it's hard to support all 
the features (default rendering + appearances and such)


maybe i should implement it from scratch and only support the real 
minimal set of options (so that what is not supported can also not fail)


i really spent a lot of time on this and once you get 'this' working, 
some side effect 'there' pops up (i probably made a remark in the source 
someplace but for instance some widgets have the build in default 
appeances that then depend on for instance dingbats overload user 
appeances) .. i think in the end one should maybe not implement any 
owhat the 'standard' permits and just emulate what acrobat does, and 
exactly that (it's the only browser that does them anyway)


(the static part of pdf is ok, in the dynamic part is there is much 
crap, and i'm not even talking of dependencies on javascript or flash)


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] Quizz

2020-03-15 Thread Henning Hraban Ramm

Am 15.03.20 um 10:34 schrieb Fabrice Couvreur:

Hi,
With the Coronavirus pandemic, my school will close like all the others. 
We chose to work with Microsoft Teams. I know how to file Math exercises 
written with ConteXt and export to pdf format. Is it possible with 
ConteXt to create interactive Quizz?


You can create forms that work in Adobe Reader, but Radiobuttons are 
broken in ConTeXt, and if you want to add validation, then good luck 
getting JavaScript functions to work.


See https://wiki.contextgarden.net/Widgets

It much easier to use web technology (HTML forms).

Best, Hraban
___
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] Quizz

2020-03-15 Thread Fabrice Couvreur
Hi,
With the Coronavirus pandemic, my school will close like all the others. We
chose to work with Microsoft Teams. I know how to file Math exercises
written with ConteXt and export to pdf format. Is it possible with ConteXt
to create interactive Quizz?
Thank you
Fabrice
___
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
___