Author Topic: How to switch input method between half-width and full-width using shift  (Read 4707 times)

Offline kipade

  • Multiple posting newcomer
  • *
  • Posts: 50
As the topic.
How?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to switch input method between half-width and full-width using shift
« Reply #1 on: November 24, 2017, 10:35:46 am »
You'll have to explain what half-width and full-width are. Then we could probably answer the question.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: How to switch input method between half-width and full-width using shift
« Reply #2 on: November 24, 2017, 03:11:56 pm »
I believe the OP are using some kinds of Chinese input method, there for example, if we press the "dot" key. In half-width mode, it enters an English version of a dot character, while in full-width mode, it enter a Chinese version of "dot", which occupy the double width of the English version.

So, what's exact problem do you have? @kipade
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline kipade

  • Multiple posting newcomer
  • *
  • Posts: 50
Re: How to switch input method between half-width and full-width using shift
« Reply #3 on: November 25, 2017, 02:49:12 pm »
Yes. If the Chinese input method (SCIM for example) was actived to input Chinese characters, the shift key will switch between Chinese and English characters output quickly.
However, this feature is good for normal text control, except the code edit view.
I checked, its due to wxScintilla.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to switch input method between half-width and full-width using shift
« Reply #4 on: November 25, 2017, 03:23:18 pm »
Can you try if this works in the latest wxwidgets master branch? There is a stc sample which can be used to test this.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline kipade

  • Multiple posting newcomer
  • *
  • Posts: 50
Re: How to switch input method between half-width and full-width using shift
« Reply #5 on: November 26, 2017, 01:06:22 am »
Can you try if this works in the latest wxwidgets master branch? There is a stc sample which can be used to test this.
I tried, and found it does not work too.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to switch input method between half-width and full-width using shift
« Reply #6 on: November 26, 2017, 04:21:23 pm »
Then report it as a problem in the wxwidgets bug tracker. When they implement it will take it.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline kipade

  • Multiple posting newcomer
  • *
  • Posts: 50
Re: How to switch input method between half-width and full-width using shift
« Reply #7 on: November 27, 2017, 04:23:06 am »
Thanks.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: How to switch input method between half-width and full-width using shift
« Reply #8 on: November 27, 2017, 03:47:52 pm »
Is the issue happens when you using other IM frameworks such as ibus or fcitx for Chinese input?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.