News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

Japanese text input

Started by Phystam, June 10, 2020, 08:15:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Phystam

We cannot convert Japanese words over 2 characters. In my memory, I did fix the same issue before several years ago.


EDIT:
I found the thread:
https://forum.simutrans.com/index.php/topic,17212.0.html
But the code is not removed. why...?

jamespetts

Quote from: Phystam on June 10, 2020, 08:15:44 AM
We cannot convert Japanese words over 2 characters. In my memory, I did fix the same issue before several years ago.


EDIT:
I found the thread:
https://forum.simutrans.com/index.php/topic,17212.0.html
But the code is not removed. why...?

This fix remains in the code, so the problem of Japanese character insertion must be elsewhere. I am afraid that I have not changed any of the text input code, so I know very little about how this works in Standard. I wonder whether any of your merging work will help with this?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Phystam

I found the origin of this issue.

In commit 662d59e, prissi introduced a bug fix, but it made this bug. Now I can input Japanese texts correctly by removing this section of the prissi's bug fix.

prissi

I could enter up to 6 kanji at one time in standard. Is there also an action needed in Standard on this?

jamespetts

Quote from: Phystam on June 17, 2020, 09:32:48 AM
I found the origin of this issue.

In commit 662d59e, prissi introduced a bug fix, but it made this bug. Now I can input Japanese texts correctly by removing this section of the prissi's bug fix.

Thank you for this. I have pushed a fix by commenting out the relevant part. I should be grateful if people who use Japanese text input could confirm that this addresses the issue in the next nightly build.

Given that this change was a fix for something, however, I wonder whether this might break something else?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Ranran(retired)

Quote from: prissi on June 17, 2020, 12:50:44 PMI could enter up to 6 kanji at one time in standard. Is there also an action needed in Standard on this?
At least standard can input Japanese correctly. Extended did not fix it in the same way.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

Ranran(retired)

Unfortunately, the problem that Japanese cannot be input has not been fixed yet (#a11f6b9). (´・ω・`)
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

jamespetts

If anyone has any ideas as to how to resolve this, that would be most welcome.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Phystam

In some cases, we have to click the text area once before inputting any texts. (Especially markers)

DrSuperGood

I think they use special third party (unrelated to Simutrans) input assistants to help enter the characters due to the huge number of glyphs involved. I remember this discussion from standard where there was an issue that such assistants were broken. As such the input is not just standard keyboard input but involves other aspects such as having the position within the entered string being set correctly and relaying this information on.

prissi

This is all done in standards simsysw/SLD2 and the gui elements. The latter has extended functions in standard to allow for the automatic arrangement of GUI elements with different font sizes and text lengths. Porting at least the sizeable GUI (the dialoges themselves do not need to be ported immediately!)  to extended seems important, if there is any hope to profit from this and similar fixes from standard ...


Ranran(retired)

#11
Quote from: Phystam on June 21, 2020, 08:51:15 PMIn some cases, we have to click the text area once before inputting any texts. (Especially markers)
[ja](´・ω・`)正確にはここに書いたのと同じ症状で、クリックは意味ないと思う
It's exactly the same symptom that I've reported to the standard bug report thread before, and I don't think the click makes sense.

EDIT:
(´・ω・`)Phystamの修正でクリック法が有効になってたみたい
(´・ω・`)ちゃんと最新ビルドで確認して無かった。ごめんね
It seems that the correction of Phystam can only be entered in Japanese by clicking the textbox once.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

Ranran(retired)

Fortunately, the ongoing standard incorporating work solves this issue.
Please check after it has been incorporated into the master branch.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

Phystam