10-14-2010
Unicode would make some glyph for every 16 bits, but it might span several languages. Is Universal Han OK? It has 20K glyphs, as I recall.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Dear friends,
I have hexadecimal data like this.
now i want to read each letter and convert to decimal format.
for example.:
from the below data first i have to read hex data 0 and convert to 4 bit decimal value ie 0000.
similarly second letter 8 decimal value is 1000.
like this.... (6 Replies)
Discussion started by: rajan_ka1
6 Replies
2. Programming
HI
Hi I have a character string which contains some special characters and I need it to display as a hex string.
For example, the sample i/p string: ×¥ïA Å gïÛý and
the o/p should be : D7A5EF4100C5010067EFDBFD
Any pointers or sample code pls. (5 Replies)
Discussion started by: axes
5 Replies
3. Shell Programming and Scripting
I need to have my scripts import volume groups and mknod devices files. I have most of the script working but the device file needs to be in the format 0x??0000 (where the question marks are my HEX representations of the volume group number. I have the code below and the output it produces which... (2 Replies)
Discussion started by: insania
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a char buf,ch; and the buf is filled with the result from MySQL server which I get like this numbytes = recv(sock, buf, 1024, 0));I have the followingcode to display the results
printf("received %ld bytes:\n",numbytes);
for(c=0;c<numbytes;c++){
ch = (char)buf;
... (2 Replies)
Discussion started by: alikims
2 Replies
5. UNIX for Dummies Questions & Answers
Hello,
Is there any utility around able to deal with the conversion of some EBCDIC coded string into an hexadecimal value?
Thanks (1 Reply)
Discussion started by: Indalecio
1 Replies
6. Shell Programming and Scripting
Dear All PROs
Thanks in advance
need a shell for Decimal to hex conversion
input file (decimal values)
65,5,48,66,133,131,118,47
65,5,48,66,133,131,83,63
.
.
desire output should be (Hex value)... (11 Replies)
Discussion started by: The_Archer
11 Replies
7. Shell Programming and Scripting
I'm trying to convert hex to dec and with the help of output i need to do the process. If i execute the below code
assetValue=8f
assetNavigation=$(echo "ibase=16; "$assetValue"" | bc)
echo $assetNavigation
i'm getting the error below
$ sh script.sh
(standard_in) 1: syntax error... (1 Reply)
Discussion started by: Amutha
1 Replies
8. Shell Programming and Scripting
I'm trying to convert hex to dec and with the help of output i need to do the process. If i execute the below code
assetValue=8f
assetNavigation=$(echo "ibase=16; "$assetValue"" | bc)
echo $assetNavigation
i'm getting the error below
$ sh script.sh
(standard_in) 1: syntax error... (2 Replies)
Discussion started by: Amutha
2 Replies
9. Shell Programming and Scripting
i have this below string which i need to convert it to HEX. i have already tried it but it showing extra few things on it.. let me show what i have done and what is the output i am getting and what is the desired output
the input string is
"!\"\"\"\"\"\"\"!\"\"\"\"\"\"\""
which is... (4 Replies)
Discussion started by: vivek d r
4 Replies
10. Shell Programming and Scripting
Hi,
Got the below code in this forum,
for i in `cat test`; do
printf "%16s\n" $(echo "ibase=10;obase=16;$i" | bc)
done
Understand, this will not give output with '0'. Need help to get the output with '0'.
Regards,
Siva (2 Replies)
Discussion started by: ksgnathan
2 Replies
LEARN ABOUT XFREE86
glyphs
GLYPHS(5) File Formats Manual GLYPHS(5)
NAME
glyphs - format of .glyphs files
DESCRIPTION
Glyph files (``.glyph'' extension) are used to store commonly-used bit patterns (glyphs) for Magic. Right now, the bit patterns are used
for two purposes in Magic. First, they specify patterns for programmable cursors: each cursor shape (e.g. the arrow used for the wiring
tool) is read in as a glyph from a glyph file. Second, glyphs are used by the window manager to represent the icons displayed at the ends
of scroll bars. Glyph file names normally have the extension .glyph.
Glyph files are stored in ASCII format. Lines beginning with ``#'' are considered to be comments and are ignored. Blank lines are also
ignored. The first non-comment line in a glyph file must have the syntax size nGlyphs width height The nGlyphs field must be a number giv-
ing the total number of glyphs stored in the file. The width and height fields give the dimensions of each glyph in pixels. All glyphs in
the same file must have the same size.
The size line is followed by a description for each of the glyphs. Each glyph consists of height lines each containing 2xwidth characters.
Each pair of characters corresponds to a bit position in the glyph, with the leftmost pair on the topmost line corresponding to the upper-
left pixel in the glyph.
The first character of each pair specifies the color to appear in that pixel. The color is represented as as a single character, which
must be the short name of a display style in the current display style file. Some commonly-used characters are K for black, W for white,
and . for the background color (when . is used in a cursor, it means that that pixel position is transparent: the underlying picture
appears through the cursor). See ``Magic Maintainer's Manual #3: Display Styles, Color Maps, and Glyphs'' for more information.
The second character of each pair is normally blank, except for one pixel per glyph which may contain a ``*'' in the second character. The
``*'' is used for programmable cursors to indicate the hot-spot: the pixel corresponding to the ``*'' is the one that the cursor is con-
sidered to point to.
For an example of a glyph file, see ~cad/lib/magic/sys/color.glyphs.
SEE ALSO
magic(1), dstyle(5)
4th Berkeley Distribution GLYPHS(5)