1

I'm trying to convert english character into Star Wars Aurebesh characters. I found the unicode code assignment for Aurebesh characters here: http://www.kreativekorp.com/ucsur/charts/aurebesh.htm

So with code point such as "U+E890", can I print out the Aurebesh character in python?

1
  • Try simply using: print u'\ue890' Commented Jul 3, 2018 at 1:27

2 Answers 2

1

print('\ue890') will do the job.

Sign up to request clarification or add additional context in comments.

3 Comments

It cannot print out the star wars character, but only an empty square...
You have to display it in a font that supports Aurebesh: fontspace.com/category/aurebesh
Do you know how to add this type of font in IPython? I downloaded the font but only work in my PowerPoint...
0

In python3 you can do it by using escape char: print('\ue890')

EDIT: Adding this to the answer as it involved a small discussion in the comments.

In python2.7 you need to add extra u in front of the string to turn it into unicode string (courtesy of Matt Clark): print u'\ue890'

7 Comments

You need to first define the whole string as unicode: print(u'\ue890')
You no longer have to do that in python 3.
python 3 gives identical results for print(u'\ue890') and print('\ue890') @MattClark
Huh, does it? Okay. 2.7 needs the prepended u.
python3 makes your pythonic life much easier! @MattClark
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.