{"id":16166352,"url":"https://github.com/alswl/fcitx-config","last_synced_at":"2025-03-18T23:30:48.660Z","repository":{"id":2883739,"uuid":"3890473","full_name":"alswl/fcitx-config","owner":"alswl","description":"我的 Fcitx 输入法配置文件","archived":false,"fork":false,"pushed_at":"2019-03-04T07:03:34.000Z","size":11,"stargazers_count":33,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-08T19:35:15.555Z","etag":null,"topics":["arch-linux","fcitx","linux"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alswl.png","metadata":{"files":{"readme":"README.asciidoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-01T05:10:35.000Z","updated_at":"2025-02-26T01:58:37.000Z","dependencies_parsed_at":"2022-07-30T07:47:57.480Z","dependency_job_id":null,"html_url":"https://github.com/alswl/fcitx-config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alswl%2Ffcitx-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alswl%2Ffcitx-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alswl%2Ffcitx-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alswl%2Ffcitx-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alswl","download_url":"https://codeload.github.com/alswl/fcitx-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955715,"owners_count":20374372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arch-linux","fcitx","linux"],"created_at":"2024-10-10T02:53:58.725Z","updated_at":"2025-03-18T23:30:48.316Z","avatar_url":"https://github.com/alswl.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Fcitx 配置 =\n\n== Fcitx ==\n\nimage:https://4ocf5n.dijingchao.com/upload_dropbox/201204/fcitx.png[Fcitx]\n\nFcitx 简介：\n\n----\n小企鹅中文输入法（Free Chinese Input Toy for X，fcitx）\n是一个以 GPL 方式发布的输入法框架， 编写它的目是为桌面环境提供一个灵活的输入方案。\n\n本程序目前可以支持XIM和GTK2，GTK3，QT4的IM Module，可为支持\nXIM 的 X 应用程序提供输入服务。 fcitx 的源码包内提供了区位和全/简/双拼，\n并支持基于码表的输入法（自带五笔、二笔和仓颉等输入码表）。\n\n您可以从 http://fcitx.googlecode.com 下载最新的发布版本。 \n----\n\n当年刚开始使用 Linux 时候，使用的是 iBus，随后发现 Fcitx 这个输入法，\n试用了一下就发现自己所需要的 双拼 / 模糊音 / 自定义输入 功能都有提供，\n遂转移阵地到 Fcitx。\n\n== Fcitx 安装 ==\n\n大部分发行版软件源都有 Fcitx，Arch 下安装使用命令 `pacman -S fcitx`\n即可安装最新版本。Ubuntu 的安装可以参考 http://wiki.ubuntu.org.cn/Fcitx 。\n\n== Fcitx 配置 ==\n\n详细的配置文档参见 http://fcitx.github.com/handbook/fcitx.html\n\n== Fcitx 特殊符号 ==\n\n当我们需要输入特殊符号（数字符号、箭头等等）时候，往往需要去网上搜索对应的\nunicode 码，然后拷贝过来。Fcitx 提供一个很方便的功能叫做「特殊符号输入」，\n可以定义自己的特殊符号。\n\n在 `/usr/share/fcitx/pinyin/pySym.mb` / `~/.config/fcitx/pinyin/pySym.mb`\n（ps：我当前版本是4.2.1，所以是这个路径，老版本可能不是这个路径）\n中定义需要使用的特殊符号，格式为 `\u003c编码\u003e \u003c符号\u003e` ，比如：\n\n----\nyinyue ♩\nyinyue ♪\nyinyue ♫\n...\n----\n\n那么，在 Fcitx 中输入 `yinyue` 就会出现如下候选框\n\nimage:https://4ocf5n.dijingchao.com/upload_dropbox/201204/fcitx-1.png[Fcitx 特殊符号]\n\n`pySym.mb` 文件中，「编码」和「符号」均不允许出现空格，所以比较适合短小的符号，\n而颜文字或者长句不适合在这里出现。颜文字以及其他较长的文字如何快速输入，\n就要看 Fcitx 的「快速输入」功能了。\n\n我在这里提供的配置文件包括了常用符号、数字、星座、箭头等等，喜欢可以直接拿去。\nps：我定义的「编码」是全拼，所以可能会混淆正常输入，建议全拼用户将「编码」略做\n修改，添加前缀比如 `z` （文档中说 `v` 不能被使用为前缀）。\n\n配置完成之后，使用 `fcitx -r` 重启 Fcitx（使用 Ctrl+5 可以刷新配置文件，\n但并不能刷新全部配置文件，建议重启 Fcitx）。\n待会配置「快速输入」之后，也需要重启 Fcitx 来让配置文件生效。\n\n我的配置文件 https://github.com/alswl/fcitx-config/blob/master/pinyin/pySym.mb[fcitx-config / pinyin / pySym.mb]\n\n== Fcitx 快速输入 ==\n\nFcitx 的「快速输入」和「特殊符号」很类似，后者管理字符，前者管理自定义语句。\n\n快速输入通过 `；` 按键启用，随后输入相应的「字符组合」，Fcitx 会自动补全。\n\n编码对照文件存放在 `~/.config/fcitx/data/QuickPhrase.mb` 或 `share`\n目录下对应的文件中，格式为 `\u003c字符组合\u003e \u003c短语\u003e` ，范例如下\n\n----\n# 颜文字欢呼 （颜文字太需要了，卖个萌什么的太管用了）\nyhuanhu (/≥▽≤/)\nyhuanhu ヾ(o◕∀◕)ﾉ\n----\n\n在输入法中，键入 `；` 之后再输入 `yhuanhu` 就会出现下面候选框：\n\nimage:https://4ocf5n.dijingchao.com/upload_dropbox/201204/fcitx-2.png[Fcitx 快速输入]\n\n从图中可以看出，Fcitx 还自动进行了「字符组合」补全。\n\n我的 https://github.com/alswl/fcitx-config/blob/master/data/QuickPhrase.mb[fcitx-config / data / QuickPhrase.mb]\n配置文件按类别收集了一些颜文字，可以直接拿过来使用。\n\n参考链接：\n\n* http://zhan.renren.com/fullcirclectt?tagId=163058\u0026checked=true[FCCTT推送特别篇——FCITX输入法快速输入表情]\n\n* http://site.douban.com/widget/notes/4567539/note/197244464/[颜文字收集整理╰(*°▽°*)]\n\n== Fcitx 中文键位映射 ==\n\n很多朋友和我一样，喜欢使用「和」来替换“/”，至于为什么，知乎有一个回答就解释的很好\nhttp://www.zhihu.com/question/19589668[为什么大家引用时常用直角引号（「」）而不是弯引号（“”）？]\n\nFcitx 完全可以通过配置中英文键位映射来修改中文状态下面的输入。全局配置文件在\n`/usr/share/fcitx/data/punc.mb.zh_CN` 中，\n个人配置文件在 `~/.config/fcitx/data/punc.mb/zh_CN` 这个对应位置。\n\n我的配置 https://github.com/alswl/fcitx-config/blob/master/data/punc.mb.zh_CN[fcitx-config / data / punc.mb.zh_CN]\n\n== 最后 ==\n\n关于 Fcitx，有 bug 可以到官网反馈，处理起来效率很高，\n感谢作者们给大家带来这么优秀的开源软件。\n\nUpdate:\n\n* 2012-03-02 感谢 @Weng Xuetian 指正 `Ctrl + F5` 是错误的，需要使用\n`Ctrl + 5` 重载配置。\n* 2013 I'm using fcitx-rime now, this repo is deprecated, please use https://github.com/alswl/Rime[alswl/Rime: Rime configuration for Squirrel (macOS \u0026 Linux)]\n\n原文链接：http://log4d.com/2012/04/fcitx-config\n\n// vim: set ft=asciidoc:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falswl%2Ffcitx-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falswl%2Ffcitx-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falswl%2Ffcitx-config/lists"}