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

Import printer capabilities profiles from JSON #160

Closed
miracle2k opened this issue Aug 25, 2016 · 2 comments
Closed

Import printer capabilities profiles from JSON #160

miracle2k opened this issue Aug 25, 2016 · 2 comments
Milestone

Comments

@miracle2k
Copy link

I'm using python-escpos. It seems that you, Mike, or involved over there as well.

I'd like to see the Python version support capability profiles; more than what we have here right now, I'd also like to collect the column count infos for different models.

My suggestion would be building a YAML document containing all the information; this can then be loaded both in Python and PHP, or, from it we can generate the PHP classes.

Thoughts?

@miracle2k
Copy link
Author

I'm thinking something like this: miracle2k/python-escpos@246f7ad

@mike42
Copy link
Owner

mike42 commented Aug 26, 2016

Commented in more detail at python-escpos/python-escpos#149

YAML can't be used directly in this project for compatibility reasons, but its the best source format for the data, and I can do the conversion automatically to something like JSON.

For this project, implementing this change would involve porting the existing data to YAML, committing a JSON export of the data here, then refactoring the CapabilityProfile and CodePage classes to read data from these files.

@mike42 mike42 added this to the 1.3 milestone Sep 3, 2016
@mike42 mike42 changed the title Write capabilities profiles as YAML Import printer capabilities profiles from JSON Oct 8, 2016
@mike42 mike42 closed this as completed in bafa853 Oct 24, 2016
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

2 participants