bib: triple dash in article title causes problems (minimal example)
To continue my earlier message about "--" in bibtex titles: I replaced the "--" with a triple dash "---" but still had problems unless I used \enableregime[utf]. Even then I had problems if I was also using products and projects, where \enableregime[utf] seemed to have no effect for the bibliography. Attached is a minimal set of files as a .tgz. Unpack and do 'cd test'; then 'make'. The resulting PDF, at least on my system (TL 2009 Debian + context 2009.10.27) has the accent characters instead of the em-dash. A small-size png image of it is attached. -Sanjoy `Until lions have their historians, tales of the hunt shall always glorify the hunters.' --African Proverb
Sanjoy Mahajan wrote:
To continue my earlier message about "--" in bibtex titles:
I replaced the "--" with a triple dash "---" but still had problems unless I used \enableregime[utf]. Even then I had problems if I was also using products and projects, where \enableregime[utf] seemed to have no effect for the bibliography.
This is the key problem, I think: adding an explicit \enableregime before the \startcomponent will likely fix the problem. The issue is that bbl file, which is normally read at \starttext is read at a different point in time for source that uses products/projects. Best wishes, Taco
Taco Hoekwater
This is the key problem, I think: adding an explicit \enableregime before the \startcomponent will likely fix the problem. The issue is that bbl file, which is normally read at \starttext is read at a different point in time for source that uses products/projects.
The bibliography was typeset the product file itself, so I put \enableregime[utf] before the \startproduct. It worked as you predicted. I had made a related experiment: to put \enableregime[utf] at the start of the .bbl file, then to run texexec with --once (to prevent bibtex from remaking the .bbl file). That also worked, but it was intended as a method of debuggin rather than as a usable workaround. However, even with your fix, I'm still partly confused. Why isn't the "---" in the article title treated like a TeX em-dash? In other words, why is the utf regime needed at all? -Sanjoy `Until lions have their historians, tales of the hunt shall always glorify the hunters.' --African Proverb
Sanjoy Mahajan wrote:
However, even with your fix, I'm still partly confused. Why isn't the "---" in the article title treated like a TeX em-dash? In other words, why is the utf regime needed at all?
In your original post, the first of the -- was not a hyphen, but U+2014. Best wishes, Taco
That was it! I think I cut and paste the title from the IEEE website, to minimize transcription errors, and never noticed the U+2014. In Emacs, at least with the font I use, it looks so like a "-" that I would not have noticed it without your pointing it out. I should add a 'find any unicode characters' command to my Makefiles. -Sanjoy `Until lions have their historians, tales of the hunt shall always glorify the hunters.' --African Proverb
participants (2)
-
Sanjoy Mahajan
-
Taco Hoekwater