How to set input language, font sizes?

Using applications, configuring, problems
Post Reply
Message
Author
vhshare
Posts: 9
Joined: Thu 21 Jun 2007, 06:32

How to set input language, font sizes?

#1 Post by vhshare »

Hi
I have 2 questions !
1. In Puppy Linux, how to set a input method to default ? I am using Leafpad and press right key mouse -> Input Method -> Vietnamese Input Method (Unikey) to type Vietnamese.But the default is Vietnamese(VIQR).How to set Vietnames Input Method to default ?
2.I have installed some programs like Firefox, OpenOffice from PUP Package but the font size in these programs is too small.In other programs, the font size is still normal.How to increase the font size in these programs ?
Thank a lot !
vanchutr
Posts: 438
Joined: Sat 05 Aug 2006, 12:04

#2 Post by vanchutr »

I'd used the Unikey for typing Vietnamese. What driver had you used? If you had installed the drver Unikey you will easily chage the input method.
(You won't to change in Leafpad).
Right click on desktop - Choose Desktop - Then Choose Set Global font Size - (A temporary solution)
Attachments
image.gif
(52.26 KiB) Downloaded 1477 times
vhshare
Posts: 9
Joined: Thu 21 Jun 2007, 06:32

Can you help me ?

#3 Post by vhshare »

Hi vanchutr !
I have installed X-Unikey from X-Unikey.pup so I don't know how to change Unikey to default.In firefox , I can not type Vietnamese because when I press right key mouse, it don't have options to change like Leafpad.So can you show me the way to install X-Unikey from source ? I am a Linux newbie.Thank you very much ! I'm looking forward to hearing from you !
vanchutr
Posts: 438
Joined: Sat 05 Aug 2006, 12:04

#4 Post by vanchutr »

X-Unikey.pup won't work correctly.
I don't talk about install X-Unikey from source. I suggest these ideas

First you can modify the /etc/gktk2.0/immodules like this

Code: Select all

"/usr/lib/gtk-2.0/2.4.0/immodules/im-vn.so" 
"unikey" "1. Vietnamese Input Method (UniKey)" "gtk20" "/usr/share/locale" "vi" 
Second in /etc/profile you must have the follwing:

Code: Select all

export LANG=vi_VN.UTF-8
export GTK_IM_MODULE="xim"
export XMODIFIERS="@im=unikey"
Third: In /root/.xinitrc please add these lines:

Code: Select all

# Bo go UNIKEY
export XMODIFIERS="@im=unikey"
export GTK_IM_MODULE=unikey
unikey -xim ukxim
Fourth. Now you find in /usr/lib/locale the existence of the directory (locale def) vi_VN, vi_VN.UTF-8. If you can't see these file. Your system will not work with vietnamese encoding. You must download or copy these files somewhere on internet or from distro Hacao.

Fifth. You put two bin files ukxim and unikey in /usr/local/bin to run unikey

Sixth. In /root you create /root/.unikey/otions (a configuration file) like that:

Code: Select all

# Unikey XIM config file

# AutoSave: Yes|No
# If AutoSave=Yes, unikey will save options on exit
# Be careful when editing this file while unikey is running with AutoSave enabled
#   Upon exit unikey will overwrite your settings. To avoid that, tell unikey
#   to reload config file when you finish editing. See unikey manual
# AutoSave is useful if you want unikey to remember its window position
AutoSave = Yes

# Initial state: On|Off
InitState = ON

# Input: TELEX|VNI|VIQR|USER
# Input method. If you specify input=USER, you must also specify UsrKeyMapFile
Input = VNI

# Output charsets: UNICODE|TCVN|VNI|VIQR
Charset = UNICODE

# FreeStyle: Yes|No
#  "Yes" means you can type hook, breve marks anywhere after the base character
#  not necessarily right after the base.
#  VNI users should set to Yes. TELEX users: your choice
# Default: Yes
FreeStyle = Yes

# ModernStyle: Yes|No
# "Yes" means "hoa', khoe?" style, "No" means "ho'a, kho?e" style
ModernStyle = No

# XvnkbSync: Yes|No
# Set to "Yes" to synchronize unikey-gtk with xvnkb GUI
# This applies only to unikey-gtk module, not XIM server (ukxim)
# To synchronize ukxim with xvnkb GUI, see doc/manual
XvnkbSync = No

# Bell: Yes|No
# Turn on/off bell notification when key shortcuts are pressed
Bell = Yes

# CommitMethod: Send|Forward|Mixed. Default: Send
#   Use XSendEvent or XIM forward key event to commit string
# Both methods will work with most applications.
# Some application with high-level security may
#   block XSendEvent, so CommitMethod must be set to "Forward"
# Some versions of xterm are known to work only if CommitMethod=Send
#   see doc/manual for information on xterm
# I recommend "Send" first. If it does not work, try "Forward"
CommitMethod = Send

# XimFlow = Static|Dynamic. Default: Static
# You should always use Static. If something does not work,
#   then try Dynamic. Rxvt-unicode is known to work only with Dynamic mode.
# Before changing this option, make sure unikey is not loaded in memory.
# See manual, section unload/restart unikey.
XimFlow = Static

# Macrofile: path to macro file. Default: empty, macro is disabled
# To enable macro, specify the path to your macro file.
# For example: MacroFile = ~/ukmacro
#MacroFile = 

# XimLocales = List of locales separated by commas.
# Default: C,en_US,vi_VN,fr_FR,fr_BE,fr_CA,de_DE,ja_JP,cs_CZ,ru_RU
# Theses are locales that XIM Server must advertise to applications
# If your application runs in certain locale, make sure that locale is listed here.
# Before changing this option, make sure unikey is not loaded in memory.
# See manual, section unload/restart unikey.
XimLocales = C,en_US,vi_VN,fr_FR,fr_BE,fr_CA,de_DE,ja_JP,cs_CZ,ru_RU

# GtkImAlone: Yes|No. Default: No
# Set this to Yes if you want GTK unikey module enabled
# even when unikey GUI is not running
GtkImAlone = No

# PosX: X Position of unikey window
# set a minus value to let unikey use the default position
PosX = 908

# PosY: Y Position of unikey window
# set a minus value to let unikey use the default position
PosY = 698

# StrictSpell: Yes|No.
# Enable strict spell-checking. Default: Yes
StrictSpell = Yes

# UsrKeyMapFile: path to user-defined input method file. Default: empty.
# To enable user-define input method, specify the path here
# For example: UsrKeyMapFile = ~/.unikey/my-telex
#UsrKeyMapFile = 

Seventh. You must install a unicode font (eg. Deja Vu font) (May be this font was already installed in your puppy)

Final. Run the local sript to choose local vi_VN.UTF-8 (Desktop -> Chooselocalcountery ...)

Now reboot your system - From rxvt console run #locale. If you can see the UNIKEY ICON (in lower right corner of desktop) and this
[code]
LANG=vi_VN.UTF-8
LC_CTYPE="vi_VN.UTF-8"
LC_NUMERIC="vi_VN.UTF-8"
LC_TIME="vi_VN.UTF-8"
LC_COLLATE="vi_VN.UTF-8"
LC_MONETARY="vi_VN.UTF-8"
LC_MESSAGES="vi_VN.UTF-8"
LC_PAPER="vi_VN.UTF-8"
LC_NAME="vi_VN.UTF-8"
LC_ADDRESS="vi_VN.UTF-8"
LC_TELEPHONE="vi_VN.UTF-8"
LC_MEASUREMENT="vi_VN.UTF-8"
LC_IDENTIFICATION="vi_VN.UTF-8"
LC_ALL=
That is good, now you can try unikey in Abiword, leafpad, geany, Open Office ...
Good luck[/code]

Nếu bạn là ngư
Post Reply