Giter Club home page Giter Club logo

cassi-bibtex's Introduction

CASSI Bib Parser

This script cleans up the journal names in a .bib file to match the CASSI abbreviations. Not all CASSI entries are included (please contribute more!); the majority came from the Core Journals table.

The script will print a warning if an abbreviation was not found.

Usage

There are several user-specified variables within the script toward the top. These include:

  • cassi_csv: the name of the CSV with columns for Abbreviations, Publication Names, and CODEN. A path may be included!
  • bib_in: the input BibTeX file. A path may be included!
  • bib_out: the name of the BibTeX file to output. A path may be included!
  • lower_list: a list of words in title fields that should always be lowercase
  • upper_list: a list of words in title fields that should always be uppercase
  • ignore_list: a list of words in title fields that should retain their capitalization
  • bib_write_order: a list specifying the order of fields written within a BibTeX entry. Anything not specified is appended at the end alphabetically.
  • marked_for_removal_bool: a boolean operator for whether specific fields should not be included in the output BibTeX file
  • marked_for_removal: a list of fields that should not be included in the output BibTeX file. If marked_for_removal_bool = True, this variable must be created!
  • remove_comments: a boolean operator for whether to include comments in the output BibTeX file. If False, all comments will be in a block together at the top of the output.
  • alpha_out: a boolean operator for whether to change the order of the entries to alphabetical by identifier (True) or leave them unsorted (False).

After modifying everything in the variable set-up, you can run the script!

python bibtex_parser.py

Requirements

This script is written using Python3. You can either install Python on its own or through Anaconda (recommended).

Dependencies:

These can be installed using the included requirements.txt file:

pip install -r requirements.txt

TODO

  • Check entries against CrossRef

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.