compound name with hyphen
Hi,
I'd like to create a style that would do that "J.-.L", I've read in the documentation that the possibility to initialize a name with an hyphen is not likes to cs: name but to cs: style. I've tried many ways but it's still not working.
Here is what I wrote in the local part :
<locale xml:lang="fr">
<terms>
<term name="editor" form="short">
<single>dir</single>
<multiple>dir</multiple>
</term>
</terms>
<style>
<name variable="author" initialize-with-hyphen="true">
</name>
</style>
</locale>
What Am I doing wrong ???
Thanks for your help
Benedicte
I'd like to create a style that would do that "J.-.L", I've read in the documentation that the possibility to initialize a name with an hyphen is not likes to cs: name but to cs: style. I've tried many ways but it's still not working.
Here is what I wrote in the local part :
<locale xml:lang="fr">
<terms>
<term name="editor" form="short">
<single>dir</single>
<multiple>dir</multiple>
</term>
</terms>
<style>
<name variable="author" initialize-with-hyphen="true">
</name>
</style>
</locale>
What Am I doing wrong ???
Thanks for your help
Benedicte
<style class="in-text" default-locale="fr" version="1.0" demote-non-dropping-particle="sort-only" initialize-with-hyphen="true">
But as the default value is set to "true", you don't need to add it to your style explicitly. cf: http://citationstyles.org/downloads/specification.html#hyphenation-of-initialized-names
Actually, I suspect you forgot to add initialize-with=". " in cs:name (cf: http://citationstyles.org/downloads/specification.html#name), e.g.:
<name form="long" delimiter=", " delimiter-precedes-last="never" sort-separator=" " initialize-with=". " and="symbol" font-variant="small-caps"/>
But it's still not working. I get "J.D.". I dont'get it !!! I'm sure it's a silly little detail but i do not see it. Here is part of my style
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" default-locale="fr" version="1.0" demote-non-dropping-particle="sort-only" initialize-with-hyphen="true" >
<info>
<title>Errance (French)_v10</title>
<id>http://www.zotero.org/styles/Errance_v10</id>
<link href="http://www.zotero.org/styles/errance" rel="self"/>
<author>
<name>Benedicte Macgregor</name>
<email>benedicte.macgregor@hotmail.fr</email>
</author>
<category citation-format="author-date"/>
<category field="anthropology"/>
<updated>2012-05-12T13:16:02+00:00</updated>
<summary>Style Errance élaborée à partir du styleBSPF</summary>
<link href="http://www.frantiq.fr/" rel="documentation"/>
<rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
</info>
<locale xml:lang="fr">
<terms>
<term name="editor" form="short">
<single>dir</single>
<multiple>dir</multiple>
</term>
</terms>
</locale>
<macro name="editor">
<names variable="editor" delimiter=" ">
<name and="text" initialize-with=". " delimiter=", " name-as-sort-order="all"/>
<label form="short" prefix=" (" suffix=".)" strip-periods="true"/>
</names>
</macro>
<macro name="anon">
<choose>
<if variable="author editor translator" match="none">
<text term="anonymous" form="short" text-case="capitalize-first" strip-periods="true"/>
</if>
</choose>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" sort-separator=" " initialize-with=".">
<name-part name="family" text-case="uppercase"/>
<name-part name="given" text-case="uppercase"/>
</name>
<label form="short" prefix=" " suffix="." strip-periods="true"/>
<substitute>
<names variable="editor"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter=" " delimiter-precedes-last="never" initialize-with=". ">
<name-part name="family" text-case="capitalize-first"/>
<name-part name="given" text-case="capitalize-first" />
</name>
<label form="short" prefix=" " suffix="." strip-periods="true"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
This will definitely work. Please paste the code of your style to http://gist.github.com, save it as a public gist, and post the url from the address bar back here. We'll take a look.
git://gist.github.com/3187018.git
Thanks for your help !
I get "J.-L." when "Jean-Luc" is entered as given name in zotero. Check your zotero field.