Color Embedding bug?
#2

Quote:
Originally Posted by Y_Less
View Post
IIRC this is to do with unicode combining marks, which are separate characters but merge in to other characters. So you appear to write 5 characters, but it is stored as 7, 2 of which are modifiers for other characters. The problem is that then the colour see that it comes after 7 characters, and so appears after 7 characters without accounting for the fact that now 2 have vanished.

The work-around is to work out how many non-printing characters you have, and move your colour back that many places.

Edit: I should note that this is just a theory, though if I'm right then a programatic fix should be possible. I may look in to one for fixes.inc (probably disabled by default though as I suspect it will be quite intensive.
i test many thai word and it longer than 7 character. If I'm use normal thai character(not include thai vowel"่ ่ ้ ๊ ๋") the color is show position normally but when I include thai vowel "่ ่ ้ ๊ ๋" in my text the color gone wrong position. I think Thai vowel is problem for this topic but i'don't know why it's happen.

ps. very well if u can fix and add to fixes.inc i'm using this include in my server,that is very usefull inc for fix common problem in my server Thanks
Reply


Messages In This Thread
Color Embedding bug? - by basicllsw - 30.01.2015, 03:48
Re: Color Embedding bug? - by basicllsw - 30.01.2015, 08:21
Re: Color Embedding bug? - by basicllsw - 30.01.2015, 08:30
Re: Color Embedding bug? - by basicllsw - 30.01.2015, 08:50
Re: Color Embedding bug? - by basicllsw - 30.01.2015, 09:18
Re: Color Embedding bug? - by bigtigerbeee - 05.10.2018, 14:03

Forum Jump:


Users browsing this thread: 1 Guest(s)