Back

KanjiTomo - New OCR program for Japanese text

#76
I only just started using this software, but it seems pretty nice so I sent an order your way. It works well on my mac.

I did have a bit of trouble getting the launch.sh file to work though initially. I kept getting some kind of error message about a missing/invalid shebang or something like that. I eventually solved the problem with the help of Google. If it helps anyone else with a similar problem, I ended up changing launch.sh file to read as follows which did the trick:

#!/usr/bin/java -Xmx1000m -jar KanjiTomo.jar -run
Reply
#77
Omg, this program works amazing! I try to translate Japanese at times so I found KanjiTomo to be amazingly helpful for translation and learning Japanese. I'd like to point out a small problem though:

When I press the "go to next page"/ "go to last page" buttons, a window would pop up prompting the user to choose the next file if the file type is different from the last file type. So say we have currently have a jpg file open and the next image is a png file. The moment I press "go to next page", the window pops up.

It would be really great if KanjiTomo recognizes the next file as part of 'able to open' files so there would be no need for the pop up. When the next file is not part of the 'able to open' files, a window stating "Next file type not supported" or something along the lines would pop up. I'd love to have this feature. And I will also definitely donate.
Reply
#78
Thank you for pointing this out. You are right, if there is a mix of different file types in a directory, open file dialog pops up too often. This should be easy to fix, so I'll try to add this to the next version.

One complication would be if there are multiple files with same page number but different file types, what would be the correct order to open files? Should program try to guess some order based on file type extensions?
Edited: 2014-02-02, 3:50 am
Reply
May 16 - 30 : Pretty Big Deal: Save 31% on all Premium Subscriptions! - Sign up here
JapanesePod101
#79
Kurotowa Wrote:One complication would be if there are multiple files with same page number but different file types, what would be the correct order to open files? Should program try to guess some order based on file type extensions?
In cases like that I personally (heavy emphasis on this being my opinion) would like it to do it based on alphabetical order. So bmp->jpg->png which makes it easier if I have to pop open an explorer window since it will use alphabetical order by default as well.
Reply
#80
Kurotowa Wrote:One complication would be if there are multiple files with same page number but different file types, what would be the correct order to open files? Should program try to guess some order based on file type extensions?
Could you elaborate on what you mean by multiple files with the same page number? I'm not very sure on what that is. I was thinking that you could create something like an array of strings each associated with a file type like: ".bmp" , ".jpg" , ".png", ".pdf", etc....

Then, you loop through them whenever you want to open a file.
Of course, I know it's never that simple to implement but simple ideas always work best. Unless of course there are file types that are unopenable.
Reply
#81
chilledMojito Wrote:Could you elaborate on what you mean by multiple files with the same page number? I'm not very sure on what that is. I was thinking that you could create something like an array of strings each associated with a file type like: ".bmp" , ".jpg" , ".png", ".pdf", etc....

Then, you loop through them whenever you want to open a file.
Of course, I know it's never that simple to implement but simple ideas always work best. Unless of course there are file types that are unopenable.
Do you have a directory that contains files like:

Page 1.png
Page 2.png
...
Page 1.jpg
Page 2.jpg
...

In this case the file extension should probably have sort priority.

Another option would be to sort by the whole filename string (with integer digits interpreted as numbers); this would cover cases when (for example) there is a color page with different extension between black and white images.

Previous versions of KanjiTomo assumed that the next file extension is same as in current file and shows open file dialog if this is not the case. I have now modified the program to handle different extensions (sorted by whole string); it can be downloaded from http://www.kanjitomo.net/KanjiTomo_beta.zip

Warning! Beta version doesn't handle two page option correctly in all cases!
Reply
#82
Hello I am having some issues running this program. When I launch it I get this error.

java.io.IOException: Cannot run program ""C:\Program Files (x86)\Java\jdk1.8.0\bin\java.exe"": CreateProcess error=5, Access is denied
java.lang.ProcessBuilder.start(Unknown Source)
kanjitomo.reader.Launcher.C(Launcher.java:162)
kanjitomo.reader.Launcher.main(Launcher.java:34)
program version:0.9.9
java version:1.8.0

I have tried running it in an elevated command prompt using java -jar KanjiTomo.jar and I still get access is denied. I have tried turning off UAC as well but to no avail. I am running Windows 8.1 by the way.
Reply
#83
SevenSyndicate Wrote:Hello I am having some issues running this program. When I launch it I get this error.

java.io.IOException: Cannot run program ""C:\Program Files (x86)\Java\jdk1.8.0\bin\java.exe"": CreateProcess error=5, Access is denied
java.lang.ProcessBuilder.start(Unknown Source)
kanjitomo.reader.Launcher.C(Launcher.java:162)
kanjitomo.reader.Launcher.main(Launcher.java:34)
program version:0.9.9
java version:1.8.0

I have tried running it in an elevated command prompt using java -jar KanjiTomo.jar and I still get access is denied. I have tried turning off UAC as well but to no avail. I am running Windows 8.1 by the way.
Try to run the program with "java -jar KanjiTomo.jar -run", this will skip detection of different java environments that might cause this error.
Reply
#84
I have decided to merge Supporter's Editions features into the main freeware program. You can now download the full version without any payment from http://www.kanjitomo.net

Current version has the ability to save identified words to a list and export them to file or clipboard.
Reply
#85
I have a problem running linux (elementary OS, modified Ubuntu 12.04) when I use it.

I get errors in both rikaimode and image mode, output here because it'd make the whole post a wall of text: http://pastebin.com/1CBd5Bdz

the image I'm using (in case that matters) is here: https://www.dropbox.com/s/jujm28vl6z5ojpr/pic019.jpg
Reply
#86
MarseSnorty Wrote:I have a problem running linux (elementary OS, modified Ubuntu 12.04) when I use it.

I get errors in both rikaimode and image mode, output here because it'd make the whole
post a wall of text: http://pastebin.com/1CBd5Bdz
In Windows this error happens if you try to run the program directly from the zip file without unzipping it first. If this is not the case here, you should first check the file permissions, navigate to the program's directory in terminal and start the program with "java -Xmx1000m -jar KanjiTomo.jar -run"; see if this helps.
Reply
#87
running from the folder extracted, with launch.sh and that command, both give the error, however, it does work, using same that command, and launch.sh on ubuntu 14.04, using the same jdk, so maybe it's a system problem?
Though saying that, it's got a different problem, best I can describe it is what the program is seeing, and what I'm seeing are different, I need to point above where the character is to get it to find that character rather than the one immediately beneath, this only happens in image mode, see: https://www.dropbox.com/s/sb24meq96778hm...4%3A50.png and https://www.dropbox.com/s/wtkmd69xcdvqai...8%3A44.png

EDIT: after fiddling some more, I've found that it's also only in auto mode on the image. Using hotkey or click and drag seems to work just as well as normal
Edited: 2014-06-08, 4:12 am
Reply
#88
Is there a way to change the dictionary? Because I would like to use a dictionary in my native language.
Reply
#89
He4rtl3ss Wrote:Is there a way to change the dictionary? Because I would like to use a dictionary in my native language.
The dictionary is located in: data\dictionary\edict2; if you have another dictionary in EDICT2 format, you can replace this file. The format is described in http://www.edrdg.org/jmdict/edict_doc.html
Edited: 2014-09-02, 11:56 am
Reply
#90
Thank you for the answer Kurotawa.
I downloaded the edict2 dictionary file (http://www.wadoku.de/wiki/display/WAD/Do...+und+Links) and replaced the english one.
When I open it, everything works fine and it loads normal. But when I hover over a word it don't shows me the "Kanji/Kana/Description".
How can I fix this?
Reply
#91
He4rtl3ss Wrote:Thank you for the answer Kurotawa.
I downloaded the edict2 dictionary file (http://www.wadoku.de/wiki/display/WAD/Do...+und+Links) and replaced the english one.
When I open it, everything works fine and it loads normal. But when I hover over a word it don't shows me the "Kanji/Kana/Description".
How can I fix this?
The problem is that the english edict2 file uses EUC-JP encoding, but the german one uses UTF-8 encoding.

If you have a text editor that lets you change encoding, open the file and save it as EUC-JP. If this is a problem send me an email to kanjitomo<@>gmail.com and I can send you a converted file.

Maybe I'll add an option to set the encoding in future version if there's enough interest.
Reply
#92
A big thank you to Kurotowa who helped me out and sent me the required file.
Now I can finally use Kanjitomo in my native language.

Really thank you!
Reply
#93
Hello!
I've been trying to find this app but the indicated download page isn't working.
Is it temporary down or ...?
Could anyone please post a download link for the English version of kanjitomo please.
Thank you!
Reply
#94
mishu Wrote:Hello!
I've been trying to find this app but the indicated download page isn't working.
Is it temporary down or ...?
Could anyone please post a download link for the English version of kanjitomo please.
Thank you!
You can download the program from http://www.kanjitomo.net/download.php

The download page should have been working all the time. Has anyone else experienced problems?
Reply
#95
Kurotowa Wrote:
mishu Wrote:Hello!
I've been trying to find this app but the indicated download page isn't working.
Is it temporary down or ...?
Could anyone please post a download link for the English version of kanjitomo please.
Thank you!
You can download the program from http://www.kanjitomo.net/download.php

The download page should have been working all the time. Has anyone else experienced problems?
The connection has timed out

The server at http://www.kanjitomo.net is taking too long to respond.

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

Isn't working for me .. i wander if you blacklisted my country (Romania) since i don't have a connection problem .. one of the few good things about my country is the decent internet connection Tongue

Also is there an android version of the app? Tongue
Edited: 2014-10-03, 4:47 pm
Reply
#96
I have not blacklisted any country. I suppose it is possible that my hosting company has done it. In that case, please provide (in private message) your IP address and I can check with them. Is the problem only with download link or the whole page?

Also if anyone else has problems with the site I would like to know.

There is no Android version at the moment. I do have the Android dev kit but i'm afraid we need to wait a few years before mobile CPUConfused are fast enough for this program.

mishu Wrote:The server at http://www.kanjitomo.net is taking too long to respond.

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

Isn't working for me .. i wander if you blacklisted my country (Romania) since i don't have a connection problem .. one of the few good things about my country is the decent internet connection Tongue

Also is there an android version of the app? Tongue
Reply
#97
I do not know if you did something but the webpage is working, both download and the actual page.
I'm checking the webpage as I type.
Reply
#98
mishu Wrote:I do not know if you did something but the webpage is working, both download and the actual page.
I'm checking the webpage as I type.
This is good to hear. Most likely it was just a temporary problem.
Reply
#99
Is there any way to copy the actual symbols only from the program? This software is so accurate.
Reply
edomaeexa Wrote:Is there any way to copy the actual symbols only from the program? This software is so accurate.
Sure, highlight + Ctrl-C works from text area. Also you can set COPY_TO_CLIPBOARD_AUTOMATIC=1 in config.txt (I would recommend turning off Automatic OCR in this case so that the clipboard doesn't get overwritten).
Reply