Thanks for this Chris! In my opinion this demonstrates that we must tread very carefully when touching user input. A similar issue arises with single and double quotes — IIRC citeproc-js applies conversions there as well (not quotes added by the processor, but quotes present in the original input). I have yet to look at this in more detail, but I imagine this is potentially even more controversial than hyphens in page numbers. Is there an equally strong consensus for converting quotes as there is for the page range delimiter?
On Sun, 2014-01-26 at 04:14 +0000, Maloney, Christopher (NIH/NLM/NCBI) [C] wrote: > I just came across an interesting note on the description page of Wikipedia's > citation bot > (https://en.wikipedia.org/wiki/User:Citation_bot#Page_numbers_with_hyphens), > and thought it might be relevant here: > > The bot replaces hyphens with en dash in page number ranges. On rare > occasions when a hyphen is > right and an en dash is wrong (hyphen in the page number itself), > manually use the hyphen HTML > code ‑ instead of the dash/hyphen. > > So, according to this, there are edge cases where the substitution would be > wrong. I don't have any examples, but if you want to pursue it, you could > leave a note on the bot talk page > (https://en.wikipedia.org/wiki/User_talk:Citation_bot), or contact the author > (https://en.wikipedia.org/wiki/User_talk:Smith609). > > > Chris Maloney > NIH/NLM/NCBI (Contractor) > Building 45, 5AN.24D-22 > 301-594-2842 > > > > -----Original Message----- > > From: Rintze Zelle [mailto:rintze.ze...@gmail.com] > > Sent: Thursday, January 23, 2014 4:47 PM > > To: development discussion for xbiblio > > Subject: Re: [xbiblio-devel] Page range delimite replacement > > > > Sebastian, Sylvester, does either of you (or anybody else) ever encounter > > item metadata that uses anything other than hyphens or en-dashes in page > > ranges? Do we really have to substitute repeated hyphens and em-dashes > > as well? > > > > Rintze > > > > On Wed, Jan 22, 2014 at 11:08 AM, Sylvester Keil <sylves...@keil.or.at> > > wrote: > > > Sounds good to me; I guess it would be sufficient to add one more > > > sentence after the one I quoted. To make it easier for implementors we > > > could also enumerate exactly which characters should be replaced (my > > > take would be: -, en-dash, em-dash, making sure to catch things like > > > '--', too). > > > > ------------------------------------------------------------------------------ > > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > > Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical > > Workloads, Development Environments & Everything In Between. > > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.c > > lktrk > > _______________________________________________ > > xbiblio-devel mailing list > > xbiblio-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/xbiblio-devel > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > xbiblio-devel mailing list > xbiblio-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________ xbiblio-devel mailing list xbiblio-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xbiblio-devel