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

Support for BGL files #10

Open
lf-araujo opened this issue May 24, 2015 · 8 comments
Open

Support for BGL files #10

lf-araujo opened this issue May 24, 2015 · 8 comments

Comments

@lf-araujo
Copy link

ATM BGL files are not supported, are there any plans for that?

@dohliam
Copy link
Owner

dohliam commented May 24, 2015

Absolutely. I seem to recall the Babylon dictionary format is fairly straightforward, but when I recently tried to write a parser for BGL files it was hard to find any that were not in binary format. Not sure how to get around that (I would guess that most people with BGL dictionaries want to use them in binary form rather than making them from scratch themselves), but if you have any suggestions, I would love to hear them!

@lf-araujo
Copy link
Author

Well, for instance, one can convert bgl files into other types. This project has this aim: https://github.com/ilius/pyglossary

@dohliam
Copy link
Owner

dohliam commented May 24, 2015

That's a great project, thanks for the link! So, the user would have to convert the BGL file to something else and then gdcl could read that other format? (I notice that pyglossary can read but not write DSL format.) Do you have a preference for a particular intermediary format in that case? If not, I could always just add support for plain text tab separated dictionaries and convert BGL to that.

@lf-araujo
Copy link
Author

Well, in my case it doesn't really matter, as long as I can access them via command line. Look, I also found out that the developer left old files in his old sf account here: http://sourceforge.net/projects/pyglossary/?source=typ_redirect

This one has a little gui, that allows batch conversion. Do your script support txt or dic tabfiles? If so, that version already does the trick.

@dohliam
Copy link
Owner

dohliam commented May 24, 2015

No support yet for tabfiles, but it's a good idea and I can definitely add it.

In the meantime, you can always convert tabfiles etc to dsl pretty easily. You might find some of the scripts in the dsl-tools project helpful for that.

@lf-araujo
Copy link
Author

Thanks, I will look into it!

@dohliam
Copy link
Owner

dohliam commented Jan 5, 2016

No progress on handling BGL files directly, but if they can be converted into tab separated files you should be able to use the tab2dsl utility to convert them to DSL format.

If you run into problems converting from tabs to dsl, let me know!

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

No branches or pull requests

3 participants
@dohliam @lf-araujo and others