[PC-BSD Testing] Installer problem with Japanese user

Yamashiro, Jun yamajun at ofug.net
Sun Sep 9 05:44:23 PDT 2007


On Sun, 02 Sep 2007 16:24:35 -0700
Kris Moore <kris at pcbsd.com> wrote:
> Thanks for the heads up! I'm working on adding the vlgothic fonts now, I
>  should have them done for Wednesdays ISO, since Monday is a holiday
> here. I've also added "jp106" as the keyboard model now when you select
> that layout in the installer.
> 
> I may also be able to come up with a fix for the KDM theme this week,
> I'll take a look into this :)

Thanks for fix.  I tested Sept. 7th snapshot.  Display Japanese text is nice.
But, configuration for Japanese keyboard don't work.  I made two patches for
shell script at pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts.

usage of this patch:
% cd /path/to/pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts
% patch -p0 < /path/to/this_mail
(install to installer CD)


First patch(1 of 2): setxkbmap(1) execute collectly with Japanese keymap.
Current version of PCBSD.SetKeyboard.sh run "setxkbmap -model jp106 -layout ja".
But, this command returned with error.  Collectly, "setxkbmap -model jp106 -layout jp".

--- PCBSD.SetKeyboard.sh.orig	Sun Sep  9 14:33:37 2007
+++ PCBSD.SetKeyboard.sh	Sun Sep  9 15:38:56 2007
@@ -1,9 +1,10 @@
 #!/bin/sh
 
+layout=$1
 case ${1} in
    br) map="abnt2" ;; # Brazilian
-   ja) map="jp106" ;; # Japanese
+   ja) map="jp106" ; layout="jp" ;; # Japanese
     *) map="pc104" ;;
 esac
 
-setxkbmap -model $map -layout $1 
+setxkbmap -model $map -layout $layout


Second patch(2 of 2): Fix keymap in /etc/rc.conf
In current version, console keymap set to "${KEYLAYOUT}.iso"
(ex: us -> us.iso).  But,  Japanese keymap name "jp.106" don't use
".iso" prefix.  And some keymaps named {LANGUAGE_NAME_IN_ENGLISH}.iso.
I changed PCBSD.Localize.sh for these keymaps.

--- PCBSD.Localize.sh.orig	Sun Sep  9 16:00:11 2007
+++ PCBSD.Localize.sh	Sun Sep  9 18:10:47 2007
@@ -218,7 +218,25 @@
 done
 
 # Set the keylayout in rc.conf
-echo "keymap=\"${KEYLAYOUT}.iso\"" >>/mnt/etc/rc.conf
+case ${KEYLAYOUT} in
+   am) KEYLAYOUT_CONSOLE="hy.armscii-8" ;;
+   cz) KEYLAYOUT_CONSOLE="cz.iso2" ;;
+   de) KEYLAYOUT_CONSOLE="german.iso" ;;
+   dk) KEYLAYOUT_CONSOLE="danish.iso" ;;
+   ee) KEYLAYOUT_CONSOLE="estonian.iso" ;;
+   es) KEYLAYOUT_CONSOLE="spanish.iso" ;;
+   fi) KEYLAYOUT_CONSOLE="finnish.iso" ;;
+   is) KEYLAYOUT_CONSOLE="icelandic.iso" ;;
+   jp) KEYLAYOUT_CONSOLE="jp.106" ;;
+   nl) KEYLAYOUT_CONSOLE="dutch.iso.acc" ;;
+   no) KEYLAYOUT_CONSOLE="norwegian.iso" ;;
+   pl) KEYLAYOUT_CONSOLE="pl_PL.ISO8859-2" ;;
+   sk) KEYLAYOUT_CONSOLE="sk.iso2" ;;
+   se) KEYLAYOUT_CONSOLE="swedish.iso" ;;
+   tr) KEYLAYOUT_CONSOLE="tr.iso9.q" ;;
+   *)  KEYLAYOUT_CONSOLE="${KEYLAYOUT}.iso" ;;
+esac
+echo "keymap=\"${KEYLAYOUT_CONSOLE}.iso\"" >>/mnt/etc/rc.conf
 
 
 # Setup LANG for PBM


regards,
-- 
Yamashiro, Jun			Email: yamajun at ofug.net
Okinawa FreeBSD Users Group
	-- This message will *not* self-destruct in five seconds.



More information about the Testing mailing list