home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / FAQ / discus_admin_1357211388 / webtags.conf < prev   
Text File  |  2009-11-06  |  12KB  |  263 lines

  1. # Configuration file for Discus formatting tags
  2. #
  3. # Created for version 4.00 and above ONLY.
  4. #
  5. # Please read all comments above the sections carefully.  It is possible
  6. # and allowable to edit this file to add or remove formatting codes as
  7. # appropriate for your board.  However, DISCUSWARE DOES NOT SUPPORT
  8. # MODIFICATION OF THESE TAGS, SO IF YOU MODIFY TAGS AND MESS UP THE FILE,
  9. # YOU NEED TO INSTALL A NEW "CLEAN" FILE -- WE WON'T HELP YOU FIX THE
  10. # MODIFIED ONE.
  11. #
  12. # Note some double-definition of tags.  The lower tag is used, but the upper
  13. # one is included for backward-compatiblity in interpretation of the codes.
  14. # If you modify tags, you should do the same, or you will get unusual results
  15. # when you attempt to edit old messages.
  16.  
  17. ##############################################################################
  18. # SPECIAL CHARACTER DEFINITIONS
  19. #
  20. # All special character definitions start with a C to indicate
  21. # that they are a special character definition.  The first column
  22. # is a C,  the second column is the input_code the user types
  23. # into the \ch{input_code} tag, and the third column is the output
  24. # (actual HTML definition of the special character).  Columns
  25. # are delimited with one or more space characters (tabs are
  26. # recommended).
  27.  
  28. c   ->          <font face="symbol">®</font>
  29. c   <-          <font face="symbol">¬</font>
  30. c   /|          <font face="symbol">­</font>
  31. c   \/          <font face="symbol">¯</font>
  32. c   t              †
  33. c   tt          ‡
  34. c   .              •
  35. c   dot           •
  36. c   tm          ™
  37. c   c              ©
  38. c   <<          «
  39. c   r              ®
  40. c   deg           °
  41. c   +-          ±
  42. c   <>          <font face="symbol">¹</font>
  43. c   =/=          <font face="symbol">¹</font>
  44. c   int           <font face="symbol">ò</font>
  45. c   :)          <font face="wingdings">J</font>
  46. c   :|          <font face="wingdings">K</font>
  47. c   :(          <font face="wingdings">L</font>
  48. c   mu          µ
  49. c   1/2           ½
  50. c   1/4           ¼
  51. c   >>          »
  52. c   a              Å
  53. c   aring       Å
  54. c   nullset       Ø
  55. c   /              ÷
  56. c   forall       <font face="symbol">"</font>
  57. c   <=          <font face="symbol">£</font>
  58. c   >=          <font face="symbol">³</font>
  59. c   <->          <font face="symbol">«</font>
  60. c   inf           <font face="symbol">¥</font>
  61. c   ==          <font face="symbol">º</font>
  62. c   pdel           <font face="symbol">¶</font>
  63. c   del           <font face="symbol">Ñ</font>
  64. c   =>          <font face="symbol">Þ</font>
  65. c   therefore   <font face="symbol">\</font>
  66. c   line           <hr width=75% size=2>
  67. c   br          <br>
  68. c   br          <br>
  69. c   nbsp            
  70. c   |c          ¢
  71. c   c|          ¢
  72.  
  73. ##############################################################################
  74. # OVERVIEW OF FORMATTING TAG DEFINITIONS
  75. #
  76. # The number which preceded each tag declaration is used
  77. # internally by the program to determine where a tag is
  78. # allowed.  We have indicated above each section where
  79. # tags are used -- it suffices to put your new tag in the
  80. # proper section and give it the same initial number as
  81. # every other tag
  82. #
  83. # The notation !VAR(variable_name)! inserts the current value
  84. # of the given program variable name.  Any program variable is
  85. # supported using this notation (you do NOT put the $ in front
  86. # of the variable name -- the script does this).
  87. # The following variable are a few of the variable names
  88. # that are supported with an example given in parentheses:
  89. #   !VAR(html_url)!         (http://your.domain.com/discus)
  90. #   !VAR(topic_number)!      (25)
  91. #
  92. # Formatting tags are separated with one or more space
  93. # characters (tabs recommended).  The first column is the "context"
  94. # as defined above, the second column is the code that the user enters
  95. # (for example, in the \b{Bold!} tag, it is the "b"), and the third
  96. # column is the actual HTML output with user input denoted as arguments.
  97. # Arguments take the form |1|, |2|, and so on (the | is the pipe).  A
  98. # tag may have as many arguments as needed.
  99.  
  100. ##############################################################################
  101. # SIMPLE FORMATTING
  102. #
  103. # Tags preceded by "5" may be used anywhere where formatting tags are
  104. # recognized, including subject lines, about messages, and messages.
  105. # This is a good place for simple text formatting, such as bold and
  106. # italics.  Note that these tags are the ONLY tags permitted in subject
  107. # lines (and are a subset of the allowable codes for message text).
  108.  
  109. 5   b                 <b>|1|</b>
  110. 5   i                 <i>|1|</i>
  111. 5   gr                 <font face="symbol">|1|</font>
  112. 5   greek              <font face="symbol">|1|</font>
  113. 5   sup              <sup>|1|</sup>
  114. 5   super              <sup>|1|</sup>
  115. 5   +                 <sup>|1|</sup>
  116. 5   sub              <sub>|1|</sub>
  117. 5   -                 <sub>|1|</sub>
  118. 5   fixed              <font face="courier new">|1|</font>
  119. 5   u                 <u>|1|</u>
  120.  
  121. #  'char' tag is special -- leave this definition alone
  122. 5   char              &#|1|;
  123.  
  124. ##############################################################################
  125. # NON-SUBJECT LINE FORMATTING
  126. #
  127. # Tags preceded by "3" are allowed everywhere EXCEPT in subject lines.
  128. # These codes are good for text coloring and sizing, hyperlinks, clipart,
  129. # and any other formatting codes that are appropriate for about messages
  130. # and messages but that are not appropriate for subject lines.
  131.  
  132. 3   rgb              <font color="|1|">|2|</font>
  133. 3   int              <font face="symbol" size="+2">ò</font><sub><font size="-1">|1|</font> \
  134.          </sub><sup><font size="-1">|2|</font></sup>
  135. 3   size2              <font size="+2">|1|</font>
  136. 3   size1              <font size="+1">|1|</font>
  137. 3   size0              <font size="+0">|1|</font>
  138. 3   size-1           <font size="-1">|1|</font>
  139. 3   size-2           <font size="-2">|1|</font>
  140. 3   2                 <font size="+2">|1|</font>
  141. 3   1                 <font size="+1">|1|</font>
  142. 3   0                 <font size="+0">|1|</font>
  143. 3   -1                 <font size="-1">|1|</font>
  144. 3   -2                 <font size="-2">|1|</font>
  145. 3   qbcolor           <font color="qbcolor|1|">|2|</font>
  146. 3   strike           <strike>|1|</strike>
  147. 3   blink              <blink>|1|</blink>
  148. 3   c                 <center>|1|</center>
  149. 3   center           <center>|1|</center>
  150. 3   mail              <a href="mailto:|1|">|2|</a>
  151. 3   link              <a href="|1|">|2|</a>
  152. 3   topurl           <a href="|1|" target="_top">|2|</a>
  153. 3   topurl           <a href="|1|" target=_top>|2|</a>
  154. 3   newurl           <a href="|1|" target="_blank">|2|</a>
  155. 3   table              <table border=1><tr><td>|1|</td></tr></table>
  156. 3   tablenb           <table><tr><td>|1|</td></tr></table>
  157. 3   clipart           <img src="!VAR(html_url)!/clipart/|1|.gif">
  158. 3   clipart           <img src="!VAR(html_url)!/clipart/|1|.gif" border=0>
  159. 3   red              <font color="ff0000">|1|</font>
  160. 3   black              <font color="000000">|1|</font>
  161. 3   blue              <font color="0000ff">|1|</font>
  162. 3   green              <font color="119911">|1|</font>
  163. 3   yellow           <font color="ffff00">|1|</font>
  164. 3   purple           <font color="aa00aa">|1|</font>
  165. 3   orange           <font color="ff6000">|1|</font>
  166. 3   cyan              <font color="0077aa">|1|</font>
  167. 3   gray              <font color="808080">|1|</font>
  168. 3   white              <font color="ffffff">|1|</font>
  169. 3   sum              <font face="symbol" size=+2><b>S</b></font><sup><font size="-1">|2|</font> \
  170.          </sup><sub><font size="-1">|1|</font></sub>
  171. 3   font              <font face="|1|">|2|</font>
  172. 3   indent           <blockquote>|1|</blockquote>
  173. 3   blockquote      <blockquote>|1|</blockquote>
  174. 3   list              <ul><li>|1|</li></ul>
  175. 3   olist              <ol><li>|1|</li></ol>
  176.  
  177. # The following codes were added in version 3.0
  178.  
  179. 3  pre               <pre>|1|</pre>
  180. 3  quote               <blockquote><hr size=0><!-quote-!><font size=1><b>quote:</b></font><p>|1|<!-/quote-!><hr size=0></blockquote>
  181. 3  tablebg           <table bgcolor="|1|" border=1><tr><td>|2|</td></tr></table>
  182.  
  183. ##############################################################################
  184. # IMAGE LINK
  185. #
  186. # This is a bad idea for anyone but the superuser to be able to use...
  187.  
  188. #3  imagelink          <img src="|1|">
  189. s   imagelink          <img src="|1|">
  190. s   imagelink          <img src="|1|" alt="|2|">
  191.  
  192. ##############################################################################
  193. # FORMS
  194. #
  195. # This will allow you to use formatting tags to create your own WWW forms
  196. # within Discus Pages!  This would be very useful for some people, but if
  197. # abbused, it can be "turned off" by deleting the following entries.
  198.  
  199. 3    form             <form action="|1|" method="|2|">|3|</form>
  200. 3    inputbox          <input type=text name="|1|" value="|2|" size="|3|">
  201. 3    textbox          <input type=text name="|1|" value="|2|" size="|3|">
  202. 3    checkbox          <input type=checkbox name="|1|" value="|2|" |3|>
  203. 3    radio             <input type=radio name="|1|" value="|2|" |3|>
  204. 3    hidden            <input type=hidden name="|1|" value="|2|">
  205. 3    select          <select name="|1|" size="|2|">|3|</select>
  206. 3    option          <option value="|1|">|2|</option>
  207. 3    textarea        <textarea name="|1|" rows="|2|" cols="|3|" wrap=physical>|4|</textarea>
  208. 3    textarea        <textarea name="|1|" rows="|2|" cols="|3|" wrap=virtual>|4|</textarea>
  209. 3    submit          <input type=submit name="|1|" value="|2|">
  210. 3    reset             <input type=reset value="|1|">
  211.  
  212. ##############################################################################
  213. # UPLOADING
  214. #
  215. # Tags preceded by "1" are used to upload images or attachments to messages.
  216. # These codes are parsed by the program (hence it is ESSENTIAL not to modify
  217. # these tags in any way) and replaced by the user's upload.  If you translate
  218. # or modify the names of the tags, you also need to translate the appropriate
  219. # variable(s) in the language.conf file so the tags retain their special
  220. # meaning.
  221. #
  222. # Uploads are permitted only in messages, and are not permitted in subject
  223. # lines or about messages.
  224. #
  225. # To "turn off" image and/or attachment uploading, comment out or remove one
  226. # or both of the following lines from this file.
  227.  
  228. 1    image              <img src="!var(url_to_default_image)!" alt="|1|">
  229. 1    attach           <!-attachment-!><center><img src="!var(html_url)!/icons/attachment_icon.gif" alt="|1|"></center><!-/attachment-!>
  230.  
  231. ##############################################################################
  232. # CODES YOU SHOULD NOT MODIFY
  233. #
  234. # The following codes have special meaning to the program and should not be
  235. # translated or modified in any way.  The program depends on these files having
  236. # the exact format in which they have been defined here.  There is no need to
  237. # translate these tags or comment them out for any reason.  Repeating, THERE IS
  238. # NO NEED TO TOUCH THESE TAGS FOR ANY REASON, SO DO NOT MODIFY THESE TAGS!!!!!!
  239.  
  240. 3    image_notuploaded   <img src="!var(url_to_default_image)!" alt="|1|">
  241. 3    image_alreadyuploaded   <img src="!var(html_url)!/messages/!var(topic_number)!/|1|.gif" alt="|2|">
  242. 3    jpeg_alreadyuploaded   <img src="!var(html_url)!/messages/!var(topic_number)!/|1|.jpg" alt="|2|">
  243. 3    png_alreadyuploaded   <img src="!var(html_url)!/messages/!var(topic_number)!/|1|.png" alt="|2|">
  244. 3    attachment_alreadyuploaded <!-attachment: |1|-!><center><table border=1><tr><td><img src="!var(html_url)!/icons/|3|" align=left alt="|6|">|2|<br><a href="!var(html_url)!/messages/!var(topic_number)!/|1|"><b>|5|</b></a> (|4| k)</td></tr></table></center><!-/attachment-!>
  245. 3    attachment_alreadyuploaded <!--attachment: |1|*|3|*|6|*|4|*!esc(|2|)!*!esc(|5|)! --><center><table border=1><tr><td><img src="!var(html_url)!/icons/|3|" align=left alt="|6|">|2|<br><a href="!var(html_url)!/messages/!var(topic_number)!/|1|" target="_blank"><b>|5|</b></a> (|4| k)</td></tr></table></center><!--/attachment-->
  246. 3    attachment_notuploaded <!-attachment-!><center><img src="!var(html_url)!/icons/attachment_icon.gif" alt="|1|"></center><!-/attachment-!>
  247. 3    popattach    +++ attachment +++ |1| +++ |2| +++
  248. 3    popgif        +++ gif +++ |1| +++ |2| +++
  249. 3    popjpeg        +++ jpeg +++ |1| +++ |2| +++
  250. 3    poppng        +++ png +++ |1| +++ |2| +++
  251.  
  252. ##############################################################################
  253. # SPECIAL FORMATTING CODES TO CALL SUBROUTINES
  254. #
  255. # This is a new feature in Discus 4.0 that allows you to call Perl code to
  256. # extend the capabilities of the formatting language.  More documentation will
  257. # be available in the Knowledge Center (http://support.discusware.com/center).
  258. # The pig latin formatting tag and word find examples are provided so you can
  259. # learn the way that these tags work in general (see the webtags2.pl file)
  260.  
  261. *S    pig_latin        &pig_latin(|1|)
  262. *S    word_find        &word_find(|1|)
  263.