| View previous topic :: View next topic |
| Author |
Message |
PsykLaw

Joined: 28 Jan 2007 Location: earth
|
Posted: Sat Aug 16, 2008 11:37 pm Post subject: Linux and Hangeul |
|
|
| For those of you who are or have used linux; how does one go about typing in Hangeul? I have been scouring the web to no avail. This is a long shot but I thought maybe someone here could help on this issue. Much thanks. |
|
| Back to top |
|
 |
JustJohn

Joined: 18 Oct 2007 Location: Your computer screen
|
Posted: Sun Aug 17, 2008 12:00 am Post subject: |
|
|
I forget the name of it but there is a program that will add all the asian languages. The gnome version is fine but the kde version was still glitchy the last time I tried it.
If you do a forum search I think there is a thread in here somewhere about it. |
|
| Back to top |
|
 |
PsykLaw

Joined: 28 Jan 2007 Location: earth
|
Posted: Sun Aug 17, 2008 1:04 am Post subject: |
|
|
Ok, this seems to have done the trick. On a previous install of Mint this did not work but it did this time. I figure I should post it so others can follow. Results may vary. Consult a physician prior to engaging in this activity:
http://ubuntuforums.org/showthread.php?p=157209 |
|
| Back to top |
|
 |
Demophobe

Joined: 17 May 2004
|
Posted: Sun Aug 17, 2008 2:06 am Post subject: |
|
|
| Code: |
Korean language support
Seeing Korean characters
Standard XFree86/Xorg comes with 3 Daewoo fonts for Korean characters:
* hanglm16.pcf.gz (-daewoo-mincho-medium-r-normal--16-120-100-100-c-160-ksc5601.1987-0)
* hanglm24.pcf.gz (-daewoo-mincho-medium-r-normal--24-170-100-100-c-240-ksc5601.1987-0)
* hanglg16.pcf.gz (-daewoo-gothic-medium-r-normal--16-120-100-100-c-160-ksc5601.1987-0)
Although application like Hanterm uses them, Firefox, Thunderbird, Mozilla, and other GTK+ applications uses TTF and /etc/fonts/fonts.conf instead. So, here is what you need to do to see Korean characters.
1.
Download and extract Cyberbit.ttf which is all-in-one package, consisting of Cyberbase (European) and CyberCJK (Chinese, Japanese, Korean) fonts. In addition, you can download Un Fonts which is TTF fonts converted from HLaTeX fonts.
2. Install the fonts to /usr/local/fonts/TTF:
cp Cyberbit.ttf /usr/local/fonts/TTF
cd /usr/local/fonts/
mkfontscale */ # generates 'fonts.scale'
mkfontdir */ # generates 'fonts.dir'
fc-cache
Then, put
<dir>/usr/local/fonts</dir>
in /etc/fonts/local.conf, so that the fonts are picked up by the applications.
Typing Korean characters
In addition to seeing Korean chars, you may want to type English/Korean chars as well. On stock Slackware-9.1,
GTK_IM_MODULE=hangul
will allow you to type Korean chars, but only Korean. Applications (Firefox, Thunderbird) will not accept English letters. You need
GTK_IM_MODULE=hangul2
Since 'hangul2' is not found in /etc/gtk-2.0/gtk.immodules in Slackware-9.1, you need to download imhangul package, and compile/install as usual. For post-install script (./install/doinst.sh in Slackware package), you can use
IM_HANGUL_GTK_IMMODULE_FILE=/etc/gtk-2.0/gtk.immodules
DIR=/etc/gtk-2.0
test -d $DIR || mkdir -p $DIR
gtk-query-immodules-2.0 > $IM_HANGUL_GTK_IMMODULE_FILE
Just like Hanterm, <Shift-Space> will toggle English/Korean mode, and <F9> will enable Hanja mode. |
| Code: |
Apparently Slackware 9.1 comes with a pre-prepared folder for TTF fonts (found at /usr/X11/lib/fonts/TTF).
In addition, all filenames need to be lower case. Use this Perl one-liner to do just that.
find . | perl -ne 'chomp; next unless -e; $new=lc($_); rename $_,$new'
You will then need to generate the fonts.dir and fonts.scale files as well as the encodings using the mkfontscale and mkfontdir utilities which come with XFree86 4.3 (The X-Server in Slackware 9.0). Type the following in the directory in which you have placed your fonts...
/usr/X11R6/bin/mkfontscale /usr/local/share/fonts/ttfonts/
/usr/X11R6/bin/mkfontdir /usr/local/share/fonts/ttfonts/
/usr/X11R6/bin/mkfontdir -e /usr/X11R6/lib/X11/fonts/encodings
The X server supplied with Slackware has a font server capable of displaying TrueType fonts built in, we just need to let it know where the directory containing the fonts is. Open /etc/X11/XF86Config and add FontPath "/usr/local/share/fonts/ttfonts" (or whatever your font path is,) to the top of the list of FontPaths. Whilst you are editing the file, make sure that the line Load "freetype" (In the "Module" section) is uncommented.
You also need to edit the file /etc/fonts/fonts.conf. Add <dir>/usr/local/share/fonts/ttfonts/</dir> (or whatever the path to your font directory is) in amongst the other paths to font directories.
Although editing the file fonts.conf works in Slackware 9.1 it is warned against - instead try editing /etc/fonts/local.conf, this may not be necessary if you use the existing TTF fonts directory metioned above in Slackware 9.1 |
| Code: |
Adding TrueType fonts
A modern Linux distribution comes with not one but two font-handling systems: the one built into X, which serves fonts to Xlib, Motif and GTK1 apps; and fontconfig, which serves fonts to GTK2 and QT apps.
New fonts need to be added to both.
You probably have a collection of TrueType fonts already. If not, then at least install Microsoft's Core Fonts for the Web (which you can usually find on linuxpackages.net), and a Unicode font such as Bitstream Cyberbit, because you need them to properly display webpages.
Put all the .ttf files in �/usr/local/share/fonts�.
Now...
cd /usr/local/share/fonts
su -c '/usr/X11R6/bin/mkfontdir .'
su -c '/usr/X11R6/bin/mkfontscale .'
This should create fonts.dir and fonts.scale files with entries for each one of the fonts in �/usr/local/share/fonts�.
Now copy �/etc/fonts/fonts.conf� to �/etc/fonts/local.conf�. Edit local.conf and delete everything between the <fontconfig> and </fontconfig> tags. Between those two tags write one line:
<dir>/usr/local/share/fonts</dir>
Execute �su -c '/usr/X11R6/bin/fc-cache -f -v'�.
Now open �/etc/X11/xorg.conf�. Locate the fontpath lines and add one for �/usr/local/share/fonts/�.
Restart X. You will see your new fonts listed in the outpout of both xlsfonts (or xfontsel) and fc-list, which respectively lists the fonts available to X and Fontconfig. |
In the last one, I don't know why, but the quotation marks came out as blocks. So, the green rectangles are quotation marks. |
|
| Back to top |
|
 |
JustJohn

Joined: 18 Oct 2007 Location: Your computer screen
|
Posted: Sun Aug 17, 2008 3:29 am Post subject: |
|
|
All asian fonts are displayed automatically in every distro I've tried. It's the typing them that you need the extra plugin for.
And yeah, it's called scim. The kde version is skim, as I recall. |
|
| Back to top |
|
 |
rocklee
Joined: 04 Oct 2005 Location: Seoul
|
Posted: Mon Aug 18, 2008 1:31 pm Post subject: |
|
|
JustJohn, hows linux going for you? any more videos?  |
|
| Back to top |
|
 |
JustJohn

Joined: 18 Oct 2007 Location: Your computer screen
|
Posted: Mon Aug 18, 2008 7:27 pm Post subject: |
|
|
Well I was using windows for a while because I had some torrents set in windows that were really slow. I'm back to mostly linux again though, and it feels even slicker after using XP for a while.
No more videos though. I don't have any reasons to make one that I can think of. |
|
| Back to top |
|
 |
rocklee
Joined: 04 Oct 2005 Location: Seoul
|
Posted: Mon Aug 18, 2008 11:15 pm Post subject: |
|
|
I've been using Ktorrent which was running faster than utorrent in Vista.
I've noticed they've changed a few things in Heron over Gutsy which was why wireless didn't quite work out of the box. Had to install nvidia-envy to get compiz to work, 1920x1200 looks quite spectacular now. |
|
| Back to top |
|
 |
JustJohn

Joined: 18 Oct 2007 Location: Your computer screen
|
Posted: Mon Aug 18, 2008 11:20 pm Post subject: |
|
|
Compiz and everything works straight out of the install for me in Mandriva.
I've been running a client called transmission which is very lightweight like utorrent. It might not be quite as tweakable, I haven't delved very deep with it, but it has a nice interface and is light and speedy. Never thought I would be able to say I don't miss utorrent, but I haven't been missing it just yet. |
|
| Back to top |
|
 |
rocklee
Joined: 04 Oct 2005 Location: Seoul
|
Posted: Tue Aug 19, 2008 3:42 am Post subject: |
|
|
Yeah transmission comes with ubuntu though for some reason I wasn't getting much speed. Ktorrent would stall sometimes as well. I think some torrent software are more sensitive to network connectivity than others.
BTW, is it possible to change the language on the menus without rebooting? ah...maybe wrong forum. |
|
| Back to top |
|
 |
|