顯示具有 中文系統 標籤的文章。 顯示所有文章
顯示具有 中文系統 標籤的文章。 顯示所有文章

2026年10月12日 星期一

FreeBSD 15安裝 xrdp + xfce + fcitx 中文輸入法

pkg install xorg xfce xfce4-goodies
pkg install noto-tc
pkg install zh-CJKUnifonts
pkg install zh-CNS11643-font
fc-cache -f -v

pkg install fcitx5 fcitx5-configtool fcitx5-gtk2 fcitx5-gtk3 fcitx5-gtk4 fcitx5-qt5 fcitx5-qt6
pkg install -y zh-fcitx5-chewing zh-fcitx5-chinese-addons zh-fcitx5-table-extra zh-fcitx5-table-other

XRDP 設定 ~/.startwm.sh
# 系統選單與桌面語系
export LANG=zh_TW.UTF-8
export LC_CTYPE=zh_TW.UTF-8
export LC_MESSAGES=zh_TW.UTF-8

# Fcitx5 輸入法模組
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

2026年10月8日 星期四

FreeBSD 15.x 安裝 xfce + 中文輸入法

pkg install -y xorg xfce xfce4-goodies
pkg install -y noto-tc

#pkg install -y zh-CJKUnifonts
#pkg install -y zh-CNS11643-font

fc-cache -f -v

pkg install -y fcitx5 fcitx5-configtool fcitx5-gtk2 fcitx5-gtk3 fcitx5-gtk4 fcitx5-qt5 fcitx5-qt6
pkg install -y zh-fcitx5-chewing zh-fcitx5-chinese-addons zh-fcitx5-table-extra zh-fcitx5-table-other

2026年5月27日 星期三

Debian 13 安裝中文輸入法 Fcixt5

sudo apt install fcitx5 fcitx5-config-qt fcitx5-frontend-gtk2 fcitx5-frontend-gtk3 fcitx5-frontend-gtk4 fcitx5-frontend-qt5

sudo apt install fcitx5-table-extra
sudo apt install fcitx5-chinese-addons
sudo apt install fcitx5-chewing

sudo apt install fcitx5-table-extra fcitx5-table-other
sudo apt install fcitx5-table-boshiamy

Debian 13 安裝 Fcix5


sudo apt install fcitx5 fcitx5-config-qt fcitx5-frontend-gtk2 fcitx5-frontend-gtk3 fcitx5-frontend-gtk4 fcitx5-frontend-qt5

sudo apt install fcitx5-table-extra
sudo apt install fcitx5-chinese-addons
sudo apt install fcitx5-chewing

sudo apt install fcitx5-table-extra fcitx5-table-other
sudo apt install fcitx5-table-boshiamy

2026年4月28日 星期二

DietPi 安裝中文

apt install fonts-noto-cjk
apt install scim im-config zenity
apt install scim-chewing
im-config -n scim

apt install fcitx5 fcitx5-chewing

2026年4月2日 星期四

Debian 13 SCIM 安裝設定

 apt -y install scim scim-tables-zh scim-chewing

設定
Applications - Settings - SCIM Input Method Setup - Generic Table
Show prompt
Show key hint

2025年1月10日 星期五

Debian 12 使用 IBus 輸入法

安裝
apt install -y ibus-table zenity
apt install -y ibus-chewing ibus-zhuyin ibus-table-easy ibus-table-easy-big

相關目錄
/usr/share/ibus-table/tables/
/usr/share/ibus-table/icons/

相關指令
ibus-table-createdb
ibus-setup
ibus restart

im-config  #apt install -y zenity

Windows 11 WSL 中文輸入 fcitx5

安裝
sudo apt install fcitx5 fcitx5-* # 全部Fcitx5支援的輸入法
sudo apt install fcitx5-chinese-addons fcitx5-chewing  # 只安裝新酷音注音
sudo apt install fcitx5-table-easy-large fcitx5-chinese-addons #只安裝輕鬆
sudo apt install fcitx5-frontend-gtk2 fcitx5-frontend-gtk3 fcitx5-frontend-gtk4 fcitx5-frontend-qt5 fcitx5-frontend-qt6

執行 
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export DefaultIMModule=fcitx
fcitx-autostart &>/dev/null

相關設定
im-config
fcitx5-configtool

export WAYLAND_DISPLAY='wayland-0' DISPLAY=':0'

Debian 12 ibus 安裝嘸蝦米

sudo apt install ibus-table

git clone https://github.com/daineseh/liu_ibus_table
cd liu_ibus_table
sudo ibus-table-createdb -s liu_ibus_table.txt -n liu.db
sudo cp liu.db /usr/share/ibus-table/tables/

sudo cp liu.png /usr/share/ibus-table/icons/

2022年1月3日 星期一

Oracle Linux 8.x 中文輸入

yum -y install langpacks-zh_TW
yum -y install ibus-libpinyin.x86_64 ibus-table-easy ibus-table-cangjie

相關指令、設定檔案
locale
localectl
localectl set-locale LANG=
/etc/locale.conf 

2021年3月16日 星期二

fbterm 摘要

安裝 fbterm
sudo apt-get install fbterm
adduser [user_name] video

設定檔
~/.fbtermrc

執行
fbterm -s 20

Fcitx 輸入法安裝
sudo apt-get install fcitx fcitx-chewing fcitx-frontend-fbterm

編輯 ~/.fbtermrc 修改 input method
input-method=fcitx-fbterm

2018年4月20日 星期五

raspberry pi 中文設定

1.安裝中文字型
sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy

2.locale設定成繁體中文。
sudo dpkg-reconfigure locales
選擇 zh_TW BIG5、zh_TW.EUC_TW EUC-TW、zh_TW.UTF-8 UTF-8,
zh_TW.UTF-8設定為預設的locale

3.安裝中文輸入法
sudo apt-get install scim scim-tables-zh scim-chewing
使用 Ctrl-Space即可切換輸入法,輸入中文

2016年9月2日 星期五

CentOS6 Xwindow 支援中文設定

yum -y groupinstall "chinese support"

修改 /etc/sysconfig/i18n
LANG="en_US.UTF-8" --> LANG="zh_TW.UTF-8"


gcin 輸入法
http://mirrors.sohu.com/fedora-epel/6/x86_64/gcin-1.5.1-1.el6.x86_64.rpm

2016年8月10日 星期三

Linux CentOS6 Console 使用中文摘要

安裝 epel-release fbterm fontconfig-devel freetype-devel
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release*rpm
yum install fbterm
yum fontconfig-devel
yum freetype-devel

下載中文字型
ftp://ftp.kh.edu.tw/pub/Linux/CLE/fonts/ttf/

安裝中文字型
cp font.ttf /usr/share/fonts/
fc-cache -fv
fc-list


編輯 Grub 開機設定
加入 'vga=ask'

reboot

執行
fbterm

2008年2月20日 星期三

已知中文字型在Big5的順序,反推出 Big5

由以下中文 Big5 順序公式可反推

//高位元區段 81-8D 8E-A0 A1-FE ---->126個
//低位元區段 40-7E A1-FE ---> 157 個
//先計算高位元的距離 公式:(高位元 - 0x81) * 157
//再計算低位元距離 分為兩組 40-7E A1-FE
//0x40=64 0x7E=126 63個
//0xA1=161 0xFE=254 94個
//落在 0x40-0x7E 直接加上 (低位元的值 - 0x40 + 1)
//落在 0xA1-0xFE 63 + (低位元的值 - 0xA1 + 1)

$big5order --> Big5順序

$temp1 = $big5order / 157 的餘數

$temp2 = $big5order / 157 的商

若餘數為 0 ==> Big5 高位元為 $temp2 -1 + 0x81 低位元為 0xFE

若餘數為 小於 64 ==> Big5 高位元為 $temp2 + 0x81 低位元為 $temp + 0x40 - 1

若餘數為 大於64 ==> Big5 高位元為 $temp2 + 0x81 低位元為 $temp -63 + 0xA1 - 1

<?php

$temp = ($big5order%157);
$hicode = (int)($big5order/157) + 0x81;
if($temp==0){
$hicode = $hicode - 1;
$locode = 0xFE;
} else if($temp < 64) $locode = $temp + 0x40 - 1;
else $locode = $temp - 63 + 0xA1 - 1;

?>

2007年10月23日 星期二

計算中文 big5 在編碼中的順序

//計算中文 big5 在編碼中的順序
//高位元區段 81-8D 8E-A0 A1-FE ---->126個
//低位元區段 40-7E A1-FE ---> 157 個
//先計算高位元的距離 公式:(高位元 - 0x81) * 157
//再計算低位元距離 分為兩組 40-7E A1-FE
//0x40=64 0x7E=126 63個
//0xA1=161 0xFE=254 94個
//落在 0x40-0x7E 直接加上 (低位元的值 - 0x40 + 1)
//落在 0xA1-0xFE 63 + (低位元的值 - 0xA1 + 1)

// PHP

<?php
function big5order($big5){
$big5_h = $big5[0] . $big5[1];
$big5_l = $big5[2] . $big5[3];int big5order(unsigned short big5){
unsigned short big5order;
unsigned char hi, lo;

hi = (big5 & 0xFF00) >> 0x08;
lo = big5 &0x00FF;

big5order = (hi - 0x81) * 157;

if(lo>=0x40 && lo<=0x7E)
big5order = big5order + lo - 0x40 + 1;
else if(lo>=0xA1 && lo<=0xFE)
big5order = big5order + 63 + lo - 0xA1 + 1;

return big5order;
}

?>

// C/C++

int big5order(unsigned short big5){
unsigned short big5order;
unsigned char hi, lo;

hi = (big5 & 0xFF00) >> 0x08;
if(!(hi>=0x81 && hi<=0xFE)) return -1;

lo = big5 &0x00FF;
if(!((lo>=0x40 && lo<=0x7E) (lo>=0xA1 && lo<=0xFE))) return -2;

big5order = (hi - 0x81) * 157;

if(lo>=0x40 && lo<=0x7E)
big5order = big5order + lo - 0x40 + 1;
else if(lo>=0xA1 && lo<=0xFE)
big5order = big5order + 63 + lo - 0xA1 + 1;

return big5order;
}