em-dash as unprintable character

Mac OSX 10.7
LibreOffice 3.5.5.3
Firefox 14.0.1
Zotero 3.0.8
LO Integration 3.5.3

I've modified the Chicago Manual of Style .csl (don't remember which one, to be honest, because this is the last in a long series of changes), but this appears to be a problem with an interpreter rather than the csl proper.

As the beginning of the very last section of the csl, I have
<bibliography subsequent-author-substitute="———" >
(those are three em-dashes without spaces).

When I generate a bibliography, I get the following:
Law, William. A Serious Call ...
���. Selections on the ...
where the three question-mark diamonds are in place of the em-dash. I can throw any 7-bit ASCII into the subsequent-author-substitute attribute and it does what I expect, but I can't use — because that doesn't verify, and unless I screwed up on the test — just generates �. It's font-independent, by the way.

Also, when I load what seems to be the base CMS .csl, I get the same results, as it has the same subsequent-author-substitute.

How do I get my three mdashes?

Thanks!
  • edited July 19, 2012
    Testing with 3.0.8 and the standard CMS Fullnote under Linux and LibreOffice, I get printable dashes. As far as I know there is no variation for this across platforms: it should work.

    It would be good to know why high-bit ASCII in the attribute is breaking on you, but to get things going in the short term you can use &amp#8212; instead of &amp;mdash;, which will validate and should produce the dashes.
  • If you install the CMoS from the repository at zotero.org/styles - without any intermittent text editor etc. - does that work?
    It should and does for me.

    Most often this problem occurs when a .csl isn't saved as utf-8 . If you can't make that happen, you can substitute the em-dash with it's xml code, which I believe is & #8212 ; without the spaces.
Sign In or Register to comment.