We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
curly quotes (Read 573 times)
curly quotes
Apr 21st, 2010, 9:23am
 
hi

how can I encode for curly quotes in a text string ’ ‘

- which I cant even enter into the Processing editor

can they be entered as entities or such like as with a html document?

?

Mark
Re: curly quotes
Reply #1 - Apr 21st, 2010, 10:02am
 
I don't know for the PDE, as I am not even sure how you type them (beside Windows' method of Alt+0<numpad numbers>).

But a way to do that is to open the .pde file in a good text editor, in UTF-8 mode (important!). Type these characters, save the file, you have them in your code.
Mmm, another way is to use their Unicode escape: '\u2018' and '\u2019'.
If you use them in text() call, ensure they are in the generated font (if you use loadFont()).
Re: curly quotes
Reply #2 - Apr 21st, 2010, 11:57am
 
hi

thanks for that

I'm getting the text from a controlP5 text field & yes it wont even let me type the characters...

but maybe a text importer would be a good idea

- I'm doing this to then render & manipulate in a bitmap typeface

anyway thank again I think I have a way forward

Mark
Page Index Toggle Pages: 1