Ubuntu ETK Program Chinese display as a block problem solving method

Source: Internet
Author: User
Keywords Solution in this way to solve this
Tags .mall block change default directory display file forum

The information on ETK is too small, even in English. Like emphasis and exhibit programs such as Chinese display as a box of the problem has been very puzzling, I Google a long time before the Linuxsir forum to see a point of view, but also vague, no way, their repeated trial toss for a long time, finally partially solved the problem. In fact, the ETK program Chinese display as a box of the problem is because the default ETK theme Default.edj not use Chinese fonts caused by (OpenGEU with the other two ETK theme "Sunshine" and "Moonlight" is the same), the solution to the following ideas:

Copy the system default ETK theme to the user's ETK topic directory and rename it CHINESE.EDJ:

Cp/usr/local/share/etk/themes/default.edj ~/.e/etk/themes/chinese.edj

Use the EDJE_DECC command to unpack the Chinese.edj into a Chinese directory under ~/.e/etk/themes:

CD ~/.e/etk/themes
EDJE_DECC Chinese.edj

Modify

Enter this Chinese directory and its Widgets subdirectory to modify the *.edc configuration file, but how to change the method is exquisite. I am now copying the Shu in the system to the Chinese directory, adding an alias (such as wqy) to the Shu font in the Chinese/default.edc file, and then entering the Chinese/widgets subdirectory, which will be inside the *. In the EDC file, several obvious names such as Vera and Sans are changed to wqy. I did not change italic and bold such as vera-it and VERA-BD to wqy, because there is no italic and bold distinction in English, and if you add these fonts to different Chinese fonts, the ETK theme files are too large. So this only solves the common font Chinese display problem, if the ETK program interface appears italic and bold words in Chinese or a box. It may be possible to implement a direct reference system font file in the ETK theme file, but I have not yet studied the experiment well.

Repackaging

After the change, run the build.sh script in the Chinese directory can be repackaged into a Chinese.edj theme file, just move it back to cover the original:

./build.sh
MV Chinese.edj.

Use the Etk_prefs command to apply the theme file:

Etk_prefs--theme=chinese. For the convenience of the masses, I have made my own chinese.edj to provide:

Http://cid-395fa98992dfdc37.skydrive.live.com/self.aspx/software/chinese.edj

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.