Solve Chinese garbled characters on the Thinkingrock interface and Report in Ubuntu

Source: Internet
Author: User
Tags netbeans
Thinkingrock is a cross-platform GTD software that handles your various ideas based on the idea of GTD. The entire process is divided into collection, processing, organization, inspection, and execution. Thinkingrock is written on top of netbeans to implement cross-platform. However, when the free version of Thinkingrock2.2.1 is used in Ubuntu, as shown in, the Chinese part is changed to a box. The reason for this is that the fonts in the self-contained jvm in the installation package are different from those in the system.

Thinkingrock is a cross-platform GTD software that handles your various ideas based on the idea of GTD. The entire process is divided into collection, processing, organization, inspection, and execution.

Thinkingrock is written on top of netbeans to implement cross-platform. However, when using the free Thinkingrock 2.2.1 version in Ubuntu, as shown in, the Chinese part is changed to a box.

The reason for this is that the fonts in the jvm in the installation package are different from those in the system. There are two solutions: copy the fonts in/usr/share/fonts/truetype/arphic to the/jre/lib/fonts/fallback directory in the Thinkingrock directory. The other is if you have installed Chinese software with jvm such as yongzhong office in the system. You can modify Thinkingrock. conf under the etc subdirectory in the thinkingrock directory. Find jdkhome, remove the # above it, and add the path of the jre supporting Chinese characters. After the modification, Thinkingrock will be able to display Chinese characters normally. For example.

 

Another function of Thinkingrock is to output reports in PDF format. However, he also encountered Chinese garbled characters when generating reports with Chinese characters. The reason is that the PDF output by Thinkingrock contains too few fonts and does not support non-English languages.

Add a Chinese font to Thinkingrock first. I use wenquanyi micron black.

$ Cd/tr-2.0.1/tr/resource/fop
$ Ln-s/usr/share/fonts/truetype/wqy/wqy-microhei.ttc
$ Java-cp .. /.. /modules/ext/fop-0.93.jar :.. /.. /modules/ext/avalon-framework-4.2.0.jar :.. /.. /modules/ext/commons-logging-1.0.4.jar :.. /.. /modules/ext/commons-io-1.1.jar org. apache. fop. fonts. apps. TTFReader-ttcname "WenQuanYiMicroHei" wqy-microhei.ttc wqy-microhei.xml

After using these commands, the two wqy-microhei.ttc wqy-microhei.xml files will appear in the fop folder.

Modify the fop. xconf file in the fop folder. Add up and down a section in the file:













After completion, you can choose Tools> Options> Miscellaneous> Action Screens in Thinkingrock to select the micron black font. In this way, the output Chinese report can be displayed normally.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.