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

Get script options via Python API #11

Open
scossu opened this issue Nov 26, 2023 · 4 comments
Open

Get script options via Python API #11

scossu opened this issue Nov 26, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@scossu
Copy link

scossu commented Nov 26, 2023

Hello,
I'm evaluating the integration of Aksharamukha with a general-purpose transliteration tool: https://github.com/lcnetdev/scriptshifter/

It's working very well, except that I can't programmatically retrieve the options available for a specific script via the Python module.

I have tried detect_preoptions() but that returns a list for a specific string. I want to retrieve all the options without knowing what the string would be.

Is there a function that I can access to get all the possible options for a script?

@virtualvinodh
Copy link
Owner

Hello,

Unfortunately. As of now, you can't. I am gonna update the package soon. There are a few bugs that need to be fixed.

You can find the list here:

https://github.com/virtualvinodh/aksharamukha/blob/master/aksharamukha-front/src/mixins/ScriptMixin.js

You'd have to parse the JS and retrieve the JS variables with the prefix: preOptions*

I can expose a method.

I will push it with my next update.

@virtualvinodh virtualvinodh self-assigned this Nov 27, 2023
@virtualvinodh virtualvinodh added the enhancement New feature or request label Nov 27, 2023
@scossu
Copy link
Author

scossu commented Nov 28, 2023 via email

@virtualvinodh
Copy link
Owner

Yeah. That's possible. I developed the package originally as just a backend for my tool.

So, lots of things are in the front-end codebase.

Ideally, they should be here anyway.

If you need anything just raise an issue and I can keep track of things.

@scossu
Copy link
Author

scossu commented Nov 28, 2023 via email

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

No branches or pull requests

2 participants