rime / ibus-rime

【中州韻】Rime for Linux/IBus
https://rime.im
GNU General Public License v3.0
730 stars 105 forks source link

中州韻怎么输入时间和日期? #123

Open wutianjun5858 opened 3 years ago

wutianjun5858 commented 3 years ago

如题, 现在win10和mac都可以输入时间和时间唯独linux的中州韻不可以, 有什么办法可以实现吗?

walk143 commented 3 years ago

通过lua实现。参见 https://github.com/rime/weasel/issues/63

wutianjun5858 commented 3 years ago

我知道mac和windows可以的, 但是我并不知道linux是否可以?

walk143 commented 3 years ago

我知道mac和windows可以的, 但是我并不知道linux是否可以?

我使用arch可用。

wutianjun5858 commented 3 years ago

你是编译安装的吗

walk143 commented 3 years ago

不是编译,参考https://wiki.archlinux.org/index.php/IBus_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)

yay -Sy ibus-rime
vim .xprofile
#vim /etc/bash.bashrc
# ibus start
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
# ibus end
ibus-daemon -drx
# profile end

ibus-setup
laichiaheng commented 2 years ago

@walk143 Arch 不行呀,你怎麼輸入時間的?

walk143 commented 2 years ago

https://github.com/rime/weasel/issues/63#issuecomment-95605325

lua使用同Windows

laichiaheng commented 2 years ago

@walk143 Arch Linux 的 ibus-rime 不是不支援 lua 嗎? 譬如我用 RIME 洋蔥注音 mix-in,照他說法按下「'」「/」「f」會出現日期,但是沒有 https://github.com/oniondelta/Onion_Rime_Files/issues/9#issuecomment-1047770116

walk143 commented 2 years ago

@walk143 Arch Linux 的 ibus-rime 不是不支援 lua 嗎? 譬如我用 RIME 洋蔥注音 mix-in,照他說法按下「'」「/」「f」會出現日期,但是沒有 oniondelta/Onion_Rime_Files#9 (comment)

我用的arch和ibus-rime,是支持的。不妨你将你的方案整个传一个仓库,我测试一下

pacman -Q | grep rime
ibus-rime 1.5.0-1
librime 1:1.7.3-7
librime-data 0.0.0.20210627-1
rime-bopomofo 0.0.0.20210131-1
rime-cangjie 0.0.0.20210223-1
rime-essay 0.0.0.20210805-1
rime-luna-pinyin 0.0.0.20210805-1
rime-prelude 0.0.0.20210627-1
rime-stroke 0.0.0.20191221-2
rime-terra-pinyin 0.0.0.20210805-1
walk143 commented 2 years ago

@walk143 Arch Linux 的 ibus-rime 不是不支援 lua 嗎? 譬如我用 RIME 洋蔥注音 mix-in,照他說法按下「'」「/」「f」會出現日期,但是沒有 oniondelta/Onion_Rime_Files#9 (comment)

我用的arch和ibus-rime,是支持的。不妨你将你的方案整个传一个仓库,我测试一下

pacman -Q | grep rime
ibus-rime 1.5.0-1
librime 1:1.7.3-7
librime-data 0.0.0.20210627-1
rime-bopomofo 0.0.0.20210131-1
rime-cangjie 0.0.0.20210223-1
rime-essay 0.0.0.20210805-1
rime-luna-pinyin 0.0.0.20210805-1
rime-prelude 0.0.0.20210627-1
rime-stroke 0.0.0.20191221-2
rime-terra-pinyin 0.0.0.20210805-1

我的方案参见 https://gitee.com/sloera/trime/raw/clipboard/app/src/main/assets/rime/rime.lua

laichiaheng commented 2 years ago

@walk143 我是使用這個:https://github.com/oniondelta/Onion_Rime_Files 它裡面也有一個 rime.lua

walk143 commented 2 years ago

@walk143 我是使用這個:https://github.com/oniondelta/Onion_Rime_Files 它裡面也有一個 rime.lua

这结构太多了,最好提供你在使用的最少配置。 你在方案中启用lua了吗,如

  translators:
    - lua_translator@date_translator #时间变量输出