Lower-cased keywords before applying
Fix for nested ocr styles
Merge branch 'release/0.5.2'
Merge tag '0.5.2' into develop

Fixed a couple of bugs wrt nested formatting in pdf and lower case keywords