Comments (6)
簡単に調査したところ、Unity側に実装されていないので機能しないようです123。3によると、次の付記があったためUnity側のサポートは当面の間ないでしょう(NeosVRが内部的に使用しているUnityのバージョンがアップデートされない限り)。
Resolution Note (2022.1.X):
We want to support IME input on Linux in the future. Presently, this is not supported.
Footnotes
-
https://forum.unity.com/threads/bug-unity-for-linux-doesnt-recognize-ibus-mozc-ime-and-i-cant-input-japanese-in-unity-for-linux.1133476/ ↩
-
https://forum.unity.com/threads/unity-linux-inputfiled-ime-issue.1026481/ ↩
-
https://issuetracker.unity3d.com/issues/linux-japanese-characters-can-not-be-entered-anywhere-in-the-editor-when-using-japanese-mozc ↩ ↩2
from neosbetterimesupport.
( GreaseMonkeyです。 )
IMEではLinuxとWindowsは全然違いますね。
以下はUnityでLinuxのIMEのサポートを参加の方です。
( 全編集のために、これは便利ですかな: https://zenn.dev/sthairno/articles/cd0ea916f45580 )
Here are the necessary changes for basic support.
The following code has been written in C, not C#.
基本的なサポートに必要な変更は次のとおりです。
次のコードは、C# ではなく C で記述されています。
Make sure this happens once, before anything calls XOpenIM()
:
何かが XOpenIM()
を呼び出す前に、これが 1 回発生することを確認し:
if (XSupportsLocale()) {
XSetLocaleModifiers("");
}
Replace all calls to XFilterEvent(display, ...)
with a single XFilterEvent(display, None)
call:
XFilterEvent(display, ...)
へのすべての呼び出しを単一の XFilterEvent(display, None)
呼び出しに置き換え:
int events_queued = XEventsQueued(display, QueuedAfterFlush);
for (int i = 0; i < events_queued; i++) {
XEvent event;
XNextEvent(display, &event);
if (XFilterEvent(display, None) == True) {
continue;
}
... other code happens here - but none of it will call XFilterEvent() ...
}
When Unity calls Xutf8LookupString()
, it needs to be told to iterate over every character in the string.
Currently it only reads the first character.
Unity が Xutf8LookupString()
を呼び出すとき、文字列内のすべての文字を繰り返すように指示する必要があります。
現在、最初の文字だけを読み取ります。
from neosbetterimesupport.
@KisaragiEffective
動作テスト、報告ありがとうございます!
一応、確認なんですけど、日本語入力ができないというのは、未確定文字が表示されないというだけで、変換を確定すれば入力自体はできてますか?(つまり、このModを入れていない状態ではProton経由と同様の動作をしますか?)
ログを見る限り、アセンブリのロードとパッチは問題なさそうなので、現在の未確定文字を通知してくるUnity.InputSystemのAPI が上手く動いてなさそうです。
ただ、詳しくはログの内容が足りてないので、ログを増やしたデバッグ用バージョンを用意しました。
NeosBetterIMESupport_v1.0.1-debug.zip
お手すきの際に実行、ログの添付をお願いします。
(このModはもともと、WindowsのAPI使ってIMEと連携するつもりで作り始めたので、windowsのみに対応するつもりだったのですが、UnityのAPIだけでv1.0.0の動作は実現できたので、win以外でも動くかと少し期待していたのですが、ダメそうだったら申し訳ないのですが、私の方ではlinux nativeの対応はしばらく諦めようと思います... もちろんPR等歓迎です!)
from neosbetterimesupport.
帰ってきたのでやります
from neosbetterimesupport.
日本語入力ができないというのは、未確定文字が表示されないというだけで、変換を確定すれば入力自体はできてますか?
入力自体できません。キーをタイプするとアルファベットが入力されてしまいます。
Modを入れていない状態ではProton経由と同様の動作をしますか?
いいえ(ログ:deb11-v4 - 2022.1.28.1335 - 2022-11-11 19_32_38.log)。
お手すきの際に実行、ログの添付をお願いします。
deb11-v4 - 2022.1.28.1335 - 2022-11-11 19_37_28.log
でできていますでしょうか?
from neosbetterimesupport.
入力自体できません。キーをタイプするとアルファベットが入力されてしまいます。
なんと...
入力自体ができないのは想定してなかったです。それはこのMod以前の問題ですね。(ただ、確かにこのModで対応したい事項)
明らかにそれが原因なので、原因を調査して対応する必要があります。
(私はNeosがまともに動きそうなLinux Desktopの環境を用意するのが難しいので対応難しいです。。。)
でできていますでしょうか?
できてます。ありがとうございます!
from neosbetterimesupport.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neosbetterimesupport.