How to export a one-pager to the One-Pager Chords XML format
Congratulations! You’ve now prepared your first one-pager with the One-Pager Chords ODT template š
Let’s confirm it’s ready to be exported
In case you haven’t done so yet, make sure to run the automagic reformat macro to guarantee that your document can be exported the One-Pager Chords XML file format.
Double-check that Python is running
Before exporting your one-pager, confirm you can run Python on your machine.
Download the export script
The Python script used to export the ODT file is available in the One-Pager Chords repository. If you’re familiar with Git, feel free to clone the repository.
Else, simply download the script! If you’re not familiar with running commands, the easiest is to put that script in the same folder as your ODT one-pager (e.g. on your Desktop)
You’re all set! Let’s go š
From here, converting your one-pager is as simple as running this command:
python3 xml_content_import.py "Artist - Title.odt"Let’s break it down:
- To run this command, you need to open a terminal (e.g. search for the “Terminal” app and start it)
- In the terminal, you need to navigate to the folder where you placed the script. Assuming it’s on your Desktop, type the following command in the Terminal and press
Enter:- Windows:
cd %userprofile%\Desktop - Mac & Linux:
cd ~/Desktop
- Windows:
- Now, just copy the command mentioned above and paste it in the terminal
- Replace the
Artist - Title.odtpart with the name of you one-pager- If the name of your one-pager contains spaces, don’t forget to include the
"around the name - Even if you don’t see a
.odtat the end of the name of your one-pager in the file explorer, make sure to add the.odtsuffix when you type the command - š” Tip: After you started typing the name of your one-pager, press the
Tabkey and the Terminal should write the rest of the name for you
- If the name of your one-pager contains spaces, don’t forget to include the
- You’re good to go, just press
Enterto run the script!
After you press Enter, should see the followingāexcept with the name of your one-pager:
Importing Artist - Title.odt -> Artist - Title.xmlIt means this worked! Your One-Pager Chords XML file is now in the same folder and its name ends with .xml.
Congratulations!
Your one-pager is now exported to the One-Pager Chords XML format š„³