Hi Mike,
Sorry to bother you with asking for support for an unsupported feature, but I'm having a little trouble getting getting the colors to work based on what I think I've understood from the above.
I've written a program to take a source xml file defining the colors and convert it into a text file suitable for importing into a user dictionary.
From what I understand - if the text file is a UTF8 file with the following unicode character sequences, the colors will render in IOS pleco (ignore spaces - only there for readability):
EAC1 XXXX TEXT EAC2
Where XXXX is the encoded RGB values of the color you want TEXT to appear.
My test source file contains 8 colors, and I believe I have encoded them correctly. The following is raw dump of my calculations for the colors
- first is the RGB values
- then those RGB values converted into binary
- then those RGB values broken into 2 12 bit binary strings, with the top bit set to 1 according to what I understand of the encoding described above.
- then those encoded values converted back into hex
Code:
RRGGBB rrrrrrrr gggggggg bbbbbbbb aaaaaaaaaaaa bbbbbbbbbbbb HexA HexB Color
------ -------- -------- -------- ---------------- ---------------- ---- ---- -------
000000 / 00000000 00000000 00000000 / 1000000000000000 1000000000000000 / 8000 8000 / Black
FFFFFF / 11111111 11111111 11111111 / 1000111111111111 1000111111111111 / 8fff 8fff / White
FF0000 / 11111111 00000000 00000000 / 1000111111110000 1000000000000000 / 8ff0 8000 / Red
00FF00 / 00000000 11111111 00000000 / 1000000000001111 1000111100000000 / 800f 8f00 / Green
0000FF / 00000000 00000000 11111111 / 1000000000000000 1000000011111111 / 8000 80ff / Blue
00FFFF / 00000000 11111111 11111111 / 1000000000001111 1000111111111111 / 800f 8fff / Cyan
FFFF00 / 11111111 11111111 00000000 / 1000111111111111 1000111100000000 / 8fff 8f00 / Yellow
FF00FF / 11111111 00000000 11111111 / 1000111111110000 1000000011111111 / 8ff0 80ff / Magenta
So, I'd expect that to encode for Yellow, the unicode sequence would be:
EAC1 8FF0 80FF YELLOW EAC2
When I import my text file (attached) with those unicode sequences, the yellow doesn't appear.
I do get some colors - black appears correct. There is a green. Cyan appears as a powder blue and the rest don't appear.
Can you see anything obvious that I'm doing wrong? Any advice or pointers would be greatly appreciated.