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

Translation to another than English lang #3

Open
tweetythe opened this issue Apr 6, 2023 · 1 comment
Open

Translation to another than English lang #3

tweetythe opened this issue Apr 6, 2023 · 1 comment

Comments

@tweetythe
Copy link

Hello, is it possible to create another languages as well ? Maybe I am doing something wrong but when I add variables fe - DictionaryCreator(source_language="Spanish", target_language="Slovak") from Spanish to Slovak or German DictionaryCreator(source_language="German", target_language="Slovak") as well as when I try DictionaryCreator(source_language="Spanish", target_language="Czech") the result is still the same and the dict is using English translation..

Is it possible to have Slovak or at least Czech translation ?
Do I do something wrong and thats why its not working?

Thanks in advance

@Vuizur
Copy link
Owner

Vuizur commented Apr 6, 2023

Hi,

currently this is unfortunately not possible (I admit that I should add more documentation stating this). However, there exists https://github.com/karlb/wikdict-gen, which uses an approach that makes use of the translation tables/other-language Wiktionaries, so it should in theory support any language combination. At the moment it doesn't have prebuilt dictionaries for Czech/Slovak and other languages, but it should be possible to create them without much extra work. So you might be interested in looking at the code there and opening an issue there if you are stuck.

The wikdicts currently have no inflections, so it might also be interesting to take for example a txt tabfile created by my repo and extract their inflections, and then add them to the wikdict dictionary. I can recommend the pyglossary library for loading/writing dictionaries in the formats you are interested in.

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