home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / htmstrip.zip / BRUCEHEX.DOC < prev    next >
Text File  |  1999-04-26  |  7KB  |  120 lines

  1. BRUCEHEX.DOC                         1                         Apr 26, 1999
  2.  
  3. Decimal and hexadecimal codes:
  4.   for example, "\066\097\116" and "&H426174" are both "Bat"
  5. +--------------+-------------+-------------+-------------+-------------+
  6. | dec  hex chr | dec  hex chr| dec  hex chr| dec  hex chr| dec  hex chr|
  7. +--------------+-------------+-------------+-------------+-------------+
  8. | \000 &H00 nul| \052 &H34 4 | \104 &H68 h | \156 &H9C £ | \208 &HD0 ╨ |
  9. | \001 &H01   | \053 &H35 5 | \105 &H69 i | \157 &H9D ¥ | \209 &HD1 ╤ |
  10. | \002 &H02   | \054 &H36 6 | \106 &H6A j | \158 &H9E ₧ | \210 &HD2 ╥ |
  11. | \003 &H03   | \055 &H37 7 | \107 &H6B k | \159 &H9F ƒ | \211 &HD3 ╙ |
  12. | \004 &H04   | \056 &H38 8 | \108 &H6C l | \160 &HA0 á | \212 &HD4 ╘ |
  13. | \005 &H05   | \057 &H39 9 | \109 &H6D m | \161 &HA1 í | \213 &HD5 ╒ |
  14. | \006 &H06   | \058 &H3A : | \110 &H6E n | \162 &HA2 ó | \214 &HD6 ╓ |
  15. | \007 &H07 bel| \059 &H3B ; | \111 &H6F o | \163 &HA3 ú | \215 &HD7 ╫ |
  16. | \008 &H08 bs | \060 &H3C < | \112 &H70 p | \164 &HA4 ñ | \216 &HD8 ╪ |
  17. | \009 &H09 tab| \061 &H3D = | \113 &H71 q | \165 &HA5 Ñ | \217 &HD9 ┘ |
  18. | \010 &H0A lf | \062 &H3E > | \114 &H72 r | \166 &HA6 ª | \218 &HDA ┌ |
  19. | \011 &H0B vt | \063 &H3F ? | \115 &H73 s | \167 &HA7 º | \219 &HDB █ |
  20. | \012 &H0C pg | \064 &H40 @ | \116 &H74 t | \168 &HA8 ¿ | \220 &HDC ▄ |
  21. | \013 &H0D cr | \065 &H41 A | \117 &H75 u | \169 &HA9 ⌐ | \221 &HDD ▌ |
  22. | \014 &H0E   | \066 &H42 B | \118 &H76 v | \170 &HAA ¬ | \222 &HDE ▐ |
  23. | \015 &H0F   | \067 &H43 C | \119 &H77 w | \171 &HAB ½ | \223 &HDF ▀ |
  24. | \016 &H10   | \068 &H44 D | \120 &H78 x | \172 &HAC ¼ | \224 &HE0 α |
  25. | \017 &H11   | \069 &H45 E | \121 &H79 y | \173 &HAD ¡ | \225 &HE1 ß |
  26. | \018 &H12   | \070 &H46 F | \122 &H7A z | \174 &HAE « | \226 &HE2 Γ |
  27. | \019 &H13   | \071 &H47 G | \123 &H7B { | \175 &HAF » | \227 &HE3 π |
  28. | \020 &H14   | \072 &H48 H | \124 &H7C | | \176 &HB0 ░ | \228 &HE4 Σ |
  29. | \021 &H15   | \073 &H49 I | \125 &H7D } | \177 &HB1 ▒ | \229 &HE5 σ |
  30. | \022 &H16   | \074 &H4A J | \126 &H7E ~ | \178 &HB2 ▓ | \230 &HE6 µ |
  31. | \023 &H17   | \075 &H4B K | \127 &H7F  | \179 &HB3 │ | \231 &HE7 τ |
  32. | \024 &H18   | \076 &H4C L | \128 &H80 Ç | \180 &HB4 ┤ | \232 &HE8 Φ |
  33. | \025 &H19   | \077 &H4D M | \129 &H81 ü | \181 &HB5 ╡ | \233 &HE9 Θ |
  34. | \026 &H1A eof| \078 &H4E N | \130 &H82 é | \182 &HB6 ╢ | \234 &HEA Ω |
  35. | \027 &H1B esc| \079 &H4F O | \131 &H83 â | \183 &HB7 ╖ | \235 &HEB δ |
  36. | \028 &H1C   | \080 &H50 P | \132 &H84 ä | \184 &HB8 ╕ | \236 &HEC ∞ |
  37. | \029 &H1D ???| \081 &H51 Q | \133 &H85 à | \185 &HB9 ╣ | \237 &HED φ |
  38. | \030 &H1E ???| \082 &H52 R | \134 &H86 å | \186 &HBA ║ | \238 &HEE ε |
  39. | \031 &H1F ???| \083 &H53 S | \135 &H87 ç | \187 &HBB ╗ | \239 &HEF ∩ |
  40. | \032 &H20 sp | \084 &H54 T | \136 &H88 ê | \188 &HBC ╝ | \240 &HF0 ≡ |
  41. | \033 &H21 !  | \085 &H55 U | \137 &H89 ë | \189 &HBD ╜ | \241 &HF1 ± |
  42. | \034 &H22 "  | \086 &H56 V | \138 &H8A è | \190 &HBE ╛ | \242 &HF2 ≥ |
  43. | \035 &H23 #  | \087 &H57 W | \139 &H8B ï | \191 &HBF ┐ | \243 &HF3 ≤ |
  44. | \036 &H24 $  | \088 &H58 X | \140 &H8C î | \192 &HC0 └ | \244 &HF4 ⌠ |
  45. | \037 &H25 %  | \089 &H59 Y | \141 &H8D ì | \193 &HC1 ┴ | \245 &HF5 ⌡ |
  46. | \038 &H26 &  | \090 &H5A Z | \142 &H8E Ä | \194 &HC2 ┬ | \246 &HF6 ÷ |
  47. | \039 &H27 '  | \091 &H5B [ | \143 &H8F Å | \195 &HC3 ├ | \247 &HF7 ≈ |
  48. | \040 &H28 (  | \092 &H5C \ | \144 &H90 É | \196 &HC4 ─ | \248 &HF8 ° |
  49. | \041 &H29 )  | \093 &H5D ] | \145 &H91 æ | \197 &HC5 ┼ | \249 &HF9 ∙ |
  50. | \042 &H2A *  | \094 &H5E ^ | \146 &H92 Æ | \198 &HC6 ╞ | \250 &HFA · |
  51. | \043 &H2B +  | \095 &H5F _ | \147 &H93 ô | \199 &HC7 ╟ | \251 &HFB √ |
  52. | \044 &H2C ,  | \096 &H60 ` | \148 &H94 ö | \200 &HC8 ╚ | \252 &HFC ⁿ |
  53. | \045 &H2D -  | \097 &H61 a | \149 &H95 ò | \201 &HC9 ╔ | \253 &HFD ² |
  54. | \046 &H2E .  | \098 &H62 b | \150 &H96 û | \202 &HCA ╩ | \254 &HFE ■ |
  55. | \047 &H2F /  | \099 &H63 c | \151 &H97 ù | \203 &HCB ╦ | \255 &HFF   |
  56. | \048 &H30 0  | \100 &H64 d | \152 &H98 ÿ | \204 &HCC ╠ |             |
  57. | \049 &H31 1  | \101 &H65 e | \153 &H99 Ö | \205 &HCD ═ |             |
  58. | \050 &H32 2  | \102 &H66 f | \154 &H9A Ü | \206 &HCE ╬ |             |
  59. | \051 &H33 3  | \103 &H67 g | \155 &H9B ¢ | \207 &HCF ╧ |             |
  60. +--------------+-------------+-------------+-------------+-------------+
  61.  
  62. BRUCEHEX.DOC                         2                         Apr 26, 1999
  63.  
  64. Notes:
  65.  
  66. Do not use the &h codes under  Windows  NT.   It  automatically  translates
  67. those to something else.  Use only \xxx codes under NT.
  68.  
  69. In these routines, you can specify hard-to-enter values using their decimal
  70. or hexadecimal equivalents.
  71.  
  72. The above table provides a correspondence decimal, hexadecimal,  and  ASCII
  73. values.  For example, if you want to enter the square root symbol, you  can
  74. do it either by filling in "\251" or by specifying "&HFB".  If you use  the
  75. decimal equivalent, you must use the full three digits.
  76.  
  77. Most of the routines that allow for  decimal  and  hexadecimal  equivalents
  78. will generate the above table if you pass in the parameter "/?HEX".
  79.  
  80. You can also use this table in cases where the characters  can  be  entered
  81. from the keyboard:  Press down the Alt key and  then  type  in  the  digits
  82. shown.  Alt-251 will also generate the square root symbol.
  83.  
  84. WARNING:  In most cases, doing Alt-26 is a mistake.  It looks like  a  cute
  85. little arrow but, in fact, DOS treats it as an  end-of-file  character  and
  86. the rest of the file may be ignored as a result.
  87.  
  88. You can string multiple characters like this together if desired.   As  the
  89. example shows, "\066\097\116" and "&H426174" are both translated as "Bat".
  90.  
  91. Stringing decimal equivalents together requires you to use "\" and then the
  92. appropriate three digits for each character entered.   Hexadecimal  strings
  93. are ended when either a single space (which is ignored)  or  any  non-valid
  94. hexadecimal character is encountered.  So  "\066&h61\116"  will  also  find
  95. "Bat".
  96.  
  97. In some cases, especially from the command line, the routines do not  allow
  98. you to enter a string that includes an embedded space.  You can enter these
  99. with the hexadecimal or decimal equivalent if desired:
  100.  
  101.         /FROM Love\032Me /TO Leave&H20Me
  102.  
  103. (Some routines allow you to enclose the phrase in double quotation marks as
  104. another way around this problem.)
  105.  
  106. Note that putting Alt-26 (the end-of-file indicator) in a  text  file  will
  107. cause most routines to presume that the file stops at that point.  Use \026
  108. or &H1A instead.
  109.  
  110.                 Bruce Guthrie
  111.                 Wayne Software
  112.                 113 Sheffield St.
  113.                 Silver Spring, MD 20910
  114.  
  115.                 e-mail: WayneSof@erols.com   fax: (301) 588-8986
  116.                 http://www.geocities.com/SiliconValley/Lakes/2414
  117.              or find through http://www.erols.com/waynesof
  118.  
  119. 
  120.