Textractor
Textractor copied to clipboard
Add space at the end of a sentence before it is translated
Hi ! ^_^ I would like to know if it is possible to add a little space at the end of a sentence before it is translated because when they are translated it can give you quite bad results obviously ^^'
This is the problem I pointed out in this thread by asking if anyone would be able to create an extension that allows you to edit the text so that you can separate the joined words
https://github.com/Artikash/Textractor/discussions/567#discussioncomment-1627250
An alternative method is to create a spelling extension of the English text that automatically corrects misspelled words. Unfortunately my knowledge of the CPP is limited and I am not able to do.
As a workaround I tried to use a python spelling library (symspell) to create a server and create an extension that passes the text to the python server, but the best solution would be to use the spelling library directly in the extension.
It looks to me that there were never any spaces in original text to begin with. Instead each line in game text window is separated by some special character in game scripts and then game engin knows that if that special chracter is found in text then just move to next line.
You would have to use some external api or some code where if you input i'mneeded
then that code/api can return correct results. Like in google translate here You can see that google is suggesting you that 'Did you mean I'm needed
'
Use this Lua script: Spellcheck.zip
Thank you very much
Используйте этот сценарий Lua: Spellcheck.zip https://github.com/Artikash/Textractor/issues/812#issuecomment-1126629232
Используйте этот сценарий Lua: Spellcheck.zip
I don't know which of these helped me, but I solved the problem this way, when I did everything exactly as in the screenshots, I lost \n and managed to get the correct spaces between words )