Skip to content
/ acm2wp Public

Python script to process digital library open articles to ACM Games: Research and Practice website word press format, including reference/anchors conversion

License

Notifications You must be signed in to change notification settings

farpeek/acm2wp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

acm2wp

Python script to process digital library website open articles into ACM Games: Research and Practice website word press format, including reference/anchors conversion

Twitter Follow Youtube Subscribe Github Stars Maintenance Open in Visual Studio Code

Usage

python acm2wp [input.html] [output.html] [replacements.txt]

Visual Studio Code Example Workflow

Install Visual Studio Code VSCode Download

Within VSCode install the python extension Python extension

Open the local folder where you have cloned or downloaded this github project from within VSCode

Open this project's acm2wp.py file in VSCode

Select and copy only the text with references of any open article from the digital library and place into an [input.html] file in the project folder.

Click Run+Debug in VSCode (SHIFT+CMD+D on Mac)

Add command-line arguments for the files, "input.html output.html replacements.txt" and return will run the script

You may also install the HTML Preview extension to preview intput and output html files as they would in a browser, and check for conversions of reference links and headings, any corrections of digital library formatting, etc.

The resulting output.html file's contents will have the format suitable for pasting into the text field of a wordpress post. That is, in wordpress editor's post content field, select 'text' as opposed to 'visual' and paste in the output.html file's content.

Save draft and preview. The result should be similar to that seen in VSCode html preview window.

Notes

Different articles have different headings and issues, so replacements.txt might sensibly update according to these as encountered.

Todo

Automate copyright transfer per article

Convert to wordpress plugin

Auto scrape all open articles in a journal issue

About

Python script to process digital library open articles to ACM Games: Research and Practice website word press format, including reference/anchors conversion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages