[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/jp/ - Otaku Culture

Search:


View post   

>> No.41144306 [View]
File: 47 KB, 1511x686, regexmoonrunefilter.png [View same] [iqdb] [saucenao] [google]
41144306

>>41144048
Yes. if you want to make it only translate a specific part, open the game's clipboard window and and just highlight and ctrl c the text you want.
A better way would be to use a program that displays the contents of your clilpboard and use that instead because you can't play the game with it's clipboard window open.
If you want it to only translate and detect only Japanese text on the fly, you might have to fiddle with the .js files in the folders of the program-backend folder. I have zero programming experience, so the best I could do was add a line with regex in textfilter.js to replace non-jap characters not adjacent to jap characters and menu characters with nothing, but occasionally it seems to fail. It also lets maps in, but I have no idea what regex would filter that since the maps use japanese text.
I haven't modified the main.js file because I don't want to break anything and I don't know how it works, but there's function with a regex there that seems to presumably detect Japanese characters, and I don't know how it lets stuff like menu characters through.

Navigation
View posts[+24][+48][+96]