I'm in the process of writing a PHP script to parse the BackupPresentation.json file in a backup presentation file to dynamically create a 'worship roadmap' for use by the worship team.
I've got all decoding done for text highlighting done for _richtextfield XML content (for attributes FontBold, FontItalic, FontSmallCaps). I'm a bit hung up on FontColor which shows as a 4-byte Hex like
FontColor="FFFF0000" (for Bible red text) or FontColor="FF1E90FF" for a red color selected in the editor.
They appear to be CMYK format, but... converting from CMYK to RGB format results is the wrong colors:
CMYK: FFFF0000 (255,255,0,0) RGB(1,1,255) hex: 0101ff which displays Blue instead of the expected red.
and
CMYK: FF1E90FF (255,30,144,255) RGB(0,1,255) hex: 0001ff also displays blue instead of the expected red.
So, my question (to the developers of Proclaim) is:
What is the content of the FontColor attribute in the XML and is there a way to convert it to RGB for use in HTML output?