Difference between revisions of "Install Fcitx 5/zh-cn"

From Fcitx
Jump to navigation Jump to search
(Created page with "下面是一些在您使用的发行版中搜索 Fcitx 5 软件包的示例。 您还可以使用桌面提供的 GUI 软件中心,例如 gnome-software(GNOME)或Plasma-d...")
 
(36 intermediate revisions by one other user not shown)
Line 5: Line 5:
 
Fcitx 软件包通常包括两部分部分:主程序,作为应用程序的输入法模块和插件(通常它们都是输入法引擎)。
 
Fcitx 软件包通常包括两部分部分:主程序,作为应用程序的输入法模块和插件(通常它们都是输入法引擎)。
  
从Linux发行版安装Fcitx 5
+
== 从Linux发行版安装Fcitx 5 ==
  
您需要从自己的软件包列表中搜索指定的Fcitx包。通常,Fcitx 5软件包的名称中包含“fcitx5”。
+
您需要从自己的软件包列表中搜索指定的Fcitx包。Fcitx 5软件包的名称中通常包含“fcitx5”。
  
截至今天,除了一些滚动发行版,fcitx 5尚未在发行版存储库中普遍可用。
+
截至今天,除了一些滚动发行版,fcitx5尚未在发行版存储库中普遍可用。
  
下面是一些在您使用的发行版中搜索 Fcitx 5 软件包的示例。 您还可以使用桌面提供的 GUI 软件中心,例如 gnome-software(GNOME)或Plasma-discover(KDE)发现。
+
下面是一些在您使用的发行版中搜索 Fcitx5 软件包的示例。 您还可以使用桌面提供的 GUI 软件中心,例如 gnome-software(GNOME)或Plasma-discover(KDE)发现。
  
 
<pre>
 
<pre>
yum search fcitx5 #  
+
yum search fcitx5 # CentOS
 
dnf search fcitx5 # Fedora
 
dnf search fcitx5 # Fedora
 
pacman -Ss fcitx5 # Archlinux
 
pacman -Ss fcitx5 # Archlinux
Line 21: Line 21:
 
</pre>
 
</pre>
  
Or [https://pkgs.org/search/?q=fcitx5 pkgs.org] provides an easy way to search packages for different distributions. Please notice that if the version is something like 0.0~git, this version is a extremely old version of Fcitx 5, which is older than the oldest stable release of Fcitx 5. Generally it is not recommended to use it.
+
或者 [https://pkgs.org/search/?q=fcitx5 pkgs.org] 提供一个在不同发行版中搜索软件包的简单方法。 请注意可能有一些版本为0.0~git这样的包,这种版本是一些相当老的版本,比最老的Fcitx5稳定发布版本还要老。通常不建议使用这种版本的Fcitx5.
  
pkgs.org also provides distribution specific the command for installing it.
+
pkgs.org 也会提供针对不同发行版的特定安装命令。
  
A basic installation of fcitx5 would includes:
+
一个基本的fcitx5安装包括:
* [https://pkgs.org/search/?q=fcitx5 fcitx5], the main program
+
* [https://pkgs.org/search/?q=fcitx5 fcitx5], 主程序
* [https://pkgs.org/search/?q=fcitx5-gtk fcitx5-gtk], [https://pkgs.org/search/?q=fcitx5-qt fcitx5-qt], the im module for the most popular UI toolkit.
+
* [https://pkgs.org/search/?q=fcitx5-gtk fcitx5-gtk], [https://pkgs.org/search/?q=fcitx5-qt fcitx5-qt], 针对最受欢迎的几种UI开发工具包的输入法模块。
* [https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool], the GUI configuration program.
+
* [https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool], GUI配置程序。
* Input method engines for different languages:
+
* 对于不同语言,有许多的输入法引擎
** See [[Special:myLanguage/Input method engines|Input method engines]]
+
** 参见 [[Special:myLanguage/Input method engines|输入法引擎]]
  
Some additional support addons and themes may includes:
+
一些额外的插件和主题支持:
* [https://pkgs.org/search/?q=fcitx5-lua fcitx5-lua], which provides lua scripting support
+
* [https://pkgs.org/search/?q=fcitx5-lua fcitx5-lua], 提供lua脚本支持
* [https://pkgs.org/search/?q=fcitx5-material-color fcitx5-material-color], a set of colorful theme for Fcitx 5
+
* [https://pkgs.org/search/?q=fcitx5-material-color fcitx5-material-color], 一个Fcitx5漂亮主题的合集
  
== Install Fcitx 5 from Flatpak ==
+
== 从Flatpak安装Fcitx5 ==
[https://flatpak.org/ Flatpak] is a utility for software deployment and package management for Linux. There are two flatpak repository that provides fcitx 5, [https://flathub.org flathub] and fcitx's own unstable repo.
+
[https://flatpak.org/ Flatpak] 是一个用于Linux系统的软件分发和包管理工具软件。有两个flatpak仓库提供了fcitx5软件包,一个是[https://flathub.org flathub],另一个是fcitx本身的不稳定仓库。
  
As of today, we are still working on pushing Fcitx 5 packages to flathub. flathub right now only have fcitx5 main program, Chinese addons, Zhuyin, and Mozc.
+
截止今日,我们仍然在向flathub推送fcitx5软件包。flathub上现在仅仅只有fcitx5主程序,中文输入法,注音输入法,以及Mozc输入法。
  
To Setup the flatpak repo, you will need to execute following command, or do it in GUI.
+
您需要先对flatpak的软件仓库进行配置,可以通过执行下面的命令,或者在图形界面软件上操作完成。
 
<pre>
 
<pre>
# Add flatub repo, fcitx5-unstable also relies on some runtime packages in it.
+
# 添加 flatub 仓库, fcitx5-unstable 也会依赖一些这个仓库中的运行时软件包。
 
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
 
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
# Optionally: Add fcitx 5 unstable repo if you want to use the unstable version.
+
# 可选部分: 如果你想要使用不稳定版本的fcitx5,也可以添加 fcitx5 非稳定仓库。
 
flatpak remote-add --user --if-not-exists fcitx5-unstable https://flatpak.fcitx-im.org/unstable-repo/fcitx5-unstable.flatpakrepo
 
flatpak remote-add --user --if-not-exists fcitx5-unstable https://flatpak.fcitx-im.org/unstable-repo/fcitx5-unstable.flatpakrepo
 
</pre>
 
</pre>
  
To install fcitx from flatpak
+
从flatpak安装fcitx
 
<pre>
 
<pre>
# With older flatpk, you will need to specify the repository name too: flatpak install flathub org.fcitx.Fcitx5
+
# 如果您使用的是旧版flatpak,在安装的时候会需要显示的指定软件仓库名字: flatpak install flathub org.fcitx.Fcitx5
 
flatpak install org.fcitx.Fcitx5
 
flatpak install org.fcitx.Fcitx5
# Install fcitx 5 engines, for example, fcitx5-chinese-addons, or mozc
+
# 安装 fcitx5 输入法引擎, 例如fcitx5-chinese-addons, or mozc
 
flatpak install org.fcitx.Fcitx5.Addon.ChineseAddons
 
flatpak install org.fcitx.Fcitx5.Addon.ChineseAddons
 
flatpak install org.fcitx.Fcitx5.Addon.Mozc
 
flatpak install org.fcitx.Fcitx5.Addon.Mozc
 
</pre>
 
</pre>
  
Flatpak can not provide the im module you need on your host, so you would still need to install them natively. If your distribution does not have fcitx 5 package, you may use fcitx 4 im module instead (newer than 4.2.9.7), or even ibus im module.
+
Flatpak 并不能提供在您运行环境中需要的输入法模块程序库,因此您还是需要手动在系统中安装它们。如果您的发行版没有提供fcitx5软件包,您也可以使用fcitx5的输入法模块作为替代(需要4.2.9.7之后的版本),或者甚至您也可以使用ibus的输入法模块。
  
== Install Fcitx 5 from Source code ==
+
== 从源码安装Fcitx5 ==
* [[Special:myLanguage/Compiling fcitx5|Compiling fcitx5]]
+
* [[Special:myLanguage/Compiling fcitx5|编译Fcitx5]]
  
  
Please also read [[Special:MyLanguage/Setup Fcitx 5|Setup Fcitx 5]] before you start to use Fcitx 5.
+
请您在开始使用Fcitx5之前先阅读 [[Special:MyLanguage/Setup Fcitx 5|配置Fcitx5]].

Latest revision as of 19:05, 28 December 2021

Other languages:
English • ‎中文(中国大陆)‎

Fcitx 软件包通常包括两部分部分:主程序,作为应用程序的输入法模块和插件(通常它们都是输入法引擎)。

从Linux发行版安装Fcitx 5

您需要从自己的软件包列表中搜索指定的Fcitx包。Fcitx 5软件包的名称中通常包含“fcitx5”。

截至今天,除了一些滚动发行版,fcitx5尚未在发行版存储库中普遍可用。

下面是一些在您使用的发行版中搜索 Fcitx5 软件包的示例。 您还可以使用桌面提供的 GUI 软件中心,例如 gnome-software(GNOME)或Plasma-discover(KDE)发现。

yum search fcitx5 # CentOS
dnf search fcitx5 # Fedora
pacman -Ss fcitx5 # Archlinux
zypper search fcitx5 # OpenSUSE
apt-cache search fcitx5 # Debian/Ubuntu

或者 pkgs.org 提供一个在不同发行版中搜索软件包的简单方法。 请注意可能有一些版本为0.0~git这样的包,这种版本是一些相当老的版本,比最老的Fcitx5稳定发布版本还要老。通常不建议使用这种版本的Fcitx5.

pkgs.org 也会提供针对不同发行版的特定安装命令。

一个基本的fcitx5安装包括:

一些额外的插件和主题支持:

从Flatpak安装Fcitx5

Flatpak 是一个用于Linux系统的软件分发和包管理工具软件。有两个flatpak仓库提供了fcitx5软件包,一个是flathub,另一个是fcitx本身的不稳定仓库。

截止今日,我们仍然在向flathub推送fcitx5软件包。flathub上现在仅仅只有fcitx5主程序,中文输入法,注音输入法,以及Mozc输入法。

您需要先对flatpak的软件仓库进行配置,可以通过执行下面的命令,或者在图形界面软件上操作完成。

# 添加 flatub 仓库, fcitx5-unstable 也会依赖一些这个仓库中的运行时软件包。
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
# 可选部分: 如果你想要使用不稳定版本的fcitx5,也可以添加 fcitx5 非稳定仓库。
flatpak remote-add --user --if-not-exists fcitx5-unstable https://flatpak.fcitx-im.org/unstable-repo/fcitx5-unstable.flatpakrepo

从flatpak安装fcitx

# 如果您使用的是旧版flatpak,在安装的时候会需要显示的指定软件仓库名字: flatpak install flathub org.fcitx.Fcitx5
flatpak install org.fcitx.Fcitx5
# 安装 fcitx5 输入法引擎, 例如fcitx5-chinese-addons, or mozc
flatpak install org.fcitx.Fcitx5.Addon.ChineseAddons
flatpak install org.fcitx.Fcitx5.Addon.Mozc

Flatpak 并不能提供在您运行环境中需要的输入法模块程序库,因此您还是需要手动在系统中安装它们。如果您的发行版没有提供fcitx5软件包,您也可以使用fcitx5的输入法模块作为替代(需要4.2.9.7之后的版本),或者甚至您也可以使用ibus的输入法模块。

从源码安装Fcitx5


请您在开始使用Fcitx5之前先阅读 配置Fcitx5.