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

2 additional PDF filename options #2

Closed
LettError opened this issue Nov 20, 2017 · 7 comments
Closed

2 additional PDF filename options #2

LettError opened this issue Nov 20, 2017 · 7 comments

Comments

@LettError
Copy link
Contributor

LettError commented Nov 20, 2017

It would be nice to be a able to include these variables in the PDF filename:

  • source UFO filename, for instance by writing %ufo in the filename.
  • first couple of characters of the text in the spacecenter (perhaps as unicode). For instance by wrinting %text

I use this tool a lot when grabbing images (for instance for a presentation) that by nature are not finished fonts (because then I would use the font). Many screenshots in the same folder...

@LettError LettError changed the title Additions PDF filename options 2 additional PDF filename options Nov 20, 2017
@thomgb
Copy link
Owner

thomgb commented Nov 21, 2017

I've added them.

@thomgb
Copy link
Owner

thomgb commented Nov 21, 2017

Seems that os.system("open '%s'" % filename) is erroring if weird characters are in the filename. The semi-solve is that if weird characters then instead of opening the pdf it does a show-in-finder thing

@LettError
Copy link
Contributor Author

Maybe try os.system(u"open '%s'" % filename)

@thomgb
Copy link
Owner

thomgb commented Nov 21, 2017

That was my idea too when if start erroring. But it is not a solve :(

@thomgb
Copy link
Owner

thomgb commented Nov 21, 2017

In Terminal this works but in RF not...

@LettError
Copy link
Contributor Author

Also I think you need to filter on "/" when including glyphnames in the filename. (which is not unusual)

@thomgb
Copy link
Owner

thomgb commented Nov 22, 2017

✔︎

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