Skip to content

Instantly share code, notes, and snippets.

View twilsonco's full-sized avatar

Tim Wilson twilsonco

View GitHub Profile
@twilsonco
twilsonco / Abbreviate Journal Names in Bibtex Database.py
Created August 20, 2016 02:01 — forked from FilipDominec/Abbreviate Journal Names in Bibtex Database.py
Using the translation table from the Jabref program, finds and replaces all scientific journal names to their standardized abbreviated form. First argument is the file to be processed; outputs safely to 'abbreviated.bib'
#!/usr/bin/env python
#-*- coding: utf-8 -*-
import sys, os
try: bibtexdb = open(sys.argv[1]).read()
except: print "Error: specify the file to be processed!"
if not os.path.isfile('journalList.txt'):
import urllib