Post details: Machine Assisted Visual Novel Reading

07/30/07

Permalink 05:10:06 pm, by Blitzwing Email , 599 words, 11510 views   English (CA)
Categories: General, Scripting

Machine Assisted Visual Novel Reading

UPDATE [11/25/08]: Revised script can be found here.

While pondering a means by which I could enjoy Key's latest work, Little Busters, with my limited Japanese language ability, I discovered a lack of resources available to assist low-intermediate readers. Machine translation does naught to improve one's interpretation skill (except perhaps of "Engrish"), and those with literate reading capability don't require aids.

Thus, I have hacked together what is essentially a glorified (if even that) macro for automating the transferal of text from AGTH to Wakan and Firefox (rikaichan). All the software required to implement it is freely available on the internet. It's very simple, essentially shuffling clipboard contents around, but I hadn't really seen any discussion regarding this sort of technique in the usual places.

More details after the jump:

[More:]

Methodology:

Why both Wakan and rikaichan? I wasn't satisified with the implementation of each one on it's own. rikaichan has a superior grammar detection engine, but mouse-overing every single character gets tedious quickly. Wakan, on the other hand, displays furigana and definitions along with the text, but it often omits hiragana and katakana only words, and occasionally parses compounds incorrectly or provides the incorrect pronunciation. Together, the two complement each other nicely. The ideal solution would be some sort of AGTH plugin that piped into a standalone version of rikaichan that had the additional features of Wakan, but that's well beyond my abilities. Anyone up to the task? xD

Pros:
-Japanese literacy can be better trained, especially when used in conjunction with Wakan's learning features.
-Software is freely available.
-Should work with every game that AGTH works with.

Cons:
-solid understanding of Japanese grammar and kana required for effective use.
-it's somewhat inefficient, being a script and requiring several different programs in a specific configuration.

What you'll need (These will open in new window):

AGTH (Anime Games Text Hooker)

agth.html (make an empty html file of that name and put it somewhere convenient. UTF-8 encoding is a good idea.)

AutoIt (the scripting engine)

Mozilla Firefox

notepad.exe (this comes with Windows >.>)

Rikaichan (Firefox extension)

The script

Wakan

Make sure to grab the latest dictionaries for Rikaichan and Wakan, of course. Quite a list eh? This solution is not for everyone, but I definitely found it worthwhile to set up.

Instructions:

Step 1: Install everything.

Step 2: Create an AGTH shortcut as required for the game in question (More documentation on AGTH can be found here). Make sure to use the /C switch in the shortcut (clipboard copy).

Step 3: Modify the script by replacing GAME WINDOW TITLE GOES HERE with the Game's window title. The AutoIt Window Info Tool that comes with AutoIt will facilitate this. Copy it from the box as indicated in this example screenshot.

Step 4: Open agth.html in Notepad. This file acts as a scratchpad of sorts for rikaichan.

Step 5: Open agth.html in Firefox. Turn on rikaichan.

Step 6: Open Wakan. Go to "Editor/Translator" mode.

Step 7: Run the shortcut you made in step 2 to start your game. Once past the main menu, select the appropriate text thread in AGTH (see AGTH documentation for further details).

Step 8: Run the script.

Step 9: Arrange your windows nicely for efficient use of screen space.

And that's pretty much it. Click on the game window to advance the text, and when it's done displaying and registers in Wakan, click on the Wakan window to translate it. Mouse-over the text in Firefox with rikaichan for more detailed info on conjugations, names, and words that Wakan may have skipped. Hope someone finds this useful!

Comments:

Comment from: Qu4Z [Visitor] Email
Awesome idea ^_^
This makes it much easier to play Japanese games.
Two things though:
- I haven't found notepad necessary. Wakan saves just fine, and it means fewer windows. (Just remove SetFocus("Notepad") and Send("^v") or whatever. The first time time you use the script Wakan will ask what to save it as)
- I've made it set the focus back to the game then Wakan so it doesn't mess up my tab order. I'm fussy about that.

But yeah. Great idea! Thanks!
PermalinkPermalink 09/25/07 @ 04:06
Comment from: Blitzwing [Member] Email
Glad it was helpful!

The nice thing about this is that it's all customizable, so the user can tailor it to their specific needs as necessary.
PermalinkPermalink 09/26/07 @ 01:29
Comment from: RT [Visitor] Email
I know there is an application that relies on an OpenOffice.org plug-in called Itadaki (http://itadaki.org/wiki/index.php/Itadaki). I have never tried it, but it should be accurate, in theory, to annotate Japanese text.
If you have time, would you mind taking a look?
PermalinkPermalink 11/25/07 @ 18:32
Comment from: Simmons [Visitor]
Great! Thanks!
If you do not have Windows in English, Notepad might give you some trouble. Edit the script like this:
- Set the Notepad window title to the correct one.
- Set the shorcuts with their correct keys (select all, paste, save).
PermalinkPermalink 06/26/08 @ 23:31
Comment from: An. [Visitor] Email
Strangely, I can't seem to make it do anything in the firefox window, seems like the path is broken somewhere, it reaches Wakan, so I guess that's fine, at least.
PermalinkPermalink 08/18/08 @ 18:46
Comment from: Alex [Visitor] Email
This thing looks great! Thanks for your work!

Would it please be possible to post up an empty html file (agth.html)? I am not a computer/web programmer so I have no idea about how to do this...

Thank you so much!
PermalinkPermalink 08/23/08 @ 00:00
Comment from: Kyoung Kim [Visitor] Email
Thanks for this, it's really helpful!

I have a slight request though. Could you please help me create a script that lets me use Mozilla for translation with Rikaichan without open Wakan or agth.html in Notepad?

Thanks!
PermalinkPermalink 09/22/08 @ 14:32
Comment from: Paludis [Visitor] Email
This saves me so much time, thank you!
PermalinkPermalink 10/10/08 @ 21:07
Comment from: anonymous [Visitor] Email
That doesn't work for me, firefox is just showing empty window. Maybe because i use Vista.
PermalinkPermalink 11/15/08 @ 07:28
Comment from: Blitzwing [Member] Email
Did you open agth.html in Firefox (in vista)? I have never tested it in vista but in theory it should work just as well...
PermalinkPermalink 11/23/08 @ 07:52
Comment from: unknown [Visitor]
How do you run the script?
PermalinkPermalink 01/09/09 @ 12:17
Comment from: anonymous [Visitor] Email
from 11/15/08 @ 07:28
yes, i open agth.html in firefox.
PermalinkPermalink 01/09/09 @ 13:54
Comment from: Makoto [Visitor] Email
Anyway chance that you will make a youtube video cuz i've tried several times and i still dont know what i'm doing.
PermalinkPermalink 01/14/09 @ 11:06
Comment from: xuanfung [Visitor] Email
this is website or blog?
need to sign up?i hope i can join ...
u monthly update this web?

this is good site,really.
hope we can be friend on MSN

p.s. Sorry write too much,long time don such friendly site....
PermalinkPermalink 05/25/09 @ 06:37
Comment from: Organizational Charting Software Excel [Visitor] Email · http://www.orgchartpro.com/organizational_charting_software_excel.html
First time I came across to this site and I really find it very intersting and useful,I will it out right now.Thanks for such a nice information.
PermalinkPermalink 05/25/10 @ 08:31
Comment from: GBcrazy [Visitor]
Thanks, I don't exact remember how I've found this page and it was apparentely posted 3 years ago, but let me say thank you, you made my life easier. Gotta play now, see ya
PermalinkPermalink 08/05/10 @ 19:19

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

omoshiroi.info

432700
September 2010
Mon Tue Wed Thu Fri Sat Sun
<< <     
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

Search

Categories

Misc

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 1

powered by
b2evolution