Style Generator
Hello
i've starded a style generator yesterday. It's not yet finish but it works. I think i could make a first version for next week.
In the end it won't made a perfect style because it will be only possible cite one element:
article or book or chapter etc...
EDIT: change url to new version
if you want test and comment you can found it there
excuse my english
i've starded a style generator yesterday. It's not yet finish but it works. I think i could make a first version for next week.
In the end it won't made a perfect style because it will be only possible cite one element:
article or book or chapter etc...
EDIT: change url to new version
if you want test and comment you can found it there
excuse my english
You might look on the dev list for some upcoming discussions on this issue.
Ok i'll look.
EDIT: link to the new version
I've update the page
-numbered citation works
-authors like citation works but all options are not yet avaible
I hope there is not a lot of error
I may work this wrong, but at first try one pretty essential thing is not working yet: I can only have one font style for "title" for example - but, of course, I usually want titles for journal articles (and similar things) in quotation marks, while I'd want titles of monographies in Italics. Generally, a lot of the stuff done by macros in the styles isn't working, so that the different nature of each format can't be taken into account.
There may be more things, but that's the first I noted.
If you want to work on usability, maybe you could try to combine this with the
chrome://zotero/content/tools/csledit.xul
test pane, so that whenever you click generate it automatically shows you citations of a selected Zotero reference?
Once again, thanks for trying to tackle this!
Thanks for your comment.
You are right this version don't use macro and it's the first problem. I've made it to better understand the work to do and have a quickly working script.
To use macro and have multiple style i must change all the presentation: there so mutch options!
I'm currently working in a new version witch 'll able to use macro.
Using zotero test panel is a good idea but i can't work on it now .
I hope having a style auto installation too.
Also, Jon (who posted a note on the dev list) is working on designing a web interface and will post examples soon.
My design ideas are quite different than lemaxx's. In my approach, you'd drive the design using (required) metadata and a rich collection of macros. It's too complicated to force users to do all this low-level stuff.
Apologies if my post exudes undue ignorance--i'm still trying to get my head around some of these fascinating issues.
I think the key here is to develop a comprehensive test library that covers a wide range of edge cases so that it's possible to see at a glance what's supported and what needs to be fixed.
Unit testing would also be helpful here. If the correct output of a particular reference for a particular style is known, the repository should verify the output when changes to the CSL are committed and flag errors on the preview page.
Thanks for all your work.
Max: the UI needs to provide a little help on some of the more obscure options here.
Also, somehow it needs to make clear that these rules are not just for authors, but also for other contributors. In some of the styles we've done more recently, we have a separate "name" (or "names"; I forget) macro to do this.
This is just hypothetically
I want to decide if it should sort by author or by year (ascending/descending)
Johan
I'm having trouble setting & as "Delimiter between authors". When I do that I get
XML Parsing Error: not well-formed
Location: file:///D:/test-7-06-06-07-08.csl
Line Number 81, Column 21:
--------------------^
when trying to add the file
Furthermore, I wonder how to get the Initial after the Last name instead in front of in the bibliography
I can only get J Asplund and not Asplund, J
I am also having trouble with the et al in citation. I've set it to minimum 3 author but it doesn't work no matter how many authors I have per reference. If this would work where do I change et al to italics?
I can't seem to get Collapse: Year-suffix to work
Second, Max needs to deal with creating and validating the CSL files using proper XML libraries. The character "&" is invalid XML, and needs to be escaped. XML libraries will do this automatically. In CSL, initialization is independent of name order. This appear configurable in the bib section under "authors settings"). As I say above, this all needs to be generalized so that it can be configured also in the citation. You need both the first two options in that section (including the "use ..." and "minimum ...").
Where in the "authors settings" can I find settings for putting initial after last name?
et al...
Do you mean that I need to set both
"Minimum authors to activate et-al in citation" and "How many authors include before et-al in citation" That's what I did and it didn't work I set the latter to 1
I test to add "and" in citation, i make a "how to" but it take a while.
"Second, Max needs to deal with creating and validating the CSL files using proper XML"
Yes i work on it , for next version.
Asplundj : To activate "et al" you need set the two fields. If it don't work there is a problem i will search
Thanks
Johan
it only adds
option name="et-al-subsequent-min" value="3"/>
option name="et-al-subsequent-use-first" value="1"/>
not
option name="et-al-min" value="3"/>
option name="et-al-use-first" value="1"/>
meaning that it will not work on the first citation but only subsequent of the same author.
zotero use "et-al" in citation if they are configure in citation and in bibliography options
Sorry i am not yet ready to add help in the generator
as it is now citation-options are added if I add options for bibliography these are hardly ever the same
Johan
I'll work on it
Johan i think i understand the problem:
to manage et al in citation you must have this in citation part:
<option name="et-al-min" value="6"/>
<option name="et-al-use-first" value="4"/>
<option name="et-al-subsequent-min" value="3"/>
<option name="et-al-subsequent-use-first" value="4"/>
and this in bibliography part:
<option name="et-al-min" value="6"/>
<option name="et-al-use-first" value="4"/>
but now if you want only 1 author in citation and 4 in bibliography you don't change the bibliograpy part but the citation you must have:
<option name="et-al-min" value="6"/>
<option name="et-al-use-first" value="1"/>
<option name="et-al-subsequent-min" value="3"/>
<option name="et-al-subsequent-use-first" value="1"/>
I think the problem is my script don't change the et-al-use-first value in citation but keep the bibliography value.
If someone could confirm i 'll change that