> For the complete documentation index, see [llms.txt](https://pingshunhuangalex.gitbook.io/rime-xkjd/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pingshunhuangalex.gitbook.io/rime-xkjd/master-xkjd/extra-functions.md).

# 特殊功能

## 次项选择

键道配置了一个次选键（`'`）用于上屏次选项。合理利用次选键（`'`）可使编码空间扩张一倍。根据其特性对词库进行优化可增加前置用的高频字词，从而降低码长并提高输入效率。

{% hint style="warning" %}
需要注意的是，次选键（`'`）上屏的并非候选菜单中的第二项，而是当前编码所匹配的第二个选项（可与输入编码部分匹配或完全匹配）。候选菜单中的第二项会随着焦点的移动而变化（翻页），但是在编码不变的情况下，其对应的次选项是恒定的
{% endhint %}

## 重复输入

根据[特殊符号](/rime-xkjd/master-xkjd/extra-symbols.md)章节，键道中可用`;h`来重复输入最近刚上屏的编码。默认情况下，该功能只保留前一次的上屏编码。合理利用此功能可快速输入叠字叠词，从而降低码长并提高输入效率。

{% hint style="warning" %}
需要注意的是，该功能保留的上屏编码也包括各种（标点）符号。日常使用中，有效的编码很容易被错输的编码或符号所覆盖

另外由于编码捕获的限制，在连续使用空码上屏后，重复输入的候选项中会丢失先前使用顶功上屏的词组。建议在使用重复输入功能前先用任意确认键上屏编码以避免词组丢失的情况
{% endhint %}

{% hint style="info" %}
**笔者私货：**

* 建议将重复输入保留的编码个数增加为2个（配合次选键）以大幅增加该功能的实用性。不介意使用数字选重的用户甚至可以将保留个数进一步提高
* 建议将该功能的触发按键替换为`;;`或其它更容易击打的键位以便日常反复使用
  {% endhint %}

## 编码反查

根据[单字](/rime-xkjd/start-xkjd/characters.md)章节，键道中单字码长最高为6位（音码2位 + 形码4位）。用户可通过输入`` ` ``作为占位符来替换任何不确定的编码部分从而起到编码反查的效果，例如`键`字可通过输入`jm``av`来反查其首部件字根形码部分，也可通过输入` ``ioav `来反查其音码部分。

{% hint style="warning" %}
需要注意的是，编码反查只适用于以声韵方式输入的单字，并不支持词组或简码
{% endhint %}

## 时间与日期

键道配置了一些特殊指令用于上屏简单的时间与日期。用户可以通过输入`o`加上相应的数据种类来上屏当前时间（`oej`）、星期（`oxq`）或日期（`orq`），例如`23:50:00`、`星期六`或`2021年09月25日` /`2021-09-25`。

## 数字与计算

键道配置了一些特殊指令用于上屏数字的金额或文读形式，并可进行简单的计算。用户可通过输入`=`加上相应的数字来上屏其对应的金额（`壹佰贰拾叁元整`）或文读（`一百二十三`）。如果输入的数字中含有运算符号则会上屏其对应的计算结果（支持括号与乘方）。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pingshunhuangalex.gitbook.io/rime-xkjd/master-xkjd/extra-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
