ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ' not working anymore
@ 2011-07-04 17:27 Hans van der Meer
  2011-07-04 18:04 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Hans van der Meer @ 2011-07-04 17:27 UTC (permalink / raw)
  To: NTG ConTeXt

Could it be that in xml-processing ' and friends are dead? Where formerly these were treated correctly, now from "'" there results "apos". I seem to remember that this was an earlier problem, solved in the meantime and now popping up again.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ' not working anymore
  2011-07-04 17:27 ' not working anymore 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
  0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2011-07-04 18:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 04.07.2011 um 19:27 schrieb Hans van der Meer:

> Could it be that in xml-processing ' and friends are dead? Where formerly these were treated correctly, now from "'" there results "apos". I seem to remember that this was an earlier problem, solved in the meantime and now popping up again.

Is the entity defined?

To create one there are two commands available:

- \xmlsetentitiy{…}{…}
- \xmltexentitiy{…}{…}

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ' not working anymore
  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
  1 sibling, 0 replies; 8+ messages in thread
From: Hans van der Meer @ 2011-07-04 18:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I just checked against an older version where the behaviour was as it should be. That version is:
	ConTeXt  ver: 2011.03.28 01:03 MKIV  fmt: 2011.3.28  int: english/english

The erroneous behaviour is at least in the following version, I cannot check versions in between.
	ConTeXt  ver: 2011.06.26 13:23 MKIV  fmt: 2011.6.27  int: english/english

By the way, these ', " etc. are standard defines in XML and as such were also present in ConTeXt.

Hans van der Meer

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

> 
> Am 04.07.2011 um 19:27 schrieb Hans van der Meer:
> 
>> Could it be that in xml-processing ' and friends are dead? Where formerly these were treated correctly, now from "'" there results "apos". I seem to remember that this was an earlier problem, solved in the meantime and now popping up again.
> 
> Is the entity defined?
> 
> To create one there are two commands available:
> 
> - \xmlsetentitiy{…}{…}
> - \xmltexentitiy{…}{…}
> 
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ' not working anymore
  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
  1 sibling, 2 replies; 8+ messages in thread
From: Hans van der Meer @ 2011-07-04 18:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ' not working anymore
  2011-07-04 18:42   ` Hans van der Meer
@ 2011-07-04 18:49     ` Philipp Gesang
  2011-07-04 18:51     ` Wolfgang Schuster
  1 sibling, 0 replies; 8+ messages in thread
From: Philipp Gesang @ 2011-07-04 18:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

On 2011-07-04 <20:42:17>, Hans van der Meer wrote:
> 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.

Are you sure? Here with version 2011.06.29 09:57 I get

[ 20:46:21 = laokoon@aides = ~/context/tex/texmf-context/tex/context/base] grep -n xmlsetent *
lxml-ini.mkiv:343:\def\xmlsetentity#1#2{\ctxlua{xml.registerentity('#1',\!!bs\detokenize{#2}\!!es)}}
lxml-ini.mkiv:346:% \xmlsetentity{tex}{\TEX{}} % {} needed

Regards, Philipp

>                                Shouldn't it be there if is meant
> to be used? Or is it defined somewhere else?

> 
> 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
> ___________________________________________________________________________________

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: &apos; not working anymore
  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
  1 sibling, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2011-07-04 18:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


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

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1191 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: &apos; not working anymore
  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
  0 siblings, 1 reply; 8+ messages in thread
From: Hans van der Meer @ 2011-07-04 19:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


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


[-- Attachment #1.2: Type: text/html, Size: 2034 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: &apos; not working anymore
  2011-07-04 19:14       ` Hans van der Meer
@ 2011-07-04 20:21         ` Hans van der Meer
  0 siblings, 0 replies; 8+ messages in thread
From: Hans van der Meer @ 2011-07-04 20:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-07-04 20:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-04 17:27 &apos; not working anymore 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 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).