Tutorials/Kimpanel: Difference between revisions

From KDE UserBase Wiki
No edit summary
m (it is Fcitx instead of FCITX (see https://fcitx-im.org/wiki/Fcitx_5))
 
(40 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<big>'''KDE Input Method Panel'''</big>
<languages />
{{Template:I18n/Language Navigation Bar|Tutorials/Kimpanel}}
<translate>
 
== KDE Input Method Panel == <!--T:1-->
</translate>
 
__NOTOC__
__NOTOC__
==Acknowledgement==
<translate>
Translated "almost" verbatim from http://userbase.kde.org/Tutorials/Kimpanel_(zh_CN) .
===Acknowledgement=== <!--T:2-->
==介绍==
 
新的输入法面板,使用的是当前的Plasma主题样式。
<!--T:3-->
==kimpanel==
Translated "almost" verbatim from http://userbase.kde.org/Tutorials/Kimpanel_(zh_CN) (deprecated due to new translation system)
{{info_(zh_CN)|KDE SC 4.4后kimpanel已经进入plasma-addons,如果你用的是KDE SC 4.4+,直接搜索你的发行版包管理器,不需要手动编译。}}
 
===Introduction=== <!--T:4-->
 
<!--T:5-->
'''KDE Input Method Panel''' is a panel Plasmoid for various input methods with concurrent '''Plasma''' theme.


*Kubuntu 9.10安装依赖
===Input Method Panel=== <!--T:6-->


sudo apt-get install subversion cmake
<!--T:10-->
*安装kimpanel
Right click desktop, choose <menuchoice>Add Widgets</menuchoice>, place the<menuchoice> Input Method Panel</menuchoice> plasmoid wherever you prefer.
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdeplasma-addons/applets/kimpanel kimpanel


cd kimpanel/backend
<!--T:33-->
[[File:KDE Input Method Panel.png|thumb|The KDE Input Method Panel Widget|center]]


编辑CMakeList.txt,修改(scim)成你要用的输入法。
===fcitx-dbus=== <!--T:13-->


cd ..
<!--T:14-->
[[File:ZhcnKimpanel.png|center]]


cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
<!--T:15-->
Support for Fcitx has been in trunk since r294. Users are encouraged to upgrade.


附注:如果你的KDE4是系统默认的话,那直接用
<!--T:16-->
{{Input|1=svn co <nowiki>http://fcitx.googlecode.com/svn/trunk</nowiki> fcitx
cd fcitx
./configure --prefix=/usr && make && sudo make install}}


cmake -DCMAKE_INSTALL_PREFIX=/usr
<!--T:17-->
{{Tip|1=*Arch Linux users should follow [https://wiki.archlinux.org/title/Fcitx Fcitx - ArchWiki].}}
{{Tip|1=*Kubuntu users should check [http://forum.ubuntu.org.cn/viewtopic.php?f=8&t=192737 fcitx-svn].}}


make
===IBus=== <!--T:18-->


sudo make install
<!--T:19-->
[[File:Zhcnkimpanel2.png|center]]


安装好后,添加部件-找到input method panel 这个部件,拖到面板或是桌面上。
<!--T:20-->
Install '''ibus''' as usual. Then


:::*Archlinux的Aur里有[http://aur.archlinux.org/packages.php?ID=24652&O=&L=&C=&K=&SB=&SO=&PP=&do_Orphans=&SeB= kimpanel-plasmoid-svn]
<!--T:21-->
:::*Kubuntu9.10已经附带了kimpanel(很悲剧,这kimpanel只支持scim和fcitx,竟然不支持9.10默认的ibus输入法,你要是用ibus还是得自己动手)
For '''Kubuntu 9.10 + KDE SC 4.4.x''':


==fcitx-dbus==
<!--T:32-->
[[File:ZhcnKimpanel.png]]
*install '''kimpanel-backend-ibus'''


Fcitx的KIMPanel支持已经进入主分支,从r294开始支持,建议更新到最新版
<!--T:22-->
{{Input|1=
sudo apt-get install plasma-widget-kimpanel-backend-ibus}}


svn co http://fcitx.googlecode.com/svn/trunk fcitx
<!--T:23-->
*open <menuchoice>systemsettings</menuchoice> -> <menuchoice>autostart</menuchoice>, add


cd fcitx
<!--T:24-->
{{Input|1=ibus-daemon --panel=/usr/lib/ibus/ibus-ui-kde}}


./configure --prefix=/usr && make && sudo make install
<!--T:25-->
{{Note|1=ibus requires ibus-qt or ibus-qt4 to input special characters in KDE/Qt applications. (I doubt it --- there is XIM still.)}}


:::*Archlinux的Aur里有[http://aur.archlinux.org/packages.php?ID=28916 fcitx-dbus-svn],目前这个包已经可以被[http://aur.archlinux.org/packages.php?ID=20836 fcitx-svn]取代
<!--T:34-->
:::*Kubuntu [http://forum.ubuntu.org.cn/viewtopic.php?f=8&t=192737 fcitx-svn的deb包]
For '''Arch Linux''':


==ibus==
<!--T:35-->
[[File:Zhcnkimpanel2.png]]
*open <menuchoice>System Settings</menuchoice> -> <menuchoice>Autostart</menuchoice>, add


正常安装ibus,然后运行
<!--T:36-->
{{Input|1=ibus-daemon -drx --panel=/usr/lib/kimpanel-ibus-panel}}


ibus-daemon --panel=/home/user/kimpanel/backend/ibus/panel.py --xim
<!--T:37-->
For '''Gentoo''':


如果你是发行版包管理器安装的kimpanel,这样
<!--T:38-->
*open <menuchoice>System Settings</menuchoice> -> <menuchoice>Autostart</menuchoice>, add


ibus-daemon --panel=/usr/lib/ibus/dbus/panel.py
<!--T:39-->
{{Input|1=ibus-daemon -drx --panel=/usr/lib64/libexec/kimpanel-ibus-panel}}


开机启动:
<!--T:40-->
{{Note|The panel path here is only for a 64-bit architecture. For other architectures, please change it accordingly.}}


系统设置-高级-自动启动,添加程序:ibus-daemon --panel=/home/user/kimpanel/backend/ibus/panel.py --xim ,确定。
<!--T:26-->
==注意==
If the '''Input Method Panel''' Plasmoid is absent, please check $QT_IM_MODULE and set that to ibus.
ibus需要安装ibus-qt(在某些发行版叫ibus-qt4,比如Kubuntu)才能在Qt/KDE程序中输入中文


如果没出现输入框,检查输入法环境是否设置正确(打开konsole,输入 export QT_IM_MODULE=ibus&kate 就能临时设置kate的输入法为ibus,试试能否出现输入框)
===Links=== <!--T:27-->


==链接==
<!--T:28-->
[http://forum.ubuntu.org.cn/viewtopic.php?f=38&t=188228&sid=e6e51e7ea48276d23350857383b853d0 您对输入法的图形界面有什么建议 ]
[http://forum.ubuntu.org.cn/viewtopic.php?f=38&t=188228&sid=e6e51e7ea48276d23350857383b853d0 Suggestions for Input Method UIs (Chinese)]


[http://hi.baidu.com/realasking/blog/item/f01a6baffc294bf1fbed502c.html 笔记fedora 10下安装fcitx和plasma主题的输入法面板]
<!--T:29-->
[http://hi.baidu.com/realasking/blog/item/f01a6baffc294bf1fbed502c.html Install kimpanel on a Fedora 10 notebook (Chinese)]


[http://songlinyi.spaces.live.com/blog/cns!9D1E6496716547EE!238.entry kimpanel + ibus 输入法]
<!--T:30-->
[http://songlinyi.spaces.live.com/blog/cns!9D1E6496716547EE!238.entry kimpanel + ibus (Chinese)]
----
----
<references/>
<references/>
<!--T:31-->
[[Category:Advanced Users]]
</translate>

Latest revision as of 10:20, 5 November 2021

KDE Input Method Panel

Acknowledgement

Translated "almost" verbatim from http://userbase.kde.org/Tutorials/Kimpanel_(zh_CN) (deprecated due to new translation system)

Introduction

KDE Input Method Panel is a panel Plasmoid for various input methods with concurrent Plasma theme.

Input Method Panel

Right click desktop, choose Add Widgets, place the Input Method Panel plasmoid wherever you prefer.

The KDE Input Method Panel Widget

fcitx-dbus

Support for Fcitx has been in trunk since r294. Users are encouraged to upgrade.

svn co http://fcitx.googlecode.com/svn/trunk fcitx
cd fcitx
./configure --prefix=/usr && make && sudo make install

Tip

*Arch Linux users should follow Fcitx - ArchWiki.

Tip

*Kubuntu users should check fcitx-svn.


IBus

Install ibus as usual. Then

For Kubuntu 9.10 + KDE SC 4.4.x:

  • install kimpanel-backend-ibus
sudo apt-get install plasma-widget-kimpanel-backend-ibus
  • open systemsettings -> autostart, add
ibus-daemon --panel=/usr/lib/ibus/ibus-ui-kde

Note

ibus requires ibus-qt or ibus-qt4 to input special characters in KDE/Qt applications. (I doubt it --- there is XIM still.)


For Arch Linux:

  • open System Settings -> Autostart, add
ibus-daemon -drx --panel=/usr/lib/kimpanel-ibus-panel

For Gentoo:

  • open System Settings -> Autostart, add
ibus-daemon -drx --panel=/usr/lib64/libexec/kimpanel-ibus-panel

Note

The panel path here is only for a 64-bit architecture. For other architectures, please change it accordingly.


If the Input Method Panel Plasmoid is absent, please check $QT_IM_MODULE and set that to ibus.

Links

Suggestions for Input Method UIs (Chinese)

Install kimpanel on a Fedora 10 notebook (Chinese)

kimpanel + ibus (Chinese)