Skip to content

Tags: haphap/weasel

Tags

0.14.3_new_features

Toggle 0.14.3_new_features's commit message
整理汇总

新特性:
* 抛弃GDI绘制文字,仅支持Windows 8.1或以上版本系统
* 候选窗口圆角
* 支持半透明颜色 格式  0xaabbggbb,旧配置中的0xbbggrr会被解析成0xffbbggrr
* 阴影特性,编码/高亮候选/普通候选/输入窗口 均可设置独立阴影色,默认透明不绘制
* 标签,注解字体可独立定义,字号可独立定义
* 字体回退顺序可根据字体设置执行,可定义各个字体的生效范围
* 彩色字体支持,Windows 10 周年构建版之前的系统,需要使用COLR格式的彩色字体,之后的版本可使用SVG字体
* Windows 10或者Windows 11(构建版本不大于22000)下可使能窗口背景模糊(毛玻璃效果)
* 重构布局相关计算,新增竖直文字布局,可定义流向(flow direction),可定义是否超长换行显示
* 支持多行候选(使用\r换行)内容的显示,定义max_width或者max_height时,文本超长可自动折行/列显示
* 天圆地方特性,竖排文字组合换列或者水平布局组合换行时无此特性。即 水平布局一行显示,竖直布局, 竖排每列一候选状态的时候,可以支持天圆地方,条件是margin 和 hilite_padding之间的数值大小比较
* margin_x 或者 margin_y设置负值时,隐藏输入窗口,不影响方案选单/tips的显示
* 新增可选的鼠标点击截图功能,点击高亮候选截图高亮候选,其他截图整个候选窗口。开启后潜在可能会让响应比未开启时有性能损失。
* 新增一个preedit_type : preview_all, 配合隐藏窗口 和inine_preedit 使用尤佳
* 新增参数,实现类似Windows 11 系统自带输入法的高亮提示标记,标记符号可自定义,默认无内容,透明
* 新增参数,实现候选边框颜色绘制,默认透明不绘制
* 新增参数,实现方案中文图标在切换时显示
* 新增半角,全角图标,新绘制高清weaselserver图标
* github 自动构建,使用librime 2.8.5,修复上游文件路径变化引起的构建失败问题

修复:
* 无法在Windows 10的开始菜单等位置输入
* 候选文字过长时崩溃
* 使用较新的librime(如librime 1.7.3)时,如果用户目录下没有default.custom.yaml或者weasel.custom.yaml的情况下设定窗口无法弹出

改善:
* 减少ui对象重复销毁和创建,一个session只创建一次
* 减少窗口重绘次数降低闪烁

参考配置 [weasel config](https://github.com/fxliang/weasel_config)

新增参数如下(带备注)
```yaml
style/label_font_face: "NotFont, Noto Color Emoji SVG:80, Arial:600:6ff, Segoe UI Emoji:80, LXGW Wenkai Narrow, Microsoft Yahei, 全宋体-1, 全宋体-2, 全宋体-3, 全宋体-F, 全宋体-X, 全宋体(调和), 全宋体(等宽)"
```
```yaml
style/comment_font_face: "NotFont, Noto Color Emoji SVG:80, Arial:600:6ff, Segoe UI Emoji:80, LXGW Wenkai Narrow, Microsoft Yahei, 全宋体-1, 全宋体-2, 全宋体-3, 全宋体-F, 全宋体-X, 全宋体(调和), 全宋体(等宽)"
```
```yaml
style/label_font_point: 14      # label font point
```
```yaml
style/comment_font_point:   14  # comment font point
```
```yaml
style/blur_window: false    # only for windows 10 or windows 11 (build number <= 22000)
```
```yaml
style/capture_by_click: false       # set true to enable capture candidate window / highlighted candidate  by clicking
```
```yaml
style/layout/align_type: center         #  top, center, bottom is optional
```
```yaml
style/vertical_text: false      # set true to use vertical text layout,
```
```yaml
style/vertical_text_left_to_right: false    # flow direction setting for vertical text layout
```
```yaml
style/vertical_text_with_wrap: false        # vertical text layout with multi column feature, work with style/vertical_text: true  and style/layout/max_height: not_zero_value
```
```yaml
style/mark_text: ""         # mark text in front of highlighted candidate's label, to make view like windows 11 ime style
```
```yaml
style/color_scheme_dark: lost_temple    # color theme for system dark theme
```
```yaml
style/layout/max_width: 0   # max window width for horizontal layout, set 0 to disable max width; if over length, multi row for candidates
```
```yaml
style/layout/max_height: 0  #  max window height for vertical text layout with wrap, set 0 to disable max height
```
```yaml
style/layout/shadow_radius: 0   # shadow radius, should be a integer not to large, maybe 5 is ok. set 0 to disable shadow feature
```
```yaml
style/layout/shadow_offset_x: 4     #if shadow_offset_x and shadow_offset_y both 0, round shadow. negative to dropshadow left.
```
```yaml
style/layout/shadow_offset_y: 4
```
```yaml
style/layout/corner_radius:  4  # corner radius of candidate window
```
```yaml
style/layout/type: vertical  # add option vertical_text, defalt not set
```
```yaml
style/preedit_type: composition  # add option preview_all
```
```yaml
preset_color_schemes/xxx/hilited_mark_color: 0x00000000 #defalt transparent
```
```yaml
preset_color_schemes/xxx/hilited_shadow_color: 0x00000000 #defalt transparent
```
```yaml
preset_color_schemes/xxx/shadow_color: 0x00000000 #defalt transparent
```
```yaml
preset_color_schemes/xxx/candidate_back_color: 0x00000000 #defalt transparent
```
```yaml
preset_color_schemes/xxx/candidate_shadow_color: 0x00000000 #defalt transparent
```
```yaml
preset_color_schemes/xxx/candidate_border_color: 0x00000000 #defalt transparent
```
```yaml
preset_color_schemes/xxx/hilited_candidate_shadow_color: 0x00000000 #defalt transparent
```
```yaml
preset_color_schemes/xxx/hilited_candidate_border_color: 0x00000000 #defalt transparent
```
```yaml
schema/icon: schema_ico.ico   #icon file under user_dir or program data dir. it should be set in schema custom files,e.g., wubi091.custom.yaml

```

0.14.3

Toggle 0.14.3's commit message
chore(release): 0.14.3 🎉

0.14.2

Toggle 0.14.2's commit message
chore(release): 0.14.2 🎉

0.14.1

Toggle 0.14.1's commit message
chore(release): 0.14.1 🎉

0.14.0

Toggle 0.14.0's commit message
chore(release): 0.14.0 🎉

0.13.0

Toggle 0.13.0's commit message
chore(release): 0.13.0 🎉

0.12.0

Toggle 0.12.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
chore(release): 0.12.0 🎉

0.11.1

Toggle 0.11.1's commit message
chore(release): 0.11.0 🎉

0.11.0

Toggle 0.11.0's commit message
fix(appveyor.install.bat): missing zlib1.dll in output

0.10.0

Toggle 0.10.0's commit message
chore: bump version number