tintin icon indicating copy to clipboard operation
tintin copied to clipboard

Unicode index missing for Big5

Open rarealphacat opened this issue 3 years ago • 8 comments

<118>utf8_to_big5: did not find unicode index '0xfffd' Can you add the related definition?

rarealphacat avatar Jun 30 '21 14:06 rarealphacat

What would be the big5 equivalent?

scandum avatar Jun 30 '21 16:06 scandum

It should be "symbols" from unicode unable to be mapped under BIG5TOUTF, so there isn't big5 equivalent.

rarealphacat avatar Jul 05 '21 04:07 rarealphacat

So I can't really come up with a good way to fix this, assuming it needs fixing, suggestions are welcome.

scandum avatar Aug 31 '21 09:08 scandum

Can it fall back and print the Unicode instead of showing big5 equivalent when missing index happens?

rarealphacat avatar Dec 10 '21 07:12 rarealphacat

Not sure if I understand what you mean. When you get

<118>utf8_to_big5: did not find unicode index '0xfffd'

You can use: #showme \ufffd to print the unicode character.

scandum avatar Dec 10 '21 12:12 scandum

I mean can I make tintin++ to print the unicode character automatically when utf8 to big5 index is missing, along with the error message or even ignore the message? As it seems not all unicodes have the corresponding big5 equivalent. It only shows the "did not find unicode index xxxx" right now.

rarealphacat avatar Dec 12 '21 13:12 rarealphacat

You should be able to substitute the message:

#substitute {^utf8_to_big5: did not find unicode index '0x%1'} {<118>utf8_to_big5: did not find unicode character '\u%1' with index '0x%1'}

And you can remove it with #gag.

scandum avatar Dec 12 '21 21:12 scandum

Actually that Unicode codepoint is a special one: - that is used to show a character that cannot be shown (e.g. it doesn't exist in Unicode or possibly just not in the current font) if your OS / Browser can show: image

SlySven avatar Nov 10 '22 01:11 SlySven