Fedora中搜狗输入法常见问题
<p style="text-indent: 2em;">Sogou Pinyin是一款基于Fcitx框架开发的输入法,支持全拼、简拼、模糊音、云输入、皮肤、中英混输等功能。<br/></p><p style="text-indent: 2em;">我的博客有一篇安装搜狗输入法的博文《<a href="http://www.only2fire.com/archives/47.html" target="_blank"><span style="color: rgb(255, 0, 0);">Fedora安装搜狗输入法</span></a>》,大家可以去看一看。</p><p style="text-align:center"><img src="/uploads/AilsonJack/2018.08.24/1535112936943952.png" onclick="preview_image('/uploads/AilsonJack/2018.08.24/1535112936943952.png')"/></p><p style="text-indent: 2em;">如果您使用 XDG 兼容的桌面环境,比如 KDE, GNOME, XFCE, LXDE, Cinnamon。那么当您安装好 Sogou 并重新登录后,Fcitx 和 Sogou 应该会自动启动。使用 Ctrl+Space 激活 Fcitx 便可以输入了,Shift 临时切换中英文。<br/></p><p class="artical_littlestyle1">1、sogou-qimpanel 未自动启动</p><p style="text-indent: 2em;">如果 Fcitx 没有随桌面环境自动启动,请检查 imsettings 设置,正常的配置如下所示:<br/>$ <span style="color: rgb(255, 0, 0);">imsettings-info</span><br/>Xinput file: /etc/X11/xinit/xinput.d/fcitx.conf<br/>GTK+ immodule: fcitx<br/>Qt immodule: fcitx<br/>XMODIFIERS: @im=fcitx<br/>XIM server: /usr/bin/fcitx -D<br/>Preferences: /usr/bin/fcitx-configtool<br/>Auxiliary:<br/>Short Description: FCITX<br/>Long Description:<br/>Icon file: /usr/share/pixmaps/fcitx.png<br/>Is system default: TRUE<br/>Is user default: TRUE<br/>Is XIM server: FALSE<br/>$<span style="color: rgb(255, 0, 0);"> imsettings-switch fcitx</span> # 切换至 fcitx<br/></p><p style="text-indent: 2em;">如果您的桌面环境不兼容 XDG,则 sogou-qimpanel 不会自动启动。请使用桌面环境自带的自动启动工具,添加 sogou-qimpanel 启动项。<br/></p><p style="text-indent: 2em;">如果您的桌面环境不包含自启动工具,或您使用 startx 脚本启动图形界面,则在 ~/.profile 中添加以下内容:<br/>$ <span style="color: rgb(255, 0, 0);">vim ~/.profile</span><br/><span style="color: rgb(0, 112, 192);">source /etc/sysconfig/sogoupinyin</span><br/></p><p style="text-indent: 2em;">该脚本在启动 X 时被 /etc/X11/xinit/xinitrc-common 调用,用于设置 Fcitx 环境变量,并启动 sogou-qimpanel。</p><p class="artical_littlestyle2">2、如何安装皮肤</p><p style="text-indent: 2em;">查看帮助信息:</p><p style="text-indent: 2em;">$ <span style="color: rgb(255, 0, 0);">rpm -qi sogoupinyin</span></p><p style="text-indent: 2em;">该命令显示的皮肤相关的信息如下:</p><p style="text-indent: 2em;">皮肤保存在~/.config/sogou-qimpanel/skin/</p><p style="text-indent: 2em;">按以下方式安装:</p><p style="text-indent: 2em;">$ <span style="color: rgb(255, 0, 0);">sudo setsebool sogou_enable_homedirs=1</span></p><p style="text-indent: 2em;">$ <span style="color: rgb(255, 0, 0);">sogou-qimpanel yourskin.ssf</span><br/></p><p class="artical_littlestyle3">3、如何安装词库</p><p style="text-indent: 2em;">查看帮助信息:<br/></p><p style="text-indent: 2em;">$ <span style="color: rgb(255, 0, 0);">rpm -qi sogoupinyin</span><br/></p><p style="text-indent: 2em;">该命令显示的词库相关的信息如下:<br/></p><p style="text-indent: 2em;">词库保存在~/.config/SogouPY/scd/<br/></p><p style="text-indent: 2em;">按以下方式安装:<br/></p><p style="text-indent: 2em;">$ <span style="color: rgb(255, 0, 0);">sudo setsebool sogou_enable_homedirs=1</span><br/></p><p style="text-indent: 2em;">$ <span style="color: rgb(255, 0, 0);">sogou-qimpanel Cell.scel</span><br/></p><p class="artical_littlestyle4">4、禁止 Sogou 访问网络</p><p style="text-indent: 2em;">查看帮助信息:<br/></p><p style="text-indent: 2em;">$ <span style="color: rgb(255, 0, 0);">rpm -qi sogoupinyin</span><br/></p><p style="text-indent: 2em;">禁止 sogou 访问网络:<br/></p><p style="text-indent: 2em;">$ <span style="color: rgb(255, 0, 0);">sudo setsebool -P sogou_access_network=0 <span style="color: rgb(0, 0, 0);"># 默认: true</span></span></p><p class="artical_littlestyle1">5、小黑框问题</p><p style="text-indent: 2em;">Xfce 桌面环境,如遇到小黑框,需开启 Compositor 功能:<br/></p><p style="text-indent: 2em;"> <span style="color: rgb(255, 0, 0);">Settings -> Windows Manger Tweaks -> Compositor<br/></span></p><p style="text-indent: 2em;"><span style="color: rgb(255, 0, 0);"> 设置 -> 窗口管理器微调 -> 合成器</span><br/></p><p style="text-indent: 2em;">Mate 桌面环境,如遇到小黑框,需开启 Compositor 功能:<br/></p><p style="text-indent: 2em;"> <span style="color: rgb(255, 0, 0);">System -> Control Center -> Windows -> Enable software composit..</span><br/></p><p style="text-indent: 2em;">LXDE 桌面环境,如遇到小黑框,需要修改窗口管理器。<br/></p><p style="text-indent: 2em;"> $ <span style="color: rgb(255, 0, 0);">yum install compiz-lxde ccsm</span><br/></p><p style="text-indent: 2em;"> $ <span style="color: rgb(255, 0, 0);">vim ~/.config/lxsession/LXDE/desktop.conf</span><br/></p><p style="text-indent: 2em;"> <span style="color: rgb(0, 112, 192);">window_manager=openbox</span> # 原参数<br/></p><p style="text-indent: 2em;"> <span style="color: rgb(0, 112, 192);">window_manager=compiz-lxde-emerald</span> # 修改后<br/></p><p class="artical_littlestyle2">6、GTK/Qt 程序无法切换输入法</p><p style="text-indent: 2em;">如果遇到无法切换输入法,则检查 Fcitx 环境变量是否已正确设置:<br/></p><p style="text-indent: 2em;">$ <span style="color: rgb(255, 0, 0);">env | grep fcitx</span><br/></p><p style="text-indent: 2em;"><span style="color: rgb(0, 112, 192);">GTK_IM_MODULE=fcitx<br/></span></p><p style="text-indent: 2em;"><span style="color: rgb(0, 112, 192);">QT4_IM_MODULE=fcitx<br/></span></p><p style="text-indent: 2em;"><span style="color: rgb(0, 112, 192);">QT_IM_MODULE=fcitx<br/></span></p><p style="text-indent: 2em;"><span style="color: rgb(0, 112, 192);">XMODIFIERS=@im=fcitx</span><br/></p><p style="text-indent: 2em;">对于兼容XDG 的桌面环境,Fcitx 环境变量应由 imsettings 通过 /etc/X11/xinit/xinputrc 配置:<br/></p><p style="text-indent: 2em;">$ <span style="color: rgb(255, 0, 0);">ll /etc/X11/xinit/xinputrc</span><br/></p><p style="text-indent: 2em;"><span style="color: rgb(255, 0, 0);">/etc/X11/xinit/xinputrc -> /etc/alternatives/xinputrc</span></p><p class="artical_littlestyle3">7、故障排除</p><p style="text-indent: 2em;">imsettings:根据 ~/.cache/imsettings/log 日志排查错误<br/></p><p style="text-indent: 2em;">Fcitx:运行 fcitx-diagnose 排查 Fcitx 错误<br/></p><p style="text-indent: 2em;">Sogou:运行 sogou-diag 收集诊断信息<br/></p>
你可能也喜欢:
暂无评论,要不要来个沙发
发表评论
JLink V9掉固件修复(灯不亮) 3Zephyr笔记2 - 在STM32F429上运行HelloWorld 2计算NandFlash要传入的行地址和列地址 1Linux MMC子系统 - 6.eMMC 5.1工作模式-设备识别模式 0Linux MMC子系统 - 5.eMMC 5.1工作模式-引导模式 0Linux MMC子系统 - 4.eMMC 5.1常用命令说明(2) 0
标签云
Linux嵌入式实用技巧ARM内核学习问题集合CC++编程语言阅读笔记汇编Linux内核完全注释Windows驱动开发计算机基础ARM11ARMv7-ASTM32IDESublimeLinux内核学习eMMCMMC子系统Ubuntu操作系统OfficeVMWareAPUEgccRTOS中断漫游世界随笔感悟开发工具软件应用编程VsCodearmccarmclang编译器ZephyrSPIJLink网卡驱动安装各种芯片库函数NFSμCOS内核sambaFlashUnix命令与脚本输入法Linux内核设计与实现gitRIFFWAVJATGFTPar8161安装centos有线上网μCGUI字库工程建立右键菜单网络文件系统Firefox百度NTFS文件系统CodeBlocksCentOS数据结构算法PhotoShop51KeilQTUltraEditscanfglibc宏定义UIDGID优先级娱乐天地SourceInsight磁盘扇区总线I2CPDFBComparePythonI2SFPUMakefileSWDCPUARP软件推荐FileZilla