On 12 Aug 2007, at 5:31 PM, Simon Spiegel wrote:

> Thanks for the quick reply, some followups.
>>>
>
>>> - 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.
>
> Have to look into this.
>>
>>> - @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.
>
> Mhmm, too bad.

Perhaps we can define some keys to turn a string into an array (like  
componentsSeparatedByComma, componentsSeparatedByGroupSeparators,  
componentsSeparatedByAnd).

>>
>>> 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.
>
> How would I do this?
>

<$authors><$name/><?$authors>, </$authors>

is equivalent to (if it would exist)

<[EMAIL PROTECTED]/>

>>
>>> - 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.
>
> Ok, I think I get it ...
>
>>
>>> - 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]>
>
> I haven't checked this example, but following it I did:
>
> <[EMAIL PROTECTED]>
> template for no editors
> <[EMAIL PROTECTED]>
> template for single author
> <[EMAIL PROTECTED]>
> template for multiple editors
> </[EMAIL PROTECTED]>
>

Sorry, forgot the "$" before the keys.

<[EMAIL PROTECTED]>
etc.

Christiaan

> This is supposed to work, no? It doesn't here.
>
>
> Thanks
>
> 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


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