I'm creating pdf documentation of engineering calculations using reportlab. I stick to the notation used in the code being implemented. This uses mainly Latin and Greek letters, sub- and superscripts. For these I implemented a very simple method that is based on replacing certain strings in the text to unicode characters, before generating the pdf. It could be done otherwise but it works. One problem, however eludes me: creating characters using combining characters, in particular characters with bars over them, say the Latin "d" with a bar.
>>> print('b'+u'\u0304')
produces in the python console the bar next to "b" (note in the editor of stackoverflow the result is as expected :-)). However, the same with an accent works in the console:
>>> print('fue'+ u'\u0301')
Any ideas where my mistake is?