Difference between revisions of "Dmuse: Color and upper-ASCII codes"
(73 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
== The Representation of Color in Dmuse Text Files == | == The Representation of Color in Dmuse Text Files == | ||
+ | [[File:Dmuse-colorcodes.png|200px|thumb|right|Example color codes rendered in Dmuse ([[Media:Dmuse-colorcodes.dm|.dm]], [[Media:Dmuse-colorcodes.html| .html]]).]] | ||
The design of the Dmuse screen has its origins in the old PC screen. The old PC screen, which was character based, used two bytes to represent each character cell on the screen: one byte for the character, and one for the color attributes. The color attribute byte had two parts: color of the foreground -- the letters, themselves -- and the color of the background -- the field on which the letters appeared. The Dmuse screen also uses this system to represent characters and their color attributes. | The design of the Dmuse screen has its origins in the old PC screen. The old PC screen, which was character based, used two bytes to represent each character cell on the screen: one byte for the character, and one for the color attributes. The color attribute byte had two parts: color of the foreground -- the letters, themselves -- and the color of the background -- the field on which the letters appeared. The Dmuse screen also uses this system to represent characters and their color attributes. | ||
Line 7: | Line 8: | ||
The ability to use different color combinations for characters has proven quite useful. The eye is quick to distinguish color, and this makes it easy to flag or highlight certain areas of the screen. But there needs to be a mechanism for coding this information for storage in a file; otherwise, no advantage would be gained in using colors, since this information would simply go away when the window was saved. The most direct way to store window data would be to store each cell: character and attribute. But this has two very large disadvantages. One, it is very wasteful, since most text is written in a "default" combination, <i>e.g.</i>, white on black. Second, it makes the file very difficult to read by other programs, since only every other byte contains a valid character. The alternative used by Dmuse is to insert an escape sequence each time the color attribute in a line changes. Since these changes do not happen very often, the extra bytes do not add up to a lot of extra storage. And since the escape sequences come in blocks, they do not interfere with the characters, at least not on a massive scale. | The ability to use different color combinations for characters has proven quite useful. The eye is quick to distinguish color, and this makes it easy to flag or highlight certain areas of the screen. But there needs to be a mechanism for coding this information for storage in a file; otherwise, no advantage would be gained in using colors, since this information would simply go away when the window was saved. The most direct way to store window data would be to store each cell: character and attribute. But this has two very large disadvantages. One, it is very wasteful, since most text is written in a "default" combination, <i>e.g.</i>, white on black. Second, it makes the file very difficult to read by other programs, since only every other byte contains a valid character. The alternative used by Dmuse is to insert an escape sequence each time the color attribute in a line changes. Since these changes do not happen very often, the extra bytes do not add up to a lot of extra storage. And since the escape sequences come in blocks, they do not interfere with the characters, at least not on a massive scale. | ||
− | The escape sequences used by Dmuse actually derive from | + | The escape sequences used by Dmuse actually derive from those used by the old (<i>c.</i> 1965) [http://en.wikipedia.org/wiki/HP_2640 HP 2640 Smart Terminal], on which the first Ibycus systems were based (see the [[Dmuse:_Overview#History_of_Dmuse_Development|History of Dmuse]]). Dmuse supports 16 different color combinations, which can be accessed by means of the four function keys, {{keypress|F5}}, {{keypress|F6}}, {{keypress|F7}}, {{keypress|F8}}, used with the four states: <i>unaltered</i>, {{keypress|Shft}}, {{keypress|Ctrl}}, and {{keypress|Ctrl|Shft}}. By convention, {{keypress|F5}} is assigned the default combination, usually white on black. The table on the right shows the 16 escape codes used by Dmuse to flag these combination changes in a file, along with standard color assignments. <esc> here refers to the ASCII byte 27 (hex 0x1b). |
− | + | <table align="right" cellpadding="10" style="background-color:white"><tr><td> | |
− | < | + | {| class="wikitable" cellpadding="0" cellspacing="0" border="0" style="width:350px" |
− | {| class="wikitable" cellpadding=" | ||
|- |- {{Style|table header}} | |- |- {{Style|table header}} | ||
! scope="col" width="100px" rowspan="2" | Combination | ! scope="col" width="100px" rowspan="2" | Combination | ||
! score="col" width="400px" colspan="2" | Escape Sequence | ! score="col" width="400px" colspan="2" | Escape Sequence | ||
|- style="background:#A35801; color:white" | |- style="background:#A35801; color:white" | ||
− | ! Character string | + | ! align="center" |Character string |
! Dmuse key command | ! Dmuse key command | ||
|- | |- | ||
− | | <font color=white style="BACKGROUND-COLOR:black">Combination 0:</font> || <esc>&d@ || {{keypress|F5}} | + | | <font color=white style="BACKGROUND-COLOR:black">Combination 0:</font> || align="center" | <esc>&d@ || {{keypress|F5}} |
|- | |- | ||
− | | <font color=black style="BACKGROUND-COLOR: red">Combination 1:</font> || <esc>&dA || {{keypress|F6}} | + | | <font color=black style="BACKGROUND-COLOR: red">Combination 1:</font> || align="center" |<esc>&dA || {{keypress|F6}} |
|- | |- | ||
− | | Combination 2: || <esc>&dB || {{keypress|F7}} | + | | <font color=red style="BACKGROUND-COLOR:black">Combination 2:</font> || align="center" |<esc>&dB || {{keypress|F7}} |
|- | |- | ||
− | | Combination 3: || <esc>&dC || {{keypress|F8}} | + | | <font color=black style="BACKGROUND-COLOR:#cf5c5c">Combination 3:</font> || align="center" | <esc>&dC || {{keypress|F8}} |
|- | |- | ||
− | | Combination 4: || <esc>&dD || {{keypress|Shft|F5}} | + | | <font color=white style="BACKGROUND-COLOR:#a25129">Combination 4:</font> ||align="center" |<esc>&dD || {{keypress|Shft|F5}} |
|- | |- | ||
− | | <font color=black style="BACKGROUND-COLOR:orange">Combination 5:</font> || <esc>&dE || {{keypress|Shft|F6}} | + | | <font color=black style="BACKGROUND-COLOR:orange">Combination 5:</font> || align="center" |<esc>&dE || {{keypress|Shft|F6}} |
|- | |- | ||
− | | Combination 6: || <esc>&dF || {{keypress|Shft|F7}} | + | | <font color=black style="BACKGROUND-COLOR:#dba71a">Combination 6:</font> || align="center" |<esc>&dF || {{keypress|Shft|F7}} |
|- | |- | ||
− | | Combination 7: || <esc>&dG || {{keypress|Shft|F8}} | + | | <font color=black style="BACKGROUND-COLOR:#ffc2cd">Combination 7:</font> ||align="center" | <esc>&dG || {{keypress|Shft|F8}} |
|- | |- | ||
− | | Combination 8: || <esc>&dH || {{keypress|Ctrl|F5}} | + | | <font color=#00ff00 style="BACKGROUND-COLOR:black">Combination 8:</font> || align="center" |<esc>&dH || {{keypress|Ctrl|F5}} |
|- | |- | ||
− | | <font color=black style="BACKGROUND-COLOR:#00ff00">Combination 9:</font> || <esc>&dI || {{keypress|Ctrl|F6}} | + | | <font color=black style="BACKGROUND-COLOR:#00ff00">Combination 9:</font> ||align="center" | <esc>&dI || {{keypress|Ctrl|F6}} |
|- | |- | ||
− | | Combination 10: || <esc>&dJ || {{keypress|Ctrl|F7}} | + | | <font color=white style="BACKGROUND-COLOR:#1c8c1c">Combination 10:</font> || align="center" |<esc>&dJ || {{keypress|Ctrl|F7}} |
|- | |- | ||
− | | <font color=black style="BACKGROUND-COLOR:# | + | | <font color=black style="BACKGROUND-COLOR:#ef83ef">Combination 11:</font> ||align="center" | <esc>&dK || {{keypress|Ctrl|F8}} |
|- | |- | ||
− | | Combination 12: || <esc>&dL || {{keypress|Ctrl|Shft|F5}} | + | | <font color=white style="BACKGROUND-COLOR:#4483B6">Combination 12:</font> || align="center" |<esc>&dL || {{keypress|Ctrl|Shft|F5}} |
|- | |- | ||
− | | Combination 13: || <esc>&dM || {{keypress|Ctrl|Shft|F6}} | + | | <font color=black style="BACKGROUND-COLOR:#00d0d2">Combination 13:</font> || align="center" |<esc>&dM || {{keypress|Ctrl|Shft|F6}} |
|- | |- | ||
− | | Combination 14: || <esc>&dN || {{keypress|Ctrl|Shft|F7}} | + | | <font color=white style="BACKGROUND-COLOR:#9b2ece">Combination 14:</font> || align="center" |<esc>&dN || {{keypress|Ctrl|Shft|F7}} |
|- | |- | ||
− | | Combination 15: || <esc>&dO || {{keypress|Ctrl|Shft|F8}} | + | | <font color=white style="BACKGROUND-COLOR:#2a8c56">Combination 15:</font> || align="center" |<esc>&dO || {{keypress|Ctrl|Shft|F8}} |
|} | |} | ||
− | </ | + | </td></tr></table> |
+ | |||
+ | |||
In a plain ASCII text editor, a file created by Dmuse might display the following string (using <tt>?</tt> to represent the escape byte, 0x1b): | In a plain ASCII text editor, a file created by Dmuse might display the following string (using <tt>?</tt> to represent the escape byte, 0x1b): | ||
?&dAThis combination is black on red.?&d@ | ?&dAThis combination is black on red.?&d@ | ||
Line 60: | Line 62: | ||
== The Use of Non-standard ASCII Codes in Dmuse Files == | == The Use of Non-standard ASCII Codes in Dmuse Files == | ||
− | Byte values range from 0 to 255. For purposes of representing text in Western European alphabets, only a subset of these values is agreed upon by everyone to have a standard meaning. For reasons now lost to most of us, this is called standard ASCII. The subset includes the values 32 to 126, and a few additional values such as 27 (= escape), 13 (= carriage return), 10 (= line-feed), and 9 (= Tab). | + | Byte values range from 0 to 255. For purposes of representing text in Western European alphabets, only a subset of these values is agreed upon by everyone to have a standard meaning. For reasons now lost to most of us, this is called standard [http://en.wikipedia.org/wiki/ASCII ASCII]. The subset includes the values 32 to 126, and a few additional values such as 27 (= escape), 13 (= carriage return), 10 (= line-feed), and 9 (= Tab). |
When text files are used to represent data that is meant to be read by multiple programs running on a variety of computer platforms, it is absolutely essential that ONLY standard ASCII be used. But it would be a shame to limit screen applications such as Dmuse to the 100 or so standard ASCII characters. Dmuse, for example, can display each of the letters, a,e,i,o,u, A,E,I,O,U, with the acute accent, the grave, the circumflex, and the umlaut or dieresis. Since Dmuse can put only one character in a cell, that's 10 x 4 = 40 additional screen characters. Another example: Dmuse can draw lines and boxes with both single and double lines. Tables and diagrams made with these characters have many useful applications. It takes 40 special characters to do this. So Dmuse does make use of almost all of the 256 byte values, even though only 100 of these values have a standard meaning. | When text files are used to represent data that is meant to be read by multiple programs running on a variety of computer platforms, it is absolutely essential that ONLY standard ASCII be used. But it would be a shame to limit screen applications such as Dmuse to the 100 or so standard ASCII characters. Dmuse, for example, can display each of the letters, a,e,i,o,u, A,E,I,O,U, with the acute accent, the grave, the circumflex, and the umlaut or dieresis. Since Dmuse can put only one character in a cell, that's 10 x 4 = 40 additional screen characters. Another example: Dmuse can draw lines and boxes with both single and double lines. Tables and diagrams made with these characters have many useful applications. It takes 40 special characters to do this. So Dmuse does make use of almost all of the 256 byte values, even though only 100 of these values have a standard meaning. | ||
− | This means that text files generated by Dmuse can have non-standard ASCII bytes in them. These bytes have a clear and sensible meaning to Dmuse, but other programs will interpret them differently with what may look like nonsensible results. There is no problem so long as files generated by Dmuse for general export (MuseData files, for example) contain bytes only from the standard ASCII set. Files intended for use by Dmuse alone are not subject to this limitation. | + | This means that text files generated by Dmuse can have non-standard ASCII bytes in them. These bytes have a clear and sensible meaning to Dmuse, but other programs will interpret them differently with what may look like nonsensible results. There is no problem so long as files generated by Dmuse for general export (MuseData files, for example) contain bytes only from the standard ASCII set. Files intended for use by Dmuse alone are not subject to this limitation. Below is a list of the byte codes used by Dmuse. |
− | + | == Dmuse byte code character mappings == | |
<center> | <center> | ||
− | {| class="wikitable" cellpadding=" | + | {| class="wikitable" cellpadding="1" cellspacing="0" border="0" style="width:650px" |
|- {{Style|table header}} | |- {{Style|table header}} | ||
! colspan="2" scope="col" width="100px" | Byte Code | ! colspan="2" scope="col" width="100px" | Byte Code | ||
− | ! rowspan="2" scope="col" width=" | + | ! scope="col" width="50px" rowspan="2" | <br>char |
− | ! rowspan="2" scope="col" width=" | + | ! scope="col" width="50px" rowspan="2" | UTF-8<br>Hex |
+ | ! scope="col" width="10px" width="100px" align="left" rowspan="2" | HTML<br>Entity | ||
+ | ! rowspan="2" scope="col" width="175" align="left"| Dmuse key command | ||
+ | ! rowspan="2" scope="col" width="350px" align="left" | Character description | ||
|- style="background:#A35801; color:white" | |- style="background:#A35801; color:white" | ||
| Dec || Hex | | Dec || Hex | ||
|- | |- | ||
− | | 0 || 0x00 || | + | | 0 || 0x00 || || 00 || <tt>&#0;</tt> || || no character |
+ | |- | ||
+ | | 1 || 0x01 || align="center" | {{music|sharp}} || E299AF || <tt>&#9839;</tt> || {{keypress|Ctrl|Shft|A}} || musical sharp | ||
+ | |- | ||
+ | | 2 || 0x02 || align="center" | {{music|flat}} || E299AD ||<tt>&#9837;</tt> || {{keypress|Ctrl|Shft|B}} || musical flat | ||
+ | |- | ||
+ | | 3 || 0x03 || align="center" | {{music|natural}} || E299AE ||<tt>&#9838;</tt> || {{keypress|Ctrl|Shft|C}} || musical natural | ||
+ | |- | ||
+ | | 4 || 0x04 || align="center" | ♦ || E299A6 || <tt>&diams;</tt> || {{keypress|Ctrl|Shft|D}} || centered diamond | ||
+ | |- | ||
+ | | 5 || 0x05 || align="center" | ⎛ || E28E9B || <tt>&#9115;</tt> || {{keypress|Ctrl|Shft|E}} || top of the large open parenthesis | ||
+ | |- | ||
+ | | 6 || 0x06 || align="center" | ⎝ || E28E9D || <tt>&#9117;</tt> || {{keypress|Ctrl|Shft|F}} || bottom of the large open parenthesis | ||
+ | |- | ||
+ | | 7 || 0x07 || align="center" | • || E280A2 || <tt>&bull;</tt> || {{keypress|Shft|Alt|9}} || large centered dot | ||
+ | |- | ||
+ | | 8 || 0x08 || align="center" | ⎞ || E28E9E || <tt>&#9118;</tt> || {{keypress|Ctrl|Shft|G}} || top of the large close parenthesis | ||
+ | |- | ||
+ | | 9 || 0x09 || align="center" | ┊ || E2948A || <tt>&#9482;</tt> || {{keypress|Shft|Alt|0}} (zero) || vertical dotted line, also used to represent<br>Tab character | ||
+ | |- | ||
+ | | 10 || 0x0a || || 0A || <tt>&#10;</tt> || {{keypress|Shft|Alt|-}} (minus) || line feed | ||
+ | |- | ||
+ | | 11 || 0x0b || align="center" | © || C2A9 || <tt>&copy;</tt> || {{keypress|Ctrl|Shft|K}} || copyright | ||
+ | |- | ||
+ | | 12 || 0x0c || align="center" | ⎠ || E28EA0 || <tt>&#9120;</tt> || {{keypress|Ctrl|Shft|H}} || bottom of the large close parenthesis | ||
+ | |- | ||
+ | | 13 || 0x0d || || 0D || <tt>&#13;</tt> || {{keypress|Ctrl|Shft|L}} || carriage return | ||
+ | |- | ||
+ | | 14 || 0x0e || align="center" | → || E28692 || <tt>&rarr;</tt> || {{keypress|Ctrl|Shft|M}} || small arrow pointing right | ||
+ | |- | ||
+ | | 15 || 0x0f || align="center" | ☼ || E298BC || <tt>&#9788;</tt> || {{keypress|Ctrl|Shft|O}} (letter) || sun burst | ||
+ | |- | ||
+ | | 16 || 0x10 || align="center" | ► || E296BA || <tt>&#9658;</tt> || {{keypress|Ctrl|Shft|P}} || large arrow head pointing right | ||
+ | |- | ||
+ | | 17 || 0x11 || align="center" | ◄ || E29784 || <tt>&#9668;</tt> || {{keypress|Ctrl|Shft|Q}} || large arrow head pointing left | ||
+ | |- | ||
+ | | 18 || 0x12 || align="center" | √ || E2889A || <tt>&radic;</tt> || {{keypress|Ctrl|Shft|R}} || start of small square root character | ||
+ | |- | ||
+ | | 19 || 0x13 || align="center" | ▁ || E29681 || <tt>&#9601;</tt> || {{keypress|Ctrl|Shft|S}} || top of square root character | ||
+ | |- | ||
+ | | 20 || 0x14 || align="center" | ¶ || C2B6 || <tt>&para;</tt> || {{keypress|Ctrl|Shft|T}} || paragraph | ||
+ | |- | ||
+ | | 21 || 0x15 || align="center" | § || C2A7 || <tt>&sect;</tt> || {{keypress|Ctrl|Shft|U}} || section | ||
+ | |- | ||
+ | | 22 || 0x16 || align="center" | ╱ || E295B1 || <tt>&#9585;</tt> || {{keypress|Ctrl|Shft|V}} || vertical part of large square root | ||
+ | |- | ||
+ | | 23 || 0x17 || align="center" | ╲ || E295B2 || <tt>&#9586;</tt> || {{keypress|Ctrl|Shft|W}} || start of large square root | ||
+ | |- | ||
+ | | 24 || 0x18 || align="center" | ↑ || E28691 || <tt>&uarr;</tt> || {{keypress|Ctrl|Shft|X}} || small arrow pointing up | ||
+ | |- | ||
+ | | 25 || 0x19 || align="center" | ↓ || E28693 || <tt>&darr;</tt> || {{keypress|Ctrl|Shft|Y}} || small arrow pointing down | ||
+ | |- | ||
+ | | 26 || 0x1a || align="center" | ± || C2B1 || <tt>&plusmn;</tt> || {{keypress|Shft|Alt|{{=}}}} || plus or minus | ||
+ | |- | ||
+ | | 27 || 0x1b || align="center" | ||1B || <tt>&#27;</tt> || || escape character | ||
+ | |- | ||
+ | | 28 || 0x1c || align="center" | ← || E28690 || <tt>&larr;</tt> || {{keypress|Ctrl|Shft|N}} || small arrow pointing left | ||
+ | |- | ||
+ | | 29 || 0x1d || align="center" | ↔ || E28694 || <tt>&harr;</tt> || (none) || arrow both ways | ||
+ | |- | ||
+ | | 30 || 0x1e || align="center" | ▲ || E296B2 || <tt>&#9650;</tt> || {{keypress|Ctrl|Shft|I}} (letter) || large arrow head pointing up | ||
+ | |- | ||
+ | | 31 || 0x1f || align="center" | ▼ || E296BC || <tt>&#9660;</tt> || {{keypress|Ctrl|Shft|J}} || large arrow head pointing down | ||
+ | |- | ||
+ | | colspan="4" | 32-126 || || Standard keys || Standard ASCII characters | ||
+ | |- | ||
+ | | 127 || 0x7f || align="center" | ⌂ || E28C82 || <tt>&#8962;</tt> || {{keypress|Ctrl|Shft|Z}} || house | ||
+ | |- | ||
+ | | 128 || 0x80 || align="center" | Ç || C387 || <tt>&Ccedil;</tt> || {{keypress|C}} then {{keypress|Alt|2}} || C-cedilla | ||
+ | |- | ||
+ | | 129 || 0x81 || align="center" | ü || C3BC || <tt>&uuml;</tt> || {{keypress|u}} then {{keypress|Alt|3}} || u-umlaut | ||
+ | |- | ||
+ | | 130 || 0x82 || align="center" | é || C3A9 || <tt>&eacute;</tt> || {{keypress|e}} then {{keypress|Alt|7}} || e-acute | ||
+ | |- | ||
+ | | 131 || 0x83 || align="center" | â || C3A2 || <tt>&acirc;</tt> || {{keypress|a}} then {{keypress|Alt|9}} || a-circumflex | ||
+ | |- | ||
+ | | 132 || 0x84 || align="center" | ä || C3A4 || <tt>&auml;</tt> || {{keypress|a}} then {{keypress|Alt|3}} || a-umlaut | ||
+ | |- | ||
+ | | 133 || 0x85 || align="center" | à || C3A0 || <tt>&agrave;</tt> || {{keypress|a}} then {{keypress|Alt|8}} || a-grave | ||
+ | |- | ||
+ | | 134 || 0x86 || align="center" | å || C3A5 || <tt>&aring;</tt> || {{keypress|a}} then {{keypress|Alt|4}} || a-circle | ||
+ | |- | ||
+ | | 135 || 0x87 || align="center" | ç || C3A7 || <tt>&ccedil;</tt> || {{keypress|c}} then {{keypress|Alt|2}} || c-cedilla | ||
+ | |- | ||
+ | | 136 || 0x88 || align="center" | ê || C3AA || <tt>&ecirc;</tt> || {{keypress|e}} then {{keypress|Alt|9}} || e-circumflex | ||
+ | |- | ||
+ | | 137 || 0x89 || align="center" | ë || C3AB || <tt>&euml;</tt> || {{keypress|e}} then {{keypress|Alt|3}} || e-dieresis | ||
+ | |- | ||
+ | | 138 || 0x8a || align="center" | è || C3A8 || <tt>&egrave;</tt> || {{keypress|e}} then {{keypress|Alt|8}} || e-grave | ||
+ | |- | ||
+ | | 139 || 0x8b || align="center" | ï || C3AF || <tt>&iuml;</tt> || {{keypress|i}} then {{keypress|Alt|3}} || i-dieresis | ||
+ | |- | ||
+ | | 140 || 0x8c || align="center" | î || C3AE || <tt>&icirc;</tt> || {{keypress|i}} then {{keypress|Alt|9}} || i-circumflex | ||
+ | |- | ||
+ | | 141 || 0x8d || align="center" | ì || C3AC || <tt>&igrave;</tt> || {{keypress|i}} then {{keypress|Alt|8}} || i-grave | ||
+ | |- | ||
+ | | 142 || 0x8e || align="center" | Ä || C384 || <tt>&Auml;</tt> || {{keypress|A}} then {{keypress|Alt|3}} || A-umlaut | ||
+ | |- | ||
+ | | 143 || 0x8f || align="center" | Å || C385 || <tt>&Aring;</tt> || {{keypress|A}} then {{keypress|Alt|4}} || A-circle | ||
+ | |- | ||
+ | | 144 || 0x90 || align="center" | é || C3A9 || <tt>&eacute;</tt> || {{keypress|E}} then {{keypress|Alt|7}} || E-acute | ||
+ | |- | ||
+ | | 145 || 0x91 || align="center" | æ || C3A6 || <tt>&aelig;</tt> || {{keypress|Shft|Alt|I}} (letter) || ae | ||
+ | |- | ||
+ | | 146 || 0x92 || align="center" | Æ || C386 || <tt>&AElig;</tt> || {{keypress|Shft|Alt|O}} (letter) || AE | ||
+ | |- | ||
+ | | 147 || 0x93 || align="center" | ô || C3B4 || <tt>&ocirc;</tt> || {{keypress|o}} then {{keypress|Alt|9}} || o-circumflex | ||
+ | |- | ||
+ | | 148 || 0x94 || align="center" | ö || C3B6 || <tt>&ouml;</tt> || {{keypress|o}} then {{keypress|Alt|3}} || o-umlaut | ||
+ | |- | ||
+ | | 149 || 0x95 || align="center" | ò || C3B2 || <tt>&ograve;</tt> || {{keypress|o}} then {{keypress|Alt|8}} || o-grave | ||
+ | |- | ||
+ | | 150 || 0x96 || align="center" | û || C3BB || <tt>&ucirc;</tt> || {{keypress|u}} then {{keypress|Alt|9}} || u-circumflex | ||
+ | |- | ||
+ | | 151 || 0x97 || align="center" | ù || C3B9 || <tt>&ugrave;</tt> || {{keypress|u}} then {{keypress|Alt|8}} || u-grave | ||
+ | |- | ||
+ | | 152 || 0x98 || align="center" | ÿ || C3BF || <tt>&yuml;</tt> || {{keypress|y}} then {{keypress|Alt|3}} || y-dieresis | ||
+ | |- | ||
+ | | 153 || 0x99 || align="center" | Ö || C396 || <tt>&Ouml;</tt> || {{keypress|O}} then {{keypress|Alt|3}} || O-umlaut | ||
+ | |- | ||
+ | | 154 || 0x9a || align="center" | Ü || C39C || <tt>&Uuml;</tt> || {{keypress|U}} then {{keypress|Alt|3}} || U-umlaut | ||
+ | |- | ||
+ | | 155 || 0x9b || align="center" | ¢ || C2A2 || <tt>&cent;</tt> || {{keypress|Shft|Alt|$}} || cent | ||
+ | |- | ||
+ | | 156 || 0x9c || align="center" | £ || C2A3 || <tt>&pound;</tt> || {{keypress|Shft|Alt|#}} || British pound | ||
+ | |- | ||
+ | | 157 || 0x9d || align="center" | ¥ || C2A5 || <tt>&yen;</tt> || {{keypress|Shft|Alt|@}} || Japanese yen | ||
+ | |- | ||
+ | | 158 || 0x9e || align="center" | ₧ || E282A7 || <tt>&#8359;</tt> || {{keypress|Shft|Alt|P}} || peseta | ||
+ | |- | ||
+ | | 159 || 0x9f || align="center" | ƒ || C692 || <tt>&fnof;</tt> || {{keypress|Shft|Alt|%}} || florin | ||
+ | |- | ||
+ | | 160 || 0xa0 || align="center" | á || C3A1 || <tt>&aacute;</tt> || {{keypress|a}} then {{keypress|Alt|7}} || a-acute | ||
+ | |- | ||
+ | | 161 || 0xa1 || align="center" | í || C3AD || <tt>&iacute;</tt> || {{keypress|i}} then {{keypress|Alt|7}} || i-acute | ||
+ | |- | ||
+ | | 162 || 0xa2 || align="center" | ó || C3B3 || <tt>&oacute;</tt> || {{keypress|o}} then {{keypress|Alt|7}} || o-acute | ||
+ | |- | ||
+ | | 163 || 0xa3 || align="center" | ú || C3BA || <tt>&uacute;</tt> || {{keypress|u}} then {{keypress|Alt|7}} || u-acute | ||
+ | |- | ||
+ | | 164 || 0xa4 || align="center" | ñ || C3B1 || <tt>&ntilde;</tt> || {{keypress|n}} then {{keypress|Alt|1}} || n-tilde | ||
+ | |- | ||
+ | | 165 || 0xa5 || align="center" | Ñ || C391 || <tt>&Ntilde;</tt> || {{keypress|N}} then {{keypress|Alt|1}} || N-tilde | ||
+ | |- | ||
+ | | 166 || 0xa6 || align="center" | Ř || C598 || <tt>&#344;</tt> || {{keypress|R}} then {{keypress|Alt|5}} || R-caron | ||
+ | |- | ||
+ | | 167 || 0xa7 || align="center" | ř || C599 || <tt>&#345;</tt> || {{Keypress|r}} then {{keypress|Alt|5}} || r-caron | ||
+ | |- | ||
+ | | 168 || 0xa8 || align="center" | ¿ || C2BF || <tt>&#0191;</tt> || {{keypress|Shft|Alt|?}} || inverted question | ||
+ | |- | ||
+ | | 169 || 0xa9 || align="center" | ⌐ || E28C90 || <tt>&#8976;</tt> || {{keypress|Alt|{{=}}}} || right-angle up-left | ||
+ | |- | ||
+ | | 170 ||0xaa || align="center" | ¬ || C2AC || <tt>&#172;</tt> || {{keypress|Alt|-}} || right-angle up-right | ||
+ | |- | ||
+ | | 171 || 0xab || align="center" | ½ || C2BD || <tt>&frac12;</tt> || {{keypress|Shft|Alt|*}} || half | ||
+ | |- | ||
+ | | 172 || 0xac || align="center" | ¼ || C2BC || <tt>&frac14;</tt> || {{keypress|Shft|Alt|&}} || quarter | ||
+ | |- | ||
+ | | 173 || 0xad || align="center" | ¡ || C2A1 || <tt>&iexcl;</tt> || {{keypress|Shft|Alt|!}} || inverted exclamation | ||
+ | |- | ||
+ | | 174 || 0xae || align="center" | « || C2AB || <tt>&laquo;</tt> || {{keypress|Shft|Alt|<}} || left angle quote | ||
+ | |- | ||
+ | | 175 || 0xaf || align="center" | » || C2BB || <tt>&raquo;</tt> || {{keypress|Shft|Alt|>}} || right angle quote | ||
+ | |- | ||
+ | | 176 || 0xb0 || align="center" | ░ || E29691 || <tt>&#9617;</tt> || {{keypress|Alt|o}} || full cell quarter shade | ||
+ | |- | ||
+ | | 177 || 0xb1 || align="center" | ▒ || E29692 || <tt>&#9618;</tt> || {{keypress|Alt|p}} || full cell half shade | ||
+ | |- | ||
+ | | 178 || 0xb2 || align="center" | ▓ || E29693 || <tt>&#9619;</tt> || {{keypress|Alt|[}} || full cell 3/4 shade | ||
+ | |- | ||
+ | | 179 || 0xb3 || align="center" | │ || E29482 || <tt>&#9474;</tt> || {{keypress|Alt|f}} || line drawing: single vertical line | ||
+ | |- | ||
+ | | 180 || 0xb4 || align="center" | ┤ || E294A4 || <tt>&#9508;</tt> || {{keypress|Alt|d}} || line drawing: single right-center | ||
+ | |- | ||
+ | | 181 || 0xb5 || align="center" | ╡ || E295A1 || <tt>&#9569;</tt> || {{keypress|Shft|Alt|J}} || line drawing: single/double right-center | ||
+ | |- | ||
+ | | 182 || 0xb6 || align="center" | ╢ || E295A2 || <tt>&#9570;</tt> || {{keypress|Shft|Alt|D}} || line drawing: double/single right-center | ||
+ | |- | ||
+ | | 183 || 0xb7 || align="center" | ╖ || E29596 || <tt>&#9558;</tt> || {{keypress|Shft|Alt|E}} || line drawing: double/single upper-right | ||
+ | |- | ||
+ | | 184 || 0xb8 || align="center" | ╕ || E29595 || <tt>&#9557;</tt> || {{keypress|Shft|Alt|U}} || line drawing: single/double upper-right | ||
+ | |- | ||
+ | | 185 || 0xb9 || align="center" | ╣ || E295A3 || <tt>&#9571;</tt> || {{keypress|Alt|j}} || line drawing: double right-center | ||
+ | |- | ||
+ | | 186 || 0xba || align="center" | ║ || E29591 || <tt>&#9553;</tt> || {{keypress|Alt|k}} || line drawing: double vertical line | ||
+ | |- | ||
+ | | 187 || 0xbb || align="center" | ╗ || E29597 || <tt>&#9559;</tt> || {{keypress|Alt|u}} || line drawing: double upper-right | ||
+ | |- | ||
+ | | 188 || 0xbc || align="center" | ╝ || E2959D || <tt>&#9565;</tt> || {{keypress|Alt|m}} || line drawing: double lower-right | ||
+ | |- | ||
+ | | 189 || 0xbd || align="center" | ╜ || E2959C || <tt>&#9564;</tt> || {{keypress|Shft|Alt|C}} || line drawing: double/single lower-right | ||
+ | |- | ||
+ | | 190 || 0xbe || align="center" | ╛ || E2959B || <tt>&#9563;</tt> || {{keypress|Shft|Alt|M}} || line drawing: single/double lower-right | ||
+ | |- | ||
+ | | 191 || 0xbf || align="center" | ┐ || E29490 || <tt>&#9488;</tt> || {{keypress|Alt|e}} || line drawing: single upper-right | ||
+ | |- | ||
+ | | 192 || 0xc0 || align="center" | └ || E29494 || <tt>&#9492;</tt> || {{keypress|Alt|z}} || line drawing: single lower-left | ||
+ | |- | ||
+ | | 193 || 0xc1 || align="center" | ┴ || E294B4 || <tt>&#9524;</tt> || {{keypress|Alt|x}} || line drawing: single lower-center | ||
+ | |- | ||
+ | | 194 || 0xc2 || align="center" | ┬ || E294AC || <tt>&#9516;</tt> || {{keypress|Alt|w}} || line drawing: single upper-center | ||
+ | |- | ||
+ | | 195 || 0xc3 || align="center" | ├ || E2949C || <tt>&#9500;</tt> || {{keypress|Alt|a}} || line drawing: single left-center | ||
+ | |- | ||
+ | | 196 || 0xc4 || align="center" | ─ || E29480 || <tt>&#9472;</tt> || {{keypress|Alt|r}} || line drawing: single horizontal line | ||
+ | |- | ||
+ | | 197 || 0xc5 || align="center" | ┼ || E294BC || <tt>&#9532;</tt> || {{keypress|Alt|s}} || line drawing: single center | ||
+ | |- | ||
+ | | 198 || 0xc6 || align="center" | ╞ || E2959E || <tt>&#9566;</tt> || {{keypress|Shft|Alt|G}} || line drawing: single/double left-center | ||
+ | |- | ||
+ | | 199 || 0xc7 || align="center" | ╟ || E2959F || <tt>&#9567;</tt> || {{keypress|Shft|Alt|A}} || line drawing: double/single left-center | ||
+ | |- | ||
+ | | 200 || 0xc8 || align="center" | ╚ || E2959A || <tt>&#9562;</tt> || {{keypress|Alt|b}} || line drawing: double lower-left | ||
+ | |- | ||
+ | | 201 || 0xc9 || align="center" | ╔ || E29594 || <tt>&#9556;</tt> || {{keypress|Alt|t}} || line drawing: double upper-left | ||
+ | |- | ||
+ | | 202 || 0xca || align="center" | ╩ || E295A9 || <tt>&#9577;</tt> || {{keypress|Alt|n}} || line drawing: double lower-center | ||
+ | |- | ||
+ | | 203 || 0xcb || align="center" | ╦ || E295A6 || <tt>&#9574;</tt> || {{keypress|Alt|y}} || line drawing: double upper-center | ||
+ | |- | ||
+ | | 204 || 0xcc || align="center" | ╠ || E295A0 || <tt>&#9568;</tt> || {{keypress|Alt|g}} || line drawing: double left-center | ||
+ | |- | ||
+ | | 205 || 0xcd || align="center" | ═ || E29590 || <tt>&#9552;</tt> || {{keypress|Alt|i}} || line drawing: double horizontal line | ||
+ | |- | ||
+ | | 206 || 0xce || align="center" | ╬ || E295AC || <tt>&#9580;</tt> || {{keypress|Alt|h}} || line drawing: double center | ||
+ | |- | ||
+ | | 207 || 0xcf || align="center" | ╧ || E295A7 || <tt>&#9575;</tt> || {{keypress|Shft|Alt|N}} || line drawing: single/double lower-center | ||
+ | |- | ||
+ | | 208 || 0xd0 || align="center" | ╨ || E295A8 || <tt>&#9576;</tt> || {{keypress|Shft|Alt|X}} || line drawing: double/single lower-center | ||
+ | |- | ||
+ | | 209 || 0xd1 || align="center" | ╤ || E295A4 || <tt>&#9572;</tt> || {{keypress|Shft|Alt|Y}} || line drawing: single/double upper-center | ||
+ | |- | ||
+ | | 210 || 0xd2 || align="center" | ╥ || E295A5 || <tt>&#9573;</tt> || {{keypress|Shft|Alt|W}} || line drawing: double/single upper-center | ||
+ | |- | ||
+ | | 211 || 0xd3 || align="center" | ╙ || E29599 || <tt>&#9561;</tt> || {{keypress|Shft|Alt|Z}} || line drawing: double/single lower-left | ||
+ | |- | ||
+ | | 212 || 0xd4 || align="center" | ╘ || E29598 || <tt>&#9560;</tt> || {{keypress|Shft|Alt|B}} || line drawing: single/double lower-left | ||
+ | |- | ||
+ | | 213 || 0xd5 || align="center" | ╒ || E29592 || <tt>&#9554;</tt> || {{keypress|Shft|Alt|T}} || line drawing: single/double upper-left | ||
+ | |- | ||
+ | | 214 || 0xd6 || align="center" | ╓ || E29593 || <tt>&#9555;</tt> || {{keypress|Shft|Alt|Q}} || line drawing: double-single upper-left | ||
+ | |- | ||
+ | | 215 || 0xd7 || align="center" | ╫ || E295AB || <tt>&#9579;</tt> || {{keypress|Shft|Alt|S}} || line drawing: double/single center | ||
+ | |- | ||
+ | | 216 || 0xd8 || align="center" | ╪ || E295AA || <tt>&#9578;</tt> || {{keypress|Shft|Alt|H}} || line drawing: single/double center | ||
|- | |- | ||
− | | | + | | 217 || 0xd9 || align="center" | ┘ || E29498 || <tt>&#9496;</tt> || {{keypress|Alt|c}} || line drawing: single lower-right |
|- | |- | ||
− | | | + | | 218 || 0xda || align="center" | ┌ || E2948C || <tt>&#9484;</tt> || {{keypress|Alt|q}} || line drawing: single upper-left |
|- | |- | ||
− | | | + | | 219 || 0xdb || align="center" | █ || E29688 || <tt>&#9608;</tt> || {{keypress|Alt|]}} || full cell full shade |
|- | |- | ||
− | | | + | | 220 || 0xdc || align="center" | ▄ || E29684 || <tt>&#9604;</tt> || {{keypress|Alt|;}} || lower-half cell full shade |
|- | |- | ||
− | | | + | | 221 || 0xdd || align="center" | ▌ || E2968C || <tt>&#9612;</tt> || {{keypress|Alt|,}} || left-half cell full shade |
|- | |- | ||
− | | | + | | 222 || 0xde || align="center" | ▐ || E29690 || <tt>&#9616;</tt> || {{keypress|Alt|.}} || right-half cell full shade |
|- | |- | ||
− | | | + | | 223 || 0xdf || align="center" | ▀ || E29680 || <tt>&#9600;</tt> || {{keypress|Alt|l}} || upper-half cell full shade |
|- | |- | ||
− | | | + | | 224 || 0xe0 || align="center" | Â || C382 || <tt>&Acirc;</tt> || {{keypress|A}} then {{keypress|Alt|9}} || A-circumflex |
|- | |- | ||
− | | | + | | 225 || 0xe1 || align="center" | À || C380 || <tt>&Agrave;</tt> || {{keypress|A}} then {{keypress|Alt|8}} || A-grave |
|- | |- | ||
− | | | + | | 226 || 0xe2 || align="center" | Á || C381 || <tt>&Aacute;</tt> || {{keypress|A}} then {{keypress|Alt|7}} || A-acute |
|- | |- | ||
− | | | + | | 227 || 0xe3 || align="center" | Ê || C38A || <tt>&Ecirc;</tt> || {{keypress|E}} then {{keypress|Alt|9}} || E-circumflex |
|- | |- | ||
− | | | + | | 228 || 0xe4 || align="center" | Ë || C38B || <tt>&Euml;</tt> || {{keypress|E}} then {{keypress|Alt|3}} || E-dieresis |
|- | |- | ||
− | | | + | | 229 || 0xe5 || align="center" | È || C388 || <tt>&Egrave;</tt> || {{keypress|E}} then {{keypress|Alt|8}} || E-grave |
|- | |- | ||
− | | | + | | 230 || 0xe6 || align="center" | Î || C38E || <tt>&Icirc;</tt> || {{keypress|I}} then {{keypress|Alt|9}} || I-circumflex |
|- | |- | ||
− | | | + | | 231 || 0xe7 || align="center" | Ì || C38C || <tt>&Igrave;</tt> || {{keypress|I}} then {{keypress|Alt|8}} || I-grave |
|- | |- | ||
− | | | + | | 232 || 0xe8 || align="center" | Í || C38D || <tt>&Iacute;</tt> || {{keypress|I}} then {{keypress|Alt|7}} || I-acute |
|- | |- | ||
− | | | + | | 233 || 0xe9 || align="center" | Ï || C38F || <tt>&Iuml;</tt> || {{keypress|I}} then {{keypress|Alt|3}} || I-dieresis |
|- | |- | ||
− | | | + | | 234 || 0xea || align="center" | Ô || C394 || <tt>&Ocirc;</tt> || {{keypress|O}} then {{keypress|Alt|9}} || O-circumflex |
|- | |- | ||
− | | | + | | 235 || 0xeb || align="center" | Ò || C392 || <tt>&Ograve;</tt> || {{keypress|O}} then {{keypress|Alt|8}} || O-grave |
|- | |- | ||
− | | | + | | 236 || 0xec || align="center" | Ó || C393 || <tt>&Oacute;</tt> || {{keypress|O}} then {{keypress|Alt|7}} || O-acute |
|- | |- | ||
− | | | + | | 237 || 0xed || align="center" | Û || C39B || <tt>&Ucirc;</tt> || {{keypress|U}} then {{keypress|Alt|9}} || U-circumflex |
|- | |- | ||
− | | | + | | 238 || 0xee || align="center" | Ù || C399 || <tt>&Ugrave;</tt> || {{keypress|U}} then {{keypress|Alt|8}} || U-grave |
|- | |- | ||
− | | | + | | 239 || 0xef || align="center" | Ú || C39A || <tt>&Uacute;</tt> || {{keypress|U}} then {{keypress|Alt|7}} || U-acute |
|- | |- | ||
− | | | + | | 240 || 0xf0 || align="center" | Ÿ || C5B8 || <tt>&Yuml;</tt> || {{keypress|Y}} then {{keypress|Alt|3}} || Y-dieresis |
|- | |- | ||
− | | | + | | 241 || 0xf1 || align="center" | ý || C3BD || <tt>&yacute;</tt> || {{keypress|y}} then {{keypress|Alt|7}} || y-acute |
|- | |- | ||
− | | | + | | 242 || 0xf2 || align="center" | Ý || C39D || <tt>&Yacute;</tt> || {{keypress|Y}} then {{keypress|Alt|7}} || Y-acute |
|- | |- | ||
− | | | + | | 243 || 0xf3 || align="center" | ø || C3B8 || <tt>&oslash;</tt> || {{keypress|o}} then {{keypress|Alt|2}} || o-slash |
|- | |- | ||
− | | | + | | 244 || 0xf4 || align="center" | Ø || C398 || <tt>&Oslash;</tt> || {{keypress|O}} then {{keypress|Alt|2}} || O-slash |
|- | |- | ||
− | | | + | | 245 || 0xf5 || align="center" | õ || C3B5 || <tt>&otilde;</tt> || {{keypress|o}} then {{keypress|Alt|1}} || o-tilde |
|- | |- | ||
− | | | + | | 246 || 0xf6 || align="center" | Õ || C39520 || <tt>&Otilde;</tt> || {{keypress|O}} then {{keypress|Alt|1}} || O-tilde |
|- | |- | ||
− | | | + | | 247 || 0xf7 || align="center" | ß || C39F || <tt>&szlig;</tt> || {{keypress|s}} then {{keypress|Alt|2}} || German ss |
|- | |- | ||
− | | | + | | 248 || 0xf8 || align="center" | Š || C5A0 || <tt>&#352;</tt> || {{keypress|S}} then {{keypress|Alt|5}} || S-caron |
|- | |- | ||
− | | | + | | 249 || 0xf9 || align="center" | š || C5A1 || <tt>&#353;</tt> || {{keypress|s}} then {{keypress|Alt|5}} || s-caron |
|- | |- | ||
− | | | + | | 250 || 0xfa || align="center" | · || C2B7 || <tt>&#183;</tt> || {{keypress|Shft|Alt|]}} || small centered dot |
|- | |- | ||
− | | | + | | 251 || 0xfb || align="center" | <small>Φ</small> || CEA6 || <tt>&Phi;</tt> || (none) || small capital phi |
|- | |- | ||
− | | | + | | 252 || 0xfc || align="center" | Φ || CEA6 || <tt>&Phi;</tt> || (none) || large capital phi |
|- | |- | ||
− | | | + | | 253 || 0xfd || align="center" | ° || C2B0 || <tt>&deg;</tt> || {{keypress|Shft|Alt|^}} || degree |
|- | |- | ||
− | | | + | | 254 || 0xfe || align="center" | ◾ || E297BE || <tt>&#9726;</tt> || {{keypress|Shft|Alt|[}} || centered box |
|- | |- | ||
− | | | + | | 255 || 0xff || align="center" | ▂ || E29682 || <tt>&#9602;</tt> || (none) || cursor |
|} | |} | ||
+ | </center> | ||
+ | |||
+ | |||
+ | The following screen shot of Dmuse show the contents of [[Media:Dmuse-bytecodes.dm|this .dm file]] ([[Media:Bytecodes.html|HTML conversion]]) which contains a list of each byte code as it is displayed in Dmuse (when the Dmuse fonts have been installed correctly for X11). | ||
+ | |||
+ | [[File:Dmuse-bytecodes.png|||center]] | ||
+ | |||
+ | == Conversion from Dmuse text files to HTML files == | ||
+ | |||
+ | [[Media:dmuse2html.pl|This PERL program]] can be used to convert files using Dmuse byte code representation and color escape codes into a visually similar HTML file. Not all of the Unicode characters which map into Dmuse characters have fixed-width forms, so there may be slight mis-alignment between characters in the same column. Here are example files and screenshots of the Dmuse and HTML files: | ||
+ | |||
+ | <center> | ||
+ | <table style="background-color:white;"> | ||
+ | <tr><td> | ||
+ | [[File:boxtestdm.png|204px|thumb|| [[Media:boxtest.dm|boxtest.dm]] as displayed in Dmuse. ]] | ||
+ | </td><td> | ||
+ | [[File:boxtesthtml.png|204px|thumb|| [[Media:boxtest.html|boxtest.html]] as displayed in Firefox. ]] | ||
+ | </td> | ||
+ | </tr></table> | ||
+ | </center> | ||
+ | |||
+ | The program can be run from the command-line in a unix-style computer terminal like this: | ||
+ | ./dmuse2html file.dm > file.html | ||
+ | |||
+ | == Dmuse ASCII Artwork == | ||
+ | |||
+ | <center> | ||
+ | <table style="background-color:white;"> | ||
+ | <tr><td> | ||
+ | [[File:happyboy.png|250px|thumb|| [[Media:happyboy.dm|happyboy.dm]], [[Media:happyboy.html|happyboy.html]] ]] | ||
+ | </td><td> | ||
+ | [[File:monsterboy.png|250px|thumb|| [[Media:monsterboy.dm|monsterboy.dm]], [[Media:monsterboy.html|monsterboy.html]] ]] | ||
+ | </td> | ||
+ | </tr> | ||
+ | |||
+ | <tr><td> | ||
+ | [[File:monstergirl.png|250px|thumb|| [[Media:monstergirl.dm|monstergirl.dm]], [[Media:monstergirl.html|monstergirl.html]] ]] | ||
+ | </td><td> | ||
+ | |||
+ | |||
+ | </td></tr> | ||
+ | |||
+ | </table> | ||
</center> | </center> |
Latest revision as of 20:29, 17 December 2010
Contents
The Representation of Color in Dmuse Text Files
The design of the Dmuse screen has its origins in the old PC screen. The old PC screen, which was character based, used two bytes to represent each character cell on the screen: one byte for the character, and one for the color attributes. The color attribute byte had two parts: color of the foreground -- the letters, themselves -- and the color of the background -- the field on which the letters appeared. The Dmuse screen also uses this system to represent characters and their color attributes.
The ability to use different color combinations for characters has proven quite useful. The eye is quick to distinguish color, and this makes it easy to flag or highlight certain areas of the screen. But there needs to be a mechanism for coding this information for storage in a file; otherwise, no advantage would be gained in using colors, since this information would simply go away when the window was saved. The most direct way to store window data would be to store each cell: character and attribute. But this has two very large disadvantages. One, it is very wasteful, since most text is written in a "default" combination, e.g., white on black. Second, it makes the file very difficult to read by other programs, since only every other byte contains a valid character. The alternative used by Dmuse is to insert an escape sequence each time the color attribute in a line changes. Since these changes do not happen very often, the extra bytes do not add up to a lot of extra storage. And since the escape sequences come in blocks, they do not interfere with the characters, at least not on a massive scale.
The escape sequences used by Dmuse actually derive from those used by the old (c. 1965) HP 2640 Smart Terminal, on which the first Ibycus systems were based (see the History of Dmuse). Dmuse supports 16 different color combinations, which can be accessed by means of the four function keys, F5, F6, F7, F8, used with the four states: unaltered, Shft, Ctrl, and Ctrl+Shft. By convention, F5 is assigned the default combination, usually white on black. The table on the right shows the 16 escape codes used by Dmuse to flag these combination changes in a file, along with standard color assignments. <esc> here refers to the ASCII byte 27 (hex 0x1b).
|
In a plain ASCII text editor, a file created by Dmuse might display the following string (using ? to represent the escape byte, 0x1b):
?&dAThis combination is black on red.?&d@
which would be displayed in Dmuse as:
This combination is black on red
with "?&dA" indicating color combination 1 (black letters on a red background), and "?&d@" indicating color combination 0 (return to default colors).
The Use of Non-standard ASCII Codes in Dmuse Files
Byte values range from 0 to 255. For purposes of representing text in Western European alphabets, only a subset of these values is agreed upon by everyone to have a standard meaning. For reasons now lost to most of us, this is called standard ASCII. The subset includes the values 32 to 126, and a few additional values such as 27 (= escape), 13 (= carriage return), 10 (= line-feed), and 9 (= Tab).
When text files are used to represent data that is meant to be read by multiple programs running on a variety of computer platforms, it is absolutely essential that ONLY standard ASCII be used. But it would be a shame to limit screen applications such as Dmuse to the 100 or so standard ASCII characters. Dmuse, for example, can display each of the letters, a,e,i,o,u, A,E,I,O,U, with the acute accent, the grave, the circumflex, and the umlaut or dieresis. Since Dmuse can put only one character in a cell, that's 10 x 4 = 40 additional screen characters. Another example: Dmuse can draw lines and boxes with both single and double lines. Tables and diagrams made with these characters have many useful applications. It takes 40 special characters to do this. So Dmuse does make use of almost all of the 256 byte values, even though only 100 of these values have a standard meaning.
This means that text files generated by Dmuse can have non-standard ASCII bytes in them. These bytes have a clear and sensible meaning to Dmuse, but other programs will interpret them differently with what may look like nonsensible results. There is no problem so long as files generated by Dmuse for general export (MuseData files, for example) contain bytes only from the standard ASCII set. Files intended for use by Dmuse alone are not subject to this limitation. Below is a list of the byte codes used by Dmuse.
Dmuse byte code character mappings
Byte Code | char |
UTF-8 Hex |
HTML Entity |
Dmuse key command | Character description | |
---|---|---|---|---|---|---|
Dec | Hex | |||||
0 | 0x00 | 00 | � | no character | ||
1 | 0x01 | ♯ | E299AF | ♯ | Ctrl+Shft+A | musical sharp |
2 | 0x02 | ♭ | E299AD | ♭ | Ctrl+Shft+B | musical flat |
3 | 0x03 | ♮ | E299AE | ♮ | Ctrl+Shft+C | musical natural |
4 | 0x04 | ♦ | E299A6 | ♦ | Ctrl+Shft+D | centered diamond |
5 | 0x05 | ⎛ | E28E9B | ⎛ | Ctrl+Shft+E | top of the large open parenthesis |
6 | 0x06 | ⎝ | E28E9D | ⎝ | Ctrl+Shft+F | bottom of the large open parenthesis |
7 | 0x07 | • | E280A2 | • | Shft+Alt+9 | large centered dot |
8 | 0x08 | ⎞ | E28E9E | ⎞ | Ctrl+Shft+G | top of the large close parenthesis |
9 | 0x09 | ┊ | E2948A | ┊ | Shft+Alt+0 (zero) | vertical dotted line, also used to represent Tab character |
10 | 0x0a | 0A | | Shft+Alt+- (minus) | line feed | |
11 | 0x0b | © | C2A9 | © | Ctrl+Shft+K | copyright |
12 | 0x0c | ⎠ | E28EA0 | ⎠ | Ctrl+Shft+H | bottom of the large close parenthesis |
13 | 0x0d | 0D | | Ctrl+Shft+L | carriage return | |
14 | 0x0e | → | E28692 | → | Ctrl+Shft+M | small arrow pointing right |
15 | 0x0f | ☼ | E298BC | ☼ | Ctrl+Shft+O (letter) | sun burst |
16 | 0x10 | ► | E296BA | ► | Ctrl+Shft+P | large arrow head pointing right |
17 | 0x11 | ◄ | E29784 | ◄ | Ctrl+Shft+Q | large arrow head pointing left |
18 | 0x12 | √ | E2889A | √ | Ctrl+Shft+R | start of small square root character |
19 | 0x13 | ▁ | E29681 | ▁ | Ctrl+Shft+S | top of square root character |
20 | 0x14 | ¶ | C2B6 | ¶ | Ctrl+Shft+T | paragraph |
21 | 0x15 | § | C2A7 | § | Ctrl+Shft+U | section |
22 | 0x16 | ╱ | E295B1 | ╱ | Ctrl+Shft+V | vertical part of large square root |
23 | 0x17 | ╲ | E295B2 | ╲ | Ctrl+Shft+W | start of large square root |
24 | 0x18 | ↑ | E28691 | ↑ | Ctrl+Shft+X | small arrow pointing up |
25 | 0x19 | ↓ | E28693 | ↓ | Ctrl+Shft+Y | small arrow pointing down |
26 | 0x1a | ± | C2B1 | ± | Shft+Alt+= | plus or minus |
27 | 0x1b | 1B |  | escape character | ||
28 | 0x1c | ← | E28690 | ← | Ctrl+Shft+N | small arrow pointing left |
29 | 0x1d | ↔ | E28694 | ↔ | (none) | arrow both ways |
30 | 0x1e | ▲ | E296B2 | ▲ | Ctrl+Shft+I (letter) | large arrow head pointing up |
31 | 0x1f | ▼ | E296BC | ▼ | Ctrl+Shft+J | large arrow head pointing down |
32-126 | Standard keys | Standard ASCII characters | ||||
127 | 0x7f | ⌂ | E28C82 | ⌂ | Ctrl+Shft+Z | house |
128 | 0x80 | Ç | C387 | Ç | C then Alt+2 | C-cedilla |
129 | 0x81 | ü | C3BC | ü | u then Alt+3 | u-umlaut |
130 | 0x82 | é | C3A9 | é | e then Alt+7 | e-acute |
131 | 0x83 | â | C3A2 | â | a then Alt+9 | a-circumflex |
132 | 0x84 | ä | C3A4 | ä | a then Alt+3 | a-umlaut |
133 | 0x85 | à | C3A0 | à | a then Alt+8 | a-grave |
134 | 0x86 | å | C3A5 | å | a then Alt+4 | a-circle |
135 | 0x87 | ç | C3A7 | ç | c then Alt+2 | c-cedilla |
136 | 0x88 | ê | C3AA | ê | e then Alt+9 | e-circumflex |
137 | 0x89 | ë | C3AB | ë | e then Alt+3 | e-dieresis |
138 | 0x8a | è | C3A8 | è | e then Alt+8 | e-grave |
139 | 0x8b | ï | C3AF | ï | i then Alt+3 | i-dieresis |
140 | 0x8c | î | C3AE | î | i then Alt+9 | i-circumflex |
141 | 0x8d | ì | C3AC | ì | i then Alt+8 | i-grave |
142 | 0x8e | Ä | C384 | Ä | A then Alt+3 | A-umlaut |
143 | 0x8f | Å | C385 | Å | A then Alt+4 | A-circle |
144 | 0x90 | é | C3A9 | é | E then Alt+7 | E-acute |
145 | 0x91 | æ | C3A6 | æ | Shft+Alt+I (letter) | ae |
146 | 0x92 | Æ | C386 | Æ | Shft+Alt+O (letter) | AE |
147 | 0x93 | ô | C3B4 | ô | o then Alt+9 | o-circumflex |
148 | 0x94 | ö | C3B6 | ö | o then Alt+3 | o-umlaut |
149 | 0x95 | ò | C3B2 | ò | o then Alt+8 | o-grave |
150 | 0x96 | û | C3BB | û | u then Alt+9 | u-circumflex |
151 | 0x97 | ù | C3B9 | ù | u then Alt+8 | u-grave |
152 | 0x98 | ÿ | C3BF | ÿ | y then Alt+3 | y-dieresis |
153 | 0x99 | Ö | C396 | Ö | O then Alt+3 | O-umlaut |
154 | 0x9a | Ü | C39C | Ü | U then Alt+3 | U-umlaut |
155 | 0x9b | ¢ | C2A2 | ¢ | Shft+Alt+$ | cent |
156 | 0x9c | £ | C2A3 | £ | Shft+Alt+# | British pound |
157 | 0x9d | ¥ | C2A5 | ¥ | Shft+Alt+@ | Japanese yen |
158 | 0x9e | ₧ | E282A7 | ₧ | Shft+Alt+P | peseta |
159 | 0x9f | ƒ | C692 | ƒ | Shft+Alt+% | florin |
160 | 0xa0 | á | C3A1 | á | a then Alt+7 | a-acute |
161 | 0xa1 | í | C3AD | í | i then Alt+7 | i-acute |
162 | 0xa2 | ó | C3B3 | ó | o then Alt+7 | o-acute |
163 | 0xa3 | ú | C3BA | ú | u then Alt+7 | u-acute |
164 | 0xa4 | ñ | C3B1 | ñ | n then Alt+1 | n-tilde |
165 | 0xa5 | Ñ | C391 | Ñ | N then Alt+1 | N-tilde |
166 | 0xa6 | Ř | C598 | Ř | R then Alt+5 | R-caron |
167 | 0xa7 | ř | C599 | ř | r then Alt+5 | r-caron |
168 | 0xa8 | ¿ | C2BF | ¿ | Shft+Alt+? | inverted question |
169 | 0xa9 | ⌐ | E28C90 | ⌐ | Alt+= | right-angle up-left |
170 | 0xaa | ¬ | C2AC | ¬ | Alt+- | right-angle up-right |
171 | 0xab | ½ | C2BD | ½ | Shft+Alt+* | half |
172 | 0xac | ¼ | C2BC | ¼ | Shft+Alt+& | quarter |
173 | 0xad | ¡ | C2A1 | ¡ | Shft+Alt+! | inverted exclamation |
174 | 0xae | « | C2AB | « | Shft+Alt+< | left angle quote |
175 | 0xaf | » | C2BB | » | Shft+Alt+> | right angle quote |
176 | 0xb0 | ░ | E29691 | ░ | Alt+o | full cell quarter shade |
177 | 0xb1 | ▒ | E29692 | ▒ | Alt+p | full cell half shade |
178 | 0xb2 | ▓ | E29693 | ▓ | Alt+[ | full cell 3/4 shade |
179 | 0xb3 | │ | E29482 | │ | Alt+f | line drawing: single vertical line |
180 | 0xb4 | ┤ | E294A4 | ┤ | Alt+d | line drawing: single right-center |
181 | 0xb5 | ╡ | E295A1 | ╡ | Shft+Alt+J | line drawing: single/double right-center |
182 | 0xb6 | ╢ | E295A2 | ╢ | Shft+Alt+D | line drawing: double/single right-center |
183 | 0xb7 | ╖ | E29596 | ╖ | Shft+Alt+E | line drawing: double/single upper-right |
184 | 0xb8 | ╕ | E29595 | ╕ | Shft+Alt+U | line drawing: single/double upper-right |
185 | 0xb9 | ╣ | E295A3 | ╣ | Alt+j | line drawing: double right-center |
186 | 0xba | ║ | E29591 | ║ | Alt+k | line drawing: double vertical line |
187 | 0xbb | ╗ | E29597 | ╗ | Alt+u | line drawing: double upper-right |
188 | 0xbc | ╝ | E2959D | ╝ | Alt+m | line drawing: double lower-right |
189 | 0xbd | ╜ | E2959C | ╜ | Shft+Alt+C | line drawing: double/single lower-right |
190 | 0xbe | ╛ | E2959B | ╛ | Shft+Alt+M | line drawing: single/double lower-right |
191 | 0xbf | ┐ | E29490 | ┐ | Alt+e | line drawing: single upper-right |
192 | 0xc0 | └ | E29494 | └ | Alt+z | line drawing: single lower-left |
193 | 0xc1 | ┴ | E294B4 | ┴ | Alt+x | line drawing: single lower-center |
194 | 0xc2 | ┬ | E294AC | ┬ | Alt+w | line drawing: single upper-center |
195 | 0xc3 | ├ | E2949C | ├ | Alt+a | line drawing: single left-center |
196 | 0xc4 | ─ | E29480 | ─ | Alt+r | line drawing: single horizontal line |
197 | 0xc5 | ┼ | E294BC | ┼ | Alt+s | line drawing: single center |
198 | 0xc6 | ╞ | E2959E | ╞ | Shft+Alt+G | line drawing: single/double left-center |
199 | 0xc7 | ╟ | E2959F | ╟ | Shft+Alt+A | line drawing: double/single left-center |
200 | 0xc8 | ╚ | E2959A | ╚ | Alt+b | line drawing: double lower-left |
201 | 0xc9 | ╔ | E29594 | ╔ | Alt+t | line drawing: double upper-left |
202 | 0xca | ╩ | E295A9 | ╩ | Alt+n | line drawing: double lower-center |
203 | 0xcb | ╦ | E295A6 | ╦ | Alt+y | line drawing: double upper-center |
204 | 0xcc | ╠ | E295A0 | ╠ | Alt+g | line drawing: double left-center |
205 | 0xcd | ═ | E29590 | ═ | Alt+i | line drawing: double horizontal line |
206 | 0xce | ╬ | E295AC | ╬ | Alt+h | line drawing: double center |
207 | 0xcf | ╧ | E295A7 | ╧ | Shft+Alt+N | line drawing: single/double lower-center |
208 | 0xd0 | ╨ | E295A8 | ╨ | Shft+Alt+X | line drawing: double/single lower-center |
209 | 0xd1 | ╤ | E295A4 | ╤ | Shft+Alt+Y | line drawing: single/double upper-center |
210 | 0xd2 | ╥ | E295A5 | ╥ | Shft+Alt+W | line drawing: double/single upper-center |
211 | 0xd3 | ╙ | E29599 | ╙ | Shft+Alt+Z | line drawing: double/single lower-left |
212 | 0xd4 | ╘ | E29598 | ╘ | Shft+Alt+B | line drawing: single/double lower-left |
213 | 0xd5 | ╒ | E29592 | ╒ | Shft+Alt+T | line drawing: single/double upper-left |
214 | 0xd6 | ╓ | E29593 | ╓ | Shft+Alt+Q | line drawing: double-single upper-left |
215 | 0xd7 | ╫ | E295AB | ╫ | Shft+Alt+S | line drawing: double/single center |
216 | 0xd8 | ╪ | E295AA | ╪ | Shft+Alt+H | line drawing: single/double center |
217 | 0xd9 | ┘ | E29498 | ┘ | Alt+c | line drawing: single lower-right |
218 | 0xda | ┌ | E2948C | ┌ | Alt+q | line drawing: single upper-left |
219 | 0xdb | █ | E29688 | █ | Alt+] | full cell full shade |
220 | 0xdc | ▄ | E29684 | ▄ | Alt+; | lower-half cell full shade |
221 | 0xdd | ▌ | E2968C | ▌ | Alt+, | left-half cell full shade |
222 | 0xde | ▐ | E29690 | ▐ | Alt+. | right-half cell full shade |
223 | 0xdf | ▀ | E29680 | ▀ | Alt+l | upper-half cell full shade |
224 | 0xe0 | Â | C382 | Â | A then Alt+9 | A-circumflex |
225 | 0xe1 | À | C380 | À | A then Alt+8 | A-grave |
226 | 0xe2 | Á | C381 | Á | A then Alt+7 | A-acute |
227 | 0xe3 | Ê | C38A | Ê | E then Alt+9 | E-circumflex |
228 | 0xe4 | Ë | C38B | Ë | E then Alt+3 | E-dieresis |
229 | 0xe5 | È | C388 | È | E then Alt+8 | E-grave |
230 | 0xe6 | Î | C38E | Î | I then Alt+9 | I-circumflex |
231 | 0xe7 | Ì | C38C | Ì | I then Alt+8 | I-grave |
232 | 0xe8 | Í | C38D | Í | I then Alt+7 | I-acute |
233 | 0xe9 | Ï | C38F | Ï | I then Alt+3 | I-dieresis |
234 | 0xea | Ô | C394 | Ô | O then Alt+9 | O-circumflex |
235 | 0xeb | Ò | C392 | Ò | O then Alt+8 | O-grave |
236 | 0xec | Ó | C393 | Ó | O then Alt+7 | O-acute |
237 | 0xed | Û | C39B | Û | U then Alt+9 | U-circumflex |
238 | 0xee | Ù | C399 | Ù | U then Alt+8 | U-grave |
239 | 0xef | Ú | C39A | Ú | U then Alt+7 | U-acute |
240 | 0xf0 | Ÿ | C5B8 | Ÿ | Y then Alt+3 | Y-dieresis |
241 | 0xf1 | ý | C3BD | ý | y then Alt+7 | y-acute |
242 | 0xf2 | Ý | C39D | Ý | Y then Alt+7 | Y-acute |
243 | 0xf3 | ø | C3B8 | ø | o then Alt+2 | o-slash |
244 | 0xf4 | Ø | C398 | Ø | O then Alt+2 | O-slash |
245 | 0xf5 | õ | C3B5 | õ | o then Alt+1 | o-tilde |
246 | 0xf6 | Õ | C39520 | Õ | O then Alt+1 | O-tilde |
247 | 0xf7 | ß | C39F | ß | s then Alt+2 | German ss |
248 | 0xf8 | Š | C5A0 | Š | S then Alt+5 | S-caron |
249 | 0xf9 | š | C5A1 | š | s then Alt+5 | s-caron |
250 | 0xfa | · | C2B7 | · | Shft+Alt+] | small centered dot |
251 | 0xfb | Φ | CEA6 | Φ | (none) | small capital phi |
252 | 0xfc | Φ | CEA6 | Φ | (none) | large capital phi |
253 | 0xfd | ° | C2B0 | ° | Shft+Alt+^ | degree |
254 | 0xfe | ◾ | E297BE | ◾ | Shft+Alt+[ | centered box |
255 | 0xff | ▂ | E29682 | ▂ | (none) | cursor |
The following screen shot of Dmuse show the contents of this .dm file (HTML conversion) which contains a list of each byte code as it is displayed in Dmuse (when the Dmuse fonts have been installed correctly for X11).
Conversion from Dmuse text files to HTML files
This PERL program can be used to convert files using Dmuse byte code representation and color escape codes into a visually similar HTML file. Not all of the Unicode characters which map into Dmuse characters have fixed-width forms, so there may be slight mis-alignment between characters in the same column. Here are example files and screenshots of the Dmuse and HTML files:
![]() boxtest.dm as displayed in Dmuse. |
![]() boxtest.html as displayed in Firefox. |
The program can be run from the command-line in a unix-style computer terminal like this:
./dmuse2html file.dm > file.html
Dmuse ASCII Artwork
|