I'm looking to automate the formatting of sources in a Microsoft word document(.docx). The problem is that some of the text in the new format has to be in italics. Is there a way in python to format text in italics to the clipboard? If you manually(ctrl + c) copy italics, the italic part of the string is still kept in the clipboard. Because when you paste it out(ctrl + v) it's still in italics. This is why I\m wondering if it\s possible in python.
I've already looked at pyperclip, but they only provide information on how to copy plain strings. (https://pyperclip.readthedocs.io/en/latest/introduction.html).