ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans van der Meer <H.vanderMeer@uva.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: &apos; not working anymore
Date: Mon, 4 Jul 2011 22:21:13 +0200	[thread overview]
Message-ID: <27D9B076-B80A-4CEA-BC7C-609596D22FEF@uva.nl> (raw)
In-Reply-To: <B7F3BE97-5391-4DB2-9024-26CD5F32CB27@uva.nl>


[-- Attachment #1.1: Type: text/plain, Size: 2310 bytes --]

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) == "function" then
    ...
    a = a(str) or ""
end
                a = lpegmatch(parsedentity,a) or a
...
            else

versus in the old code:
            if a then
            ...
                a = 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{…}{…}
>>>> - \xmltexentitiy{…}{…}
>>> 
>>> 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
>> 
>> See also http://www.ntg.nl/pipermail/ntg-context/2011/059718.html
>> 
> 
> 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:
> 	char-ent.lua, line 694: ["apos"] = "'", -- U+00027
> 
> 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.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 4281 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2011-07-04 20:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-04 17:27 Hans van der Meer
2011-07-04 18:04 ` Wolfgang Schuster
2011-07-04 18:17   ` Hans van der Meer
2011-07-04 18:42   ` Hans van der Meer
2011-07-04 18:49     ` Philipp Gesang
2011-07-04 18:51     ` Wolfgang Schuster
2011-07-04 19:14       ` Hans van der Meer
2011-07-04 20:21         ` Hans van der Meer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=27D9B076-B80A-4CEA-BC7C-609596D22FEF@uva.nl \
    --to=h.vandermeer@uva.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).