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

check monomon's script for generating pages #17

Open
aoloe opened this issue Aug 29, 2014 · 1 comment
Open

check monomon's script for generating pages #17

aoloe opened this issue Aug 29, 2014 · 1 comment

Comments

@aoloe
Copy link
Owner

aoloe commented Aug 29, 2014

imo, two things are possible:

  • get it to work for general cases
  • find a way to share snippets that can be reused for specific cases

one idea would to make it configured through a yaml / json file... or even make a dialog that can save that can optionally save/read that json file.
(and, for that, we could have a script that can generate that dialog... mmm... that looks like work :-)

@aoloe aoloe changed the title check 's script for generating pages check monomon's script for generating pages Aug 29, 2014
@monomon
Copy link

monomon commented Sep 3, 2014

hey, thanks for creating the ticket.

I have given it a thought, and would like to generalize the code to make it useful for others.
Your second point follows immediately from that, since such a system has to be configurable.

I haven't dabbled with Scripter UI code yet, but seems straightforward enough, so some of the configuration could be through dialogs.

Some potential ideas:

  1. First thing that comes to mind (which may have been done already) is a tiling script. You pass an object (in my case textboxes), you generate as many of those as fit the page and tile them.
  2. Generating a catalog (that's the other script) - you pass data consisting of text and images and the script creates a list of these on as many pages as the data takes.
  3. Creating line grids (which is related to idea 1). Give some dimensions for the grid (either number of lines spaced equally on the page, or fixed spacing with as many lines as fit the page) and create the lines.
  4. Some small things that might be useful are the autoresize of textboxes in one script and autoresize of font in the other, which I admittedly lifted from another script in the scripts wiki.

In 2) especially, it is an open question how the user would [prefer to] configure the layout, since there are quite a few possibilities. Templates come to mind.
Let me know what you think.

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