Skip to content

Instantly share code, notes, and snippets.

Avatar

Marta Sestelo sestelo

View GitHub Profile
@FilipDominec
FilipDominec / Abbreviate Journal Names in Bibtex Database.py
Last active Mar 4, 2021
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'
View Abbreviate Journal Names in Bibtex Database.py
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# Supporting Python 3
import sys, os, re
try: bibtexdb = open(sys.argv[1]).read()
except: print("Error: specify the file to be processed!")
if not os.path.isfile('journalList.txt'):