Git Product home page Git Product logo

cloudemoticon's Introduction

CloudEmoticon

“云颜文字”桌面版非官方客户端。

一两年前自己做这个东西时,编程的姿势水平还是非常低下,代码混乱无比,这东西能跑起来真是个奇迹(逃

因为自己也有在电脑上输入颜文字的需求,然而官方的桌面版客户端

  • 年久失修(最近一次 Commit 还是在 2014 年)
  • 有较多 BUG(载入文件时按了“取消”都会崩溃)
  • 仅支持 XML 格式颜文字库(新版已经统一使用 JSON 格式了)
  • 没有预编译版(并不是所有人都有安装 Visual Studio……)
  • 界面不够美观(主观判断)
  • ……

于是就自己尝试着做了一个桌面版客户端⁽⁽꜀(:3꜂ ꜆)꜄⁾⁾

使用截图

使用方法

按下 Ctrl+Shift+E 显示界面,按下数字键(非小键盘)的 09输入内容。

显示界面时,可以按下 -= 进行翻页,使用 []切换分组,就像使用输入法一样

启动程序后,第一次输入时,需要点击一下窗体以获取焦点,否则无法响应快捷键。

右键点击托盘上的图标,在菜单里可以选择读取词库文件、更换皮肤或进行其它设定。

“云颜文字”词库格式

词库以 JSON 存储,可以使用内置的词库编辑器进行编辑。

内置词库编辑器只支持读取、设置第一条说明。

{
    "alias":"词库名称",
    "categories":[
        {
            "entries":[
                {
                    "description":"可以省略的说明",
                    "emoticon":"输入的文本"
                },
                {
                    "description":"",
                    "emoticon":""
                }
            ],
            "name":"分组名称"
        },
        {
            "entries":[
                ...
            ],
            "name":""
        },
        ...
    ],
    "information":[
        "可以省略的说明1",
        "可以省略的说明2",
        ...
    ]
}

也可以按照下面的示例,将颜文字以一行一个的形式使用 UTF-8 编码保存在文本文档中,通过托盘里的“从文本转换”转换为 JSON 格式的颜文字词库,然后读取。

(・ω・`ll)
(`^´)ノ
(`へ´*)ノ
(*/∇\*)
(ノ∀`)
(*ノωノ)
(/ω\)
...

以下的颜文字词库示例,可以保存到本地后读取,也可以复制链接后进行在线读取。

使用的开源库

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.