Re: [Bibdesk-users] Double Initials

2007-12-17 Thread Christiaan Hofman
No, because there is no logical way to distinguish two initials put  
together and a single first name. I always have believed medical  
sciences have made a stupid mistake using such weird name formats.

Christiaan

On 17 Dec 2007, at 3:18 PM, Tobias Witting wrote:

 Hello,
 I hope this is not a completely dumb question:

 I just came across the following problem: when authors have double
 initials i.e. H. W. Test and the authorlist in BibTeX is formatted as
 HW Test rather than H. W. Test only the first initial is displayed in
 the LaTeX output. google scholar tends to produce such bibtex.

 Is there any automated way of checking the bibtex database in BibDesk
 checking for this and possibly reformatting it?

 Cheers
 Tobias


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


Re: [Bibdesk-users] Double Initials

2007-12-17 Thread Alexander H. Montgomery
A check to see if:
a)The first two letters of an author's first name are both capitalized  
and
b)The first name is only two letters long

Would do this, although this should be done in AppleScript, not in  
BibDesk, as it's a pretty specialized cleanup check, and would break  
in cases of other mis-formatted first names (e.g., an all-caps first  
name two characters long)

Something like this should work:

property uppercaseLetters :  
ABCDEFGHIJKLMNOPQRSTUVWXYZÆŒØÁÀÂÄÃÅÇÉÈÊËÍÌÎÏÑÓÒÔÖÕÚÙÛÜŸ

tell application BibDesk
--  set allFields to all fieldnames
set theSelPubs to the selection of document 1
repeat with thePub in theSelPubs
set theAuthors to the authors of thePub
set newAuthors to 
repeat with iAuthor from 1 to count of theAuthors
set theAuthor to author iAuthor of thePub
set fullName to the full name of theAuthor
if character 1 of fullName is in uppercaseLetters and 
character 2  
of fullName is in uppercaseLetters and character 3 of fullName is
then
set fullNameLen to length of fullName
set fullName to character 1 of fullName  .  
 character 2 of  
fullName  .  characters 3 through fullNameLen of fullName
if newAuthors is  then
set newAuthors to fullName
else
set newAuthors to newAuthors   and  
 fullName
end if
end if
end repeat
set value of field author of thePub to newAuthors
end repeat
end tell -- Bibdesk

As you can probably tell, this is very kludgey, but should do what  
you're looking for.

-AHM

On 2007-12-17, at 6:34 AM, Christiaan Hofman wrote:

 No, because there is no logical way to distinguish two initials put
 together and a single first name. I always have believed medical
 sciences have made a stupid mistake using such weird name formats.

 Christiaan

 On 17 Dec 2007, at 3:18 PM, Tobias Witting wrote:

 Hello,
 I hope this is not a completely dumb question:

 I just came across the following problem: when authors have double
 initials i.e. H. W. Test and the authorlist in BibTeX is formatted as
 HW Test rather than H. W. Test only the first initial is displayed in
 the LaTeX output. google scholar tends to produce such bibtex.

 Is there any automated way of checking the bibtex database in BibDesk
 checking for this and possibly reformatting it?

 Cheers
 Tobias


 -
 SF.Net email is sponsored by:
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services
 for just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 Bibdesk-users mailing list
 Bibdesk-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bibdesk-users



-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users