texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.79k stars 344 forks source link

Automatically switch input method #1454

Open clsgg opened 3 years ago

clsgg commented 3 years ago

Environment

Describe the feature and the current behavior/state

An annoying problem when inputting Chinese LaTeX documents is the problem of switching between Chinese and English. The formula is entered in English, and the text is entered in Chinese, and mistakes are often made. Is there a way to switch automatically in TexStudio? When entering the formula input area (such as $$, \begin{equation}\end{equation}, etc.), the input method is set to English, and the previous input method is restored when leaving the formula input area .

HubYZ commented 3 years ago

I think it is not a good feature.

If this feature is achieved, then it will be annoying for users who just want to input Chinese or other languages in the formula area.

As your case is not a common one, it is better to switch it by yourself.

Myridium commented 3 years ago

I think it is not a good feature.

If this feature is achieved, then it will be annoying for users who just want to input Chinese or other languages in the formula area.

As your case is not a common one, it is better to switch it by yourself.

In what situation would someone want to input non-english characters into the formula area? I imagine that is the more uncommon scenario.

Also, annoyingly interfering with the user's typing hasn't stopped Texstudio before. Particularly the autocomplete of environment names and of parantheses. So your reasoning is not consistent with the preceding design philosophy of TeX Studio.

Myridium commented 3 years ago

Does this do what you want @clsgg ? Where it says "Automatically switch keyboard layout: ... depending on text/math mode". The options menu and User Manual do not explain what this feature does or how to actually use it. But it sounds like it could be what you're asking for.

Screenshot_20210301_203319

clsgg commented 3 years ago

Does this do what you want @clsgg ? Where it says "Automatically switch keyboard layout: ... depending on text/math mode". The options menu and User Manual do not explain what this feature does or how to actually use it. But it sounds like it could be what you're asking for.

Screenshot_20210301_203319

I tried this setting and it didn't seem to work. I don’t know if there is a requirement for the type of input method. I use the Sogou Pinyin input method which relies on the Fcitx.

benibela commented 3 years ago

Does this do what you want @clsgg ? Where it says "Automatically switch keyboard layout: ... depending on text/math mode". The options menu and User Manual do not explain what this feature does or how to actually use it. But it sounds like it could be what you're asking for. Screenshot_20210301_203319

I tried this setting and it didn't seem to work. I don’t know if there is a requirement for the type of input method. I use the Sogou Pinyin input method which relies on the Fcitx.

That option only switches between a left-to-right and a right-to-left language