![]() ![]() Make sure your desktop environment is using a correct locale setting.You can use the following methods to solve the issue (taking simplified Chinese as an example): Tip: Fonts can be set separately in Chromium/Chrome/Firefox browser settings, for example, adjust the font option to Noto xxx CJK SC. Since ja-JP is before zh_, Japanese fonts are used first. The order of use is based on the regional code and the default order of A-Z. This is because different default fonts can be set in each program, such as Arial or Tahoma, and the attributes of these fonts are controlled by fontconfig. Siyuan Song), in some cases (framework undefined area), rendered Chinese characters do not match the standard form, such as 门, 关, and 复. Siyuan Bold), or Noto Serif CJK adobe-source-han-serif-otc-fonts (Source Han Serif, lit. It is recommended to modify the former.įor Chinese fonts settings, see Fonts (简体中文) and Font configuration (简体中文).įont Configuration (简体中文)/Chinese (简体中文) provides a demonstration of Chinese fontconfig.Ĭhinese characters displayed as variant (Japanese) glyphsĪfter installing Noto Sans CJK adobe-source-han-sans-otc-fonts (Source Han Sans, lit. ![]() The setting file of fontconfig is ~/.nf (user) or /etc/fonts/conf.d (global). (Discuss in Talk:Localization/Simplified Chinese) It may be preferable to link to Font configuration#Fontconfig configuration or Font configuration (简体中文)#Fontconfig配置 instead of explicitly mentioning font configuration paths. Reason: The ~/.nf path appears to be deprecated. Prepend the following two lines to one of the two files (if you are not sure which file to use, prepend to both): It is not recommended to set a global Chinese locale in /etc/nf because it causes tty to display garbled characters.Īs mentioned earlier, Chinese locale can be set separately in ~/.xinitrc or ~/.xprofile. Set Chinese locales for graphical interfaces xprofile: Settings are applied everytime you log in using a display manager such as GDM. xinitrc: Settings are applied everytime you use startx or SLiM to start the X interface. bashrc: Settings are applied everytime you log in using the terminal. You may set your own user environment variables in ~/.bashrc, ~/.xinitrc, or ~/.xprofile. To avoid the tty garbled text issue mentioned above, globally set the LANG locale to en_US.UTF-8 in /etc/nf: Set the global default locale to English (optional) To properly display Chinese characters under tty, install and configure zhcon AUR. Warning: Globally setting Chinese locales in /etc/nf will cause tty to display garbled texts due to the tty glyph limitation of Linux kernel. You may use locale to view the currently used locale(s), and locale -a to view the currently available locales. You need to modify /etc/locale.gen to set the locales that can be used in the system (erase the comment symbol " #" before the corresponding item):Īfter executing locale-gen, the selected locales can be used in the system. ![]() Commonly used Chinese locales are (the most intuitive is the number of words that can be displayed): In Linux, locales are used to set up different environments for running programs. To properly display Chinese, you must set the locale correctly and install the appropriate Chinese fonts. ![]() You can seek help through various platforms: Solving problems is a pleasure in itself. Do not be discouraged when you are in trouble. But in practical applications, you may encounter all kinds of issues. This article provides Chinese cultural guidance for various common software as much as possible. In fact, it is even easier than some Chinese versions of Linux.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |