Python script to process digital library website open articles into ACM Games: Research and Practice website word press format, including reference/anchors conversion
python acm2wp [input.html] [output.html] [replacements.txt]
Within VSCode install the 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.
Different articles have different headings and issues, so replacements.txt might sensibly update according to these as encountered.
Automate copyright transfer per article
Convert to wordpress plugin
Auto scrape all open articles in a journal issue