XMMS garbled Solution

Source: Internet
Author: User
I.
Chinese solutions for Gtk1 programs such as XMMS aMule under X.org

If not

II.
1.
Install xmms-mpg123-ja

Code:
Sudo apt-get install xmms-mpg123-ja

The xmms-mpg123-ja has more encoding conversions than the default mpg123
2.
Replacing the default xmms-mpg123-ja for xmms with the xmms-mpg123 plug-in
Xmms preference-audio input and output plug-in
Remove [Enable] of libmp g123
Select [Enable] For the libmpg123-ja

3.
Xmms preferences-audio input and output Plugin-libmpg123-ja-configuration-title
Select input Conversion
GB18030-"UTF-8

If not
III.
Modify the font. My font is:
Playlist:

Reference:
-Adobe-Helvetica-Medium-r-normal -- 12-*-iso8859-1, -*-Medium-r-normal -- 16-*-gb2312.1980-0, *-r -*

Main Window:

Reference:
-Adobe-Helvetica-Medium-r-normal -- 12-*-iso8859-1, -*-Medium-r-normal -- 16-*-gb2312.1980-0, *-r -*

You can change the font name by yourself.
Command Used to list the current font of the system: xlsfonts
You can use grep to obtain the required font. Here we need a gb18030 font, so we can write

Code:
Xlsfon ts | grep 18030

After finding the font, replace the font name with the name you need. You can change the font size.

Method 2:



 
1. xmms uses the GTK 1. X Font mechanism, which is different from the current general fontconfig. Therefore, you need to install a usable Chinese font Based on the GTK 1. X Font mechanism.
2. This document uses the simsun. TTC font for configuration.
3. Copy simsun. TTC to the/usr/share/fonts/local directory and create a directory (the directory location is not absolute)
4. in/usr/share/fonts/local, generate the fonts. dir file and fonts. scale. The command is as follows:
$ Mkfontscale
$ Mkfontdir
(Note: mkfontdir cannot generate the text file of TTC or TTF)
5. Add to xlsfonts:
$ Xset + FP/usr/share/fonts/local/
6. Add in/etc/X11/XF86Config-4 or/etc/X11/Xorg. conf (depending on the xserver you are using)
FontPath "/usr/share/fonts/local /"
7. Check whether the system can find the installed font
$ Xset q
$ Xlsfonts | grep gb
8. zh_CN.utf-8. cp/etc/gtk/gtkrc. zh_CN/etc/gtk/gtkrc.
9. edit/etc/gtk/gtkrc. zh_CN.utf-8 in the form below:
Style "gtk-default-zh-cn-utf8 "{
Fontset = "-adobe-helvetica-medium-r-normal -- 12-*-iso8859-1 ,/
-Misc-simsun-medium-r-normal -- 14-*-gb2312.1980-0, *-r -*"
}
Class "GtkWidget" style "gtk-default-zh-cn-utf8"
10. Start xmms and set its "Preferences" --> "font":
-Bitstream charter-medium-r-normal-*-120-*-p-*-iso10646-1, -misc-simsun-medium-r-normal-*-110-*-p-*-gb2312.1980-0
11. in xmms, set "option" --> "title" --> "title format" to: % f. select only the name of the displayed file. (Note: The description information of the audio file is encoded differently, which may cause garbled characters)

Tip: Note 6th. The reason for xmms garbled characters may be that you have reconfigured/etc/X11/xorg. conf (such as installing the nvidia graphics card driver), and some useful FontPath items are lost. Check your previous xorg. conf file backup, add the corresponding FontPath to your configured/etc/X11/xorg. conf file. The solution to ubuntu 6.06 is also possible.

 

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.