LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs > ted_chou12
User Name
Password

Notices

Rate this Entry

notes from playing around

Posted 08-30-2012 at 09:18 AM by ted_chou12
Updated 08-30-2012 at 01:21 PM by ted_chou12

After playing around with some configurations, pcmanfm sorting files can be edited at .~/config/pcmanfm-mod/main
Code:
[General]
terminal=roxterm

[Window]
width=640
height=480
splitter_pos=160
maximized=0

[Desktop]
show_desktop=1
show_wallpaper=1
wallpaper=/mnt/main/vectordb/hyoka-you-can_t-escape-anime.jpg
wallpaper_mode=2
sort_by=0 # 0 by name , 1 by size, 2 by type and 3 by mod time.
bg1=56315,49557,35413
bg2=10732,46909,46400
text=635,11588,17453
shadow=65535,65535,65535

[Interface]
In leafpad, you can open file as utf8 or big5. with the option tag --codeset=big5 for example. But leafpad does not force open the file. That is opening a multiple lang file with big5 will still be readable, I believe that it opens as utf8 for these files. But for a pure chinese file, it follows the codeset preference.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For icewm to display chinese in the menu correctly, I finally got a way to do it:
/etc/fonts/local.conf
Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file to configure system font access -->
<fontconfig>
	<match target="font">
		<edit name="embeddedbitmap" mode="assign">
			<bool>false</bool>
		</edit>
		<edit name="autohint" mode="assign">
			<bool>true</bool>
		</edit>
		<edit name="antialias" mode="assign">
			<bool>true</bool>
		</edit>
		<edit name="hintstyle" mode="assign">
			<const>hintnone</const>
		</edit>
	</match>

	<match target="font">
		<test name="lang" compare="contains">
			<string>zh</string>
		</test>
		<test name="spacing" compare="eq">
			<const>dual</const>
		</test>
		<edit name="spacing">
			<const>proportional</const>
		</edit>
		<edit name="globaladvance" binding="strong">
			<bool>false</bool>
		</edit>
	</match>

	<match target="font">
		<test name="lang" compare="contains">
			<string>zh</string>
		</test>
		<test name="outline" compare="eq">
			<bool>false</bool>
		</test>
		<test name="spacing" compare="eq">
			<const>mono</const>
			<const>charcell</const>
		</test>
		<edit name="spacing">
			<const>proportional</const>
		</edit>
		<edit name="globaladvance" binding="strong">
			<bool>false</bool>
		</edit>
	</match>

	<match target="pattern">
		<test qual="any" name="family">
			<string>sans-serif</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>Microsoft JhengHei</string>
			<string>Malgun Gothic</string>
		</edit>
	</match> 
	<match target="pattern">
		<test qual="any" name="family">
			<string>serif</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>Microsoft JhengHei</string>
			<string>Malgun Gothic</string>
		</edit>
	</match> 
	<match target="pattern">
		<test qual="any" name="family">
			<string>monospace</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>Microsoft JhengHei</string>
			<string>Malgun Gothic</string>
		</edit>
	</match> 
</fontconfig>
Make sure that the fonts specificed in the file is available, ie Microsoft JenHei and Malgun Gothic.
Ted
Posted in Uncategorized
Views 350 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:54 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration