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

>
> On 12.08.2007, at 16:40, 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
>>
>> - @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). 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).
>>
>> - 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__" = ""; } )
>>
>> - @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.
>>
>> - 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.'.
>>
>> - 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.
>
> Ok, this one I found out thanks to the wiki, authors.name and  
> editors.name; still I don't really understand the logic behind it.
>
> simon
>

"authors" and "editors" are collections of person objects. Properties  
of collections are applied to the *items* unless it starts with an @.  
So "authors.name" is a collection of names (strings). You can either  
use collections in a collection tag, as in

<$authors>
<$name/>
</$authors>

or make a single string out of it and use it in a value tag, as in

<[EMAIL PROTECTED]/>

(as "@ componentsJoinedByCommaAndAnd" starts with an @, it gives a  
property of the whole collection rather than acting on the collection  
items)

You can use it in a value tag, as in <$authors.name/>, but that's not  
intended behavior (it will give a comma-separated list enclosed in  
brackets).

> --
> 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