* export: tilde problems
@ 2011-06-20 5:22 Reviczky, Adam
2011-06-20 10:10 ` luigi scarso
2011-06-20 12:34 ` Hans Hagen
0 siblings, 2 replies; 9+ messages in thread
From: Reviczky, Adam @ 2011-06-20 5:22 UTC (permalink / raw)
To: ntg-context
Hi
The following minimal example gives a broken xml:
---
\setupinteraction[state=start]
\setupbackend[export=test.xml]
\starttext
\goto{projects.dcs.kcl.ac.uk/~reviczky}[url(http://projects.dcs.kcl.ac.uk/~reviczky/)]
\stoptext
---
XML Parsing Error: not well-formed
Location: file:///home/reviczky/Downloads/test/test.xml
Line Number 10, Column 139:
The tilde sign has a "&#A0;" value in the xml, shouldn't that be a "~"?
Also the tilde in the "destination=" and "url=" properties for "link" have a space(?) instead.
Adam
___________________________________________________________________________________
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] 9+ messages in thread
* Re: export: tilde problems
2011-06-20 5:22 export: tilde problems Reviczky, Adam
@ 2011-06-20 10:10 ` luigi scarso
2011-06-20 12:34 ` Hans Hagen
1 sibling, 0 replies; 9+ messages in thread
From: luigi scarso @ 2011-06-20 10:10 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, Jun 20, 2011 at 7:22 AM, Reviczky, Adam <adam.reviczky@kcl.ac.uk> wrote:
> Hi
>
> The following minimal example gives a broken xml:
> ---
> \setupinteraction[state=start]
> \setupbackend[export=test.xml]
> \starttext
> \goto{projects.dcs.kcl.ac.uk/~reviczky}[url(http://projects.dcs.kcl.ac.uk/~reviczky/)]
> \stoptext
> ---
>
> XML Parsing Error: not well-formed
> Location: file:///home/reviczky/Downloads/test/test.xml
> Line Number 10, Column 139:
This is ok, but it' low level.
\setupinteraction[state=start]
\setupbackend[export=test.xml]
\starttext
\bgroup
\catcode`\~=11
\goto{projects.dcs.kcl.ac.uk/~reviczky}[url(http://projects.dcs.kcl.ac.uk/~reviczky/)]
\egroup
\stoptext
The right way should be something like
\startcatacodetable <table identifier>
\goto{projects.dcs.kcl.ac.uk/~reviczky}[url(http://projects.dcs.kcl.ac.uk/~reviczky/)]
\stopcatcodetable
but I'n not able to find the right <table identifier>
>
> The tilde sign has a "&#A0;" value in the xml, shouldn't that be a "~"?
yes, I think so.
--
luigi
___________________________________________________________________________________
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] 9+ messages in thread
* Re: export: tilde problems
2011-06-20 5:22 export: tilde problems Reviczky, Adam
2011-06-20 10:10 ` luigi scarso
@ 2011-06-20 12:34 ` Hans Hagen
2011-06-20 13:42 ` Reviczky, Adam
1 sibling, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2011-06-20 12:34 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Reviczky, Adam
On 20-6-2011 7:22, Reviczky, Adam wrote:
> The tilde sign has a "&#A0;" value in the xml, shouldn't that be a "~"?
better is  
> Also the tilde in the "destination=" and "url=" properties for "link" have a space(?) instead.
no, it's the utf character
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 9+ messages in thread
* Re: export: tilde problems
2011-06-20 12:34 ` Hans Hagen
@ 2011-06-20 13:42 ` Reviczky, Adam
2011-06-20 13:47 ` Reviczky, Adam
0 siblings, 1 reply; 9+ messages in thread
From: Reviczky, Adam @ 2011-06-20 13:42 UTC (permalink / raw)
To: Hans Hagen, mailing list for ConTeXt users
> better is  
I see, I should've used the \lettertilde instead then, sorry.
> no, it's the utf character
So what would be the correct way to do this then?
---
\setupinteraction[state=start]
\setupbackend[export=test.xml]
\starttext
\bgroup
\catcode`\~=11
\goto{projects.dcs.kcl.ac.uk/\lettertilde reviczky}[url(http://projects.dcs.kcl.ac.uk/~reviczky/)]
\egroup
\stoptext
---
The above solution works (as suggested by luigi), but it doesn't look that good.
How can I pass on the tilde in the url without the catcode?
Adam
___________________________________________________________________________________
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] 9+ messages in thread
* Re: export: tilde problems
2011-06-20 13:42 ` Reviczky, Adam
@ 2011-06-20 13:47 ` Reviczky, Adam
2011-06-20 13:54 ` luigi scarso
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Reviczky, Adam @ 2011-06-20 13:47 UTC (permalink / raw)
To: Reviczky, Adam, Hans Hagen, mailing list for ConTeXt users
> So what would be the correct way to do this then?
Right, so is this ok, or is there a better way?
---
\setupinteraction[state=start]
\setupbackend[export=test.xml]
\starttext
\goto{projects.dcs.kcl.ac.uk/\lettertilde reviczky}[url(http://projects.dcs.kcl.ac.uk/\string~reviczky/)]
\stoptext
---
Adam
___________________________________________________________________________________
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] 9+ messages in thread
* Re: export: tilde problems
2011-06-20 13:47 ` Reviczky, Adam
@ 2011-06-20 13:54 ` luigi scarso
2011-06-20 13:57 ` Wolfgang Schuster
2011-06-20 15:05 ` Hans Hagen
2 siblings, 0 replies; 9+ messages in thread
From: luigi scarso @ 2011-06-20 13:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, Jun 20, 2011 at 3:47 PM, Reviczky, Adam <adam.reviczky@kcl.ac.uk> wrote:
>> So what would be the correct way to do this then?
>
> Right, so is this ok, or is there a better way?
>
> ---
> \setupinteraction[state=start]
> \setupbackend[export=test.xml]
> \starttext
> \goto{projects.dcs.kcl.ac.uk/\lettertilde reviczky}[url(http://projects.dcs.kcl.ac.uk/\string~reviczky/)]
> \stoptext
> ---
at least for simmetry...
\setupinteraction[state=start]
\setupbackend[export=test.xml]
\starttext
\goto{projects.dcs.kcl.ac.uk/\string~reviczky}[url(http://projects.dcs.kcl.ac.uk/\string~reviczky/)]
\stoptext
--
luigi
___________________________________________________________________________________
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] 9+ messages in thread
* Re: export: tilde problems
2011-06-20 13:47 ` Reviczky, Adam
2011-06-20 13:54 ` luigi scarso
@ 2011-06-20 13:57 ` Wolfgang Schuster
2011-06-20 15:05 ` Hans Hagen
2 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2011-06-20 13:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 20.06.2011 um 15:47 schrieb Reviczky, Adam:
>> So what would be the correct way to do this then?
>
> Right, so is this ok, or is there a better way?
\asciimode but you’re no longer able to add comments to your document
and for inline math you need \formula{…}.
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] 9+ messages in thread
* Re: export: tilde problems
2011-06-20 13:47 ` Reviczky, Adam
2011-06-20 13:54 ` luigi scarso
2011-06-20 13:57 ` Wolfgang Schuster
@ 2011-06-20 15:05 ` Hans Hagen
2011-06-20 15:09 ` Reviczky, Adam
2 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2011-06-20 15:05 UTC (permalink / raw)
To: Reviczky, Adam; +Cc: mailing list for ConTeXt users
On 20-6-2011 3:47, Reviczky, Adam wrote:
>> So what would be the correct way to do this then?
>
> Right, so is this ok, or is there a better way?
>
> ---
> \setupinteraction[state=start]
> \setupbackend[export=test.xml]
> \starttext
> \goto{projects.dcs.kcl.ac.uk/\lettertilde reviczky}[url(http://projects.dcs..kcl.ac.uk/\string~reviczky/)]
> \stoptext
It's a side effect of ~ becoming a utf character for nbsp. I'll change
the definition to:
\unexpanded\edef~{\utfchar{"00A0}}
Then you get this:
\goto{a.c.d/~reviczky}[url(http://a.c.d/~reviczky)]
\goto{\hyphenatedurl{a.c.d/~reviczky}}[url(http://a.c.d/~reviczky)]
Which is what one can expect.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 9+ messages in thread
* Re: export: tilde problems
2011-06-20 15:05 ` Hans Hagen
@ 2011-06-20 15:09 ` Reviczky, Adam
0 siblings, 0 replies; 9+ messages in thread
From: Reviczky, Adam @ 2011-06-20 15:09 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
> It's a side effect of ~ becoming a utf character for nbsp. I'll change
Yeah, I completely forgot about that, because it was natural in an url.
> the definition to:
>
> \unexpanded\edef~{\utfchar{"00A0}}
>
> Then you get this:
>
> \goto{a.c.d/~reviczky}[url(http://a.c.d/~reviczky)]
>
> \goto{\hyphenatedurl{a.c.d/~reviczky}}[url(http://a.c.d/~reviczky)]
>
> Which is what one can expect.
Cheers.
Adam
___________________________________________________________________________________
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] 9+ messages in thread
end of thread, other threads:[~2011-06-20 15:09 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-20 5:22 export: tilde problems Reviczky, Adam
2011-06-20 10:10 ` luigi scarso
2011-06-20 12:34 ` Hans Hagen
2011-06-20 13:42 ` Reviczky, Adam
2011-06-20 13:47 ` Reviczky, Adam
2011-06-20 13:54 ` luigi scarso
2011-06-20 13:57 ` Wolfgang Schuster
2011-06-20 15:05 ` Hans Hagen
2011-06-20 15:09 ` Reviczky, Adam
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).