killkimno / MORT

MORT 번역기 프로젝트 - Real-time game translator with OCR
https://blog.naver.com/killkimno/70179867557
MIT License
548 stars 38 forks source link

Custom api and overlay #47

Open creadth opened 4 days ago

creadth commented 4 days ago

Hi! Thank you for amazing translator. I made a custom translator for MORT, but I have a problem when "Overlay" is used. It seems that MORT splits different section using ////// as a separator, but when I ensure response is also separated the same way MORT does not pick it up and I have the very first section messed up: image Could you please let me know what is the proper way to fix this issue?

killkimno commented 4 days ago

Hello! Thank you for your interest Yes, I am using ////// to distinguish between them

However, when using Google Translate with Simplified and Traditional Chinese, ////// comes out as different characters

I am currently thinking about how to deal with this issue.

creadth commented 4 days ago

It's actually works perfectly with google translate, the only issue is with Custom API. I am not sure what the difference is, I was even trying return the same text, tokenization fails anyway and results in a mess as on the screenshot above. If I select Google Translate (Basic) instead - everything works great

killkimno commented 4 days ago

Ah, you said that there is a problem when using custom API. I will check it out.

It was an issue I found before, but I guess it hasn't been fixed yet.