On 12 Aug 2007, at 4:40 PM, Simon Spiegel wrote:

> Hi,
>
> during the last two days I played around with BibDesk's templates  
> for the first time since quite some time (IIRC correctly the  
> template system was originally a feature request I made), and I  
> came up with several questions. Some of them are probably of  
> general interest, some could turn into bug reports or feature  
> requests later, but I thought that the user list is the best place  
> to post them.
>
> - I think it would be nice if BibDesk remembered the path it stores  
> its templates. I just added a bunch of templates, and every time  
> the file requester would jump to ~/Library/texmf/bibtex/bib/ where  
> the .bib file is located which is openend on launh, and every time  
> I have to change to ~/Library/Application support/BibDesk/templates
>

Looking at the code, it should start at the last directory used in  
the open/save panel, unless you're changing an existing template file.

> - @componentsJoinedByComma In my tests this only worked for  
> 'author', but not for 'editor' or any other field which uses 'and'  
> for multiple entries ('address' for example).

Thisit is not supposed to work for strings (e.g. field values), but  
for arrays. For example "fields.Author" is a string, while  
"persons.Author" is an array. Also fields.Address is a field.

> Is this by design, or a bug or am I doing something wrong. And an  
> additional question: I'd really like to have a  
> @componentsJoinedBySlash function, or mabye even the possibility to  
> choose the separator freely (especially useful for non-english users).
>

A generic one is impossible as there is no way to pass an argument.  
However you can add any separator using the collection tag syntax.

> - I'm not really sure what the difference between 'author' and  
> 'persons.author' is. What I found is that 'persons.editor' or  
> 'editors' gives me this strange output: ( {"__self__" = ""; },  
> {"__self__" = ""; }, {"__self__" = ""; } )
>

"authors" is just a shortcut to "persons.Author". Also you're not  
supposed to use something like editors in a value tag, e.g. <$editors/ 
 > would give weird results such as this, you need to convert it to a  
value or use it in a collection tag.

> - @stringByConvertingDoubleHyphenToEndash only works on the first  
> double hyphen in an entry. For example, if have a title like  
> 'Things -- other things -- more things' only the first double  
> hyphen is converted. Is this by design or a bug? And is it possible  
> to set this globally? I can't really think of a situation where I  
> don't want double hyphens to be converted, so I'd love to set this  
> for all entries.
>

This is a bug and will be fixed.

> - I really like the ability to check if a field corresponds to a  
> certain given value. Is it also possible to see whether a field  
> (like 'author') has several entries? This would be very useful for  
> differentiating betwen 'ed.' and 'eds.'.
>

<[EMAIL PROTECTED]>
template for no authors
<[EMAIL PROTECTED]>
template for single author
<[EMAIL PROTECTED]>
template for multiple authors
</[EMAIL PROTECTED]>

Compare the abbrvTemplate.rtf sample template from the Wiki, where  
the conditional tags are used a lot.

> - Is it possible to export names as 'first name last name'? It  
> would of course be possible, if they have been entered that way,  
> but this isn't the case (and shouldn't be encouraged). I played  
> around with 'first name' and 'last name', but I really didn't  
> understand how this is supposed to work and whether it works at all  
> with the 'editor' field.
>

firstName and lastName are properties of persons, which you can use  
in the value tags using the dot-syntax, you can combine them any way  
you like. Remember that "editor" is just a single string, while  
"editors" is a collection.

HTH,
Christiaan

> Ok, that's it for now. As always, thanks for your great work.
>
> simon
>
>
>
>
> --
> Simon Spiegel
> Steinhaldenstr. 50
> 8002 Zürich
>
> Telephon: ++41 44 451 5334
> Mobophon: ++41 76 459 60 39
>
> http://www.simifilm.ch
>
> "In a world getting more and more democratic, film directing is the  
> last
> resort for dictators." Francis Ford Coppola
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to