Opened 8 years ago

Last modified 3 years ago

#5637 new defect

Arabic script gets represented as numbered blocks

Reported by: hippocampa Owned by: datallah
Milestone: Component: winpidgin (gtk)
Version: 2.5.8 Keywords: arabic blocks coding
Cc: awad

Description

Most commonly used Arabic fonts represent the individual letters as numbered blocks. The occasional one does get presented as actual Arabic, but I haven't been able to figure out when or why. When I copy the text from the window to say, notepad, I DO get the actual Arabic text. This is under windows Vista. I will attach two screenshots: one from an Arabic room, and one of the same stretch of chat, copied to notepad, which is readable (if one reads Arabic, that is).

Attachments (2)

arabicscriptROOM.jpg (144.8 KB) - added by hippocampa 8 years ago.
Arabic script as it is seen in the room
arabicscriptNOTEPAD.jpg (109.9 KB) - added by hippocampa 8 years ago.
Arabic script as it is seen when copied to Notepad

Download all attachments as: .zip

Change History (24)

Changed 8 years ago by hippocampa

Arabic script as it is seen in the room

Changed 8 years ago by hippocampa

Arabic script as it is seen when copied to Notepad

comment:1 Changed 8 years ago by datallah

  • Component changed from Yahoo! to winpidgin (gtk)
  • Owner changed from marv to datallah
  • pending changed from 0 to 1

This is a font problem. Which GTK+ version (Help-About) are you using?

comment:2 follow-up: Changed 8 years ago by hippocampa

  • pending changed from 1 to 0

<grins> yes, yes, I recognised this as a font problem myself. I had to look up GTK+. I am not using that. Should I? If so, how? Very glad for the help!

comment:3 in reply to: ↑ 2 Changed 8 years ago by datallah

  • pending changed from 0 to 1

Replying to hippocampa:

I had to look up GTK+. I am not using that. Should I? If so, how?

You actually are - it is a dependency of Pidgin. At the bottom of Help->About, it'll note the version of GTK+ you're using - what is the version number?

comment:4 Changed 8 years ago by hippocampa

  • pending changed from 1 to 0

oy! there it is: version 2.12.8 And thanks for your help, it's much appreciated!

comment:5 Changed 8 years ago by datallah

  • pending changed from 0 to 1

Are you using a non-standard font/theme on Windows or a GTK+ theme other than "MS-Windows" (which is the default)?

"Segoe UI" (the default Vista UI font) supports Arabic text (and we should be using it).

comment:6 Changed 8 years ago by hippocampa

  • pending changed from 1 to 0

I am a bit of a dull person, so yes, everything is standard, I didn't fiddle with it at all. And the funny thing is of course, that the vista version does support the font: as soon as I copy it to notepad, the actual text appears. So no themes, nothing exotic... I did set the keyboard setting so I can type Arabic (now all I need to do is learn to type Arabic, apart from ihn (hi) ...). But that aside, to summarise: no weird settings, Windows understands the fonts.

comment:7 Changed 8 years ago by datallah

  • pending changed from 0 to 1

So, can you see the Arabic text when you write it, but not when you're receiving it?

Try unchecking "Show formatting on incoming messages" in the "Conversations" preferences to see if that makes the incoming text display correctly.

comment:8 Changed 8 years ago by hippocampa

  • pending changed from 1 to 0

when I write Arabic it appears as blocks in pidin, but it appears as the right letters in notepad.

comment:9 Changed 8 years ago by hippocampa

and I unchecked the "show formatting..." thing, and that doesn't make a difference.

I really appreciate your input!

comment:10 Changed 8 years ago by datallah

  • pending changed from 0 to 1

What is the "Font" in the conversations preferences set to? Try setting it to "Segoe UI"

comment:11 Changed 8 years ago by datallah

I should have mentioned that you may have to reopen the conversation window for it to take effect.

comment:12 Changed 8 years ago by hippocampa

  • pending changed from 1 to 0

the font was set to calibri, but I set it to Segoe UI and reopened the window, and I still get blocks. Nice font though. My own font is set to berlin sans, but that doesn't seem to have any effect either.

comment:13 Changed 8 years ago by datallah

  • pending changed from 0 to 1

I don't have access to a Vista box for testing this, but after doing some more googling, it looks like I might be mistaken about "Segoe UI" containing Arabic glyphs (even though the Microsoft page about Arabic support claims it does).

#2966 talks about tweaking the pango.aliases file to add font fallbacks. That is what we're going to have to do here too.

What I would suggest (now that you're using the default "Segoe UI" font) is to append a suitable Arabic font to the end of the quoted list on the right hand side of the following line in your pango.aliases file: "segoe ui" = "segoe ui,meiryo,malgun gothic,microsoft jhenghei,microsoft yahei,gisha,leelawadee"

This document lists 5 Arabic Vista fonts; try starting with "Andalus". That would make the above line become something like: "segoe ui" = "segoe ui,meiryo,malgun gothic,microsoft jhenghei,microsoft yahei,gisha,leelawadee,andalus"

comment:14 Changed 8 years ago by hippocampa

  • pending changed from 1 to 0

Now we're getting somewhere!

I noticed a sharp increase in readible posts with adding the entire list of Arabic fonts on that page, but still 75% in blocks. So what I did was add Arial as an alias. Now, I seem to have 90%. This is workable!

However, it still is a bit of a puzzling thing that the copy of the exact same text copied to notebook DOES. It appears therewith not to be a Vista problem. A bug, after all, but the workaround works.


To summarise, so next time people don't have to wrestle through all the messages ;-) So, your Arabic script appears in blocks!

Go to the disk on which Vista installed, \Program files\Common files\GTK\2.0\etc\pango

There you open the file pango.aliases with notebook.

what you see is a list of fonts and their aliases in the format

"Fontname"="alias fontname,other alias fontname,yet another alias fontname"

Now, for the font of your choice in pidgin, you add the arabic fonts AND arial.

So, supppose you are using Segoe UI, you change the default line to "segoe ui" = "segoe ui,meiryo,malgun gothic,microsoft jhenghei,microsoft yahei,gisha,leelawadee,andalus,Arabic Typesetting,Microsoft Uighur,Simplified Arabic,Traditional Arabic,Arial"

(you can copy and paste that)

Now, you cannot save the file in the current location. Your local pango.aliases should go in %USERPROFILE% (you can type that in the explorer address bar to take you to the right place).

And Bob's your uncle, or Mohamed as things go. Cheers!

comment:15 Changed 8 years ago by hippocampa

notePAD PAD, not notebook. Sorry!

comment:16 Changed 7 years ago by bernmeister

So can this ticket be closed? Was this a one off issue, or is a code fix needed?

comment:17 Changed 7 years ago by hippocampa

Well, the problem is still there, I wasn't aware that some work had been done on it?

comment:18 Changed 7 years ago by darkrain42

  • Version changed from 2.4.1 to 2.5.8

comment:19 Changed 7 years ago by hippocampa

Alas, also with 2.5.8 and all the versions in between, the problem persists

comment:20 follow-up: Changed 6 years ago by faissl

believe it or not, it's 2.7.0 and the problem stands still..!

comment:21 Changed 3 years ago by awad

to solve this problem you need to go to:

control panel =>clock ,language and region => region and language =>administrative =>change system local =>choose Arabic language.

comment:22 in reply to: ↑ 20 Changed 3 years ago by awad

Replying to faissl:

believe it or not, it's 2.7.0 and the problem stands still..!

to solve this problem you need to go to: control panel =>clock ,language and region => region and language =>administrative =>change system local =>choose Arabic language

Note: See TracTickets for help on using tickets.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!