01-16-2012, 04:46 PM #1Changing Mac Character Code (Glyphs)
Hi fellow mac abusers!
Don't worry, I mean it in a good way.
So, I've been searching the internet for this topic, but have come almost empty handed.
So far, I know that characters are generated in the computer and then sent to the display, and encoding plays a big role in it. For example 0x41 = 'A' in the ASCII table. What I can't seem to figure out is where this process goes on.
As a startup I would like to be able to change the indexing of the character codes. For example, typing 0x41 will generate 'B' instead of 'A'.
Further on I would like to create my own glyphs (which I have ready) so I can create a system with a different language. I obviously know it won't really be a different language because transferring the data to another system will show normal ASCII.
If no one has a clue, I won't be surprised. But if some one could give me some references or good keywords to search with, I would be more than delighted. It would also be nice if someone could tell me if this is embedded in the hardware or if it's still controllable through software.
Think about running >console with alien characters that you can read and others can't!! Pretty cool huh?
Thx in advance.
01-18-2012, 03:29 PM #2
- Member Since
- Jun 25, 2005
- On the road
- 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
The place to start might be Apple's Introduction to Text System Overview, Cocoa Text Architecture Guide, and
Text Editing Programming Guide. It looks like the information to understand how the keyboard returns its code and to use that data is in them. Based on the little I saw, try that last one first.
You said you have created your own glyphs, but not how. To work with any of the OS X text systems and therefore all apps, I believe you should be creating Postscript fonts. Font creation is a huge topic in it's own right.
As for shifting 'A' to 'B' for the code returned, I can't see the purpose of that beyond rudimentary encryption. I think that would be an app specific thing because trying to implement that system wide would likely break every other app.CameraTime - Time lapse photography for novice and advanced users.
When asking questions, post the version of your software. You'll receive better answers.
Please post your results to the thread as it is good feedback.
01-21-2012, 10:30 AM #3
- Member Since
- Jan 21, 2012
The only way I was able to do this, was to create a character converter with C++, so the ascii character codes go beyond 127, into the lesser known characters like ╩▄▀╧╦╨╧═╨╧═╨╘╤╙╒╘╙═╤╧╥Γ▐╬═█╧╦╨╤.
But to create a whole new library of characters is a different deal. I know nothing about changing character fonts or creating new ones, so good luck.
02-02-2012, 11:35 PM #4
Thanks xstep for the references. However, it could not help me because I just don't know enough about the system itself. Obviously, there is much that I have to learn as a young padawan. So instead of going top-down, I have decided to go bottom-up by learning OS construction. I am sure I will be able to grasp how characters are displayed through binary code. I will post as soon as reach my goal.Black or White, we do not care. We live the Internet for all that is there.
Money and Power will soon despair. Freedom and Anonymity will be ours to share.
Gray Hat Society
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By dandyarts in forum OS X - Operating SystemReplies: 2Last Post: 01-21-2013, 01:56 AM
By manis in forum OS X - Development and DarwinReplies: 1Last Post: 01-16-2013, 08:05 PM
By IT@MYRONL.COM in forum OS X - Apps and GamesReplies: 4Last Post: 07-27-2006, 11:25 PM
By stickball in forum Movies and VideoReplies: 2Last Post: 01-21-2006, 08:10 PM
By Mark Eggers in forum Apple DesktopsReplies: 3Last Post: 07-02-2004, 09:13 PM