On 2017-05-08 17:44, Henri Menke wrote:
Dear list,
The percent character in btx field is taken as a comment characters
which leads to the rest of the field being discarded. In the MWE
below, the URL is cut off at the % sign and everything after it is
lost.
Cheers, Henri
---
\startbuffer[references]
@misc{kraft,
author = "Kraft, Nathan",
title = "Mr Kraft's Virtual Filing Cabinet",
year = "2015",
url = "http://mrkraft.wikispaces.com/Mr+Kraft%27s+Virtual+Filing+Cabi
net"
}
\stopbuffer
\usebtxdataset[references.buffer]
\usebtxdefinitions[apa]
\starttext
\nocite[kraft]
\placelistofpublications
\stoptext
The bibtex entry in this example is provided in a buffer. The buffer
mechanism does not handle characters any differently than other text in
the file, and % in a ConTeXt buffer has to be escaped if it does not
signify a comment. If you specify an external (.bib or .bibtex) file to
supply the data, % does not need to be escaped. So, this part is simple
user error.
(With
\starttext
\startbuffer
abc%def
ghi\%jkl
\stopbuffer
\getbuffer
\stoptext
you do not get %def in the output. Why do you expect different behavior
if the buffer holds a bibtex entry?)
The way hyphenatedurl handles things may well be worthy of improvement.
--
Rik
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________