slitaz の日本語化とmozcでの書き込み
Posted: 18/11/04(日) 16:13
ネットの情報だとslitazで日本語入力するには、scim、scim-devをインストールした後 scim-anthyをビルドすればできるようです
ビルドに必要な依存関係のあるパッケージが多い それはできあがれば不要であり削除が大変です
簡単にできないかと puppyのパッケージを利用してみたら 日本語入力ができました
その記録です
slitazをUSBブート
使用したiso: slitaz-rolling-core.iso 2018-Oct-2801:09:27 48.6M
puppylinuxを使うとisoファイルをマウントして中身が表示されるので
それをUSBメモリーにコピー
ブートローダーはgrub4dos
title SlitazL inux (sdb1/boot)
uuid F94C-E65C
kernel /boot/bzImage root=/dev/nullro home= F94C-E65C
initrd /boot/rootfs.gz
home= F94C-E65Cを追記することで Homeフォルダーがファイルマネージャーに表示される
日本語入力に必要なファイル
lang_pack_ja-2.1.sfs (http://shinobar.server-on.net/puppy/opt/)を
クイックして「中身を見る」で中身を表示して新規ファルダーにコピー
etcフォルダーとusrフォルダー を残し 他は削除
etcフォルダーの中
scimフォルダーとanthy-conf を残し 他は削除
usrフォルダー
binフォルダー
anthy-agent
kasumi
scim-config-agent
scim-make-table
anthy-dic-tool
scim
scim-im-agent
scim-setup
anthy-morphological-analyzer
scim-bridge
scim-input-pad
scim-setup を開いて
3行目 〜60行目削除
#!/bin/sh
# Smart Common Input Method
#
# Copyright (c) 2002-2004 James Su <suzhe@tsinghua.org.cn>
#
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
# $Id: scim-setup.in,v 1.1 2005/01/03 03:41:06 suzhe Exp $
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
localedir=${prefix}/share/locale
datadir=${prefix}/share
sysconfdir=/etc
${exec_prefix}/lib/scim-1.0/scim-helper-launcher setup 8034d025-bdfc-4a10-86a4-82b9461b32b0 $*
libフォルダー
gconvフォルダー gtk-2.0フォルダー scim-1.0フォルダー
libanthydic.so.0.1.0 libscim-gtkutils-1.0.so.8
libanthyinput.so libscim-gtkutils-1.0.so.8.2.3
libanthy.so libanthyinput.so.0 libscim-x11utils-1.0.so.8
libanthy.so.0 libanthyinput.so.0.0.0 libscim-x11utils-1.0.so.8.2.3
libanthy.so.0.1.0 libgio-2.0.so.0.1800.3 libscim-1.0.so.8
libanthydic.so libanthydic.so.0 libscim-1.0.so.8.2.3
を残し 他は削除
shareフォルダー
anthyフォルダー applicationsフォルダー fontsフォルダー localeフォルダー pixmapsフォルダー scimフォルダー を残し 他は削除
applicationsフォルダーの中
kasumi.desktop scim-setup.desktop
fontsフォルダー
TTFフォルダーを作成しその中に
VL-Gothic-Regular.ttf (好みのフォント)を入れる
localeフォルダー
locale/ja/LC_MESSAGES フォルダー
kasumi.mo
scim-input-pad.mo
scim-tables.mo
scim-anthy.mo
scim-setup.mo
scim.mo
pixmapsフォルダー
kasumi.png
scim-setup.png
mozcを使うなら
mozc_tazpup_5.0.sfs (http://dambo.mydns.jp/uploader/file/Pp17164.tar.html pass:slink)を
クイックして「中身を見る」で中身を表示して新規ファルダーにコピー
/usrフォルダーを使う
slitaz のシステムに上書きコピー
slitazのデスクトップのメニュー項目が一部英語なので slitazの/usr/share/desktop-directories をコピーし
**.directory にName[ja]=** 追加
/etc/keymap.conf を下記に変更
jp106
/etc/locale.conf を下記に変更
LANG=ja_JP.UTF-8
LC_ALL=ja_JP.UTF-8
/etc/TZ を下記に変更
Asia/Tokyo
/home/tux/.profile に下記を追記
exportXMODIFIERS=@im=SCIM
exportXIM="scim"
exportXINPUT="xim"
exportXIM_PROGRAM="scim-d"
exportGTK_IM_MODULE=scim
exportQT_IM_MODULE=scim
scim-d&
killall-HUPscim-panel-gtk
端末 sakuraで
sudo gtk-query-immodules-2.0 --update-cache
sudo tazpkg -gi glibc-locale
locale-jaのインストール
Applications > Settings > Manage locale packages
システムを日本語化
Applications > Settings > System language
xを再起動 すると設定が反映されアプリのUIが日本語で表示され 日本語入力もできます
それを次回にも有効にするため tazusb writefs lzma コマンドで保存ファイルを作ります
日本語化パッケージ rootfs.gzを作成
端末 sakuraで
tux@slitaz:~$ sudo tazusb writefs lzma
Password: root
ファイルシステムの書き込み
================================================================================
writefs コマンドは、現在あるすべてのファイルシステムを、起動可能な LiveUSB メディアで使用可能な適切な cpio アーカイブ (%s) に書き込みます。
アーカイブ圧縮: lzma
サウンドカードと画面構成を削除しますか?
ENTER で維持または回答 (No|yes|exit): 現在のサウンドカードと画面構成を[ 完了 ]..
言語・キーボード設定を削除しますか?
ENTER で維持または回答 (No|yes|exit): 現在の言語・キーボード設定を維持[ 完了 ]
lzma 圧縮で rootfs.gz を生成中...rootfs.gz をメディアに移動してください。 遅延書き込みをアンマウントすることを忘れないでください! rootfs.gz は /home/boot にあります
================================================================================
Root ファイルシステムサイズ: 75.8M
--------------------------------------------------------------------------------
ENTER で続けます...tux@slitaz:~$
ENTER で維持または回答 とか ENTER で続けます... とか翻訳がおかしい
ビルドに必要な依存関係のあるパッケージが多い それはできあがれば不要であり削除が大変です
簡単にできないかと puppyのパッケージを利用してみたら 日本語入力ができました
その記録です
slitazをUSBブート
使用したiso: slitaz-rolling-core.iso 2018-Oct-2801:09:27 48.6M
puppylinuxを使うとisoファイルをマウントして中身が表示されるので
それをUSBメモリーにコピー
ブートローダーはgrub4dos
title SlitazL inux (sdb1/boot)
uuid F94C-E65C
kernel /boot/bzImage root=/dev/nullro home= F94C-E65C
initrd /boot/rootfs.gz
home= F94C-E65Cを追記することで Homeフォルダーがファイルマネージャーに表示される
日本語入力に必要なファイル
lang_pack_ja-2.1.sfs (http://shinobar.server-on.net/puppy/opt/)を
クイックして「中身を見る」で中身を表示して新規ファルダーにコピー
etcフォルダーとusrフォルダー を残し 他は削除
etcフォルダーの中
scimフォルダーとanthy-conf を残し 他は削除
usrフォルダー
binフォルダー
anthy-agent
kasumi
scim-config-agent
scim-make-table
anthy-dic-tool
scim
scim-im-agent
scim-setup
anthy-morphological-analyzer
scim-bridge
scim-input-pad
scim-setup を開いて
3行目 〜60行目削除
#!/bin/sh
# Smart Common Input Method
#
# Copyright (c) 2002-2004 James Su <suzhe@tsinghua.org.cn>
#
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
# $Id: scim-setup.in,v 1.1 2005/01/03 03:41:06 suzhe Exp $
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
localedir=${prefix}/share/locale
datadir=${prefix}/share
sysconfdir=/etc
${exec_prefix}/lib/scim-1.0/scim-helper-launcher setup 8034d025-bdfc-4a10-86a4-82b9461b32b0 $*
libフォルダー
gconvフォルダー gtk-2.0フォルダー scim-1.0フォルダー
libanthydic.so.0.1.0 libscim-gtkutils-1.0.so.8
libanthyinput.so libscim-gtkutils-1.0.so.8.2.3
libanthy.so libanthyinput.so.0 libscim-x11utils-1.0.so.8
libanthy.so.0 libanthyinput.so.0.0.0 libscim-x11utils-1.0.so.8.2.3
libanthy.so.0.1.0 libgio-2.0.so.0.1800.3 libscim-1.0.so.8
libanthydic.so libanthydic.so.0 libscim-1.0.so.8.2.3
を残し 他は削除
shareフォルダー
anthyフォルダー applicationsフォルダー fontsフォルダー localeフォルダー pixmapsフォルダー scimフォルダー を残し 他は削除
applicationsフォルダーの中
kasumi.desktop scim-setup.desktop
fontsフォルダー
TTFフォルダーを作成しその中に
VL-Gothic-Regular.ttf (好みのフォント)を入れる
localeフォルダー
locale/ja/LC_MESSAGES フォルダー
kasumi.mo
scim-input-pad.mo
scim-tables.mo
scim-anthy.mo
scim-setup.mo
scim.mo
pixmapsフォルダー
kasumi.png
scim-setup.png
mozcを使うなら
mozc_tazpup_5.0.sfs (http://dambo.mydns.jp/uploader/file/Pp17164.tar.html pass:slink)を
クイックして「中身を見る」で中身を表示して新規ファルダーにコピー
/usrフォルダーを使う
slitaz のシステムに上書きコピー
slitazのデスクトップのメニュー項目が一部英語なので slitazの/usr/share/desktop-directories をコピーし
**.directory にName[ja]=** 追加
/etc/keymap.conf を下記に変更
jp106
/etc/locale.conf を下記に変更
LANG=ja_JP.UTF-8
LC_ALL=ja_JP.UTF-8
/etc/TZ を下記に変更
Asia/Tokyo
/home/tux/.profile に下記を追記
exportXMODIFIERS=@im=SCIM
exportXIM="scim"
exportXINPUT="xim"
exportXIM_PROGRAM="scim-d"
exportGTK_IM_MODULE=scim
exportQT_IM_MODULE=scim
scim-d&
killall-HUPscim-panel-gtk
端末 sakuraで
sudo gtk-query-immodules-2.0 --update-cache
sudo tazpkg -gi glibc-locale
locale-jaのインストール
Applications > Settings > Manage locale packages
システムを日本語化
Applications > Settings > System language
xを再起動 すると設定が反映されアプリのUIが日本語で表示され 日本語入力もできます
それを次回にも有効にするため tazusb writefs lzma コマンドで保存ファイルを作ります
日本語化パッケージ rootfs.gzを作成
端末 sakuraで
tux@slitaz:~$ sudo tazusb writefs lzma
Password: root
ファイルシステムの書き込み
================================================================================
writefs コマンドは、現在あるすべてのファイルシステムを、起動可能な LiveUSB メディアで使用可能な適切な cpio アーカイブ (%s) に書き込みます。
アーカイブ圧縮: lzma
サウンドカードと画面構成を削除しますか?
ENTER で維持または回答 (No|yes|exit): 現在のサウンドカードと画面構成を[ 完了 ]..
言語・キーボード設定を削除しますか?
ENTER で維持または回答 (No|yes|exit): 現在の言語・キーボード設定を維持[ 完了 ]
lzma 圧縮で rootfs.gz を生成中...rootfs.gz をメディアに移動してください。 遅延書き込みをアンマウントすることを忘れないでください! rootfs.gz は /home/boot にあります
================================================================================
Root ファイルシステムサイズ: 75.8M
--------------------------------------------------------------------------------
ENTER で続けます...tux@slitaz:~$
ENTER で維持または回答 とか ENTER で続けます... とか翻訳がおかしい