Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Mono + UTF-8 = strange behavior

  1. #1
    Join Date
    Aug 2009
    Beans
    41

    Mono + UTF-8 = strange behavior

    Hello,

    I did a quick search (here and Google) but I couldn't find anything relevant; on the other hand, the forum is a big place, so I didn't search thoroughly. Also, this section seemed good for asking for help so I posted here.

    The problem is about running SMath Studio with mono. I used it in Karmic, upgraded (clean install) to Lucid, but I have the same behavior:



    The tooltip should show "Număr", just as in "Aritmetică" above. Special characters just won't show up in tooltips and dialogs. The main program, the menus and the help file are OK.
    Through the roadmap of fixes, I ended up installing mono-complete, but nothing was solved. This was in Karmic. Now I installed Lucid, clean; "/home" is on another partition, but I used a different username. I tried with and without ".fonts.conf", I changed the locale but everytime it complained about "LC_ALL" not being set up, I tried commenting it out, empty string "", eventually set to UTF-8 just so I wouldn't see the warnings. Nothing worked. This was done in Karmic, too.
    I grabbed the sources from their web-page, compiled as the manual said, nothing. I ran the program from the console with "LC_ALL=C mono ...", even with "LC_ALL=ro_RO.UTF-8 ...", but it only complained about not supporting the codepage and falling back to "C"; the same happened for ISO-8859-2 and CP1250, even if I have them in locale. Also, running the bare command gave the warning: "Could not get Xim". I started iBus, made according settings, it stopped complaining but the result was the same.
    Right now, I'm a step away from making use of a crowbar. In the SMath's forum, I asked the developer about it but he showd me a screenshot and worked. He has openSuse which, as I understand, has 2.6 version of mono. That was what made me try to compile it myself (with the above result).

    So, there you have it. If there's anyone who can help, please don't hesitate, you would spare a computer's life that way...


    Regards,
    Vlad.

  2. #2
    Join Date
    Aug 2009
    Beans
    41

    Re: Mono + UTF-8 = strange behavior

    ...nobody?

  3. #3
    Join Date
    Aug 2009
    Beans
    41

    Re: Mono + UTF-8 = strange behavior

    "Bump" (?) to keep the thread alive.

  4. #4
    Join Date
    Feb 2005
    Location
    Geneva, Switzerland
    Beans
    976

    Re: Mono + UTF-8 = strange behavior

    Can you change the font used? Maybe it does not have the unicode blocks needed.

  5. #5
    Join Date
    Aug 2009
    Beans
    41

    Re: Mono + UTF-8 = strange behavior

    Quote Originally Posted by Sam View Post
    Can you change the font used? Maybe it does not have the unicode blocks needed.
    It's the same font, that's the problem. Look, I've made another screenshot:



    The missing character is the same as the one in "Editează". Also, "Fişier" displays diacritics correctly. But the tooltip refuses to. Also, the dialogs:



    The title displays nicely, the rest doesn't. Can anyone try to get the program and try to change the language to one that uses diacritics? Does it work for you? Is it only my computer affected? What? Who? Where? ...? I have twice the gray hair I had before this.

  6. #6
    Join Date
    Aug 2009
    Beans
    41

    Re: Mono + UTF-8 = strange behavior

    Do all mono programs work with custom characters for you?

  7. #7
    Join Date
    Aug 2009
    Beans
    41

    Question Re: Mono + UTF-8 = strange behavior

    Among the many searches, it was suggested that I should add MS Sans Serif (micross.ttf) to my fonts. I did that (both in ~/.fonts and /usr/share/truetype/msttcorefonts), and now I get this:



    The diacritics are shown in tooltips and dialogs, but the text is all garbled in the menus. It's like a reversed result, but worse.


    I'm still hoping someone may know something...

  8. #8
    Join Date
    Aug 2006
    Beans
    26

    Re: Mono + UTF-8 = strange behavior

    I also see this problem (but with swedish chars like åäö)
    I didn't have this problem before maybe it started around 9.04 or 9.10 don't remember

    it was suggested that I should add MS Sans Serif (micross.ttf) to my fonts. I did that (both in ~/.fonts and /usr/share/truetype/msttcorefonts)
    How did you do that?

  9. #9
    Join Date
    Aug 2009
    Beans
    41

    Re: Mono + UTF-8 = strange behavior

    I googled for micross.ttf, downloaded it, copied it (at first) ~/.fonts, tested, then moved it in /usr/share/truetype/msttcorefonts, again tested, same result as in the last screenshot.

    There was also a suggestion that one might only need to rename DejaVu via Fontforge (or similar programs) in "Microsoft Sans Serif" so that the font rendering engine would recognize it as the native one; a sort of a "free" alternative to the more costly one... Of course, I suspect some patent issues will still exist, but, eh...

    I'm trying this method now, I'll let you know when I figure how to fiddle with Fontforge.


    EDIT:
    It doesn't work, in fact, it's worse: now there are no diacritics and the menus are garbled, too...


    I'll just wait for other suggestions.
    Last edited by bubulescu; July 17th, 2010 at 09:46 AM.

  10. #10
    Join Date
    Aug 2009
    Beans
    41

    Re: Mono + UTF-8 = strange behavior

    I found out the culprit: in my sources.list I had an update for libcairo2 which would result in the mess previously mentioned. I forced a re-installation with the official package and then I copied micross.ttf in ~/.fonts.

    Also, the trick with modifying a font works, too.

    In short, the two solutions work.


    Regards,
    Vlad.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •