SethRobinson / UGT

Universal Game Translator - Uses Google's Cloud Vision to read and speak dialog from any image/game in any language
https://www.codedojo.com/?p=2426
Other
120 stars 24 forks source link

Stripping whitespace from translated text in dialog mode #35

Closed jotumn closed 2 years ago

jotumn commented 3 years ago

For example, this image: Image1

Produces the following text in the copy buffer:


I have astral vision and I'm on the lookout for wizards.

With one empty line at start and two in the end.

The log strips it out correctly, btw:

あたしはアストラル視覚で魔法使いを警戒してるわ
I have astral vision and I'm on the lookout for wizards.

Also, the auto-download of update worked fine for me.

SethRobinson commented 3 years ago

Oops, will check that.

SethRobinson commented 2 years ago

Fixed in d16801e7 (for the clipboard, I even left off the final CR at the end of the line. let me know if that doesn't work with what you're doing)