Help to do a better citation style Documents d'Archéologie Française

Hello, I have done a citation style for the Documents d'Archéologie Française (DAF) in CSL 0.8. I Updated it with http://csleditor.quist.de/. I done a few modifications. And the style is here : https://docs.google.com/leaf?id=0B50fj8z1KLPsZmMxMDM4NTQtOWFhYy00OTExLWIyZTUtZmI3MDA5YjA4OWJj&sort=name&layout=list&num=50

The Daf style suppose to obtain that :
Lorblanchet 2001
Lorblanchet (M.) — La Grotte ornée de Pergouset (Saint-Géra Lot) : un sanctuaire secret paléolithique. Paris : MSH, 2001. 188 p. : ill. (DAF ; 85).

And I obtain that :
Lorblanchet 2001 Lorblanchet M. — La Grotte ornée de Pergouset (Saint-Géra Lot) : un sanctuaire secret paléolithique. Paris : MSH, 2001. 188 p. : ill. (DAF ; 85).

So how can I do a carriage between "Lorblanchet 2001" and "Lorblanchet (M.)".
Is it possible to have the initial of first name between brackets ?
When I have more than one author i don't want to have Toto T., Tata (T.) et Titi (T.) but Toto T., Tata (T.), Titi (T.). What variable can i put in : "name and="text""

Thanks for your help!
  • edited June 3, 2011
    For getting the label/short author in a separate line, look at display="block"
    http://citationstyles.org/downloads/specification.html#display

    You can leave out the and by simply not having an "and" attribute in the name node.
    The parenthesis issue is a little more complicated - we had that recently, maybe someone can quickly find the link to the thread or you could search for it.
    edit: thanks Gracile
  • So how can I do a carriage between "Lorblanchet 2001" and "Lorblanchet (M.)".
    Is it possible to have the initial of first name between brackets ?
    That should work: <name-part name="given" prefix="(" suffix=")"/>
    http://forums.zotero.org/discussion/17801/authors-with-no-given-name/#Item_28

    And to get the initial, you should add initialize-with="." somewhere (!) too. I'm not sure but try:
    <name-part name="given" prefix="(" suffix=")" initialize-with="."/>
  • I should add that affixes on the name-part work well but are not allowed by the specs at the moment: your style won't validate. Not a big deal however since CSL specs will probably change on that point in the future: https://github.com/citation-style-language/schema/issues/47
  • edited June 3, 2011
    Hello, thanks a lot for your help. It work fine.
    To Gracile, I have use the initialize-with="." like this :

    <name name-as-sort-order="all" sort-separator=" ">
    <name-part name="family" font-variant="small-caps" />
    <name-part name="given" prefix="(" suffix=")" initialize-with=". " />
    <name delimiter=", " name-as-sort-order="all" sort-separator=" " form="long" initialize-with=". " />
    </name>
    </names>
  • I should add that affixes on the name-part work well but are not allowed by the specs at the moment: your style won't validate. Not a big deal however since CSL specs will probably change on that point in the future
    Please don't recommend fixes for people that aren't officially supported. If you want the feature, then add the request to the issue and wait for it.
  • Bruce aren't you misreading this? Gracile refers to exactly the issue that he links to - everyone, you included, seems to be in agreement that it should be included in the next csl release and it already works in citeproc. So why should people not start using it?
  • I added this for the sake of clarity and honesty. Unofficial fixes like this one are often recommended without even this disclaimer...
  • edited November 2, 2011
    I have the same problem with a CSL 1.0 homemade style (converted from 0.8).
    I tried to use :

    <names variable="author">
    <name name-as-sort-order="all" and="text" delimiter-precedes-last="never" form="long" sort-separator=" ">
    <name-part name="family" font-variant="small-caps"/>
    <name-part name="given" prefix="(" suffix=")"/>
    </name>
    <substitute>
    <text macro="editor"/>
    <text macro="translator"/>
    </substitute>
    </names>

    But I don't get any small caps (or braces either). When I put directly font-variant="small-caps" in <name>, I get everything in small caps, though. It is quite like <name-part> have no effect.

    Edit : apparently, the problem was caused by the <substitute>. I removed it, and now it works perfectly.
  • edited January 17, 2015
    Hello, I've work again on this style.
    I have a problem when I try to validate it by "validator.nu" :

    "Error: Element et-al from namespace http://purl.org/net/xbiblio/csl not allowed as child of element else-if from namespace http://purl.org/net/xbiblio/csl in this context. (Suppressing further errors from this subtree.)

    From line 55, column 11; to line 55, column 37

    <et-al font-weight="bold"/>↩"

    And the same :
    "From line 59, column 11; to line 59, column 37"

    I need to have the name and the et al in bold but i don't know how to do.
    The style is here : https://gist.github.com/anonymous/f6388592b6d004b366fe

    Thanks in advance!
  • Use the same thing you're doing for authors for the other macros (editor, collection-editor). Currently this is failing because et-al needs to be includes in the names tag, but my guess would be that you'd also actually want a name and a label sub-element.
  • Hello,
    with the style on the official repositery : Documents d'archéologie française (French)
    I've got a few problem :
    - the authors names with accented character (é,à...) lose it when they are put in small capitals. How keep them?
    - I dont understand why for a chapter with 2 or more pages I've got the single page prefix "p." and not "pp."
    - more annoying, it's the exact opposite for the article-journal (just pp. everytime).
    Thanks in advance!
  • edited February 8, 2015
    the p vs. pp. is hard-coded into the style:
    https://github.com/citation-style-language/styles/blob/master/documents-d-archeologie-francaise.csl#L363
    and
    https://github.com/citation-style-language/styles/blob/master/documents-d-archeologie-francaise.csl#L313

    accents in small caps should work (and do for me)--Zotero certainly isn't doing anything to remove them (it can't). Might be the font you're using? Can you get accents on small caps in the font you're using otherwise?
  • edited February 8, 2015
    - the authors names with accented character (é,à...) lose it when they are put in small capitals. How keep them?
    Strange. It works correctly for me. How do you insert your citations and bibliography ? What's your word processor ? Are you sure that your metadata in zotero are correct ?
    - I dont understand why for a chapter with 2 or more pages I've got the single page prefix "p." and not "pp."
    - more annoying, it's the exact opposite for the article-journal (just pp. everytime).
    Probably badly coded, I will check the code.
    Edit : what adamsmith said. You can replace those lines by <group>
    <label variable="page" form="short"/>
    <text variable="page" prefix="&amp;#160;"/>
    </group>
  • Hello, I have done the modifications for the number of page : i'ts works fine. Thanks!

    I use last version of Zotero (4.0.23.1), connector for word (3.1.18) and word 2003 (with time new roman) : and I don't have the accented character in small capitals.
    On the same computer, with the same zotero, with LibreOffice connector (3.5.9)and LO(4.3) with basic character : I have it!
  • edited February 8, 2015
    Activer l'option Majuscules accentuées dans les options de Word :
    • Word 2003 : Allez dans le menu « Outils » → Options → onglet « Édition » → cochez la case « Majuscules accentuées en français » → et validez par Ok.
    • Word 2007/2010 : Allez dans l’onglet « Fichier » du ruban → Options → Vérification → cochez la case « Majuscules accentuées en français » → et validez par Ok.
    http://www.officepourtous.com/majuscules-avec-accents/
  • Super : ça marche!
    Un grand merci!
Sign In or Register to comment.