The Chinese input method does not work properly when searching #112119

Open
opened 2023-09-08 07:42:00 +02:00 by Ye Gui · 7 comments

System Information
Operating system: windows11 home
Graphics card: RTX2060

Blender Version
Broken: 4.0.0-alpha+main.24fe81e602a8
Worked: 3.6.2

Short description of error
This is related to a previous problem:(#93421)
Let me describe the process:

  1. Make sure that the IME is off, otherwise the shortcut key is not available
    2.Shift A
  2. I tried to search for Chinese, but because there is a certain probability that IME cannot be automatically opened at this time, I can only enter letters directly
  3. I had to delete the letters that had already been entered (and enable IME manually if IME was not automatically turned on) before I could enter Chinese normally

If this problem can't be solved in a short time, perhaps offering an option, in the 4.0 version you can still use the old search button, as in version 3.6?

**System Information** Operating system: windows11 home Graphics card: RTX2060 **Blender Version** Broken: 4.0.0-alpha+main.24fe81e602a8 Worked: 3.6.2 **Short description of error** This is related to a previous problem:(https://projects.blender.org/blender/blender/issues/93421) Let me describe the process: 1. Make sure that the IME is off, otherwise the shortcut key is not available 2.Shift A 3. I tried to search for Chinese, but because there is a certain probability that IME cannot be automatically opened at this time, I can only enter letters directly 4. I had to delete the letters that had already been entered (and enable IME manually if IME was not automatically turned on) before I could enter Chinese normally If this problem can't be solved in a short time, perhaps offering an option, in the 4.0 version you can still use the old search button, as in version 3.6?
2.6 MiB
2.1 MiB
Ye Gui added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-09-08 07:42:01 +02:00
Iliya Katushenock added the
Interest
Translations
label 2023-09-08 07:49:29 +02:00
YimingWu added
Module
User Interface
Status
Confirmed
Platform
Windows
and removed
Status
Needs Triage
labels 2023-09-08 08:34:26 +02:00
Member

Best tested with Blender set to "English" as the interface language, but have Windows input language set to Simplified Chinese. Note that if testing with a "Lite" build you must enable WITH_INPUT_IME in CMakeCache.txt

With mouse in a View3d, press Shift-a to bring up the "Add" menu. While that is displayed press any regular key, like "a". That will bring up a search box with "a" filtering the list. But we shouldn't be filtering on "a" since we are in Chinese. Instead we should be seeing an underlined "a" with IME already started. As it is the only way to search is to press any key to start search, then backspace over that key, and start typing again - which will probably do IME.

Sometimes when switching between Chinese and English I can type A or Shift-A and will get an IME popup even though there is no current text input. If this happens I can dismiss that, press F3 for menu search, and I will get "BLI_assert failed: ...interface\interface_handlers.cc:3390, ui_textedit_ime_begin(), at 'win->ime_data == nullptr'"

Best tested with Blender set to "English" as the interface language, but have Windows input language set to Simplified Chinese. Note that if testing with a "Lite" build you must enable WITH_INPUT_IME in CMakeCache.txt With mouse in a View3d, press Shift-a to bring up the "Add" menu. While that is displayed press any regular key, like "a". That will bring up a search box with "a" filtering the list. But we shouldn't be filtering on "a" since we are in Chinese. Instead we should be seeing an underlined "a" with IME already started. As it is the only way to search is to press any key to start search, then backspace over that key, and start typing again - which will probably do IME. Sometimes when switching between Chinese and English I can type A or Shift-A and will get an IME popup even though there is no current text input. If this happens I can dismiss that, press F3 for menu search, and I will get "BLI_assert failed: ...interface\interface_handlers.cc:3390, ui_textedit_ime_begin(), at 'win->ime_data == nullptr'"
Member

@hzuika @skyjib @sntulix
Do you guys have any idea how to deal with this one?

We are opening a dialog because the user presses a letter, like "a". We get a search dialog with "a" in it. But if the input language is using an IME we want to (somehow) start the IME with this character. Otherwise you have to backspace this away and then start typing.

@hzuika @skyjib @sntulix Do you guys have any idea how to deal with this one? We are opening a dialog because the user presses a letter, like "a". We get a search dialog with "a" in it. But if the input language is using an IME we want to (somehow) start the IME with this character. Otherwise you have to backspace this away and then start typing.

Hi @Harley, @ziweidao

I installed Blender4.0 alpha (fca8df9415) first.
And I don't catch your point yet. I didn't represent this problem in my Japanese environment installed Simplified Chinese IME.
Maybe, I don't understand clearly about this yet.

I have some questions.

  1. I don't know why pick up about Shift-a key. Is Shift-a key in VIEW3D effected to IME?
  2. Is "search" the box by F3 key?
  3. Is the code about IME changed between 3.6 and 4.0?

Sincerly.

Hi @Harley, @ziweidao I installed Blender4.0 alpha (fca8df9415b1) first. And I don't catch your point yet. I didn't represent this problem in my Japanese environment installed Simplified Chinese IME. Maybe, I don't understand clearly about this yet. I have some questions. 1. I don't know why pick up about Shift-a key. Is Shift-a key in VIEW3D effected to IME? 2. Is "search" the box by F3 key? 3. Is the code about IME changed between 3.6 and 4.0? Sincerly.
Member

@sntulix

No changes in IME since 3.6. The change is that some menus can now be searched by just pressing keys...

In the following I have the Blender Interface set to "English" but my Windows Input language is set to Japanese.

In the 3D Viewport I can press Shift-A to bring up the "Add" menu.

image

While that menu is shown I can press any key to start filtering the list by that by key. If I press "c" the menu will change to a filter with "c" in the list. If I type anything else I get an IME for the next character typed. In the following capture you can see the first "c" is not underlined, but the second one is.

image

This means that any user with an IME will have to always backspace that initial character away. Ideally the IME would be started with that first character when the dialog is shown. I don't think we have the capability to do that.

@sntulix No changes in IME since 3.6. The change is that some menus can now be searched by just pressing keys... In the following I have the Blender Interface set to "English" but my Windows Input language is set to Japanese. In the 3D Viewport I can press Shift-A to bring up the "Add" menu. ![image](/attachments/142ca519-52c7-476a-bdd8-a7b4a1293bb2) While that menu is shown I can press any key to start filtering the list by that by key. If I press "c" the menu will change to a filter with "c" in the list. If I type anything else I get an IME for the next character typed. In the following capture you can see the first "c" is not underlined, but the second one is. ![image](/attachments/da51d28d-259c-44ef-864f-efe1c0c0ad55) This means that any user with an IME will have to always backspace that initial character away. Ideally the IME would be started with that first character when the dialog is shown. I don't think we have the capability to do that.

Hi, @Harley.

Thank you for your detail explain.

My understand is:
image

@Harley
I think that this is not a problem of source code on IME, this is more of a feature request for a naturallly than a bug report.

Hi, @Harley. Thank you for your detail explain. My understand is: ![image](/attachments/27fb3c70-ec44-455b-b6ba-71e5dff4342f) @Harley I think that this is not a problem of source code on IME, this is more of a feature request for a naturallly than a bug report.
148 KiB

OFF Topics:

  1. if I can, I want pickup with keys
    “Shift-a, IME ON, e-n-n-p-u-t-h-i, Return”,
    not “Shift-a, e, IME ON, e-n-n-p-u-t-h-i, Return”.

  2. Japanese Input style are two mainly, "Roman Input (above)" and "Kana Input".
    Kana Input can input a character of Hirakana directly.
    ex. "Empty" - "エンプティ (Katakana)" - "えんぷてぃ (Hiragana)"
    This is a possiblity of hitting keys “Shift-a, IME ON, え-ん-ぷ-て-(ぃ), Return”.

image

OFF Topics: 1. if I can, I want pickup with keys “Shift-a, IME ON, e-n-n-p-u-t-h-i, Return”, not “Shift-a, e, IME ON, e-n-n-p-u-t-h-i, Return”. 2. Japanese Input style are two mainly, "Roman Input (above)" and "Kana Input". Kana Input can input a character of Hirakana directly. ex. "Empty" - "エンプティ (Katakana)" - "えんぷてぃ (Hiragana)" This is a possiblity of hitting keys “Shift-a, IME ON, え-ん-ぷ-て-(ぃ), Return”. ![image](/attachments/012366b0-ff7e-4acd-8252-a0c575d41491)
547 KiB

This is just an idea, but If the Translation of Interface is enabled as Chinese in the Blender setting, it make pass no character from ADD menu to Search dialog.

This is just an idea, but If the Translation of Interface is enabled as Chinese in the Blender setting, it make pass no character from ADD menu to Search dialog.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#112119
No description provided.