Solved How to input chinese in texstudio ?

I can type chinese in LibreOffice, but I can't type chinese in texstudio. I use ibus. How can I type chinese in texstudio?
 
Firstly, my familiarity is with Japanese, not Chinese, so my information may be wrong. I found, around FreeBSD-9 or so, that ibus was becoming more and more unreliable. I wound up switching to fcitx and now use it on most things, including any Linux that's not running Gnome.
So, my suggestion again, from someone unfamiliar with Chinese, is to try fcitx and see if it works for you. I go over using it with Japanese on my page https://srobb.net/jpninpt.html#FreeBSD which might (or might not) be of use. Hopefullly, someone with more knowledge will give a better answer.
 
I get an error message using fcitx:

You're currently running Fcitx with GUI, but fcitx-configtool couldn't be found, the package name is usually fcitx-config-gtk,fcitx-config-gtk3 or fcitx-configtool. Now it will open config file with default text editor. But pkg can't find the three packages.
 
In addition to what hbsd said. You would want to select the appropriate Chinese Input Method(s) to go with it, such as the following:
chinese/fcitx5-chewing
chinese/fcitx5-chinese-addons
chinese/fcitx5-rime

You will also need to set a few environment variables to make fcitx5 usable in whatever X11/Wayland session you are using.

I prefer to set these environment variables at the global level using /etc/login.conf in the setenv field, so I do the following:

Code:
default:\
        [...]
        :setenv=BLOCKSIZE=K,GTK_IM_MODULE=fcitx,QT_IM_MODULE=fcitx,XMODIFIERS=@im=fcitx:\
        [...]

and then update the capability login.conf database: cap_mkdb /etc/login.conf

Relogin into your X11/Wayland session and use fcitx5-config-qt to configure fcitx5 to use your preferred Chinese Input Method as shown with the three above.

If you use a standalone X11 WM or Wayland Compositor, you will need to configure them to autostart fcitx5 in the background to be able to use it.

UPDATE: Also, fcitx5 is the "newer" version of fcitx, so you would want to remove the fcitx packages that you have installed first.
 
I had installed those packages. I can use Pinyin type chinese now. But failed with rime, I want to type 中华人民共和国, it displays 重話㠴㞴㓋㔠㕵, that's not chinese.
 
Forgive me my friend, that's all the knowledge base I can offer. I only use fcitx5 for when I need to type in Japanese characters. ?
 
I'm sorry, just as ibus, I still cannot type chinese in texstudio,it only display english.
 
I just got an epiphany. Did you set your system's locale to Chinese?
 
I connect to internet through my phone's usb tethering,but I can't use it today. When I type dhclient ue0 in terminal, terminal lost response, all other applications lost response too,keyboard and mouse can't work either. After unplug my phone, system becomes useable. Another problem, these two days system reboots automatically after I type kldload i915kms in terminal. What's wrong?
 
I connect to internet through my phone's usb tethering,but I can't use it today. When I type dhclient ue0 in terminal, terminal lost response, all other applications lost response too,keyboard and mouse can't work either. After unplug my phone, system becomes useable. Another problem, these two days system reboots automatically after I type kldload i915kms in terminal. What's wrong?
unicorn I think it's better to open a new thread for this issue so that later people who have the same problem be able to solve it. In addition, users may not follow this thread anymore.
 
Also, if you have time, it's good to tell how you solved the issue--again same thing, that others might find this at some point because they're having the issue. I'd *guess* the solution was installing the packages that hbsd suggested, but it's not really clear to me.
 
I can type chinese in LibreOffice, but I can't type chinese in texstudio. I use ibus. How can I type chinese in texstudio?

Hi,
Can you share how you configured to input chinese in libreoffice?
I'm using fcitx for chinese input. So far there are only a few applications don't work with fcitx, and libreoffice is one of them. What happens in libreoffice is when I press Ctl-space, which is the key combo I use to switch input methods on other applications, no switch at all, IM stays in English.
The system locale is en_US.UTF-8.
 
Again, I'm not sure if I can help as I know Japanese, not Chinese. I did find that in some Linux distributions, I wasn't able to type in gtk or qt applications, such as libreoffice, until I installed some extra packages, including, fcitx-qt5. On my FreeBSD-13.1 install, I see that I do have fcitx-qt5, so if you don't have that installed, it might be worth trying.
 
Hi,
Can you share how you configured to input chinese in libreoffice?
I'm using fcitx for chinese input. So far there are only a few applications don't work with fcitx, and libreoffice is one of them. What happens in libreoffice is when I press Ctl-space, which is the key combo I use to switch input methods on other applications, no switch at all, IM stays in English.
The system locale is en_US.UTF-8.
I just test it, LibreOffice can't use fcitx to input chinese. You can use ibus instead.
 
I can type chinese in texsudio in manjaro with ibus, but can't type chinese in any other applications. Ibus works well with other applications before I use pacman upgrade system.
 
I want to know why I can use ibus input chinese in texstudio with manjaro but can't with FreeBSD. I have no clue.
 
Sorry, I misunderstood. As mentioned above, perhaps trying fcitx might help. I've found ibus to have become unreliable. In my case this applies to Linux as well, unless I'm using Gnome or KDE.
 
Hi,
Can you share how you configured to input chinese in libreoffice?
I'm using fcitx for chinese input. So far there are only a few applications don't work with fcitx, and libreoffice is one of them. What happens in libreoffice is when I press Ctl-space, which is the key combo I use to switch input methods on other applications, no switch at all, IM stays in English.
The system locale is en_US.UTF-8.

I can type chinese in Libreoffice with fcitx now, add these lines to your /etc/profile:

Code:
#fcitx

export XIM_PROGRAM=fcitx

export XIM=fcitx

export GTK_IM_MODULE=fcitx

export QT_IM_MODULE=fcitx

export XMODIFIERS="@im=fcitx"
 
I don't have ibus or anything installed for Chinese support but fonts, and testing pasting some Chinese characters on Texstudio works.

I suppose the issue is the font you are using on Texstudio.
 
Back
Top