From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67633 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Using forms and saving values Date: Tue, 5 Apr 2011 15:39:25 +0200 Message-ID: References: <117EEDE5-5AAA-42A2-972B-747883F0C7F1@googlemail.com> <4D9AC896.9070800@gmx.net> <4D9AF3FA.4060604@gmx.net> <4D9B0DDE.7060704@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0408455186==" X-Trace: dough.gmane.org 1302010782 17882 80.91.229.12 (5 Apr 2011 13:39:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 5 Apr 2011 13:39:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 05 15:39:37 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q76To-0000sE-8S for gctc-ntg-context-518@m.gmane.org; Tue, 05 Apr 2011 15:39:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0FCD2CABDA; Tue, 5 Apr 2011 15:39:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25t1PBg8Ff71; Tue, 5 Apr 2011 15:39:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 55750CABC9; Tue, 5 Apr 2011 15:39:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5D6B2CABCA for ; Tue, 5 Apr 2011 15:39:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id scZptXzlOSzQ for ; Tue, 5 Apr 2011 15:39:26 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 5C3B2CABC9 for ; Tue, 5 Apr 2011 15:39:26 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p35DdPmh003710 for ; Tue, 5 Apr 2011 15:39:25 +0200 Original-Received: by fxm18 with SMTP id 18so377548fxm.14 for ; Tue, 05 Apr 2011 06:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=MgfneNT/E60HbuufxarjAl+OAkKuKUap2b2V6pAxstU=; b=HEhjd0Wjrrm0WiW4SKyUo1wMU9m0L/E3RlcbmWncyvUP6bJFNo9ciCYqkw/ajDDfZc 6TK9j7PXdwyyKJqlDAAV2iISKjhAM8mO7fg8gtDb73AOfj85tuQVKW9NMLFiS0QJziav +TYP/WfiU6XKHsXJ2azEashPxzhFSn1dq4CUs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ECUYzjLc//wnO71iWjdDPNjxDgFABpQ2kNCLpf+5VCEXdC8aE+Glff14GsQB2B0val C11FUrsz4jfTiJBYl+OmanwytSsBe/8hWk/RZif/37W0AbL8vKipJ89v/4JI+MM5UKPW DAsRSiapL06yMtbOpNoIBAEIEJt9Mn6pcVHTg= Original-Received: by 10.223.98.8 with SMTP id o8mr4299215fan.22.1302010765305; Tue, 05 Apr 2011 06:39:25 -0700 (PDT) Original-Received: by 10.223.107.7 with HTTP; Tue, 5 Apr 2011 06:39:25 -0700 (PDT) In-Reply-To: <4D9B0DDE.7060704@gmx.net> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rErNDp0v - 94ffe269c98f - 20110405 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:67633 Archived-At: --===============0408455186== Content-Type: multipart/alternative; boundary=0015174beb6228e86904a02c0105 --0015174beb6228e86904a02c0105 Content-Type: text/plain; charset=ISO-8859-1 2011/4/5 Peter Rolf > Am 05.04.2011 14:06, schrieb Cecil Westerhof: > > 2011/4/5 Peter Rolf > > > > > strange. the error here is caused by the undefined '\DVI' macro > > (outdated context from 26.01.2011). loading the right module > (preferred) > > or using a separate definition should solve this. > > > > is your fault caused by an undefined '\fillinfield' then? > > you can test it by replacing the '\DVI' macro with the text 'DVI'. > > > > > > Does still not work: > > 9 >> \fillinfield [dvi]{DVI} output, > > > > Or do you mean that \fillinfield is not defined. Which module should I > > use for this then? > > yes, '\fillinfield' is not defined somehow. but the needed module > 'scrn-fld.mkiv' should be loaded automatically in 'context.mkiv'. > > can you locate the file with > > mtxrun.exe --locate scrn-fld.mkiv > No, because I use Linux. I tried: find ~/ConTeXt -name scrn-fld.mkiv But this did find nothing. I also tried: find ~/ConTeXt -name '*fld*' This gives: /home/cecil/ConTeXt/tex/texmf-context/tex/context/base/scrn-fld.lua /home/cecil/ConTeXt/tex/texmf-context/tex/context/base/java-fld.mkii /home/cecil/ConTeXt/tex/texmf-context/tex/context/base/scrn-fld.mkii /home/cecil/ConTeXt/tex/texmf-context/tex/context/base/lpdf-fld.lua /home/cecil/ConTeXt/tex/texmf-context/tex/context/base/java-imp-fld.mkiv /home/cecil/ConTeXt/tex/texmf-context/tex/context/base/scrn-fld.mkvi Maybe the last one is wrong? .mkvi instead of .mkiv. It starts with: %D \module %D [ file=scrn-fld, %D version=1997.05.18, %D title=\CONTEXT\ Screen Macros, %D subtitle=Fields, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA / Hans Hagen \& Ton Otten}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. % There is still some leftover code from mkii, where we need to % be sparse with hash entries and so have a somewhat complex % setup mechanism. % interaction checking \writestatus{loading}{ConTeXt Screen Macros / Fields} \unprotect \registerctxluafile{scrn-fld}{1.001} %D In \MKII\ we had to cheat a bit with setups in order not to run %D out of memory with thousands of fields, which we happen to need at %D that time. In \MKIV\ we can store some data at the \LUA\ end and %D use a somewhat slower but quite okay inheritance mechanism. For %D this reason we now have split definitions, although the old method %D is still somewhat supported. The clone and copy commands are %D somewhat obsolete for several reasons: we can now use inheritance %D and autocloning has been supported for a while. In most cases %D cloning (especially with check boxes) the acrobat browser is not %D stable enough with respect to appearance handling. So I'll look what happens if I rename it. -- Cecil Westerhof --0015174beb6228e86904a02c0105 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2011/4/5 Peter Rolf <indiego@gmx.net>
Am 05.04.2011 14:06, schrieb Cecil Westerhof:
> 2011/4/5 Peter Rolf <indiego@gmx= .net <mailto:indiego@gmx.net&= gt;>
>
> =A0 =A0 strange. the error here is caused by the undefined '\DVI&#= 39; macro
> =A0 =A0 (outdated context from 26.01.2011). loading the right module (= preferred)
> =A0 =A0 or using a separate definition should solve this.
>
> =A0 =A0 is your fault caused by an undefined '\fillinfield' th= en?
> =A0 =A0 you can test it by replacing the '\DVI' macro with the= text 'DVI'.
>
>
> Does still not work:
> =A0 =A0 9 >> =A0\fillinfield [dvi]{DVI} output,
>
> Or do you mean that \fillinfield is not defined. Which module should I=
> use for this then?

yes, '\fillinfield' is not defined somehow. but the nee= ded module
'scrn-fld.mkiv' should be loaded automatically in 'context.mkiv= '.

can you locate the file with

=A0mtxrun.exe --locate scrn-fld.mkiv

No, because I= use Linux.
I tried:
=A0 =A0 find ~/ConTeXt -name scrn-fld.mkiv
But this did find nothing.

I also tried:
=A0 =A0 find ~/ConTeXt= -name '*fld*'

This gives:
/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/s= crn-fld.lua
/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/java-= fld.mkii
/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/scrn-fld= .mkii
/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/lpdf-fld.lua
/hom= e/cecil/ConTeXt/tex/texmf-context/tex/context/base/java-imp-fld.mkiv
/ho= me/cecil/ConTeXt/tex/texmf-context/tex/context/base/scrn-fld.mkvi

Maybe the last one is wrong? .mkvi instead of .mkiv.


It starts = with:
%D \module
%D=A0=A0 [=A0=A0=A0=A0=A0=A0 file=3Dscrn-fld,
%D= =A0=A0=A0=A0=A0=A0=A0 version=3D1997.05.18,
%D=A0=A0=A0=A0=A0=A0=A0=A0= =A0 title=3D\CONTEXT\ Screen Macros,
%D=A0=A0=A0=A0=A0=A0 subtitle=3DFie= lds,
%D=A0=A0=A0=A0=A0=A0=A0=A0 author=3DHans Hagen,
%D=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 date=3D\currentdate,
%D=A0=A0=A0=A0=A0 copyright=3D{PRAGMA / H= ans Hagen \& Ton Otten}]
%C
%C This module is part of the \CONTEX= T\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadm= e.pdf for
%C details.

% There is still some leftover code from mkii, where we = need to
% be sparse with hash entries and so have a somewhat complex
= % setup mechanism.

% interaction checking

\writestatus{loadin= g}{ConTeXt Screen Macros / Fields}

\unprotect

\registerctxluafile{scrn-fld}{1.001}

%D In \MK= II\ we had to cheat a bit with setups in order not to run
%D out of memo= ry with thousands of fields, which we happen to need at
%D that time. In= \MKIV\ we can store some data at the \LUA\ end and
%D use a somewhat slower but quite okay inheritance mechanism. For
%D th= is reason we now have split definitions, although the old method
%D is s= till somewhat supported. The clone and copy commands are
%D somewhat obs= olete for several reasons: we can now use inheritance
%D and autocloning has been supported for a while. In most cases
%D clon= ing (especially with check boxes) the acrobat browser is not
%D stable e= nough with respect to appearance handling.

So I'll look what hap= pens if I rename it.

--
Cecil Westerhof
--0015174beb6228e86904a02c0105-- --===============0408455186== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0408455186==--