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

How did you build the pdfs? #11

Open
benben opened this issue Sep 20, 2016 · 1 comment
Open

How did you build the pdfs? #11

benben opened this issue Sep 20, 2016 · 1 comment

Comments

@benben
Copy link

benben commented Sep 20, 2016

Hi @alecjacobson,

Thanks for making this thing! It helped me a lot. I want to contribute to your repo and add some missing PDFs. Can you provide me with more info on how did you create the PDFs?

Thanks!

@alecjacobson
Copy link
Owner

I use the 'upTeX' solution from https://github.com/doraTeX/coloremoji to generate the pdfs.


(possibly related, but now I realize not what you asked:)

I used ruby to generate the code in the .sty sheet. The ruby command:

"⚠⚡".each_char{|e| puts "\\DeclareUnicodeCharacter{#{e.unpack('U*').first}}{{\\coloremoji{"+e+"}}}"} 

will output:

\DeclareUnicodeCharacter{9888}{{\coloremoji{⚠}}}
\DeclareUnicodeCharacter{9889}{{\coloremoji{⚡}}}

This assumes your ruby has good unicode support. On Mac OS X, this requires brew install ruby to replace the built-in ruby.

Then you can replace "⚠⚡" with your giant list of "⚠⚡...." of emojis.

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