中文不好看,help

系统字体配置、中文显示和输入法问题
hardy
帖子: 19
注册时间: 2005-04-04 18:04

中文不好看,help

#1

帖子 hardy » 2005-04-06 12:08

我是根据网站上的说明搞中文的,但效果不好
有没有其他美化的文章,帮我看看
谢谢
另外xmms是乱码的,更改字体也不行
附件
Screenshot1.png
(205 KiB) 已下载 287 次
Screenshot2.png
(181.44 KiB) 已下载 295 次
Screenshot.png
(131.35 KiB) 已下载 299 次
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#2

帖子 oneleaf » 2005-04-07 9:46

当净其意如虚空,远离妄想及诸取,令心所向皆无碍
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#3

帖子 oneleaf » 2005-04-07 10:01

xmms乱码:

$sudo ln -s /etc/gtk/gtkrc.zh_CN /etc/gtk/gtkrc.zh_CN.utf-8
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
hardy
帖子: 19
注册时间: 2005-04-04 18:04

#4

帖子 hardy » 2005-04-07 11:58

谢谢oneleaf
我的字体搞定了,但xmms还是乱码。本来想用用amarok算了的,但好像在镜象里装不上,说少软件包来的
另外那篇自动加载windows分区的教程能不能写简单点,看不懂 :oops: :roll:
hardy
帖子: 19
注册时间: 2005-04-04 18:04

#5

帖子 hardy » 2005-04-07 20:58

搞定了,装了beep-media-player
建议搞一个装机必备软件列表
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#6

帖子 oneleaf » 2005-04-07 21:10

可是我测试过

$sudo ln -s /etc/gtk/gtkrc.zh_CN /etc/gtk/gtkrc.zh_CN.utf-8

就好了啊

XMMS到底哪里乱码?
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
hardy
帖子: 19
注册时间: 2005-04-04 18:04

#7

帖子 hardy » 2005-04-08 10:40

菜单和选项全都乱码的
附件
Screenshot.png
(73.25 KiB) 已下载 263 次
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#8

帖子 oneleaf » 2005-04-08 12:27

帖出/etc/gtk/gtkrc.zh_CN.utf-8 的内容和locale/lc_all/lang是什么?
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
hardy
帖子: 19
注册时间: 2005-04-04 18:04

#9

帖子 hardy » 2005-04-08 17:50

gtkrc.zh_CN.utf-8

[code]
# $(gtkconfigdir)/gtkrc.zh_CN
#
# This file defines the fontsets for Chinese language (zh) using
# the simplified chinese standard GuoBiao as in mainland China (CN)
#
# 1999, Pablo Saratxaga <pablo@mandrakesoft.com>
#

style "gtk-default-zh-cn" {
fontset = "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
-*-*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn"

[code]

另外找不到locale/lc_all/lang文件[/code]
附件
bmp.png
bmp是这样,歌名是这样的,选项没乱码
(222.63 KiB) 已下载 260 次
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#10

帖子 oneleaf » 2005-04-08 17:58

设置本地local环境:

$sudo dpkg-reconfigure locales

确保 zh_CN.UTF-8 被选择,同时也默认local为 zh_CN.UTF-8
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
hardy
帖子: 19
注册时间: 2005-04-04 18:04

#11

帖子 hardy » 2005-04-08 18:24

出错了

hardy@ubuntu:~$ sudo dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN.UTF-8",
LC_ALL = "zh_CN.UTF-8",
LANG = "zh_CN.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 column s wide.)
debconf: falling back to frontend: Readline
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or director y
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or direc tory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Configuring locales
-------------------

Locale is a framework to switch between multiple languages for users who can
select to use their language, country, characters, collation order, etc.

Choose which locales to generate. The selection will be saved to
`/etc/locale.gen', which you can also edit manually (you need to run
`locale-gen' afterwards).

1. aa_DJ ISO-8859-1 117. es_AR.UTF-8 UTF-8 233. kw_GB ISO-8859-1
2. aa_ER UTF-8 118. es_BO ISO-8859-1 234. kw_GB.UTF-8 UTF-8
3. aa_ER@saaho UTF-8 119. es_BO.UTF-8 UTF-8 235. lg_UG ISO-8859-10
4. aa_ET UTF-8 120. es_CL ISO-8859-1 236. lo_LA UTF-8
5. af_ZA ISO-8859-1 121. es_CL.UTF-8 UTF-8 237. lt_LT ISO-8859-13
6. am_ET UTF-8 122. es_CO ISO-8859-1 238. lt_LT.UTF-8 UTF-8
7. an_ES ISO-8859-15 123. es_CO.UTF-8 UTF-8 239. lv_LV ISO-8859-13
8. ar_AE ISO-8859-6 124. es_CR ISO-8859-1 240. lv_LV.UTF-8 UTF-8
9. ar_AE.UTF-8 UTF-8 125. es_CR.UTF-8 UTF-8 241. mi_NZ ISO-8859-13
10. ar_BH ISO-8859-6 126. es_DO ISO-8859-1 242. mk_MK ISO-8859-5
11. ar_BH.UTF-8 UTF-8 127. es_DO.UTF-8 UTF-8 243. mk_MK.UTF-8 UTF-8
12. ar_DZ ISO-8859-6 128. es_EC ISO-8859-1 244. ml_IN UTF-8
13. ar_DZ.UTF-8 UTF-8 129. es_EC.UTF-8 UTF-8 245. mn_MN UTF-8
14. ar_EG ISO-8859-6 130. es_ES ISO-8859-1 246. mr_IN UTF-8
15. ar_EG.UTF-8 UTF-8 131. es_ES.UTF-8 UTF-8 247. ms_MY ISO-8859-1
16. ar_IN UTF-8 132. es_ES.UTF-8@euro UTF-8 248. ms_MY.UTF-8 UTF-8
17. ar_IQ ISO-8859-6 133. es_ES@euro ISO-8859-15 249. mt_MT ISO-8859-3
18. ar_IQ.UTF-8 UTF-8 134. es_GT ISO-8859-1 250. mt_MT.UTF-8 UTF-8
19. ar_JO ISO-8859-6 135. es_GT.UTF-8 UTF-8 251. nb_NO ISO-8859-1
20. ar_JO.UTF-8 UTF-8 136. es_HN ISO-8859-1 252. nb_NO.UTF-8 UTF-8
21. ar_KW ISO-8859-6 137. es_HN.UTF-8 UTF-8 253. ne_NP UTF-8
[More]

22. ar_KW.UTF-8 UTF-8 138. es_MX ISO-8859-1 254. nl_BE ISO-8859-1
23. ar_LB ISO-8859-6 139. es_MX.UTF-8 UTF-8 255. nl_BE.UTF-8 UTF-8
24. ar_LB.UTF-8 UTF-8 140. es_NI ISO-8859-1 256. nl_BE.UTF-8@euro UTF-8
25. ar_LY ISO-8859-6 141. es_NI.UTF-8 UTF-8 257. nl_BE@euro ISO-8859-15
26. ar_LY.UTF-8 UTF-8 142. es_PA ISO-8859-1 258. nl_NL ISO-8859-1
27. ar_MA ISO-8859-6 143. es_PA.UTF-8 UTF-8 259. nl_NL.UTF-8 UTF-8
28. ar_MA.UTF-8 UTF-8 144. es_PE ISO-8859-1 260. nl_NL.UTF-8@euro UTF-8
29. ar_OM ISO-8859-6 145. es_PE.UTF-8 UTF-8 261. nl_NL@euro ISO-8859-15
30. ar_OM.UTF-8 UTF-8 146. es_PR ISO-8859-1 262. nn_NO ISO-8859-1
31. ar_QA ISO-8859-6 147. es_PR.UTF-8 UTF-8 263. nn_NO.UTF-8 UTF-8
32. ar_QA.UTF-8 UTF-8 148. es_PY ISO-8859-1 264. no_NO ISO-8859-1
33. ar_SA ISO-8859-6 149. es_PY.UTF-8 UTF-8 265. no_NO.UTF-8 UTF-8
34. ar_SA.UTF-8 UTF-8 150. es_SV ISO-8859-1 266. oc_FR ISO-8859-1
35. ar_SD ISO-8859-6 151. es_SV.UTF-8 UTF-8 267. om_ET UTF-8
36. ar_SD.UTF-8 UTF-8 152. es_US ISO-8859-1 268. om_KE ISO-8859-1
37. ar_SY ISO-8859-6 153. es_US.UTF-8 UTF-8 269. pa_IN UTF-8
38. ar_SY.UTF-8 UTF-8 154. es_UY ISO-8859-1 270. pl_PL ISO-8859-2
39. ar_TN ISO-8859-6 155. es_UY.UTF-8 UTF-8 271. pl_PL.UTF-8 UTF-8
40. ar_TN.UTF-8 UTF-8 156. es_VE ISO-8859-1 272. pt_BR ISO-8859-1
41. ar_YE ISO-8859-6 157. es_VE.UTF-8 UTF-8 273. pt_BR.UTF-8 UTF-8
42. ar_YE.UTF-8 UTF-8 158. et_EE ISO-8859-1 274. pt_PT ISO-8859-1
43. az_AZ.UTF-8 UTF-8 159. et_EE.UTF-8 UTF-8 275. pt_PT.UTF-8 UTF-8
44. be_BY CP1251 160. eu_ES ISO-8859-1 276. pt_PT.UTF-8@euro UTF-8
45. be_BY.UTF-8 UTF-8 161. eu_ES.UTF-8 UTF-8 277. pt_PT@euro ISO-8859-15
46. bg_BG CP1251 162. eu_ES.UTF-8@euro UTF-8 278. ro_RO ISO-8859-2
47. bg_BG.UTF-8 UTF-8 163. eu_ES@euro ISO-8859-15 279. ro_RO.UTF-8 UTF-8
48. bn_BD UTF-8 164. eu_FR ISO-8859-1 280. ru_RU ISO-8859-5
49. bn_IN UTF-8 165. eu_FR.UTF-8 UTF-8 281. ru_RU.KOI8-R KOI8-R
50. br_FR ISO-8859-1 166. eu_FR@euro ISO-8859-15 282. ru_RU.UTF-8 UTF-8
51. br_FR@euro ISO-8859-15 167. fa_IR UTF-8 283. ru_UA KOI8-U
52. bs_BA ISO-8859-2 168. fi_FI ISO-8859-1 284. ru_UA.UTF-8 UTF-8
[More]

53. byn_ER UTF-8 169. fi_FI.UTF-8 UTF-8 285. se_NO UTF-8
54. ca_ES ISO-8859-1 170. fi_FI.UTF-8@euro UTF-8 286. sid_ET UTF-8
55. ca_ES.UTF-8 UTF-8 171. fi_FI@euro ISO-8859-15 287. sk_SK ISO-8859-2
56. ca_ES.UTF-8@euro UTF-8 172. fo_FO ISO-8859-1 288. sk_SK.UTF-8 UTF-8
57. ca_ES@euro ISO-8859-15 173. fo_FO.UTF-8 UTF-8 289. sl_SI ISO-8859-2
58. cs_CZ ISO-8859-2 174. fr_BE ISO-8859-1 290. sl_SI.UTF-8 UTF-8
59. cs_CZ.UTF-8 UTF-8 175. fr_BE.UTF-8 UTF-8 291. so_DJ ISO-8859-1
60. cy_GB ISO-8859-14 176. fr_BE.UTF-8@euro UTF-8 292. so_ET UTF-8
61. cy_GB.UTF-8 UTF-8 177. fr_BE@euro ISO-8859-15 293. so_KE ISO-8859-1
62. da_DK ISO-8859-1 178. fr_CA ISO-8859-1 294. so_SO ISO-8859-1
63. da_DK.ISO-8859-15 ISO-8859-15 179. fr_CA.UTF-8 UTF-8 295. sq_AL ISO-8859-1
64. da_DK.UTF-8 UTF-8 180. fr_CH ISO-8859-1 296. sq_AL.UTF-8 UTF-8
65. de_AT ISO-8859-1 181. fr_CH.UTF-8 UTF-8 297. sr_YU ISO-8859-2
66. de_AT.UTF-8 UTF-8 182. fr_FR ISO-8859-1 298. sr_YU.UTF-8 UTF-8
67. de_AT.UTF-8@euro UTF-8 183. fr_FR.UTF-8 UTF-8 299. sr_YU.UTF-8@cyrillic UTF-8
68. de_AT@euro ISO-8859-15 184. fr_FR.UTF-8@euro UTF-8 300. sr_YU@cyrillic ISO-8859-5
69. de_BE ISO-8859-1 185. fr_FR@euro ISO-8859-15 301. st_ZA ISO-8859-1
70. de_BE.UTF-8 UTF-8 186. fr_LU ISO-8859-1 302. st_ZA.UTF-8 UTF-8
71. de_BE.UTF-8@euro UTF-8 187. fr_LU.UTF-8 UTF-8 303. sv_FI ISO-8859-1
72. de_BE@euro ISO-8859-15 188. fr_LU.UTF-8@euro UTF-8 304. sv_FI.UTF-8 UTF-8
73. de_CH ISO-8859-1 189. fr_LU@euro ISO-8859-15 305. sv_FI.UTF-8@euro UTF-8
74. de_CH.UTF-8 UTF-8 190. ga_IE ISO-8859-1 306. sv_FI@euro ISO-8859-15
75. de_DE ISO-8859-1 191. ga_IE.UTF-8 UTF-8 307. sv_SE ISO-8859-1
76. de_DE.UTF-8 UTF-8 192. ga_IE.UTF-8@euro UTF-8 308. sv_SE.ISO-8859-15 ISO-8859-15
77. de_DE.UTF-8@euro UTF-8 193. ga_IE@euro ISO-8859-15 309. sv_SE.UTF-8 UTF-8
78. de_DE@euro ISO-8859-15 194. gd_GB ISO-8859-15 310. ta_IN UTF-8
79. de_LU ISO-8859-1 195. gez_ER UTF-8 311. te_IN UTF-8
80. de_LU.UTF-8 UTF-8 196. gez_ER@abegede UTF-8 312. tg_TJ KOI8-T
81. de_LU.UTF-8@euro UTF-8 197. gez_ET UTF-8 313. th_TH TIS-620
82. de_LU@euro ISO-8859-15 198. gez_ET@abegede UTF-8 314. th_TH.UTF-8 UTF-8
83. el_GR ISO-8859-7 199. gl_ES ISO-8859-1 315. ti_ER UTF-8
[More]

84. el_GR.UTF-8 UTF-8 200. gl_ES.UTF-8 UTF-8 316. ti_ET UTF-8
85. en_AU ISO-8859-1 201. gl_ES.UTF-8@euro UTF-8 317. tig_ER UTF-8
86. en_AU.UTF-8 UTF-8 202. gl_ES@euro ISO-8859-15 318. tl_PH ISO-8859-1
87. en_BW ISO-8859-1 203. gu_IN UTF-8 319. tr_TR ISO-8859-9
88. en_BW.UTF-8 UTF-8 204. gv_GB ISO-8859-1 320. tr_TR.UTF-8 UTF-8
89. en_CA ISO-8859-1 205. gv_GB.UTF-8 UTF-8 321. tt_RU.UTF-8 UTF-8
90. en_CA.UTF-8 UTF-8 206. he_IL ISO-8859-8 322. uk_UA KOI8-U
91. en_DK ISO-8859-1 207. he_IL.UTF-8 UTF-8 323. uk_UA.UTF-8 UTF-8
92. en_DK.UTF-8 UTF-8 208. hi_IN UTF-8 324. ur_PK UTF-8
93. en_GB ISO-8859-1 209. hr_HR ISO-8859-2 325. uz_UZ ISO-8859-1
94. en_GB.ISO-8859-15 ISO-8859-15 210. hr_HR.UTF-8 UTF-8 326. uz_UZ@cyrillic UTF-8
95. en_GB.UTF-8 UTF-8 211. hu_HU ISO-8859-2 327. vi_VN UTF-8
96. en_HK ISO-8859-1 212. hu_HU.UTF-8 UTF-8 328. vi_VN.TCVN TCVN5712-1
97. en_HK.UTF-8 UTF-8 213. id_ID ISO-8859-1 329. wa_BE ISO-8859-1
98. en_IE ISO-8859-1 214. id_ID.UTF-8 UTF-8 330. wa_BE.UTF-8 UTF-8
99. en_IE.UTF-8 UTF-8 215. is_IS ISO-8859-1 331. wa_BE@euro ISO-8859-15
100. en_IE.UTF-8@euro UTF-8 216. is_IS.UTF-8 UTF-8 332. xh_ZA ISO-8859-1
101. en_IE@euro ISO-8859-15 217. it_CH ISO-8859-1 333. xh_ZA.UTF-8 UTF-8
102. en_IN UTF-8 218. it_CH.UTF-8 UTF-8 334. yi_US CP1255
103. en_NZ ISO-8859-1 219. it_IT ISO-8859-1 335. zh_CN GB2312
104. en_NZ.UTF-8 UTF-8 220. it_IT.UTF-8 UTF-8 336. zh_CN.GB18030 GB18030
105. en_PH ISO-8859-1 221. it_IT.UTF-8@euro UTF-8 337. zh_CN.GBK GBK
106. en_PH.UTF-8 UTF-8 222. it_IT@euro ISO-8859-15 338. zh_CN.UTF-8 UTF-8
107. en_SG ISO-8859-1 223. iw_IL ISO-8859-8 339. zh_HK BIG5-HKSCS
108. en_SG.UTF-8 UTF-8 224. iw_IL.UTF-8 UTF-8 340. zh_HK.UTF-8 UTF-8
109. en_US ISO-8859-1 225. ja_JP.EUC-JP EUC-JP 341. zh_SG GB2312
110. en_US.ISO-8859-15 ISO-8859-15 226. ja_JP.UTF-8 UTF-8 342. zh_SG.GBK GBK
111. en_US.UTF-8 UTF-8 227. ka_GE GEORGIAN-PS 343. zh_TW BIG5
112. en_ZA ISO-8859-1 228. kl_GL ISO-8859-1 344. zh_TW.EUC-TW EUC-TW
113. en_ZA.UTF-8 UTF-8 229. kl_GL.UTF-8 UTF-8 345. zh_TW.UTF-8 UTF-8
114. en_ZW ISO-8859-1 230. kn_IN UTF-8 346. zu_ZA ISO-8859-1
[More]

115. en_ZW.UTF-8 UTF-8 231. ko_KR.EUC-KR EUC-KR 347. zu_ZA.UTF-8 UTF-8
116. es_AR ISO-8859-1 232. ko_KR.UTF-8 UTF-8

(Enter the items you want to select, separated by spaces.)

Select locales to be generated.
hardy
帖子: 19
注册时间: 2005-04-04 18:04

#12

帖子 hardy » 2005-04-08 18:26

我输入 338 指中文吧
后来叫你选择 set a default locale

1.none 2 zh_cn.utf-8

我选2了,是不是这样的
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#13

帖子 oneleaf » 2005-04-08 18:33

前面也需要勾选zh_CN.UTF-8,后面也要下拉框选择zh_CN.UTF-8.
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
hardy
帖子: 19
注册时间: 2005-04-04 18:04

#14

帖子 hardy » 2005-04-08 18:37

算了不搞了,烦死了
现在变成这样了

hardy@ubuntu:~$ sudo dpkg-reconfigure locals
系统没有安装软件包“locals”,因而没有相关的信息。
使用 dpkg --info (= dpkg-deb --info) 来检测打包好的文件,
还可以用过 dpkg --contents (= dpkg-deb --contents) 来列出它们的内容。
/usr/sbin/dpkg-reconfigure: locals 未安装
hardy@ubuntu:~$

用bmp算了,虽然歌名也乱码,但还能看的懂

麻烦你了,谢谢
:D
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#15

帖子 oneleaf » 2005-04-08 18:44

晕,你输入错了!

$sudo dpkg-reconfigure locales

这个搞定后,以后就没有中文问题了。
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
回复