|

How to add Chinese input method to Unbuntu 18.04?

How to add Chinese input method, such as Pinyin, to Unbuntu 18.04?


To input Chinese, first install an input method framework. Here, we use fcitx.

Then you need to input the Pinyin input method. You may use fcitx-sunpinyin.

Put them all together

$ sudo apt-get install fcitx fcitx-sunpinyin

After that, set the default input method to fcitx in Control Center -> Language Support to be fcitx by choosing ‘fcitx` in the “Keyboard input method system” part.

The log out and log in again. You can find the input method icon in the panel. In the configuration dialog, you may add the Chinese input methods there.


You may also use Google Pinyin 谷歌拼音输入法 with fcitx to have a better vacabulary database.

To install Google Pinyin, do

$ sudo apt-get install fcitx-googlepinyin

After login and logout, in the fcitx configuration panel, you may add Google Pinyin as one input method now.

Similar Posts

  • How to quite VirtualBox scale mode?

    How to quite VirtualBox scale mode? Use this hot key shortcut to quit VirtualBox scale mode Right_Ctrl + c Read more: How to change the mode for simplified Chinese or Traditional Chinese mode in ibus-libpinyin? Large-scale Data Storage and Processing System in Datacenters Software Engineering Advice from Building Large-Scale Distributed Systems by Jeff Dean VirtualBox…

  • 禁止对话框关闭按钮和Alt+F4

    在某些情况下我们需要防止用户单击窗口的标题栏中的关闭按钮关闭 MFC 应用程序。可以删除窗口的WS_SYSMENU 样式, 但是,这样最大化最小化和还原按钮也被删除,并且无法添加。 这是Windows的设计依据。 可以通过禁用关闭按钮来模拟没有关闭按钮的窗口。 在 WM_CREATE 消息处理程序中禁用关闭按钮。使用下面的代码: CMenu *pSysMenu = GetSystemMenu(FALSE); ASSERT(pSysMenu != NULL); VERIFY(pSysMenu->RemoveMenu(SC_CLOSE, MF_BYCOMMAND)); 这样删除之后关闭按钮变为灰色,用户无法点击。但是使用Alt+F4仍然可以关闭程序。要将此功能也禁用需要重载CDialog的OnSysCommand方法。代码如下: void MyDlg::OnSysCommand( UINT nID, LPARAM lParam ) { if ( ( nID & 0xFFF0 ) == IDM_ABOUTBOX ) { CAboutDlg dlgAbout; //if you have an about dialog dlgAbout.DoModal(); } //add the following code else if…

  • |

    GNOME 3 "Natural scrolling" mouse option does not work

    In GNOME 3 “Settings” -> “Devices” -> “Mouse & Touchpad”, after setting “Natural scrolling” to On, the scrolling is still as the same before (non-natural). How to fix this? This is likely related to the X11 driver. Remove the xorg-x11-drv-synaptics driver if it is installed. And install the xorg-x11-drv-libinput driver if it is not installed….

  • |

    How to delete or get the number in the tail from a string in shell script?

    How to delete or get the number in the tail from a string in shell script (bash script)? Okay to call other tools. For example, from “/dev/sda8”, I want to get “/dev/sda” and “8” separately. This can be achieved by using sed as follows. To get the string after deleting the tailing numbers, we can…

  • Several Vim Tips (in Chinese)

    窗口模式操作 CTRL-W CTRL-S 将当前窗口分割为两窗口 CTRL-W CTRL-W 切换窗口 CTRL-W j 切换到下一窗口 CTRL-W k 切换到上一窗口 CTRL-W CTRL-R 将窗口的位置轮换 CTRL-W CTRL-_ 将当前窗口最小化 CTRL-W CTRL-= 将所有窗口变为等大 搜索和替换 /word 搜索word 搜索之后按回车高亮显示,n 下一个 p 上一个 :%s/模式/替换成的内容/gc % 全局选项,如果没有开启则只在当前行进行替换 g 表示 全局替换,如果没有g选项则只替换每行出现的第一个单词 c 表示需要确认 Esc替换按键 ESC键在键盘的左上角,按起来很不方便,而在VIM中ESC经常用到,其实有一个同样作用的组合按键:CTRL-[,这两个按起来手基本不用做大的动作,方便多了。 块操作 使用visual可视模式 v 进入可视模式,移动光标可进行选择 CTRL-Q 或 CTRL-V 进入列式模式,可进行块操作,选定的是一个矩形块。如果使用behave mswin CTRL-V可能映射成为past Read more: How to convert between…

2 Comments

  1. Hi Anonymous,

    What exactly is an input method? And what is framework? Does method refer to the language I wish to type, or is it a programing issue? Or does “method” refer to the version of characters I wish to use, such as Hong Kong traditional, Taiwan traditional, or simplified. I wish to input Taiwan traditional.

    I’m also not familiar with writing instructions to the computer. What “window”/page should I open to write the instructions provided above? Then I wouldn’t know exactly how to proceed from beginning to end. Do I just type that line, then press enter? And all is finished?

    After reading the instructions again, I guess method means pinyin vs. radical whereas each letter is associated with one or more components of characters. If that’s the case I would like to install that one too. Please help. Thanks

    Steven

Leave a Reply

Your email address will not be published. Required fields are marked *