Skip to content

User Requirement Description: Input Method Mode Switching Behavior #29

Description

@xiaokentrl

【English Version】

User Requirement Description: Input Method Mode Switching

Note: I am an ordinary user. This document only describes expected key reactions and screen display. It does not involve technical implementation.


1. Current Problem

When typing pub, the candidate window shows both Chinese words (普遍, 瀑布) and English words (public, publish) at the same time. A clear way is needed to know whether the current mode is "Chinese only" or "English only".


2. Definition of Shift Key Function

  • Shift: Clears the candidate window and commits the typed letters and punctuation marks directly to the screen, exactly as typed.
  • Ctrl + Shift: Reserved for the operating system to switch between different input method software (e.g., from Sogou Chinese to Korean IME). The input method should not use this combination internally.

3. Five Modes and Dedicated Shortcuts

Mode Shortcut Screen Indicator Candidate Content for pub / nihao
Pure Pinyin Mode Alt + Shift + P 【拼】 Only Chinese words: 普遍, 瀑布, 扑鼻
Pure English Mode Alt + Shift + E 【英】 Only English words: public, publish
Mixed Chinese-English Mode Alt + Shift + H 【混】 Mixed Chinese and English: 普遍, public, 瀑布
Translation Hint Mode Alt + Shift + T 【译】 When "你好" is focused, append "hello" at the end of the list
Traditional Chinese Mode Alt + Shift + F 【繁】 Only Traditional Chinese words: 普遍, 瀑布, 撲鼻

4. Description of Key Behavior

  • Alt + Shift + E: Force switch to Pure English candidates.
  • Alt + Shift + P: Force switch to Pure Chinese candidates.
  • Alt + Shift + H: Restore Mixed Chinese-English candidates.
  • Alt + Shift + T: When typing Pinyin for Chinese characters, append the English translation at the end of the candidate list.
  • Alt + Shift + F: Convert all candidates to Traditional Chinese glyphs.

5. Mode Scope and Memory

  • Mode shortcuts take effect only within the current application (or current input field).
  • The last used mode is remembered independently per application (or per input field).
  • When focus returns, the remembered mode is restored automatically.

6. User Interface Indicator

The status bar or cursor-following indicator should clearly display the current mode:

【拼】 Pure Pinyin | 【英】 Pure English | 【混】 Mixed | 【译】 Translation | 【繁】 Traditional


7. Core Summary

  • Shift key = Discard candidates, commit typed letters and punctuation marks directly.
  • Alt + Shift + Letter = Direct access to one of the five input states.
  • When typing pub, candidate content strictly follows the current mode, with no mixing.
  • Mode state is remembered per current application (or current input field) and restored automatically on focus return.


【中文版】

关于输入法模式切换的用户需求描述

注意: 我是普通用户,只描述期望的按键反应和屏幕显示,不涉及技术实现。


一、当前问题

输入 pub 时,候选框同时出现中文(普遍、瀑布)和英文(public、publish)。需要明确知道当前是“只打中文”还是“只打英文”。


二、Shift 键功能定义

  • Shift: 清空候选框,将输入的字母和标点符号原样直接上屏。
  • Ctrl + Shift: 由系统使用,用于切换不同输入法软件(如中文搜狗切韩文),输入法内部不要占用。

三、五种模式与专属快捷键

模式 快捷键 屏幕提示 输入 pub / nihao 的候选内容
纯拼音模式 Alt + Shift + P 【拼】 只有中文词:普遍、瀑布、扑鼻
纯英文模式 Alt + Shift + E 【英】 只有英文词:public、publish
中英文混合模式 Alt + Shift + H 【混】 中文和英文混排:普遍、public、瀑布
翻译提示模式 Alt + Shift + T 【译】 焦点在“你好”时,列表末尾追加“hello”
繁体中文模式 Alt + Shift + F 【繁】 只有繁体中文词:普遍、瀑布、撲鼻

四、按键现象说明

  • Alt + Shift + E: 强制切到纯英文候选。
  • Alt + Shift + P: 强制切到纯中文候选。
  • Alt + Shift + H: 恢复中英文混合候选。
  • Alt + Shift + T: 打拼音出汉字时,末尾附带英文翻译。
  • Alt + Shift + F: 候选词全部转为繁体字形。

五、模式作用范围与记忆

  • 模式快捷键仅对当前软件(或当前输入框) 生效。
  • 每个软件(或每个输入框)独立记住最后使用的模式。
  • 焦点返回时,自动恢复所记住的模式。

六、界面提示

状态栏或光标跟随提示清晰显示当前模式:

【拼】 纯拼音 | 【英】 纯英文 | 【混】 混合 | 【译】 翻译 | 【繁】 繁体


七、核心总结

  • Shift 键 = 放弃候选,字母和标点符号直接上屏。
  • Alt + Shift + 字母 = 一键直达五种输入状态。
  • 输入 pub 时,候选内容严格按当前模式显示,不再混乱。
  • 模式状态按当前软件(或当前输入框)独立记忆,焦点切换时自动恢复。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions