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

Documentation for writing a new format parser #2

Open
willwade opened this issue Sep 15, 2016 · 2 comments
Open

Documentation for writing a new format parser #2

willwade opened this issue Sep 15, 2016 · 2 comments

Comments

@willwade
Copy link

willwade commented Sep 15, 2016

Hi! Is there any docs on writing a format parser as an input source ? (Update: I see https://github.com/CoughDrop/obf/blob/master/lib/obf/picto4me.rb as in the Readme.. But any further thoughts welcome before I embark on this!)

@whitmer
Copy link
Contributor

whitmer commented Sep 15, 2016

Hi Will, docs are sparse at the moment :-/. I'll see if I can make some time add some, but in the mean time you can sort of get an idea by looking at the converters here: https://github.com/CoughDrop/obf/tree/master/lib/obf, for example https://github.com/CoughDrop/obf/blob/master/lib/obf/picto4me.rb. Basically you're going to be parsing your input format however you do that, and then creating a hash/dictionary with specified attributes.

The good news is that the format of the hash is very similar to the JSON format of an obf file, https://docs.google.com/document/d/1Bnl5neOf9-y53yOAGjd8BzQ7jvAdLhcB6y9Zw7ITYbA/edit.

Anyway, I'll see about making something more formal.

@willwade
Copy link
Author

willwade commented Sep 15, 2016

Cool. I'm going to look at how difficult it will be converting a grid 3 file format to off (Something like this as a base: https://github.com/willwade/AAC-Tools/blob/master/Converters/g2Translate/g2translate.py ) . Cheers

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