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
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
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 ___________________________________________________________________________________
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
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
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
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
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 ' 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 ___________________________________________________________________________________
participants (3)
-
Hans van der Meer
-
Philipp Gesang
-
Wolfgang Schuster