You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# On Pengwin WSL
pengwin-setup update
sudo apt update && sudo apt upgrade -y
# In the current issue, it is set to `zh_CN.UTF-8 UTF-8`.
sudo dpkg-reconfigure locales
# Before executing `echo $LANG`, open a new Pengwin WSL shell. Make sure `echo $LANG` outputs `zh_CN.UTF-8`.echo$LANG# install GUI -> NLI -> IBUS. Select libpinyin. Select libpinyin for the ibus engine. All other options are y.
pengwin-setup
At this time, you may wish to use microsoft-edge to test ibus.
# Restart WSL by executing `wsl --shutdown` in Windows PowerShell 5.1 or PowerShell 7.# Open a new Pengwin WSL Shell.# On Pengwin WSL# Install Microsoft Edge to testcd /tmp/
wget https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_122.0.2365.92-1_amd64.deb?brand=M102 -O ./microsoft-edge-stable.deb
sudo apt install --fix-missing ./microsoft-edge-stable.deb -y
microsoft-edge
At this point, ibus cannot be used in microsoft-edge.
This honestly surprises me, since the same process is sufficient to get Ubuntu WSL to start ibus. See Lack of an application similar to gnome-startup-applications in Ubuntu WSL affects the use of ibus ubuntu/WSL#483 . The only difference is that there is no apt-get package named language-pack-gnome-zh-hans-base in Pengwin WSL. sudo sh -c 'echo "ibus-daemon -drx > /dev/null 2>&1" >> /etc/profile.d/ibus.sh' doesn't seem to have any effect. Because ibus-daemon has a -r parameter to kill existing old ibus-daemon processes, you can actually simplify the commands executed.
# On Ubuntu WSL 22.04
sudo apt update && sudo apt upgrade -y
# In the current issue, it is set to `zh_CN.UTF-8`.
sudo dpkg-reconfigure locales
# Before executing `echo $LANG`, open a new Ubuntu WSL shell. Make sure `echo $LANG` outputs `zh_CN.UTF-8`.echo$LANG# I would say this will provide a Chinese GUI for `ibus-setup`.
sudo apt install language-pack-gnome-zh-hans-base -y
cd /tmp/
# Install Microsoft Edge
wget https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_122.0.2365.92-1_amd64.deb?brand=M102 -O ./microsoft-edge-stable.deb
sudo apt install --fix-missing ./microsoft-edge-stable.deb -y
# Install the input method framework `ibus` and the input method editor `ibus-libpinyin`
sudo apt-get install fonts-noto-cjk fonts-noto-color-emoji dbus-x11 zenity -y
sudo apt-get install ibus-libpinyin -y
sh -c 'echo "export GTK_IM_MODULE=ibus" >> ~/.bashrc'
sh -c 'echo "export XMODIFIERS=@im=ibus" >> ~/.bashrc'
sh -c 'echo "export QT_IM_MODULE=ibus" >> ~/.bashrc'source~/.bashrc
ibus-daemon -dxr
# Add Input Method `中文 -> 智能拼音`
ibus-setup
# Restart WSL by executing `wsl --shutdown` in Windows PowerShell 5.1 or PowerShell 7.# Open a new Ubuntu WSL Shell.
ibus-daemon -dxr
microsoft-edge
The text was updated successfully, but these errors were encountered:
What I've found is that if you delete the English input method, it actually works
I realize that ibus-setup can only be configured via the GUI, which introduces a lot of variables. I will upload a video of configuring ibus under Pengwin WSL in the current issue or video website soon to verify the difference.
/pengwin-setup.d/ibus.sh
does not actually make ibus available in Pengwin WSL, but works in Ubuntu WSL. Refer to https://github.com/WhitewaterFoundry/pengwin-setup/blob/d561920b8e04fcf8a8f0861d27c90ce4fd82f9f6/pengwin-setup.d/ibus.sh .microsoft-edge
to testibus
.gnome-startup-applications
in Ubuntu WSL affects the use ofibus
ubuntu/WSL#483 . The only difference is that there is no apt-get package namedlanguage-pack-gnome-zh-hans-base
in Pengwin WSL.sudo sh -c 'echo "ibus-daemon -drx > /dev/null 2>&1" >> /etc/profile.d/ibus.sh'
doesn't seem to have any effect. Becauseibus-daemon
has a-r
parameter to kill existing oldibus-daemon
processes, you can actually simplify the commands executed.The text was updated successfully, but these errors were encountered: