Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of other languages than English #2

Open
nielsk opened this issue Aug 17, 2014 · 8 comments
Open

Usage of other languages than English #2

nielsk opened this issue Aug 17, 2014 · 8 comments

Comments

@nielsk
Copy link

nielsk commented Aug 17, 2014

Since you are using JMDict there should be other languages than English like German or French. Anyway to query with myougiden so I get not only the English results but also the German ones and that I can search for a German word to get the Japanese translation of it?

@melissaboiko
Copy link
Owner

Hello! This project is currently defunct; the database search is just too damn slow, & I'm too damn lazy to implement a new format at the moment. I'm afraid that adding multilingual support would make it even slower, so I'm a bit reluctant.

However, I'm happy that someone other than me wants to use this thing, so I'll just add support for it in a branch or something. Stay tuned…

@melissaboiko
Copy link
Owner

@nielsk I coded some simple multi-language support and made it availabe on branch 'multiling'. Would you like to try it out?

There's a --lang (-l) option, and it will also try to autodetect the default language from current locale.

@nielsk
Copy link
Author

nielsk commented Aug 22, 2014

I will try it out, hopefully tonight otherwise sometime over the weekend. Sorry, that it will take some time :/
But thanks already :)

@nielsk
Copy link
Author

nielsk commented Aug 22, 2014

I tried it now.
When I search for example with "myougiden --lang de 車" I get only an English result. When I search with for example "myougiden Zug" I get no results with "myougiden zug" I get only results in which "zug" is a part of an English word.
So it doesn't seem to work for me. Also you should make the search case insensitive. In German nouns start with a capital letter and everything else in lower case. Abbreviations are all upper case usually. So, searching in German with a case sensitive search might get less results than expected..

I updated the database after checking out the branch and installing from source with sudo updatedb-myougiden -f. It downloaded a jmdict-file while it downloaded jmdict-e when there was a version installed without multilang-support.

@melissaboiko
Copy link
Owner

Sorry, I was using the language tags of JMdict, which are 3-letter. Try it like this:

myougiden -l ger 車
myougiden -l ger Zug

I should make it accept two-letter format too, & give an error for unknown langs. Give me a moment…

@nielsk
Copy link
Author

nielsk commented Aug 22, 2014

Oh, cool. Now it works. And the speed is ok on my i5 with an SSD.
I used the two-letter-codes because you wrote in the myougiden-help the following: "Available languages: de, en, fr, nl, ru"

@melissaboiko
Copy link
Owner

haha, you're right! well I just made it support both formats so the help message can stay now.

@nielsk
Copy link
Author

nielsk commented Aug 22, 2014

Works like a charm so far :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants