Git Product home page Git Product logo

py-bats's Introduction

While this code works and is all well and good, it is very specific to our workflow. I am creating a manuscript preparation package at manus

py-bats

Introduction

This is a Python implemetation of a workflow engine used at Northwestern University Libraries for the Bulletin of Applied Transgender Studies. It is a simple workflow that by first converting the docx files to md files, then finding the references section of the md file. Then, a separate script will call the GPT API to generate a list of BibTeX references. Finally, the script will create a JATSXML file from the generated markdown file that has BibTex references.

Docx to Markdown

From the py_bats directory, run the following command:

python3 docx2md.py -i <input_file> -o <output_file>

This will create a markdown file from the docx file. The markdown file will be saved in the output_file location.

Markdown Extractor

You will also find a .txt file that contains the references in plaintext. We want to convert all of the citations to biblatex format. Use copilot, GPT, or zotero, as you wish. Make sure you change the file extension to .bib when you are done.

What is left to do in this project.

  • Automate the docx > markdown conversion
  • Add metadata to the markdown file
  • Split references into a txt file
  • Call GPT to convert the references to BibTeX
  • Add the BibTeX references to the markdown file
  • Produce JATSXML file from the markdown file
  • Parse author information and add to metadata section

py-bats's People

Contributors

aerithnetzer avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.