Jun-20-2023, 10:26 PM
(This post was last modified: Jun-20-2023, 10:27 PM by Pedroski55.)
Yes, I thought about the fact that the characters will be different sizes. But if you can get close to what you want first, you can tweak it to be exact.
The position, size and style of everything in a Word document is set using xml I believe.
One time I renamed a word document without the .docx ending. Try that.
You will find you have a .zip file with lots of information in the form of .xml files and various folders.
Maybe you can find the exact position of each character there, I don't know. Somehow Word must be told how and where to display what.
Then, if you take you whole page as an image, you could insert chord images over that image, using position information from the .xml data.
Here is a link on how to insert an image over an image in Python.
As I understand it, you only have do, re, mi, so, fa, la, ti, do. (Shades of Julie Andrews!)
Hope you can get this solved!
The position, size and style of everything in a Word document is set using xml I believe.
One time I renamed a word document without the .docx ending. Try that.
You will find you have a .zip file with lots of information in the form of .xml files and various folders.
Maybe you can find the exact position of each character there, I don't know. Somehow Word must be told how and where to display what.
Then, if you take you whole page as an image, you could insert chord images over that image, using position information from the .xml data.
Here is a link on how to insert an image over an image in Python.
from PIL import ImageOr, if you can mine the exact position of each character you want from the .xml data of a .docx file, you could perhaps modify the .xml to paste your chord images over the text. There are Python modules for parsing .xml files I believe, people here will know that.
As I understand it, you only have do, re, mi, so, fa, la, ti, do. (Shades of Julie Andrews!)
Hope you can get this solved!