Menu

#344 Case Change Tool

Next full release
closed
nobody
7
2015-07-27
2006-12-29
laxxy
No

It would help a great deal if there were a function available to convert selected fields (perhaps in some entries) to Title Case (or other case, etc.)

In particular, it would be extremely helpful when working with entries, imported from ISI WoS, where all older entries ARE ENTIRELY IN UPPERCASE, INCLUDING AUTHOR AND JOURNAL NAMES ETC. which is highly inconvenient :(

It would be even better if a user could define some exceptions (eg. "IEEE") that would not be affected during conversions, but even without this such a feature would be highly useful.

And thanks a lot for a great tool.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I had the same problem when importing older refs from Web of Science, so I wrote the following perl script to change all the Authors to Title Case, but you can change the match to "journal" or whatever. No guarantees, etc. etc.

    \#\!/usr/bin/perl -w
    \# this script changes all words to Title case if they appear in a line with the word “author”
    \# for converting mangled bibtex bibliographies
    \# MAKE SURE TO HAVE ADDED “author” IN THE JABREF PREFERENCES BOX WHICH STATES:
    \# “DO NOT WRAP THE FOLLOWING FIELDS WHEN SAVING:”
    
    while \(\) \{
    if \(m/author/i\) \{
    $match = $&;
    $rest = $’;
    $rest =~ s/\(\w+\)/\u\L$1/g;
    $rest =~ s/ \(And\) / \L$1 /g;
    print $match . $rest;
    \}
    else \{print $\_\}
    
    \}
    
    \# $& Holds the string that was matched by the last successful pattern match.
    \# $\` Holds the string that preceded whatever was matched by the last successful pattern match.
    \# $’ Holds the string that followed whatever was matched by the last successful pattern match.
    
     
  • Igor

    Igor - 2012-01-11

    This is already in place,
    the request can be closed

     
  • fdar

    fdar - 2015-07-22
    • Labels: --> webofscience
     
  • fdar

    fdar - 2015-07-23
    • Labels: webofscience --> tocategorize, webofscience
     
  • fdar

    fdar - 2015-07-23
    • labels: tocategorize, webofscience --> EntryRecord, CleanUp, ToBeClosed
    • Group: --> Next full release
     
  • Simon Harrer

    Simon Harrer - 2015-07-26

    I close this issue, as the feature is already in place.

     
  • Simon Harrer

    Simon Harrer - 2015-07-26
    • status: open --> closed
     
  • Simon Harrer

    Simon Harrer - 2015-07-27

    The implemented logic is found at:

    Right click in any editable text box of the bibtex entry --> "Change Case" --> Select

     

Log in to post a comment.