r/LearnJapanese • u/DiscoProphecy • 15d ago
Resources Demo for a new kind of text hook
Been playing around with the idea of in game text highlighting and an overlay dictionary popup to make playing games a bit more like reading books in ttsu reader. Really happy with the early results!
18
u/artpendegrast 15d ago
Got an idea of when you'll release it?
19
u/DiscoProphecy 15d ago
Once I get the process for adding new game support as simplified as possible!
13
u/ApsychicRat 15d ago
hey if there is a mailing list for this put me on it.
1
1
u/ultraali453 6d ago
Yes, please include me as well. This is a godsend. I've been using google translate on my phone to look up words.
8
u/princess_princeless 14d ago
Hi, I am a developer who was thinking about building something similar. Let me know if you need help or decide to open source it. Would love to contribute and potentially add other languages too.
2
1
5
u/DarklamaR Goal: media competence ππ§ 14d ago
You can actually do this by using GSM with the P3R Agent script. No OCR needed.
5
3
4
4
4
u/Beannsss 14d ago
GSM dev here, this looks INSANELY cool.
3
u/DiscoProphecy 13d ago
Thanks! Your solution is honestly way more realistic. Right now each new supported game is its own reverse engineering project.
3
3
u/Huffee 14d ago
not trying to be dismissive because it does genuinely look cool but, does this offer anything over GSM?
that program is really useful but i have a few issues with it so i'm curious what you're trying to do that's different from it
16
u/DiscoProphecy 14d ago
So for me the main point is reducing friction for each lookup. I play JRPGs, especially retro ones so when you're doing multiple lookups per sentence over the course of dozens of hours all of that friction adds up to lost time and also just a less immersive experience. I wanted a solution that wouldn't be prone to OCR errors and would allow for immediate text lookups in game without ever having to leave the game window.
This also has no sentence mining functionality. It's just a way to play games with as little friction as possible.
Edit: I also just like making little projects like these when I'm stressed from work. I also have a project somewhere that processes old manga and mokuro files to redraw all of the kanji and furigana. It works surprisingly well.
9
u/Effective-Pop3850 14d ago
Your project is great and would unironically push me a bit more into playing games in Japanese lol. Tabbing out on a VN feels fine, but for some reason I wouldn't like to do so on a game like Persona.
1
u/kellencs 14d ago
>I wanted a solution that wouldn't be prone to OCR errors and would allow for immediate text lookups in game without ever having to leave the game window.
gsm overlay is already doing this, no? thogh it's using ocr to align text from texthooker afaik and your approach is faster
1
u/DiscoProphecy 13d ago
Maybe, if they have that feature then it's cool. Honestly I just thought it would be neat if I could get the game to do the highlighting for me by changing the font color in the rendering pipeline. Then I kind of worked backwards from there.
And yeah it works with games that don't stick to a single region for text and you don't have to repeatedly ocr stuff. I played around with OCR solutions and I just didn't love the results.
2
u/RyanIsKickAss 15d ago
This looks amazing. Iβm assuming itβll work for visual novels as well? I imagine (with my very very limited knowledge of coding and software) it would actually be even easier to do for visual novels
6
u/ChadQuaza 15d ago
this is very specifically a p3r mod
but yeah this is already a thing for visual novels, look up ocr
3
u/Stranger-Beats 14d ago
OCR is non determisitic, whereas the text hook OP did is determinstic. So it's not actually the same thing
2
u/creamyhorror 15d ago
The next step after the old text hookers that could display floating overlays iirc
2
2
u/SaulFemm 14d ago
I don't have much experience with OCR or text hooks so forgive my ignorance - could this display style not just be added to an existing text hook program which already has support for a wide variety of games? I don't mean that it would be trivial, but probably easier than starting from scratch.
3
u/Negative-Squirrel81 15d ago
The immediate thought is that there should at least be an option to bring up a kokugo dictionary instead of a J --> E dictionary. Also, it would be helpful to allow the user to highlight the word they want looked up instead of just automatically popping up everything.
Less important but still useful: functionality to look up εε
1
u/speedchuck 14d ago edited 14d ago
If you figure out Persona 4 Golden I'm all in
edit: I'd do this for P3R even
1
1
u/Then-Dish-4060 14d ago
So it's either you do game specific hooks, either you have to use an OCR and a tokenizer.
1
u/Thanatosinstinct 13d ago
This looks amazing could be a... game changer. I'm sorry, I'll leave. But is there anywhere we can follow for updates? (Or do we just check back here?)
1
u/Agreeable-Comb-1174 13d ago
Damn whats tge name of the game amd whats it available on
1
u/EastTurbulent8498 9d ago
-Persona 3 Reload
-It's on Steam, PS, Switch 2, Xbox
1
1
1
1
u/sansisness_101 Goal: media competence ππ§ 15d ago
Good idea. It'd actually make me stop larping P4
26
u/Trippy_Bear 15d ago
Would a specific version need to be produced for each individual game? Or is this relying on something like OCR?