GithubHelp home page GithubHelp logo

scu's Introduction

SCU(Squirrel 配置工具)

开源中文输入法 Squirrel(鼠鬚管)终于有了一个图形化的配置工具。目前还只支持最基本的配置选项,但总体框架已经完整,以后会增加更多配置选项的支持。SCU 本身也在 GitHub 开源,有兴趣的朋友可以一起来改进和增强它,如果有任何使用上的问题也可以在 GitHub 上提交错误报告(见下面的相关链接)。

如果不希望自己编译而又希望试用 SCU,可以从这里下载

已经安装过 SCU 的朋友建议使用应用内置的自动升级功能来进行升级。使用前确保至少激活过 Squirrel(鼠鬚管)输入法一次并务必备份好 Squirrel 配置目录 ~/Library/Rime(如果不知道在哪里,可以从 Squirrel 鼠鬚管输入法菜单里选择 Settings/用户设定,然后备份打开窗口里所有文件),进行任何配置之后必须执行 Squirrel(鼠鬚管)输入法菜单中的 Deploy/部署 命令才能生效。

已支持的选项:

  • 基本选项:缺省键盘布局、开关切换输入状态时的系统提示、;
  • 候选条选项:垂直/水平方向、候选词数、字体、透明度、颜色方案、圆角大小等;
  • 应用选项:在指定应用中自动强制 Squirrel 进入 ASCII 字符输入模式和/或软光标模式;
  • 输入方案选项:开关特定输入方案。

尚未支持的选项:

  • 输入方案选项:定制特定输入方案;
  • 其他官方定制指南中描述的配置选项。

系统要求:

  • Mac OS X 10.7 或以上版本
  • Squirrel(鼠鬚管)输入法 0.9.13 或以上版本

相关链接:

相关软件和鸣谢:

  • 佛振 (lotem),开源输入法引擎 Rime(中州韵)和 Mac OS X 中文输入法 Squirrel(鼠鬚管)的作者。
    https://code.google.com/p/rimeime

  • James Montgomerie (th-in-gs),开源 YAML Cocoa 封装库 YACYAML 的作者。
    https://github.com/th-in-gs/YACYAML

  • Vadim Shpakovski (shpakovski),开源 Cocoa Preference 窗口类库 MASPreferences 的作者。
    https://github.com/shpakovski/MASPreferences

    另外,为了 SCU 开发的舒服一点,写了 NSDictionary+KeyPathNSObject+DeepMutableCopy 两个 category 来实现 NSDictionaryNSMutableDictionary 的 keypath 读写支持(其实绝大部分时间花在这上面了),有需要的朋友可以从下面的项目中检取:

  • neolee / SHKit
    https://github.com/neolee/SHKit

scu's People

Contributors

neolee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scu's Issues

[Feature request] trigger deployment in Squirrel

Send a distributed notification named "SquirrelReloadNotification".
This will trigger deployment in future versions of Squirrel.

See diff in main.m for code sending the notification:
rime/squirrel@62848ce

Note that deployment may be time consuming if some of the dictionaries need to be rebuilt. Avoid doing it immediately when every change is made.
Instead, consider adding a button in "General" or "Help" tab. The notice in "Help" tab will still be meaningful to older versions of Squirrel.

Patching nested YAML map values incorrectly

In *.custom.yaml, values from the immediate children key-value pairs under the node patch: will substitute values with the same key-path from the YAML document.
It's important to specify in the patch a key-path separated with / for values in a nested YAML map.

For example, the following code in RimeConfigController.m:

[_squirrelConfig patchValue:_colorTheme forKeyPath:@"style.color_scheme" error:&error];

generates an incorrect patch

patch:
  style:
    color_scheme: blah

which should be:

patch:
  "style/color_scheme": blah

The problem with the former patch is, other children of the node style would be lost in the patched file, since the YAML value to be patched is the entire map (ROOT)/style.

SCU cannot be opened on OS X 10.6

OS X: 10.6.8
Problem Report:

    Process:         SCU [5400]
    Path:            /Users/marcus/Downloads/SCU.app/Contents/MacOS/SCU
    Identifier:      me.soulhacker.SCU
    Version:         0.2 (106)
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [96]

    Date/Time:       2013-01-17 14:19:03.110 +0800
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6

    Interval Since Last Report:          12954330 sec
    Crashes Since Last Report:           -202
    Per-App Crashes Since Last Report:   1
    Anonymous UUID:                      5814E6FC-3636-4603-8649-444F732F603E

    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0

    Dyld Error Message:
      Symbol not found: _OBJC_CLASS_$_NSRegularExpression
      Referenced from: /Users/marcus/Downloads/SCU.app/Contents/MacOS/SCU
      Expected in: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
     in /Users/marcus/Downloads/SCU.app/Contents/MacOS/SCU

样式配置的bug

在样式里面,如果只改了字体,圆角会失效,得重新拉动一遍才行,而且英文字母也跑到候选条上去了。

配置窗口无法自动出现

遇到两个问题:

  • 启动 SCU 之后配置选项窗口没有自动出现,必须按 ⌘1 才能看到
  • General 选项刚出来是空白的,必须点击其他 tab,再点击回来才能看到内容

系统:OS X 10.8.4,系统语言为英语

自定义皮肤背景和颜色都变成黑色。

我的皮肤代码

文件是 squirrel.custom.yaml

代码如下

weasel.custom.yaml

patch:
style/horizontal: true # 候選橫排

style/inline_preedit: true  # 內嵌編碼(僅支持TSF)

style/corner_radius: 4       # 窗口圓角半徑

style/color_scheme: sfufoet      # 選擇配色方案

app_options/com.alfredapp.Alfred: {}    # 开启 Alfred 的中文输入

"style/color_scheme": sfufoet    # 這項用於選中下面定義的新方案
"preset_color_schemes/sfufoet":  # 在配色方案列表裏加入標識爲 starcraft 的新方案
  name: sfufoet
  author: sfufoet <[email protected]>
  text_color: 0x000000              # 編碼行文字顏色,24位色值,用十六進制書寫方便些,順序是藍綠紅0xBBGGRR
  candidate_text_color: 0x000000   # 候選項文字顏色,當與文字顏色不同時指定
  back_color: 0xdfdfde             # 底色
  border_color: 0xdfdfdf           # 邊框顏色,與底色相同則爲無邊框的效果
  hilited_text_color: 0xdd6d2a     # 高亮文字,即與當前高亮候選對應的那部份輸入碼
  hilited_back_color: 0xdfdfde     # 設定高亮文字的底色,可起到凸顯高亮部份的作用
  hilited_candidate_text_color: 0xdd6d2a  # 高亮候選項的文字顏色,要醒目!
  hilited_candidate_back_color: 0xdfdfde  # 高亮候選項的底色,若與背景色不同就會顯出光棒

该死的 Markdown 语法。。。你懂的。

最新版的 Squirrel 输入法不支持

首先感谢大佬提供的工具:
问题:什么时候能支持最新版的 Squirrel 输入法,目前用的 0.16.2 版本不支持。
期待大佬更新支持 ✊

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.