From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69740 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: ' not working anymore Date: Mon, 4 Jul 2011 22:21:13 +0200 Message-ID: <27D9B076-B80A-4CEA-BC7C-609596D22FEF@uva.nl> References: <175853F4-C179-4262-85F1-5B3AE4B561D0@uva.nl> <50538A4B-78FE-4633-87DC-FBACF8F07AB0@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/mixed; boundary="===============1949625768==" X-Trace: dough.gmane.org 1309810951 9494 80.91.229.12 (4 Jul 2011 20:22:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2011 20:22:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 04 22:22:26 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 1Qdpf0-00061r-4y for gctc-ntg-context-518@m.gmane.org; Mon, 04 Jul 2011 22:22:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E0B3BCADA7; Mon, 4 Jul 2011 22:22:25 +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 q2vjXNCQUrkn; Mon, 4 Jul 2011 22:22:25 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D24A9CADD1; Mon, 4 Jul 2011 22:22:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4C169CADA7 for ; Mon, 4 Jul 2011 22:22:21 +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 MlTc0t+MZlB7 for ; Mon, 4 Jul 2011 22:22:18 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id DB6E7CAB80 for ; Mon, 4 Jul 2011 22:22:18 +0200 (CEST) Original-Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p64KMENn022692 for ; Mon, 4 Jul 2011 22:22:18 +0200 Original-Received: from elhalyn-ethernet.fritz.box (a82-95-102-36.adsl.xs4all.nl [82.95.102.36]) (authenticated bits=0) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id p64KLEgq050012 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Mon, 4 Jul 2011 22:21:14 +0200 (CEST) (envelope-from H.vanderMeer@uva.nl) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Virus-Scanned: by XS4ALL Virus Scanner X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=194.109.24.27; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0dF3UmenK - c4f38d407669 - 20110704 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:69740 Archived-At: --===============1949625768== Content-Type: multipart/alternative; boundary=Apple-Mail-8-791192309 --Apple-Mail-8-791192309 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Some further observations in comparing code: In the newer source one finds lxml-tab.lua: local function handle_any_entity(str) .... if a then if type(a) =3D=3D "function" then ... a =3D a(str) or "" end a =3D lpegmatch(parsedentity,a) or a ... else versus in the old code: if a then ... a =3D lpegmatch(parsedentity,a) or a else I cannot easily see through this code, but is it possible that here the = cause of not processing ' and friends correctly can be found? Hans van der Meer On 4 jul 2011, at 21:14, Hans van der Meer wrote: >=20 > On 4 jul 2011, at 20:51, Wolfgang Schuster wrote: >=20 >>=20 >> Am 04.07.2011 um 20:42 schrieb Hans van der Meer: >>=20 >>> On 4 jul 2011, at 20:04, Wolfgang Schuster wrote: >>>=20 >>>> Is the entity defined? >>>>=20 >>>> To create one there are two commands available: >>>>=20 >>>> - \xmlsetentitiy{=85}{=85} >>>> - \xmltexentitiy{=85}{=85} >>>=20 >>> This seems curious to me. I searched for "xmlsetent" (suspecting a = misspelling here) but the string is nowhere found in the ConTeXt base = directory. Shouldn't it be there if is meant to be used? Or is it = defined somewhere else? >>=20 >> lxml-ini.mkiv >>=20 >> See also http://www.ntg.nl/pipermail/ntg-context/2011/059718.html >>=20 >=20 > Indeed, some quirk in the searchpath of my BBEdit editor, I found out. = Got it now. >=20 > But there stays the question why the stand &---: patterns of XML are = not standard set in the ConTeXt source. >=20 > I compared the two sources. The newer, not working version has: > char-ent.lua, line 694: ["apos"] =3D "'", -- U+00027 >=20 > Is it possible this (I see char-ent.lua being added) has ruined the = previous behaviour? >=20 > Hans van der Meer >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail-8-791192309 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Some = further observations in comparing code:

In the newer = source one finds lxml-tab.lua:
local function = handle_any_entity(str)
....
   =          if a then
if type(a) =3D=3D = "function" then
    ...
   =  a =3D a(str) or ""
end
     =            a =3D lpegmatch(parsedentity,a) = or a
...
           =  else

versus in the old = code:
            if a = then
           =  ...
             =    a =3D lpegmatch(parsedentity,a) or a
   =          else

I = cannot easily see through this code, but is it possible that here the = cause of not processing &apos; and friends correctly can be = found?

Hans van der = Meer


On 4 jul 2011, at 21:14, = Hans van der Meer wrote:


On 4 jul 2011, at = 20:51, Wolfgang Schuster wrote:


Am 04.07.2011 um = 20:42 schrieb Hans van der Meer:

On 4 = jul 2011, at 20:04, Wolfgang Schuster wrote:

Is the entity defined?

To create one = there are two commands available:

- = \xmlsetentitiy{=85}{=85}
- = \xmltexentitiy{=85}{=85}

This seems curious to me. I = searched for "xmlsetent" (suspecting a misspelling here) but the string = is nowhere found in the ConTeXt base directory. Shouldn't it be there if = is meant to be used? Or is it defined somewhere = else?

lxml-ini.mkiv

Indeed, some quirk in the searchpath of = my BBEdit editor, I found out. Got it now.

But = there stays the question why the stand &---: patterns of XML are not = standard set in the ConTeXt source.

I compared = the two sources. The newer, not working version = has:

Is it possible this (I see char-ent.lua = being added) has ruined the previous behaviour?

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.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _

= --Apple-Mail-8-791192309-- --===============1949625768== 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 ___________________________________________________________________________________ --===============1949625768==--