GithubHelp home page GithubHelp logo

snowonion / adao-kaomoji-for-sogou-pinyin-input-method Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 0.0 796 KB

用电脑版搜狗拼音输入法快速输入 A 岛颜文字的方法;探索以颜文字为代表的快捷消息的管理方法论 ( ゚∀。)

License: MIT License

Python 100.00%

adao-kaomoji-for-sogou-pinyin-input-method's Introduction

Adao-kaomoji-for-sogou-pinyin-input-method

1~3 步即可使用:[略改 JSON 配置→][一键生成搜狗 phrases.ini→]在搜狗设置导入→开始像施放技能般输出颜文字 (^o^)ノ

导入颜文字之后,搜狗拼音用起来的样子

本项目旨在

  1. 提供使用电脑版搜狗拼音输入法快速输入 A 岛颜文字的方法;
  2. 探索以颜文字为代表的快捷消息的管理方式、在各处的输入方法。

为此,我没有直接编辑搜狗拼音的自定义短语配置文件 phrases.ini,而是尝试在更结构化的数据(JSON)里,给 A 岛的 87 个颜文字命名(按我个人理解)、设置快捷短语(按我个人口味):

……
		["(つд⊂)","wulian",1,"捂脸;玩鸟"],
        ["(゚Д゚≡゚Д゚)","wtf",2,"左右摇头惊恐"],
        ["(^o^)ノ","hi",1,"^眼圆嘴右打招呼"],
……
        ["ヾ(´ω゚`)","bao",1,"不明眼猫嘴左抱抱"],
        ["(*´ω`*)","gg",1,"好想要哥哥们的小○○"],
        ["(・ω・)","omega",4,"猫嘴点点眼前看"],
        ["( ´・ω)","omega",5,"点点眼八字耳猫嘴右侧"],
        ["(`・ω)","omega",6,"点点眼反八字耳猫嘴右侧"],
……

然后写了一个转换工具把它转换成 phrases.ini 的格式。我认为这有助于从目标 1 跨越到目标 2。

配置步骤

  1. 生成自定义短语配置文件(也可以直接使用我提供的 phrases-yanwenzi-导入搜狗前另存成UTF-16 LE编码.ini):
    1. (可选)编辑 yanwenzi-raw-for-sogou.json,以配置短语、在选词时的出现位置等;
    2. yanwenzi-raw-for-sogou.json 文件放到当前 shell 工作目录;执行 python3 convertYanwenzi.py
  2. 在搜狗拼音的设置中,将现有的自定义短语导出,作为备份;清空现有的自定义短语;导入刚才生成的 phrases-yanwenzi.ini
    1. 如果不清空直接导入,搜狗拼音会把新旧自定义短语合并起来……详细规则我未考察。

Mac 版的配置位置和效果图:

Mac 版的配置和效果

TODO

相关工作

More:

adao-kaomoji-for-sogou-pinyin-input-method's People

Contributors

snowonion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.