Post Reply 
Is there an escape sequence for Unicode characters?
08-27-2015, 02:38 PM
Post: #3
RE: Is there an escape sequence for Unicode characters?
(08-27-2015 01:57 PM)StephenG1CMZ Wrote:  For example, if I wanted to print a pack of playing cards, I would like to be able to do
For I from 1 to 52 print("/u"+I)
(Plus whatever offset the first card is at).

So far all the ways I have tried just print the /u as text rather than recognising it as Unicode.

The alternative of using shift/chars and manually selecting each of the 52 cards works fine, but is tedious.

Apologies if this is covered in the manual. My reader forgets what it is searching for after the first couple of pages.

Unfortunately, the Unicode "Playing Card" characters are code points 0x1F0A1 through 0x1F0DE, which do not exist in the Prime Sans font. So you'll have to combine existing characters to create playing cards, e.g. CHAR({65,9824}) creates "A♠" (Ace of Spades). Characters 9824 through 9827 are the normal suit characters, and 9828 through 9831 are their inverse-video versions.

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Is there an escape sequence for Unicode characters? - Joe Horn - 08-27-2015 02:38 PM



User(s) browsing this thread: 2 Guest(s)