
KeyRelease event, serial 37, synthetic NO, window 0x2600001,
root 0x269, subw 0x0, time 25839746, (517,242), root:(622,350),
state 0x0, keycode 254 (keysym 0x11f, (no name)), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x2600001,
root 0x269, subw 0x0, time 25840405, (517,242), root:(622,350),
state 0x0, keycode 255 (keysym 0x15f, (no name)), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2600001,
root 0x269, subw 0x0, time 25840514, (517,242), root:(622,350),
state 0x0, keycode 255 (keysym 0x15f, (no name)), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
我在 dex 上使用 Linux。 Ubuntu 16.0.4.5 LTS。我只需要一些特殊字符,例如 şğıı。我在網路上做了一些研究(2天),對Linux的了解為零,但我的最後一站是這裡。問題是當我打開時/usr/share/x11/xkb/symbols/tr
——這是我係統上當前的鍵盤佈局——我可以看到gbreve(ğ)、scedilla(ş) 等。 ibus 首選項。 gbreve(ğ) 的表示形式為:UTF-16:0x11fUTF-8:按下時為 0xC4、0x9F。當我輸入時我也得到這個:
$ locale -a
C
C.UTF-8
en_US.utf8
POSIX
tr_CY.utf8
tr_TR.utf8
所以..我看到它是不同的 utf8 和 utf-16 但我能做什麼來輸入這些字母呢?我只需要 LibreOffice。
$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
$ sudo dpkg-reconfigure keyboard-configuration
[sudo] password for dextop:
grep: /proc/bus/input/devices: Permission denied
grep: /proc/bus/input/devices: Permission denied
Your console font configuration will be updated the next time your system
boots. If you want to update it now, run 'setupcon' from a virtual console.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: warning: script 'int_container.sh' missing LSB tags and overrides
insserv: warning: script 'vnc.sh' missing LSB tags and overrides
insserv: warning: script 'init_container.sh' missing LSB tags and overrides
當我輸入該命令時,沒有像你這樣的介面
我選擇 generic 105 int 並在那裡選擇語言佈局。正如您提到的沒有死鍵,我將 compose 設為 alt gr 但這沒有幫助。
我修復了之前 Ubuntu img 設定中的 LSB 標籤問題。所以問題不是這樣的。另外,我聽說一些錯誤是由 python bug 引起的。例如,我可以調出語言選擇選單,但當我在系統設定上點擊它時,什麼也沒有出現。我還嘗試更改語言環境 tr 但它沒有給我任何輸出。我知道 Linux on dex 的設定並不可靠,但我的目標只是透過編輯 xkb x11 符號檔案等來產生幾個字母。
好吧,我開始明白真正的問題是什麼。
grep: /proc/bus/input/devices: Permission denied
這個錯誤暗示了一些事情。需要許可。我也無法以任何方式改變佈局。即使我選擇英文鍵盤,它也會給我這個錯誤。所以我無法改變任何事。因此,由於它仍然是預設的英文鍵盤,因此它在 xev 輸出中顯示 noname。因為EN佈局中不存在它。我搜尋了為什麼它給我這個錯誤。首先我看到 proc 資料夾被註冊為無人組。所以,只讀。
首先,我使用 root 使用者執行相同的 dkpg 命令。No protocol specified Cannot open display ":1"update-initramfs: deferring update (trigger activated)
這次又出現了 3 個額外的錯誤。
然後嘗試sudo adduser dextop /proc/bus/input/devices
得到
adduser: The group
/proc/bus/input/devices' 不存在`
然後chown -R dextop /proc/bus/input/devices
這次嘗試了chown: changing ownership of '/proc/bus/input/devices': Permission denied
此時並根據此https://serverfault.com/questions/60711/chown-operation-not-permissed-for-root 我正在使用 FAT 檔案系統,也許還有我在 Linux dex 上使用的 Linux 映像。它不會也永遠不會讓我更改鍵盤佈局。這很有趣。但感謝您的努力。
最後編輯:問題是 Linux 中 dex 應用程式內建的 Vnc 檢視器,而不是 img 本身。因為當我在終端模式下打開 Ubuntu 並連接到另一個 vnc 伺服器時,我可以產生我想要的所有字元。 (順便說一句,連接到它沒有用。當您全螢幕顯示該 vnc 檢視器應用程式時,連接會暫停)但我想我找到了一種使用我的母語使用 LibreOffice 的方法。我在 reddit 上解釋過:
答案1
首先將鍵盤佈局設定為美式無死鍵
sudo dpkg-reconfigure keyboard-configuration
將撰寫鍵設定為您最喜歡的按鍵(在圖片上,Alt_R)
現在使用組合鍵 + 組合鍵輸入字符
Compose+ c g= “ǧ”
Compose+ , s= “ş”
Compose+ . I= “ı”
Compose+ i .= “ı”
其他角色請參見https://help.ubuntu.com/community/GtkComposeTable 也https://fsymbols.com/keyboard/linux/compose/
您也可以透過Control+ Shift+U十六進位代碼輸入 Unicode 字符Space