HIllya51 / LunaTranslator

Galgame翻译器,支持HOOK、OCR、剪贴板等。Visual Novel Translator , support HOOK / OCR / clipboard
http://docs.lunatranslator.org/
GNU General Public License v3.0
4.83k stars 243 forks source link

Hook won't get text if it had special character #1043

Closed noideaforeal closed 2 months ago

noideaforeal commented 2 months ago

Version 程序版本

newest

OS version and bits 系统版本和位数

win 11 23h2

bug's screenshot 错误截图

Whenever this text ~ appear in the text, hook won't get the text at all. Try to change translate engine but to no avail, because it doesn't get the text to begin with. image

Reproduction steps 复现步骤

Using as normal, but ~ character appear then suddenly the hook doesn't get text.

Log files 日志文件

2024-08-30-03-46-21.txt 2024-08-29-20-14-48.txt 2024-08-29-05-13-10.txt

HIllya51 commented 2 months ago

https://github.com/HIllya51/LunaHook/issues/new?assignees=&labels=enhancement&projects=&template=01_game_request.yaml

HIllya51 commented 2 months ago

Recreate the issue following requirements. Your current issue does not include any meaningful information.

miepo commented 2 months ago

Last year I had a similar issue. Every time there was a "~" or "~" Luna would not translate the text after the tildes. After hours of troubleshooting I fixed it by unchecking "Filter Other Garbled Characters" under Text Processing. Maybe you also accidentally enabled that? I had enabled it thinking it would remove code or actually "garbled characters" not common characters like tildes.