gitlab-pygments.rb 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (399) hide show
  1. data/.gitignore +6 -0
  2. data/Gemfile +2 -0
  3. data/README.md +91 -0
  4. data/Rakefile +78 -0
  5. data/bench.rb +22 -0
  6. data/cache-lexers.rb +8 -0
  7. data/lexers +0 -0
  8. data/lib/pygments/lexer.rb +148 -0
  9. data/lib/pygments/mentos.py +344 -0
  10. data/lib/pygments/popen.rb +389 -0
  11. data/lib/pygments/version.rb +3 -0
  12. data/lib/pygments.rb +8 -0
  13. data/pygments.rb.gemspec +24 -0
  14. data/test/test_data.c +2581 -0
  15. data/test/test_data.py +514 -0
  16. data/test/test_data_generated +2582 -0
  17. data/test/test_pygments.rb +276 -0
  18. data/vendor/custom_formatters/gitlab.py +171 -0
  19. data/vendor/custom_lexers/github.py +362 -0
  20. data/vendor/pygments-main/AUTHORS +115 -0
  21. data/vendor/pygments-main/CHANGES +762 -0
  22. data/vendor/pygments-main/LICENSE +25 -0
  23. data/vendor/pygments-main/MANIFEST.in +6 -0
  24. data/vendor/pygments-main/Makefile +59 -0
  25. data/vendor/pygments-main/REVISION +1 -0
  26. data/vendor/pygments-main/TODO +15 -0
  27. data/vendor/pygments-main/docs/generate.py +472 -0
  28. data/vendor/pygments-main/docs/pygmentize.1 +94 -0
  29. data/vendor/pygments-main/docs/src/api.txt +270 -0
  30. data/vendor/pygments-main/docs/src/authors.txt +5 -0
  31. data/vendor/pygments-main/docs/src/changelog.txt +5 -0
  32. data/vendor/pygments-main/docs/src/cmdline.txt +147 -0
  33. data/vendor/pygments-main/docs/src/filterdevelopment.txt +70 -0
  34. data/vendor/pygments-main/docs/src/filters.txt +42 -0
  35. data/vendor/pygments-main/docs/src/formatterdevelopment.txt +169 -0
  36. data/vendor/pygments-main/docs/src/formatters.txt +48 -0
  37. data/vendor/pygments-main/docs/src/index.txt +69 -0
  38. data/vendor/pygments-main/docs/src/installation.txt +71 -0
  39. data/vendor/pygments-main/docs/src/integrate.txt +43 -0
  40. data/vendor/pygments-main/docs/src/lexerdevelopment.txt +551 -0
  41. data/vendor/pygments-main/docs/src/lexers.txt +67 -0
  42. data/vendor/pygments-main/docs/src/moinmoin.txt +39 -0
  43. data/vendor/pygments-main/docs/src/plugins.txt +93 -0
  44. data/vendor/pygments-main/docs/src/quickstart.txt +202 -0
  45. data/vendor/pygments-main/docs/src/rstdirective.txt +22 -0
  46. data/vendor/pygments-main/docs/src/styles.txt +143 -0
  47. data/vendor/pygments-main/docs/src/tokens.txt +349 -0
  48. data/vendor/pygments-main/docs/src/unicode.txt +49 -0
  49. data/vendor/pygments-main/external/markdown-processor.py +67 -0
  50. data/vendor/pygments-main/external/moin-parser.py +112 -0
  51. data/vendor/pygments-main/external/pygments.bashcomp +38 -0
  52. data/vendor/pygments-main/external/rst-directive-old.py +77 -0
  53. data/vendor/pygments-main/external/rst-directive.py +83 -0
  54. data/vendor/pygments-main/ez_setup.py +276 -0
  55. data/vendor/pygments-main/pygmentize +7 -0
  56. data/vendor/pygments-main/pygments/__init__.py +91 -0
  57. data/vendor/pygments-main/pygments/cmdline.py +433 -0
  58. data/vendor/pygments-main/pygments/console.py +74 -0
  59. data/vendor/pygments-main/pygments/filter.py +74 -0
  60. data/vendor/pygments-main/pygments/filters/__init__.py +357 -0
  61. data/vendor/pygments-main/pygments/formatter.py +92 -0
  62. data/vendor/pygments-main/pygments/formatters/__init__.py +68 -0
  63. data/vendor/pygments-main/pygments/formatters/_mapping.py +94 -0
  64. data/vendor/pygments-main/pygments/formatters/bbcode.py +109 -0
  65. data/vendor/pygments-main/pygments/formatters/gitlab.py +171 -0
  66. data/vendor/pygments-main/pygments/formatters/html.py +750 -0
  67. data/vendor/pygments-main/pygments/formatters/img.py +553 -0
  68. data/vendor/pygments-main/pygments/formatters/latex.py +378 -0
  69. data/vendor/pygments-main/pygments/formatters/other.py +117 -0
  70. data/vendor/pygments-main/pygments/formatters/rtf.py +136 -0
  71. data/vendor/pygments-main/pygments/formatters/svg.py +154 -0
  72. data/vendor/pygments-main/pygments/formatters/terminal.py +112 -0
  73. data/vendor/pygments-main/pygments/formatters/terminal256.py +222 -0
  74. data/vendor/pygments-main/pygments/lexer.py +697 -0
  75. data/vendor/pygments-main/pygments/lexers/__init__.py +229 -0
  76. data/vendor/pygments-main/pygments/lexers/_asybuiltins.py +1645 -0
  77. data/vendor/pygments-main/pygments/lexers/_clbuiltins.py +232 -0
  78. data/vendor/pygments-main/pygments/lexers/_luabuiltins.py +249 -0
  79. data/vendor/pygments-main/pygments/lexers/_mapping.py +298 -0
  80. data/vendor/pygments-main/pygments/lexers/_phpbuiltins.py +3787 -0
  81. data/vendor/pygments-main/pygments/lexers/_postgres_builtins.py +232 -0
  82. data/vendor/pygments-main/pygments/lexers/_scilab_builtins.py +29 -0
  83. data/vendor/pygments-main/pygments/lexers/_vimbuiltins.py +3 -0
  84. data/vendor/pygments-main/pygments/lexers/agile.py +1803 -0
  85. data/vendor/pygments-main/pygments/lexers/asm.py +360 -0
  86. data/vendor/pygments-main/pygments/lexers/compiled.py +2891 -0
  87. data/vendor/pygments-main/pygments/lexers/dotnet.py +636 -0
  88. data/vendor/pygments-main/pygments/lexers/functional.py +1832 -0
  89. data/vendor/pygments-main/pygments/lexers/github.py +362 -0
  90. data/vendor/pygments-main/pygments/lexers/hdl.py +356 -0
  91. data/vendor/pygments-main/pygments/lexers/jvm.py +847 -0
  92. data/vendor/pygments-main/pygments/lexers/math.py +1072 -0
  93. data/vendor/pygments-main/pygments/lexers/other.py +3339 -0
  94. data/vendor/pygments-main/pygments/lexers/parsers.py +695 -0
  95. data/vendor/pygments-main/pygments/lexers/shell.py +361 -0
  96. data/vendor/pygments-main/pygments/lexers/special.py +100 -0
  97. data/vendor/pygments-main/pygments/lexers/sql.py +559 -0
  98. data/vendor/pygments-main/pygments/lexers/templates.py +1631 -0
  99. data/vendor/pygments-main/pygments/lexers/text.py +1753 -0
  100. data/vendor/pygments-main/pygments/lexers/web.py +2864 -0
  101. data/vendor/pygments-main/pygments/plugin.py +74 -0
  102. data/vendor/pygments-main/pygments/scanner.py +104 -0
  103. data/vendor/pygments-main/pygments/style.py +117 -0
  104. data/vendor/pygments-main/pygments/styles/__init__.py +70 -0
  105. data/vendor/pygments-main/pygments/styles/autumn.py +65 -0
  106. data/vendor/pygments-main/pygments/styles/borland.py +51 -0
  107. data/vendor/pygments-main/pygments/styles/bw.py +49 -0
  108. data/vendor/pygments-main/pygments/styles/colorful.py +81 -0
  109. data/vendor/pygments-main/pygments/styles/default.py +73 -0
  110. data/vendor/pygments-main/pygments/styles/emacs.py +72 -0
  111. data/vendor/pygments-main/pygments/styles/friendly.py +72 -0
  112. data/vendor/pygments-main/pygments/styles/fruity.py +42 -0
  113. data/vendor/pygments-main/pygments/styles/manni.py +75 -0
  114. data/vendor/pygments-main/pygments/styles/monokai.py +106 -0
  115. data/vendor/pygments-main/pygments/styles/murphy.py +80 -0
  116. data/vendor/pygments-main/pygments/styles/native.py +65 -0
  117. data/vendor/pygments-main/pygments/styles/pastie.py +75 -0
  118. data/vendor/pygments-main/pygments/styles/perldoc.py +69 -0
  119. data/vendor/pygments-main/pygments/styles/rrt.py +33 -0
  120. data/vendor/pygments-main/pygments/styles/tango.py +141 -0
  121. data/vendor/pygments-main/pygments/styles/trac.py +63 -0
  122. data/vendor/pygments-main/pygments/styles/vim.py +63 -0
  123. data/vendor/pygments-main/pygments/styles/vs.py +38 -0
  124. data/vendor/pygments-main/pygments/token.py +195 -0
  125. data/vendor/pygments-main/pygments/unistring.py +130 -0
  126. data/vendor/pygments-main/pygments/util.py +232 -0
  127. data/vendor/pygments-main/scripts/check_sources.py +242 -0
  128. data/vendor/pygments-main/scripts/detect_missing_analyse_text.py +30 -0
  129. data/vendor/pygments-main/scripts/epydoc.css +280 -0
  130. data/vendor/pygments-main/scripts/find_codetags.py +205 -0
  131. data/vendor/pygments-main/scripts/find_error.py +171 -0
  132. data/vendor/pygments-main/scripts/get_vimkw.py +43 -0
  133. data/vendor/pygments-main/scripts/pylintrc +301 -0
  134. data/vendor/pygments-main/scripts/reindent.py +291 -0
  135. data/vendor/pygments-main/scripts/vim2pygments.py +933 -0
  136. data/vendor/pygments-main/setup.cfg +6 -0
  137. data/vendor/pygments-main/setup.py +88 -0
  138. data/vendor/pygments-main/tests/dtds/HTML4-f.dtd +37 -0
  139. data/vendor/pygments-main/tests/dtds/HTML4-s.dtd +869 -0
  140. data/vendor/pygments-main/tests/dtds/HTML4.dcl +88 -0
  141. data/vendor/pygments-main/tests/dtds/HTML4.dtd +1092 -0
  142. data/vendor/pygments-main/tests/dtds/HTML4.soc +9 -0
  143. data/vendor/pygments-main/tests/dtds/HTMLlat1.ent +195 -0
  144. data/vendor/pygments-main/tests/dtds/HTMLspec.ent +77 -0
  145. data/vendor/pygments-main/tests/dtds/HTMLsym.ent +241 -0
  146. data/vendor/pygments-main/tests/examplefiles/ANTLRv3.g +608 -0
  147. data/vendor/pygments-main/tests/examplefiles/AcidStateAdvanced.hs +209 -0
  148. data/vendor/pygments-main/tests/examplefiles/AlternatingGroup.mu +102 -0
  149. data/vendor/pygments-main/tests/examplefiles/CPDictionary.j +611 -0
  150. data/vendor/pygments-main/tests/examplefiles/Constants.mo +158 -0
  151. data/vendor/pygments-main/tests/examplefiles/DancingSudoku.lhs +411 -0
  152. data/vendor/pygments-main/tests/examplefiles/Errors.scala +18 -0
  153. data/vendor/pygments-main/tests/examplefiles/File.hy +174 -0
  154. data/vendor/pygments-main/tests/examplefiles/Intro.java +1660 -0
  155. data/vendor/pygments-main/tests/examplefiles/Makefile +1131 -0
  156. data/vendor/pygments-main/tests/examplefiles/Object.st +4394 -0
  157. data/vendor/pygments-main/tests/examplefiles/OrderedMap.hx +584 -0
  158. data/vendor/pygments-main/tests/examplefiles/SmallCheck.hs +378 -0
  159. data/vendor/pygments-main/tests/examplefiles/Sorting.mod +470 -0
  160. data/vendor/pygments-main/tests/examplefiles/Sudoku.lhs +382 -0
  161. data/vendor/pygments-main/tests/examplefiles/addressbook.proto +30 -0
  162. data/vendor/pygments-main/tests/examplefiles/antlr_throws +1 -0
  163. data/vendor/pygments-main/tests/examplefiles/apache2.conf +393 -0
  164. data/vendor/pygments-main/tests/examplefiles/as3_test.as +143 -0
  165. data/vendor/pygments-main/tests/examplefiles/as3_test2.as +46 -0
  166. data/vendor/pygments-main/tests/examplefiles/as3_test3.as +3 -0
  167. data/vendor/pygments-main/tests/examplefiles/aspx-cs_example +27 -0
  168. data/vendor/pygments-main/tests/examplefiles/badcase.java +2 -0
  169. data/vendor/pygments-main/tests/examplefiles/batchfile.bat +49 -0
  170. data/vendor/pygments-main/tests/examplefiles/boot-9.scm +1557 -0
  171. data/vendor/pygments-main/tests/examplefiles/cells.ps +515 -0
  172. data/vendor/pygments-main/tests/examplefiles/ceval.c +2604 -0
  173. data/vendor/pygments-main/tests/examplefiles/cheetah_example.html +13 -0
  174. data/vendor/pygments-main/tests/examplefiles/classes.dylan +40 -0
  175. data/vendor/pygments-main/tests/examplefiles/condensed_ruby.rb +10 -0
  176. data/vendor/pygments-main/tests/examplefiles/coq_RelationClasses +447 -0
  177. data/vendor/pygments-main/tests/examplefiles/database.pytb +20 -0
  178. data/vendor/pygments-main/tests/examplefiles/de.MoinMoin.po +2461 -0
  179. data/vendor/pygments-main/tests/examplefiles/demo.ahk +181 -0
  180. data/vendor/pygments-main/tests/examplefiles/demo.cfm +38 -0
  181. data/vendor/pygments-main/tests/examplefiles/django_sample.html+django +68 -0
  182. data/vendor/pygments-main/tests/examplefiles/dwarf.cw +17 -0
  183. data/vendor/pygments-main/tests/examplefiles/erl_session +10 -0
  184. data/vendor/pygments-main/tests/examplefiles/escape_semicolon.clj +1 -0
  185. data/vendor/pygments-main/tests/examplefiles/evil_regex.js +48 -0
  186. data/vendor/pygments-main/tests/examplefiles/example.c +2080 -0
  187. data/vendor/pygments-main/tests/examplefiles/example.cls +15 -0
  188. data/vendor/pygments-main/tests/examplefiles/example.cpp +2363 -0
  189. data/vendor/pygments-main/tests/examplefiles/example.gs +106 -0
  190. data/vendor/pygments-main/tests/examplefiles/example.gst +7 -0
  191. data/vendor/pygments-main/tests/examplefiles/example.kt +47 -0
  192. data/vendor/pygments-main/tests/examplefiles/example.lua +250 -0
  193. data/vendor/pygments-main/tests/examplefiles/example.moo +26 -0
  194. data/vendor/pygments-main/tests/examplefiles/example.moon +629 -0
  195. data/vendor/pygments-main/tests/examplefiles/example.nim +1010 -0
  196. data/vendor/pygments-main/tests/examplefiles/example.ns2 +69 -0
  197. data/vendor/pygments-main/tests/examplefiles/example.p +34 -0
  198. data/vendor/pygments-main/tests/examplefiles/example.pas +2708 -0
  199. data/vendor/pygments-main/tests/examplefiles/example.rb +1852 -0
  200. data/vendor/pygments-main/tests/examplefiles/example.rhtml +561 -0
  201. data/vendor/pygments-main/tests/examplefiles/example.sh-session +19 -0
  202. data/vendor/pygments-main/tests/examplefiles/example.sml +156 -0
  203. data/vendor/pygments-main/tests/examplefiles/example.snobol +15 -0
  204. data/vendor/pygments-main/tests/examplefiles/example.tea +34 -0
  205. data/vendor/pygments-main/tests/examplefiles/example.u +548 -0
  206. data/vendor/pygments-main/tests/examplefiles/example.weechatlog +9 -0
  207. data/vendor/pygments-main/tests/examplefiles/example.xhtml +376 -0
  208. data/vendor/pygments-main/tests/examplefiles/example.yaml +302 -0
  209. data/vendor/pygments-main/tests/examplefiles/example2.aspx +29 -0
  210. data/vendor/pygments-main/tests/examplefiles/example_elixir.ex +363 -0
  211. data/vendor/pygments-main/tests/examplefiles/example_file.fy +128 -0
  212. data/vendor/pygments-main/tests/examplefiles/firefox.mak +586 -0
  213. data/vendor/pygments-main/tests/examplefiles/flipflop.sv +19 -0
  214. data/vendor/pygments-main/tests/examplefiles/foo.sce +6 -0
  215. data/vendor/pygments-main/tests/examplefiles/format.ml +1213 -0
  216. data/vendor/pygments-main/tests/examplefiles/fucked_up.rb +77 -0
  217. data/vendor/pygments-main/tests/examplefiles/function.mu +1 -0
  218. data/vendor/pygments-main/tests/examplefiles/functional.rst +1472 -0
  219. data/vendor/pygments-main/tests/examplefiles/genclass.clj +510 -0
  220. data/vendor/pygments-main/tests/examplefiles/genshi_example.xml+genshi +193 -0
  221. data/vendor/pygments-main/tests/examplefiles/genshitext_example.genshitext +33 -0
  222. data/vendor/pygments-main/tests/examplefiles/glsl.frag +7 -0
  223. data/vendor/pygments-main/tests/examplefiles/glsl.vert +13 -0
  224. data/vendor/pygments-main/tests/examplefiles/html+php_faulty.php +1 -0
  225. data/vendor/pygments-main/tests/examplefiles/http_request_example +14 -0
  226. data/vendor/pygments-main/tests/examplefiles/http_response_example +27 -0
  227. data/vendor/pygments-main/tests/examplefiles/import.hs +4 -0
  228. data/vendor/pygments-main/tests/examplefiles/intro.ik +24 -0
  229. data/vendor/pygments-main/tests/examplefiles/ints.php +10 -0
  230. data/vendor/pygments-main/tests/examplefiles/intsyn.fun +675 -0
  231. data/vendor/pygments-main/tests/examplefiles/intsyn.sig +286 -0
  232. data/vendor/pygments-main/tests/examplefiles/irb_heredoc +8 -0
  233. data/vendor/pygments-main/tests/examplefiles/irc.lsp +214 -0
  234. data/vendor/pygments-main/tests/examplefiles/java.properties +16 -0
  235. data/vendor/pygments-main/tests/examplefiles/jbst_example1.jbst +28 -0
  236. data/vendor/pygments-main/tests/examplefiles/jbst_example2.jbst +45 -0
  237. data/vendor/pygments-main/tests/examplefiles/jinjadesignerdoc.rst +713 -0
  238. data/vendor/pygments-main/tests/examplefiles/lighttpd_config.conf +13 -0
  239. data/vendor/pygments-main/tests/examplefiles/linecontinuation.py +47 -0
  240. data/vendor/pygments-main/tests/examplefiles/ltmain.sh +2849 -0
  241. data/vendor/pygments-main/tests/examplefiles/main.cmake +42 -0
  242. data/vendor/pygments-main/tests/examplefiles/markdown.lsp +679 -0
  243. data/vendor/pygments-main/tests/examplefiles/matlab_noreturn +3 -0
  244. data/vendor/pygments-main/tests/examplefiles/matlab_sample +27 -0
  245. data/vendor/pygments-main/tests/examplefiles/matlabsession_sample.txt +37 -0
  246. data/vendor/pygments-main/tests/examplefiles/minimal.ns2 +4 -0
  247. data/vendor/pygments-main/tests/examplefiles/moin_SyntaxReference.txt +340 -0
  248. data/vendor/pygments-main/tests/examplefiles/multiline_regexes.rb +38 -0
  249. data/vendor/pygments-main/tests/examplefiles/nasm_aoutso.asm +96 -0
  250. data/vendor/pygments-main/tests/examplefiles/nasm_objexe.asm +30 -0
  251. data/vendor/pygments-main/tests/examplefiles/nemerle_sample.n +87 -0
  252. data/vendor/pygments-main/tests/examplefiles/nginx_nginx.conf +118 -0
  253. data/vendor/pygments-main/tests/examplefiles/numbers.c +12 -0
  254. data/vendor/pygments-main/tests/examplefiles/objc_example.m +25 -0
  255. data/vendor/pygments-main/tests/examplefiles/objc_example2.m +24 -0
  256. data/vendor/pygments-main/tests/examplefiles/perl_misc +62 -0
  257. data/vendor/pygments-main/tests/examplefiles/perl_perl5db +998 -0
  258. data/vendor/pygments-main/tests/examplefiles/perl_regex-delims +120 -0
  259. data/vendor/pygments-main/tests/examplefiles/perlfunc.1 +856 -0
  260. data/vendor/pygments-main/tests/examplefiles/phpcomplete.vim +567 -0
  261. data/vendor/pygments-main/tests/examplefiles/pleac.in.rb +1223 -0
  262. data/vendor/pygments-main/tests/examplefiles/postgresql_test.txt +47 -0
  263. data/vendor/pygments-main/tests/examplefiles/pppoe.applescript +10 -0
  264. data/vendor/pygments-main/tests/examplefiles/psql_session.txt +122 -0
  265. data/vendor/pygments-main/tests/examplefiles/py3_test.txt +2 -0
  266. data/vendor/pygments-main/tests/examplefiles/pycon_test.pycon +14 -0
  267. data/vendor/pygments-main/tests/examplefiles/pytb_test2.pytb +2 -0
  268. data/vendor/pygments-main/tests/examplefiles/python25-bsd.mak +234 -0
  269. data/vendor/pygments-main/tests/examplefiles/qsort.prolog +13 -0
  270. data/vendor/pygments-main/tests/examplefiles/r-console-transcript.Rout +38 -0
  271. data/vendor/pygments-main/tests/examplefiles/ragel-cpp_rlscan +280 -0
  272. data/vendor/pygments-main/tests/examplefiles/ragel-cpp_snippet +2 -0
  273. data/vendor/pygments-main/tests/examplefiles/regex.js +22 -0
  274. data/vendor/pygments-main/tests/examplefiles/reversi.lsp +427 -0
  275. data/vendor/pygments-main/tests/examplefiles/ruby_func_def.rb +11 -0
  276. data/vendor/pygments-main/tests/examplefiles/scilab.sci +30 -0
  277. data/vendor/pygments-main/tests/examplefiles/sibling.prolog +19 -0
  278. data/vendor/pygments-main/tests/examplefiles/simple.md +747 -0
  279. data/vendor/pygments-main/tests/examplefiles/smarty_example.html +209 -0
  280. data/vendor/pygments-main/tests/examplefiles/source.lgt +343 -0
  281. data/vendor/pygments-main/tests/examplefiles/sources.list +62 -0
  282. data/vendor/pygments-main/tests/examplefiles/sphere.pov +18 -0
  283. data/vendor/pygments-main/tests/examplefiles/sqlite3.sqlite3-console +27 -0
  284. data/vendor/pygments-main/tests/examplefiles/squid.conf +30 -0
  285. data/vendor/pygments-main/tests/examplefiles/string.jl +1031 -0
  286. data/vendor/pygments-main/tests/examplefiles/string_delimiters.d +21 -0
  287. data/vendor/pygments-main/tests/examplefiles/stripheredoc.sh +3 -0
  288. data/vendor/pygments-main/tests/examplefiles/test.R +119 -0
  289. data/vendor/pygments-main/tests/examplefiles/test.adb +211 -0
  290. data/vendor/pygments-main/tests/examplefiles/test.asy +131 -0
  291. data/vendor/pygments-main/tests/examplefiles/test.awk +121 -0
  292. data/vendor/pygments-main/tests/examplefiles/test.bas +29 -0
  293. data/vendor/pygments-main/tests/examplefiles/test.bmx +145 -0
  294. data/vendor/pygments-main/tests/examplefiles/test.boo +39 -0
  295. data/vendor/pygments-main/tests/examplefiles/test.bro +250 -0
  296. data/vendor/pygments-main/tests/examplefiles/test.cs +374 -0
  297. data/vendor/pygments-main/tests/examplefiles/test.css +54 -0
  298. data/vendor/pygments-main/tests/examplefiles/test.d +135 -0
  299. data/vendor/pygments-main/tests/examplefiles/test.dart +23 -0
  300. data/vendor/pygments-main/tests/examplefiles/test.dtd +89 -0
  301. data/vendor/pygments-main/tests/examplefiles/test.ec +605 -0
  302. data/vendor/pygments-main/tests/examplefiles/test.ecl +58 -0
  303. data/vendor/pygments-main/tests/examplefiles/test.eh +315 -0
  304. data/vendor/pygments-main/tests/examplefiles/test.erl +169 -0
  305. data/vendor/pygments-main/tests/examplefiles/test.evoque +33 -0
  306. data/vendor/pygments-main/tests/examplefiles/test.fan +818 -0
  307. data/vendor/pygments-main/tests/examplefiles/test.flx +57 -0
  308. data/vendor/pygments-main/tests/examplefiles/test.gdc +13 -0
  309. data/vendor/pygments-main/tests/examplefiles/test.groovy +97 -0
  310. data/vendor/pygments-main/tests/examplefiles/test.html +339 -0
  311. data/vendor/pygments-main/tests/examplefiles/test.ini +10 -0
  312. data/vendor/pygments-main/tests/examplefiles/test.java +653 -0
  313. data/vendor/pygments-main/tests/examplefiles/test.jsp +24 -0
  314. data/vendor/pygments-main/tests/examplefiles/test.maql +45 -0
  315. data/vendor/pygments-main/tests/examplefiles/test.mod +374 -0
  316. data/vendor/pygments-main/tests/examplefiles/test.moo +51 -0
  317. data/vendor/pygments-main/tests/examplefiles/test.myt +166 -0
  318. data/vendor/pygments-main/tests/examplefiles/test.nim +93 -0
  319. data/vendor/pygments-main/tests/examplefiles/test.pas +743 -0
  320. data/vendor/pygments-main/tests/examplefiles/test.php +505 -0
  321. data/vendor/pygments-main/tests/examplefiles/test.plot +333 -0
  322. data/vendor/pygments-main/tests/examplefiles/test.ps1 +108 -0
  323. data/vendor/pygments-main/tests/examplefiles/test.pypylog +1839 -0
  324. data/vendor/pygments-main/tests/examplefiles/test.r3 +94 -0
  325. data/vendor/pygments-main/tests/examplefiles/test.rb +177 -0
  326. data/vendor/pygments-main/tests/examplefiles/test.rhtml +43 -0
  327. data/vendor/pygments-main/tests/examplefiles/test.scaml +8 -0
  328. data/vendor/pygments-main/tests/examplefiles/test.ssp +12 -0
  329. data/vendor/pygments-main/tests/examplefiles/test.tcsh +830 -0
  330. data/vendor/pygments-main/tests/examplefiles/test.vb +407 -0
  331. data/vendor/pygments-main/tests/examplefiles/test.vhdl +161 -0
  332. data/vendor/pygments-main/tests/examplefiles/test.xqy +138 -0
  333. data/vendor/pygments-main/tests/examplefiles/test.xsl +23 -0
  334. data/vendor/pygments-main/tests/examplefiles/truncated.pytb +15 -0
  335. data/vendor/pygments-main/tests/examplefiles/type.lisp +1202 -0
  336. data/vendor/pygments-main/tests/examplefiles/underscore.coffee +603 -0
  337. data/vendor/pygments-main/tests/examplefiles/unicode.applescript +5 -0
  338. data/vendor/pygments-main/tests/examplefiles/unicodedoc.py +11 -0
  339. data/vendor/pygments-main/tests/examplefiles/webkit-transition.css +3 -0
  340. data/vendor/pygments-main/tests/examplefiles/while.pov +13 -0
  341. data/vendor/pygments-main/tests/examplefiles/wiki.factor +384 -0
  342. data/vendor/pygments-main/tests/examplefiles/xml_example +1897 -0
  343. data/vendor/pygments-main/tests/examplefiles/zmlrpc.f90 +798 -0
  344. data/vendor/pygments-main/tests/old_run.py +138 -0
  345. data/vendor/pygments-main/tests/run.py +48 -0
  346. data/vendor/pygments-main/tests/support.py +15 -0
  347. data/vendor/pygments-main/tests/test_basic_api.py +294 -0
  348. data/vendor/pygments-main/tests/test_clexer.py +31 -0
  349. data/vendor/pygments-main/tests/test_cmdline.py +105 -0
  350. data/vendor/pygments-main/tests/test_examplefiles.py +97 -0
  351. data/vendor/pygments-main/tests/test_html_formatter.py +162 -0
  352. data/vendor/pygments-main/tests/test_latex_formatter.py +55 -0
  353. data/vendor/pygments-main/tests/test_perllexer.py +137 -0
  354. data/vendor/pygments-main/tests/test_regexlexer.py +47 -0
  355. data/vendor/pygments-main/tests/test_token.py +46 -0
  356. data/vendor/pygments-main/tests/test_using_api.py +40 -0
  357. data/vendor/pygments-main/tests/test_util.py +116 -0
  358. data/vendor/simplejson/.gitignore +10 -0
  359. data/vendor/simplejson/.travis.yml +5 -0
  360. data/vendor/simplejson/CHANGES.txt +291 -0
  361. data/vendor/simplejson/LICENSE.txt +19 -0
  362. data/vendor/simplejson/MANIFEST.in +5 -0
  363. data/vendor/simplejson/README.rst +19 -0
  364. data/vendor/simplejson/conf.py +179 -0
  365. data/vendor/simplejson/index.rst +628 -0
  366. data/vendor/simplejson/scripts/make_docs.py +18 -0
  367. data/vendor/simplejson/setup.py +104 -0
  368. data/vendor/simplejson/simplejson/__init__.py +510 -0
  369. data/vendor/simplejson/simplejson/_speedups.c +2745 -0
  370. data/vendor/simplejson/simplejson/decoder.py +425 -0
  371. data/vendor/simplejson/simplejson/encoder.py +567 -0
  372. data/vendor/simplejson/simplejson/ordered_dict.py +119 -0
  373. data/vendor/simplejson/simplejson/scanner.py +77 -0
  374. data/vendor/simplejson/simplejson/tests/__init__.py +67 -0
  375. data/vendor/simplejson/simplejson/tests/test_bigint_as_string.py +55 -0
  376. data/vendor/simplejson/simplejson/tests/test_check_circular.py +30 -0
  377. data/vendor/simplejson/simplejson/tests/test_decimal.py +66 -0
  378. data/vendor/simplejson/simplejson/tests/test_decode.py +83 -0
  379. data/vendor/simplejson/simplejson/tests/test_default.py +9 -0
  380. data/vendor/simplejson/simplejson/tests/test_dump.py +67 -0
  381. data/vendor/simplejson/simplejson/tests/test_encode_basestring_ascii.py +46 -0
  382. data/vendor/simplejson/simplejson/tests/test_encode_for_html.py +32 -0
  383. data/vendor/simplejson/simplejson/tests/test_errors.py +34 -0
  384. data/vendor/simplejson/simplejson/tests/test_fail.py +91 -0
  385. data/vendor/simplejson/simplejson/tests/test_float.py +19 -0
  386. data/vendor/simplejson/simplejson/tests/test_indent.py +86 -0
  387. data/vendor/simplejson/simplejson/tests/test_item_sort_key.py +20 -0
  388. data/vendor/simplejson/simplejson/tests/test_namedtuple.py +121 -0
  389. data/vendor/simplejson/simplejson/tests/test_pass1.py +76 -0
  390. data/vendor/simplejson/simplejson/tests/test_pass2.py +14 -0
  391. data/vendor/simplejson/simplejson/tests/test_pass3.py +20 -0
  392. data/vendor/simplejson/simplejson/tests/test_recursion.py +67 -0
  393. data/vendor/simplejson/simplejson/tests/test_scanstring.py +117 -0
  394. data/vendor/simplejson/simplejson/tests/test_separators.py +42 -0
  395. data/vendor/simplejson/simplejson/tests/test_speedups.py +20 -0
  396. data/vendor/simplejson/simplejson/tests/test_tuple.py +49 -0
  397. data/vendor/simplejson/simplejson/tests/test_unicode.py +109 -0
  398. data/vendor/simplejson/simplejson/tool.py +39 -0
  399. metadata +492 -0
@@ -0,0 +1,88 @@
1
+ <!SGML "ISO 8879:1986 (WWW)"
2
+ --
3
+ SGML Declaration for HyperText Markup Language version 4.0
4
+
5
+ With support for the first 17 planes of ISO 10646 and
6
+ increased limits for tag and literal lengths etc.
7
+
8
+ Modified by jjc to work around SP's 16-bit character limit.
9
+ Modified by jjc to support hex character references.
10
+ --
11
+
12
+ CHARSET
13
+ BASESET "ISO Registration Number 177//CHARSET
14
+ ISO/IEC 10646-1:1993 UCS-4 with
15
+ implementation level 3//ESC 2/5 2/15 4/6"
16
+ DESCSET 0 9 UNUSED
17
+ 9 2 9
18
+ 11 2 UNUSED
19
+ 13 1 13
20
+ 14 18 UNUSED
21
+ 32 95 32
22
+ 127 1 UNUSED
23
+ 128 32 UNUSED
24
+ -- jjc: changed the rest of the DESCSET.
25
+ Note that surrogates are not declared UNUSED;
26
+ this allows non-BMP characters to be parsed. --
27
+ 160 65376 160
28
+ -- 160 55136 160
29
+ 55296 2048 UNUSED
30
+ 57344 1056768 57344 --
31
+
32
+ CAPACITY SGMLREF
33
+ TOTALCAP 150000
34
+ GRPCAP 150000
35
+ ENTCAP 150000
36
+
37
+ SCOPE DOCUMENT
38
+ SYNTAX
39
+ SHUNCHAR CONTROLS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
40
+ 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 127
41
+ BASESET "ISO 646IRV:1991//CHARSET
42
+ International Reference Version
43
+ (IRV)//ESC 2/8 4/2"
44
+ DESCSET 0 128 0
45
+
46
+ FUNCTION
47
+ RE 13
48
+ RS 10
49
+ SPACE 32
50
+ TAB SEPCHAR 9
51
+
52
+ NAMING LCNMSTRT ""
53
+ UCNMSTRT ""
54
+ LCNMCHAR ".-_:"
55
+ UCNMCHAR ".-_:"
56
+ NAMECASE GENERAL YES
57
+ ENTITY NO
58
+ DELIM GENERAL SGMLREF
59
+ HCRO "&#38;#X" -- added by jjc --
60
+ SHORTREF SGMLREF
61
+ NAMES SGMLREF
62
+ QUANTITY SGMLREF
63
+ ATTCNT 60 -- increased --
64
+ ATTSPLEN 65536 -- These are the largest values --
65
+ LITLEN 65536 -- permitted in the declaration --
66
+ NAMELEN 65536 -- Avoid fixed limits in actual --
67
+ PILEN 65536 -- implementations of HTML UA's --
68
+ TAGLVL 100
69
+ TAGLEN 65536
70
+ GRPGTCNT 150
71
+ GRPCNT 64
72
+
73
+ FEATURES
74
+ MINIMIZE
75
+ DATATAG NO
76
+ OMITTAG YES
77
+ RANK NO
78
+ SHORTTAG YES
79
+ LINK
80
+ SIMPLE NO
81
+ IMPLICIT NO
82
+ EXPLICIT NO
83
+ OTHER
84
+ CONCUR NO
85
+ SUBDOC NO
86
+ FORMAL YES
87
+ APPINFO NONE
88
+ >
@@ -0,0 +1,1092 @@
1
+ <!--
2
+ This is the HTML 4.0 Transitional DTD, which includes
3
+ presentation attributes and elements that W3C expects to phase out
4
+ as support for style sheets matures. Authors should use the Strict
5
+ DTD when possible, but may use the Transitional DTD when support
6
+ for presentation attribute and elements is required.
7
+
8
+ HTML 4.0 includes mechanisms for style sheets, scripting,
9
+ embedding objects, improved support for right to left and mixed
10
+ direction text, and enhancements to forms for improved
11
+ accessibility for people with disabilities.
12
+
13
+ Draft: $Date: 1999/05/02 15:37:15 $
14
+
15
+ Authors:
16
+ Dave Raggett <dsr@w3.org>
17
+ Arnaud Le Hors <lehors@w3.org>
18
+ Ian Jacobs <ij@w3.org>
19
+
20
+ Further information about HTML 4.0 is available at:
21
+
22
+ http://www.w3.org/TR/REC-html40
23
+ -->
24
+ <!ENTITY % HTML.Version "-//W3C//DTD HTML 4.0 Transitional//EN"
25
+ -- Typical usage:
26
+
27
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
28
+ "http://www.w3.org/TR/REC-html40/loose.dtd">
29
+ <html>
30
+ <head>
31
+ ...
32
+ </head>
33
+ <body>
34
+ ...
35
+ </body>
36
+ </html>
37
+
38
+ The URI used as a system identifier with the public identifier allows
39
+ the user agent to download the DTD and entity sets as needed.
40
+
41
+ The FPI for the Strict HTML 4.0 DTD is:
42
+
43
+ "-//W3C//DTD HTML 4.0//EN"
44
+
45
+ and its URI is:
46
+
47
+ http://www.w3.org/TR/REC-html40/strict.dtd
48
+
49
+ Authors should use the Strict DTD unless they need the
50
+ presentation control for user agents that don't (adequately)
51
+ support style sheets.
52
+
53
+ If you are writing a document that includes frames, use
54
+ the following FPI:
55
+
56
+ "-//W3C//DTD HTML 4.0 Frameset//EN"
57
+
58
+ with the URI:
59
+
60
+ http://www.w3.org/TR/REC-html40/frameset.dtd
61
+
62
+ The following URIs are supported in relation to HTML 4.0
63
+
64
+ "http://www.w3.org/TR/REC-html40/strict.dtd" (Strict DTD)
65
+ "http://www.w3.org/TR/REC-html40/loose.dtd" (Loose DTD)
66
+ "http://www.w3.org/TR/REC-html40/frameset.dtd" (Frameset DTD)
67
+ "http://www.w3.org/TR/REC-html40/HTMLlat1.ent" (Latin-1 entities)
68
+ "http://www.w3.org/TR/REC-html40/HTMLsymbol.ent" (Symbol entities)
69
+ "http://www.w3.org/TR/REC-html40/HTMLspecial.ent" (Special entities)
70
+
71
+ These URIs point to the latest version of each file. To reference
72
+ this specific revision use the following URIs:
73
+
74
+ "http://www.w3.org/TR/REC-html40-971218/strict.dtd"
75
+ "http://www.w3.org/TR/REC-html40-971218/loose.dtd"
76
+ "http://www.w3.org/TR/REC-html40-971218/frameset.dtd"
77
+ "http://www.w3.org/TR/REC-html40-971218/HTMLlat1.ent"
78
+ "http://www.w3.org/TR/REC-html40-971218/HTMLsymbol.ent"
79
+ "http://www.w3.org/TR/REC-html40-971218/HTMLspecial.ent"
80
+
81
+ -->
82
+
83
+ <!--================== Imported Names ====================================-->
84
+
85
+ <!ENTITY % ContentType "CDATA"
86
+ -- media type, as per [RFC2045]
87
+ -->
88
+
89
+ <!ENTITY % ContentTypes "CDATA"
90
+ -- comma-separated list of media types, as per [RFC2045]
91
+ -->
92
+
93
+ <!ENTITY % Charset "CDATA"
94
+ -- a character encoding, as per [RFC2045]
95
+ -->
96
+
97
+ <!ENTITY % Charsets "CDATA"
98
+ -- a space separated list of character encodings, as per [RFC2045]
99
+ -->
100
+
101
+ <!ENTITY % LanguageCode "NAME"
102
+ -- a language code, as per [RFC1766]
103
+ -->
104
+
105
+ <!ENTITY % Character "CDATA"
106
+ -- a single character from [ISO10646]
107
+ -->
108
+
109
+ <!ENTITY % LinkTypes "CDATA"
110
+ -- space-separated list of link types
111
+ -->
112
+
113
+ <!ENTITY % MediaDesc "CDATA"
114
+ -- single or comma-separated list of media descriptors
115
+ -->
116
+
117
+ <!ENTITY % URI "CDATA"
118
+ -- a Uniform Resource Identifier,
119
+ see [URI]
120
+ -->
121
+
122
+ <!ENTITY % Datetime "CDATA" -- date and time information. ISO date format -->
123
+
124
+
125
+ <!ENTITY % Script "CDATA" -- script expression -->
126
+
127
+ <!ENTITY % StyleSheet "CDATA" -- style sheet data -->
128
+
129
+ <!ENTITY % FrameTarget "CDATA" -- render in this frame -->
130
+
131
+
132
+ <!ENTITY % Text "CDATA">
133
+
134
+
135
+ <!-- Parameter Entities -->
136
+
137
+ <!ENTITY % head.misc "SCRIPT|STYLE|META|LINK|OBJECT" -- repeatable head elements -->
138
+
139
+ <!ENTITY % heading "H1|H2|H3|H4|H5|H6">
140
+
141
+ <!ENTITY % list "UL | OL | DIR | MENU">
142
+
143
+ <!ENTITY % preformatted "PRE">
144
+
145
+ <!ENTITY % Color "CDATA" -- a color using sRGB: #RRGGBB as Hex values -->
146
+
147
+ <!-- There are also 16 widely known color names with their sRGB values:
148
+
149
+ Black = #000000 Green = #008000
150
+ Silver = #C0C0C0 Lime = #00FF00
151
+ Gray = #808080 Olive = #808000
152
+ White = #FFFFFF Yellow = #FFFF00
153
+ Maroon = #800000 Navy = #000080
154
+ Red = #FF0000 Blue = #0000FF
155
+ Purple = #800080 Teal = #008080
156
+ Fuchsia= #FF00FF Aqua = #00FFFF
157
+ -->
158
+
159
+ <!ENTITY % bodycolors "
160
+ bgcolor %Color; #IMPLIED -- document background color --
161
+ text %Color; #IMPLIED -- document text color --
162
+ link %Color; #IMPLIED -- color of links --
163
+ vlink %Color; #IMPLIED -- color of visited links --
164
+ alink %Color; #IMPLIED -- color of selected links --
165
+ ">
166
+
167
+ <!--================ Character mnemonic entities =========================-->
168
+
169
+ <!ENTITY % HTMLlat1 PUBLIC
170
+ "-//W3C//ENTITIES Latin1//EN//HTML"
171
+ "http://www.w3.org/TR/REC-html40-971218/HTMLlat1.ent">
172
+ %HTMLlat1;
173
+
174
+ <!ENTITY % HTMLsymbol PUBLIC
175
+ "-//W3C//ENTITIES Symbols//EN//HTML"
176
+ "http://www.w3.org/TR/REC-html40-971218/HTMLsymbol.ent">
177
+ %HTMLsymbol;
178
+
179
+ <!ENTITY % HTMLspecial PUBLIC
180
+ "-//W3C//ENTITIES Special//EN//HTML"
181
+ "http://www.w3.org/TR/REC-html40-971218/HTMLspecial.ent">
182
+ %HTMLspecial;
183
+ <!--=================== Generic Attributes ===============================-->
184
+
185
+ <!ENTITY % coreattrs
186
+ "id ID #IMPLIED -- document-wide unique id --
187
+ class CDATA #IMPLIED -- space separated list of classes --
188
+ style %StyleSheet; #IMPLIED -- associated style info --
189
+ title %Text; #IMPLIED -- advisory title/amplification --"
190
+ >
191
+
192
+ <!ENTITY % i18n
193
+ "lang %LanguageCode; #IMPLIED -- language code --
194
+ dir (ltr|rtl) #IMPLIED -- direction for weak/neutral text --"
195
+ >
196
+
197
+ <!ENTITY % events
198
+ "onclick %Script; #IMPLIED -- a pointer button was clicked --
199
+ ondblclick %Script; #IMPLIED -- a pointer button was double clicked--
200
+ onmousedown %Script; #IMPLIED -- a pointer button was pressed down --
201
+ onmouseup %Script; #IMPLIED -- a pointer button was released --
202
+ onmouseover %Script; #IMPLIED -- a pointer was moved onto --
203
+ onmousemove %Script; #IMPLIED -- a pointer was moved within --
204
+ onmouseout %Script; #IMPLIED -- a pointer was moved away --
205
+ onkeypress %Script; #IMPLIED -- a key was pressed and released --
206
+ onkeydown %Script; #IMPLIED -- a key was pressed down --
207
+ onkeyup %Script; #IMPLIED -- a key was released --"
208
+ >
209
+
210
+ <!-- Reserved Feature Switch -->
211
+ <!ENTITY % HTML.Reserved "IGNORE">
212
+
213
+ <!-- The following attributes are reserved for possible future use -->
214
+ <![ %HTML.Reserved; [
215
+ <!ENTITY % reserved
216
+ "datasrc %URI; #IMPLIED -- a single or tabular Data Source --
217
+ datafld CDATA #IMPLIED -- the property or column name --
218
+ dataformatas (plaintext|html) plaintext -- text or html --"
219
+ >
220
+ ]]>
221
+
222
+ <!ENTITY % reserved "">
223
+
224
+ <!ENTITY % attrs "%coreattrs; %i18n; %events;">
225
+
226
+ <!ENTITY % align "align (left|center|right|justify) #IMPLIED"
227
+ -- default is left for ltr paragraphs, right for rtl --
228
+ >
229
+
230
+ <!--=================== Text Markup ======================================-->
231
+
232
+ <!ENTITY % fontstyle
233
+ "TT | I | B | U | S | STRIKE | BIG | SMALL">
234
+
235
+ <!ENTITY % phrase "EM | STRONG | DFN | CODE |
236
+ SAMP | KBD | VAR | CITE | ABBR | ACRONYM" >
237
+
238
+ <!ENTITY % special
239
+ "A | IMG | APPLET | OBJECT | FONT | BASEFONT | BR | SCRIPT |
240
+ MAP | Q | SUB | SUP | SPAN | BDO | IFRAME">
241
+
242
+ <!ENTITY % formctrl "INPUT | SELECT | TEXTAREA | LABEL | BUTTON">
243
+
244
+ <!-- %inline; covers inline or "text-level" elements -->
245
+ <!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl;">
246
+
247
+ <!ELEMENT (%fontstyle;|%phrase;) - - (%inline;)*>
248
+ <!ATTLIST (%fontstyle;|%phrase;)
249
+ %attrs; -- %coreattrs, %i18n, %events --
250
+ >
251
+
252
+ <!ELEMENT (SUB|SUP) - - (%inline;)* -- subscript, superscript -->
253
+ <!ATTLIST (SUB|SUP)
254
+ %attrs; -- %coreattrs, %i18n, %events --
255
+ >
256
+
257
+ <!ELEMENT SPAN - - (%inline;)* -- generic language/style container -->
258
+ <!ATTLIST SPAN
259
+ %attrs; -- %coreattrs, %i18n, %events --
260
+ %reserved; -- reserved for possible future use --
261
+ >
262
+
263
+ <!ELEMENT BDO - - (%inline;)* -- I18N BiDi over-ride -->
264
+ <!ATTLIST BDO
265
+ %coreattrs; -- id, class, style, title --
266
+ lang %LanguageCode; #IMPLIED -- language code --
267
+ dir (ltr|rtl) #REQUIRED -- directionality --
268
+ >
269
+
270
+ <!ELEMENT BASEFONT - O EMPTY -- base font size -->
271
+ <!ATTLIST BASEFONT
272
+ id ID #IMPLIED -- document-wide unique id --
273
+ size CDATA #REQUIRED -- base font size for FONT elements --
274
+ color %Color; #IMPLIED -- text color --
275
+ face CDATA #IMPLIED -- comma separated list of font names --
276
+ >
277
+
278
+ <!ELEMENT FONT - - (%inline;)* -- local change to font -->
279
+ <!ATTLIST FONT
280
+ %coreattrs; -- id, class, style, title --
281
+ %i18n; -- lang, dir --
282
+ size CDATA #IMPLIED -- [+|-]nn e.g. size="+1", size="4" --
283
+ color %Color; #IMPLIED -- text color --
284
+ face CDATA #IMPLIED -- comma separated list of font names --
285
+ >
286
+
287
+ <!ELEMENT BR - O EMPTY -- forced line break -->
288
+ <!ATTLIST BR
289
+ %coreattrs; -- id, class, style, title --
290
+ clear (left|all|right|none) none -- control of text flow --
291
+ >
292
+
293
+ <!--================== HTML content models ===============================-->
294
+
295
+ <!--
296
+ HTML has two basic content models:
297
+
298
+ %inline; character level elements and text strings
299
+ %block; block-like elements e.g. paragraphs and lists
300
+ -->
301
+
302
+ <!ENTITY % block
303
+ "P | %heading; | %list; | %preformatted; | DL | DIV | CENTER |
304
+ NOSCRIPT | NOFRAMES | BLOCKQUOTE | FORM | ISINDEX | HR |
305
+ TABLE | FIELDSET | ADDRESS">
306
+
307
+ <!ENTITY % flow "%block; | %inline;">
308
+
309
+ <!--=================== Document Body ====================================-->
310
+
311
+ <!ELEMENT BODY O O (%flow;)* +(INS|DEL) -- document body -->
312
+ <!ATTLIST BODY
313
+ %attrs; -- %coreattrs, %i18n, %events --
314
+ onload %Script; #IMPLIED -- the document has been loaded --
315
+ onunload %Script; #IMPLIED -- the document has been removed --
316
+ background %URI; #IMPLIED -- texture tile for document
317
+ background --
318
+ %bodycolors; -- bgcolor, text, link, vlink, alink --
319
+ >
320
+
321
+ <!ELEMENT ADDRESS - - ((%inline;)|P)* -- information on author -->
322
+ <!ATTLIST ADDRESS
323
+ %attrs; -- %coreattrs, %i18n, %events --
324
+ >
325
+
326
+ <!ELEMENT DIV - - (%flow;)* -- generic language/style container -->
327
+ <!ATTLIST DIV
328
+ %attrs; -- %coreattrs, %i18n, %events --
329
+ %align; -- align, text alignment --
330
+ %reserved; -- reserved for possible future use --
331
+ >
332
+
333
+ <!ELEMENT CENTER - - (%flow;)* -- shorthand for DIV align=center -->
334
+ <!ATTLIST CENTER
335
+ %attrs; -- %coreattrs, %i18n, %events --
336
+ >
337
+
338
+ <!--================== The Anchor Element ================================-->
339
+
340
+ <!ENTITY % Shape "(rect|circle|poly|default)">
341
+ <!ENTITY % Coords "CDATA" -- comma separated list of lengths -->
342
+
343
+ <!ELEMENT A - - (%inline;)* -(A) -- anchor -->
344
+ <!ATTLIST A
345
+ %attrs; -- %coreattrs, %i18n, %events --
346
+ charset %Charset; #IMPLIED -- char encoding of linked resource --
347
+ type %ContentType; #IMPLIED -- advisory content type --
348
+ name CDATA #IMPLIED -- named link end --
349
+ href %URI; #IMPLIED -- URI for linked resource --
350
+ hreflang %LanguageCode; #IMPLIED -- language code --
351
+ target %FrameTarget; #IMPLIED -- render in this frame --
352
+ rel %LinkTypes; #IMPLIED -- forward link types --
353
+ rev %LinkTypes; #IMPLIED -- reverse link types --
354
+ accesskey %Character; #IMPLIED -- accessibility key character --
355
+ shape %Shape; rect -- for use with client-side image maps --
356
+ coords %Coords; #IMPLIED -- for use with client-side image maps --
357
+ tabindex NUMBER #IMPLIED -- position in tabbing order --
358
+ onfocus %Script; #IMPLIED -- the element got the focus --
359
+ onblur %Script; #IMPLIED -- the element lost the focus --
360
+ >
361
+
362
+ <!--================== Client-side image maps ============================-->
363
+
364
+ <!-- These can be placed in the same document or grouped in a
365
+ separate document although this isn't yet widely supported -->
366
+
367
+ <!ELEMENT MAP - - ((%block;)+ | AREA+) -- client-side image map -->
368
+ <!ATTLIST MAP
369
+ %attrs; -- %coreattrs, %i18n, %events --
370
+ name CDATA #REQUIRED -- for reference by usemap --
371
+ >
372
+
373
+ <!ELEMENT AREA - O EMPTY -- client-side image map area -->
374
+ <!ATTLIST AREA
375
+ %attrs; -- %coreattrs, %i18n, %events --
376
+ shape %Shape; rect -- controls interpretation of coords --
377
+ coords %Coords; #IMPLIED -- comma separated list of lengths --
378
+ href %URI; #IMPLIED -- URI for linked resource --
379
+ target %FrameTarget; #IMPLIED -- render in this frame --
380
+ nohref (nohref) #IMPLIED -- this region has no action --
381
+ alt %Text; #REQUIRED -- short description --
382
+ tabindex NUMBER #IMPLIED -- position in tabbing order --
383
+ accesskey %Character; #IMPLIED -- accessibility key character --
384
+ onfocus %Script; #IMPLIED -- the element got the focus --
385
+ onblur %Script; #IMPLIED -- the element lost the focus --
386
+ >
387
+
388
+ <!--================== The LINK Element ==================================-->
389
+
390
+ <!--
391
+ Relationship values can be used in principle:
392
+
393
+ a) for document specific toolbars/menus when used
394
+ with the LINK element in document head e.g.
395
+ start, contents, previous, next, index, end, help
396
+ b) to link to a separate style sheet (rel=stylesheet)
397
+ c) to make a link to a script (rel=script)
398
+ d) by stylesheets to control how collections of
399
+ html nodes are rendered into printed documents
400
+ e) to make a link to a printable version of this document
401
+ e.g. a postscript or pdf version (rel=alternate media=print)
402
+ -->
403
+
404
+ <!ELEMENT LINK - O EMPTY -- a media-independent link -->
405
+ <!ATTLIST LINK
406
+ %attrs; -- %coreattrs, %i18n, %events --
407
+ charset %Charset; #IMPLIED -- char encoding of linked resource --
408
+ href %URI; #IMPLIED -- URI for linked resource --
409
+ hreflang %LanguageCode; #IMPLIED -- language code --
410
+ type %ContentType; #IMPLIED -- advisory content type --
411
+ rel %LinkTypes; #IMPLIED -- forward link types --
412
+ rev %LinkTypes; #IMPLIED -- reverse link types --
413
+ media %MediaDesc; #IMPLIED -- for rendering on these media --
414
+ target %FrameTarget; #IMPLIED -- render in this frame --
415
+ >
416
+
417
+ <!--=================== Images ===========================================-->
418
+
419
+ <!-- Length defined in strict DTD for cellpadding/cellspacing -->
420
+ <!ENTITY % Length "CDATA" -- nn for pixels or nn% for percentage length -->
421
+ <!ENTITY % MultiLength "CDATA" -- pixel, percentage, or relative -->
422
+
423
+ <!ENTITY % MultiLengths "CDATA" -- comma-separated list of MultiLength -->
424
+
425
+ <!ENTITY % Pixels "CDATA" -- integer representing length in pixels -->
426
+
427
+ <!ENTITY % IAlign "(top|middle|bottom|left|right)" -- center? -->
428
+
429
+ <!-- To avoid problems with text-only UAs as well as
430
+ to make image content understandable and navigable
431
+ to users of non-visual UAs, you need to provide
432
+ a description with ALT, and avoid server-side image maps -->
433
+ <!ELEMENT IMG - O EMPTY -- Embedded image -->
434
+ <!ATTLIST IMG
435
+ %attrs; -- %coreattrs, %i18n, %events --
436
+ src %URI; #REQUIRED -- URI of image to embed --
437
+ alt %Text; #REQUIRED -- short description --
438
+ longdesc %URI; #IMPLIED -- link to long description
439
+ (complements alt) --
440
+ height %Length; #IMPLIED -- override height --
441
+ width %Length; #IMPLIED -- override width --
442
+ usemap %URI; #IMPLIED -- use client-side image map --
443
+ ismap (ismap) #IMPLIED -- use server-side image map --
444
+ align %IAlign; #IMPLIED -- vertical or horizontal alignment --
445
+ border %Length; #IMPLIED -- link border width --
446
+ hspace %Pixels; #IMPLIED -- horizontal gutter --
447
+ vspace %Pixels; #IMPLIED -- vertical gutter --
448
+ >
449
+
450
+ <!-- USEMAP points to a MAP element which may be in this document
451
+ or an external document, although the latter is not widely supported -->
452
+
453
+ <!--==================== OBJECT ======================================-->
454
+ <!--
455
+ OBJECT is used to embed objects as part of HTML pages
456
+ PARAM elements should precede other content. SGML mixed content
457
+ model technicality precludes specifying this formally ...
458
+ -->
459
+
460
+ <!ELEMENT OBJECT - - (PARAM | %flow;)*
461
+ -- generic embedded object -->
462
+ <!ATTLIST OBJECT
463
+ %attrs; -- %coreattrs, %i18n, %events --
464
+ declare (declare) #IMPLIED -- declare but don't instantiate flag --
465
+ classid %URI; #IMPLIED -- identifies an implementation --
466
+ codebase %URI; #IMPLIED -- base URI for classid, data, archive--
467
+ data %URI; #IMPLIED -- reference to object's data --
468
+ type %ContentType; #IMPLIED -- content type for data --
469
+ codetype %ContentType; #IMPLIED -- content type for code --
470
+ archive %URI; #IMPLIED -- space separated archive list --
471
+ standby %Text; #IMPLIED -- message to show while loading --
472
+ height %Length; #IMPLIED -- override height --
473
+ width %Length; #IMPLIED -- override width --
474
+ usemap %URI; #IMPLIED -- use client-side image map --
475
+ name CDATA #IMPLIED -- submit as part of form --
476
+ tabindex NUMBER #IMPLIED -- position in tabbing order --
477
+ align %IAlign; #IMPLIED -- vertical or horizontal alignment --
478
+ border %Length; #IMPLIED -- link border width --
479
+ hspace %Pixels; #IMPLIED -- horizontal gutter --
480
+ vspace %Pixels; #IMPLIED -- vertical gutter --
481
+ %reserved; -- reserved for possible future use --
482
+ >
483
+
484
+ <!ELEMENT PARAM - O EMPTY -- named property value -->
485
+ <!ATTLIST PARAM
486
+ id ID #IMPLIED -- document-wide unique id --
487
+ name CDATA #REQUIRED -- property name --
488
+ value CDATA #IMPLIED -- property value --
489
+ valuetype (DATA|REF|OBJECT) DATA -- How to interpret value --
490
+ type %ContentType; #IMPLIED -- content type for value
491
+ when valuetype=ref --
492
+ >
493
+
494
+ <!--=================== Java APPLET ==================================-->
495
+ <!--
496
+ One of code or object attributes must be present.
497
+ Place PARAM elements before other content.
498
+ -->
499
+ <!ELEMENT APPLET - - (PARAM | %flow;)* -- Java applet -->
500
+ <!ATTLIST APPLET
501
+ %coreattrs; -- id, class, style, title --
502
+ codebase %URI; #IMPLIED -- optional base URI for applet --
503
+ archive CDATA #IMPLIED -- comma separated archive list --
504
+ code CDATA #IMPLIED -- applet class file --
505
+ object CDATA #IMPLIED -- serialized applet file --
506
+ alt %Text; #IMPLIED -- short description --
507
+ name CDATA #IMPLIED -- allows applets to find each other --
508
+ width %Length; #REQUIRED -- initial width --
509
+ height %Length; #REQUIRED -- initial height --
510
+ align %IAlign; #IMPLIED -- vertical or horizontal alignment --
511
+ hspace %Pixels; #IMPLIED -- horizontal gutter --
512
+ vspace %Pixels; #IMPLIED -- vertical gutter --
513
+ >
514
+
515
+ <!--=================== Horizontal Rule ==================================-->
516
+
517
+ <!ELEMENT HR - O EMPTY -- horizontal rule -->
518
+ <!ATTLIST HR
519
+ %coreattrs; -- id, class, style, title --
520
+ %events;
521
+ align (left|center|right) #IMPLIED
522
+ noshade (noshade) #IMPLIED
523
+ size %Pixels; #IMPLIED
524
+ width %Length; #IMPLIED
525
+ >
526
+
527
+ <!--=================== Paragraphs =======================================-->
528
+
529
+ <!ELEMENT P - O (%inline;)* -- paragraph -->
530
+ <!ATTLIST P
531
+ %attrs; -- %coreattrs, %i18n, %events --
532
+ %align; -- align, text alignment --
533
+ >
534
+
535
+ <!--=================== Headings =========================================-->
536
+
537
+ <!--
538
+ There are six levels of headings from H1 (the most important)
539
+ to H6 (the least important).
540
+ -->
541
+
542
+ <!ELEMENT (%heading;) - - (%inline;)* -- heading -->
543
+ <!ATTLIST (%heading;)
544
+ %attrs; -- %coreattrs, %i18n, %events --
545
+ %align; -- align, text alignment --
546
+ >
547
+
548
+ <!--=================== Preformatted Text ================================-->
549
+
550
+ <!-- excludes markup for images and changes in font size -->
551
+ <!ENTITY % pre.exclusion "IMG|OBJECT|APPLET|BIG|SMALL|SUB|SUP|FONT|BASEFONT">
552
+
553
+ <!ELEMENT PRE - - (%inline;)* -(%pre.exclusion;) -- preformatted text -->
554
+ <!ATTLIST PRE
555
+ %attrs; -- %coreattrs, %i18n, %events --
556
+ width NUMBER #IMPLIED
557
+ >
558
+
559
+ <!--===================== Inline Quotes ==================================-->
560
+
561
+ <!ELEMENT Q - - (%inline;)* -- short inline quotation -->
562
+ <!ATTLIST Q
563
+ %attrs; -- %coreattrs, %i18n, %events --
564
+ cite %URI; #IMPLIED -- URI for source document or msg --
565
+ >
566
+
567
+ <!--=================== Block-like Quotes ================================-->
568
+
569
+ <!ELEMENT BLOCKQUOTE - - (%flow;)* -- long quotation -->
570
+ <!ATTLIST BLOCKQUOTE
571
+ %attrs; -- %coreattrs, %i18n, %events --
572
+ cite %URI; #IMPLIED -- URI for source document or msg --
573
+ >
574
+
575
+ <!--=================== Inserted/Deleted Text ============================-->
576
+
577
+
578
+ <!-- INS/DEL are handled by inclusion on BODY -->
579
+ <!ELEMENT (INS|DEL) - - (%flow;)* -- inserted text, deleted text -->
580
+ <!ATTLIST (INS|DEL)
581
+ %attrs; -- %coreattrs, %i18n, %events --
582
+ cite %URI; #IMPLIED -- info on reason for change --
583
+ datetime %Datetime; #IMPLIED -- date and time of change --
584
+ >
585
+
586
+ <!--=================== Lists ============================================-->
587
+
588
+ <!-- definition lists - DT for term, DD for its definition -->
589
+
590
+ <!ELEMENT DL - - (DT|DD)+ -- definition list -->
591
+ <!ATTLIST DL
592
+ %attrs; -- %coreattrs, %i18n, %events --
593
+ compact (compact) #IMPLIED -- reduced interitem spacing --
594
+ >
595
+
596
+ <!ELEMENT DT - O (%inline;)* -- definition term -->
597
+ <!ELEMENT DD - O (%flow;)* -- definition description -->
598
+ <!ATTLIST (DT|DD)
599
+ %attrs; -- %coreattrs, %i18n, %events --
600
+ >
601
+
602
+ <!-- Ordered lists (OL) Numbering style
603
+
604
+ 1 arablic numbers 1, 2, 3, ...
605
+ a lower alpha a, b, c, ...
606
+ A upper alpha A, B, C, ...
607
+ i lower roman i, ii, iii, ...
608
+ I upper roman I, II, III, ...
609
+
610
+ The style is applied to the sequence number which by default
611
+ is reset to 1 for the first list item in an ordered list.
612
+
613
+ This can't be expressed directly in SGML due to case folding.
614
+ -->
615
+
616
+ <!ENTITY % OLStyle "CDATA" -- constrained to: "(1|a|A|i|I)" -->
617
+
618
+ <!ELEMENT OL - - (LI)+ -- ordered list -->
619
+ <!ATTLIST OL
620
+ %attrs; -- %coreattrs, %i18n, %events --
621
+ type %OLStyle; #IMPLIED -- numbering style --
622
+ compact (compact) #IMPLIED -- reduced interitem spacing --
623
+ start NUMBER #IMPLIED -- starting sequence number --
624
+ >
625
+
626
+ <!-- Unordered Lists (UL) bullet styles -->
627
+ <!ENTITY % ULStyle "(disc|square|circle)">
628
+
629
+ <!ELEMENT UL - - (LI)+ -- unordered list -->
630
+ <!ATTLIST UL
631
+ %attrs; -- %coreattrs, %i18n, %events --
632
+ type %ULStyle; #IMPLIED -- bullet style --
633
+ compact (compact) #IMPLIED -- reduced interitem spacing --
634
+ >
635
+
636
+ <!ELEMENT (DIR|MENU) - - (LI)+ -(%block;) -- directory list, menu list -->
637
+ <!ATTLIST DIR
638
+ %attrs; -- %coreattrs, %i18n, %events --
639
+ compact (compact) #IMPLIED
640
+ >
641
+ <!ATTLIST MENU
642
+ %attrs; -- %coreattrs, %i18n, %events --
643
+ compact (compact) #IMPLIED
644
+ >
645
+
646
+ <!ENTITY % LIStyle "CDATA" -- constrained to: "(%ULStyle;|%OLStyle;)" -->
647
+
648
+ <!ELEMENT LI - O (%flow;)* -- list item -->
649
+ <!ATTLIST LI
650
+ %attrs; -- %coreattrs, %i18n, %events --
651
+ type %LIStyle; #IMPLIED -- list item style --
652
+ value NUMBER #IMPLIED -- reset sequence number --
653
+ >
654
+
655
+ <!--================ Forms ===============================================-->
656
+ <!ELEMENT FORM - - (%flow;)* -(FORM) -- interactive form -->
657
+ <!ATTLIST FORM
658
+ %attrs; -- %coreattrs, %i18n, %events --
659
+ action %URI; #REQUIRED -- server-side form handler --
660
+ method (GET|POST) GET -- HTTP method used to submit the form--
661
+ enctype %ContentType; "application/x-www-form-urlencoded"
662
+ onsubmit %Script; #IMPLIED -- the form was submitted --
663
+ onreset %Script; #IMPLIED -- the form was reset --
664
+ target %FrameTarget; #IMPLIED -- render in this frame --
665
+ accept-charset %Charsets; #IMPLIED -- list of supported charsets --
666
+ >
667
+
668
+ <!-- Each label must not contain more than ONE field -->
669
+ <!ELEMENT LABEL - - (%inline;)* -(LABEL) -- form field label text -->
670
+ <!ATTLIST LABEL
671
+ %attrs; -- %coreattrs, %i18n, %events --
672
+ for IDREF #IMPLIED -- matches field ID value --
673
+ accesskey %Character; #IMPLIED -- accessibility key character --
674
+ onfocus %Script; #IMPLIED -- the element got the focus --
675
+ onblur %Script; #IMPLIED -- the element lost the focus --
676
+ >
677
+
678
+ <!ENTITY % InputType
679
+ "(TEXT | PASSWORD | CHECKBOX |
680
+ RADIO | SUBMIT | RESET |
681
+ FILE | HIDDEN | IMAGE | BUTTON)"
682
+ >
683
+
684
+ <!-- attribute name required for all but submit & reset -->
685
+ <!ELEMENT INPUT - O EMPTY -- form control -->
686
+ <!ATTLIST INPUT
687
+ %attrs; -- %coreattrs, %i18n, %events --
688
+ type %InputType; TEXT -- what kind of widget is needed --
689
+ name CDATA #IMPLIED -- submit as part of form --
690
+ value CDATA #IMPLIED -- required for radio and checkboxes --
691
+ checked (checked) #IMPLIED -- for radio buttons and check boxes --
692
+ disabled (disabled) #IMPLIED -- unavailable in this context --
693
+ readonly (readonly) #IMPLIED -- for text and passwd --
694
+ size CDATA #IMPLIED -- specific to each type of field --
695
+ maxlength NUMBER #IMPLIED -- max chars for text fields --
696
+ src %URI; #IMPLIED -- for fields with images --
697
+ alt CDATA #IMPLIED -- short description --
698
+ usemap %URI; #IMPLIED -- use client-side image map --
699
+ tabindex NUMBER #IMPLIED -- position in tabbing order --
700
+ accesskey %Character; #IMPLIED -- accessibility key character --
701
+ onfocus %Script; #IMPLIED -- the element got the focus --
702
+ onblur %Script; #IMPLIED -- the element lost the focus --
703
+ onselect %Script; #IMPLIED -- some text was selected --
704
+ onchange %Script; #IMPLIED -- the element value was changed --
705
+ accept %ContentTypes; #IMPLIED -- list of MIME types for file upload --
706
+ align %IAlign; #IMPLIED -- vertical or horizontal alignment --
707
+ %reserved; -- reserved for possible future use --
708
+ >
709
+
710
+ <!ELEMENT SELECT - - (OPTGROUP|OPTION)+ -- option selector -->
711
+ <!ATTLIST SELECT
712
+ %attrs; -- %coreattrs, %i18n, %events --
713
+ name CDATA #IMPLIED -- field name --
714
+ size NUMBER #IMPLIED -- rows visible --
715
+ multiple (multiple) #IMPLIED -- default is single selection --
716
+ disabled (disabled) #IMPLIED -- unavailable in this context --
717
+ tabindex NUMBER #IMPLIED -- position in tabbing order --
718
+ onfocus %Script; #IMPLIED -- the element got the focus --
719
+ onblur %Script; #IMPLIED -- the element lost the focus --
720
+ onchange %Script; #IMPLIED -- the element value was changed --
721
+ %reserved; -- reserved for possible future use --
722
+ >
723
+
724
+ <!ELEMENT OPTGROUP - - (OPTION)+ -- option group -->
725
+ <!ATTLIST OPTGROUP
726
+ %attrs; -- %coreattrs, %i18n, %events --
727
+ disabled (disabled) #IMPLIED -- unavailable in this context --
728
+ label %Text; #REQUIRED -- for use in hierarchical menus --
729
+ >
730
+
731
+ <!ELEMENT OPTION - O (#PCDATA) -- selectable choice -->
732
+ <!ATTLIST OPTION
733
+ %attrs; -- %coreattrs, %i18n, %events --
734
+ selected (selected) #IMPLIED
735
+ disabled (disabled) #IMPLIED -- unavailable in this context --
736
+ label %Text; #IMPLIED -- for use in hierarchical menus --
737
+ value CDATA #IMPLIED -- defaults to element content --
738
+ >
739
+
740
+ <!ELEMENT TEXTAREA - - (#PCDATA) -- multi-line text field -->
741
+ <!ATTLIST TEXTAREA
742
+ %attrs; -- %coreattrs, %i18n, %events --
743
+ name CDATA #IMPLIED
744
+ rows NUMBER #REQUIRED
745
+ cols NUMBER #REQUIRED
746
+ disabled (disabled) #IMPLIED -- unavailable in this context --
747
+ readonly (readonly) #IMPLIED
748
+ tabindex NUMBER #IMPLIED -- position in tabbing order --
749
+ accesskey %Character; #IMPLIED -- accessibility key character --
750
+ onfocus %Script; #IMPLIED -- the element got the focus --
751
+ onblur %Script; #IMPLIED -- the element lost the focus --
752
+ onselect %Script; #IMPLIED -- some text was selected --
753
+ onchange %Script; #IMPLIED -- the element value was changed --
754
+ %reserved; -- reserved for possible future use --
755
+ >
756
+
757
+ <!--
758
+ #PCDATA is to solve the mixed content problem,
759
+ per specification only whitespace is allowed there!
760
+ -->
761
+ <!ELEMENT FIELDSET - - (#PCDATA,LEGEND,(%flow;)*) -- form control group -->
762
+ <!ATTLIST FIELDSET
763
+ %attrs; -- %coreattrs, %i18n, %events --
764
+ >
765
+
766
+ <!ELEMENT LEGEND - - (%inline;)* -- fieldset legend -->
767
+ <!ENTITY % LAlign "(top|bottom|left|right)">
768
+
769
+ <!ATTLIST LEGEND
770
+ %attrs; -- %coreattrs, %i18n, %events --
771
+ accesskey %Character; #IMPLIED -- accessibility key character --
772
+ align %LAlign; #IMPLIED -- relative to fieldset --
773
+ >
774
+
775
+ <!ELEMENT BUTTON - -
776
+ (%flow;)* -(A|%formctrl;|FORM|ISINDEX|FIELDSET|IFRAME)
777
+ -- push button -->
778
+ <!ATTLIST BUTTON
779
+ %attrs; -- %coreattrs, %i18n, %events --
780
+ name CDATA #IMPLIED
781
+ value CDATA #IMPLIED -- sent to server when submitted --
782
+ type (button|submit|reset) submit -- for use as form button --
783
+ disabled (disabled) #IMPLIED -- unavailable in this context --
784
+ tabindex NUMBER #IMPLIED -- position in tabbing order --
785
+ accesskey %Character; #IMPLIED -- accessibility key character --
786
+ onfocus %Script; #IMPLIED -- the element got the focus --
787
+ onblur %Script; #IMPLIED -- the element lost the focus --
788
+ %reserved; -- reserved for possible future use --
789
+ >
790
+
791
+ <!--======================= Tables =======================================-->
792
+
793
+ <!-- IETF HTML table standard, see [RFC1942] -->
794
+
795
+ <!--
796
+ The BORDER attribute sets the thickness of the frame around the
797
+ table. The default units are screen pixels.
798
+
799
+ The FRAME attribute specifies which parts of the frame around
800
+ the table should be rendered. The values are not the same as
801
+ CALS to avoid a name clash with the VALIGN attribute.
802
+
803
+ The value "border" is included for backwards compatibility with
804
+ <TABLE BORDER> which yields frame=border and border=implied
805
+ For <TABLE BORDER=1> you get border=1 and frame=implied. In this
806
+ case, it is appropriate to treat this as frame=border for backwards
807
+ compatibility with deployed browsers.
808
+ -->
809
+ <!ENTITY % TFrame "(void|above|below|hsides|lhs|rhs|vsides|box|border)">
810
+
811
+ <!--
812
+ The RULES attribute defines which rules to draw between cells:
813
+
814
+ If RULES is absent then assume:
815
+ "none" if BORDER is absent or BORDER=0 otherwise "all"
816
+ -->
817
+
818
+ <!ENTITY % TRules "(none | groups | rows | cols | all)">
819
+
820
+ <!-- horizontal placement of table relative to document -->
821
+ <!ENTITY % TAlign "(left|center|right)">
822
+
823
+ <!-- horizontal alignment attributes for cell contents -->
824
+ <!ENTITY % cellhalign
825
+ "align (left|center|right|justify|char) #IMPLIED
826
+ char %Character; #IMPLIED -- alignment char, e.g. char=':' --
827
+ charoff %Length; #IMPLIED -- offset for alignment char --"
828
+ >
829
+
830
+ <!-- vertical alignment attributes for cell contents -->
831
+ <!ENTITY % cellvalign
832
+ "valign (top|middle|bottom|baseline) #IMPLIED"
833
+ >
834
+
835
+ <!ELEMENT TABLE - -
836
+ (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>
837
+ <!ELEMENT CAPTION - - (%inline;)* -- table caption -->
838
+ <!ELEMENT THEAD - O (TR)+ -- table header -->
839
+ <!ELEMENT TFOOT - O (TR)+ -- table footer -->
840
+ <!ELEMENT TBODY O O (TR)+ -- table body -->
841
+ <!ELEMENT COLGROUP - O (col)* -- table column group -->
842
+ <!ELEMENT COL - O EMPTY -- table column -->
843
+ <!ELEMENT TR - O (TH|TD)+ -- table row -->
844
+ <!ELEMENT (TH|TD) - O (%flow;)* -- table header cell, table data cell-->
845
+
846
+ <!ATTLIST TABLE -- table element --
847
+ %attrs; -- %coreattrs, %i18n, %events --
848
+ summary %Text; #IMPLIED -- purpose/structure for speech output--
849
+ width %Length; #IMPLIED -- table width --
850
+ border %Pixels; #IMPLIED -- controls frame width around table --
851
+ frame %TFrame; #IMPLIED -- which parts of frame to render --
852
+ rules %TRules; #IMPLIED -- rulings between rows and cols --
853
+ cellspacing %Length; #IMPLIED -- spacing between cells --
854
+ cellpadding %Length; #IMPLIED -- spacing within cells --
855
+ align %TAlign; #IMPLIED -- table position relative to window --
856
+ bgcolor %Color; #IMPLIED -- background color for cells --
857
+ %reserved; -- reserved for possible future use --
858
+ datapagesize CDATA #IMPLIED -- reserved for possible future use --
859
+ >
860
+
861
+ <!ENTITY % CAlign "(top|bottom|left|right)">
862
+
863
+ <!ATTLIST CAPTION
864
+ %attrs; -- %coreattrs, %i18n, %events --
865
+ align %CAlign; #IMPLIED -- relative to table --
866
+ >
867
+
868
+ <!--
869
+ COLGROUP groups a set of COL elements. It allows you to group
870
+ several semantically related columns together.
871
+ -->
872
+ <!ATTLIST COLGROUP
873
+ %attrs; -- %coreattrs, %i18n, %events --
874
+ span NUMBER 1 -- default number of columns in group --
875
+ width %MultiLength; #IMPLIED -- default width for enclosed COLs --
876
+ %cellhalign; -- horizontal alignment in cells --
877
+ %cellvalign; -- vertical alignment in cells --
878
+ >
879
+
880
+ <!--
881
+ COL elements define the alignment properties for cells in
882
+ one or more columns.
883
+
884
+ The WIDTH attribute specifies the width of the columns, e.g.
885
+
886
+ width=64 width in screen pixels
887
+ width=0.5* relative width of 0.5
888
+
889
+ The SPAN attribute causes the attributes of one
890
+ COL element to apply to more than one column.
891
+ -->
892
+ <!ATTLIST COL -- column groups and properties --
893
+ %attrs; -- %coreattrs, %i18n, %events --
894
+ span NUMBER 1 -- COL attributes affect N columns --
895
+ width %MultiLength; #IMPLIED -- column width specification --
896
+ %cellhalign; -- horizontal alignment in cells --
897
+ %cellvalign; -- vertical alignment in cells --
898
+ >
899
+
900
+ <!--
901
+ Use THEAD to duplicate headers when breaking table
902
+ across page boundaries, or for static headers when
903
+ TBODY sections are rendered in scrolling panel.
904
+
905
+ Use TFOOT to duplicate footers when breaking table
906
+ across page boundaries, or for static footers when
907
+ TBODY sections are rendered in scrolling panel.
908
+
909
+ Use multiple TBODY sections when rules are needed
910
+ between groups of table rows.
911
+ -->
912
+ <!ATTLIST (THEAD|TBODY|TFOOT) -- table section --
913
+ %attrs; -- %coreattrs, %i18n, %events --
914
+ %cellhalign; -- horizontal alignment in cells --
915
+ %cellvalign; -- vertical alignment in cells --
916
+ >
917
+
918
+ <!ATTLIST TR -- table row --
919
+ %attrs; -- %coreattrs, %i18n, %events --
920
+ %cellhalign; -- horizontal alignment in cells --
921
+ %cellvalign; -- vertical alignment in cells --
922
+ bgcolor %Color; #IMPLIED -- background color for row --
923
+ >
924
+
925
+
926
+ <!-- Scope is simpler than axes attribute for common tables -->
927
+ <!ENTITY % Scope "(row|col|rowgroup|colgroup)">
928
+
929
+ <!-- TH is for headers, TD for data, but for cells acting as both use TD -->
930
+ <!ATTLIST (TH|TD) -- header or data cell --
931
+ %attrs; -- %coreattrs, %i18n, %events --
932
+ abbr %Text; #IMPLIED -- abbreviation for header cell --
933
+ axis CDATA #IMPLIED -- names groups of related headers--
934
+ headers IDREFS #IMPLIED -- list of id's for header cells --
935
+ scope %Scope; #IMPLIED -- scope covered by header cells --
936
+ rowspan NUMBER 1 -- number of rows spanned by cell --
937
+ colspan NUMBER 1 -- number of cols spanned by cell --
938
+ %cellhalign; -- horizontal alignment in cells --
939
+ %cellvalign; -- vertical alignment in cells --
940
+ nowrap (nowrap) #IMPLIED -- suppress word wrap --
941
+ bgcolor %Color; #IMPLIED -- cell background color --
942
+ width %Pixels; #IMPLIED -- width for cell --
943
+ height %Pixels; #IMPLIED -- height for cell --
944
+ >
945
+
946
+ <!--================== Document Frames ===================================-->
947
+
948
+ <!--
949
+ The content model for HTML documents depends on whether the HEAD is
950
+ followed by a FRAMESET or BODY element. The widespread omission of
951
+ the BODY start tag makes it impractical to define the content model
952
+ without the use of a marked section.
953
+ -->
954
+
955
+ <!-- Feature Switch for frameset documents -->
956
+ <!ENTITY % HTML.Frameset "IGNORE">
957
+
958
+ <![ %HTML.Frameset; [
959
+ <!ELEMENT FRAMESET - - ((FRAMESET|FRAME)+ & NOFRAMES?) -- window subdivision-->
960
+ <!ATTLIST FRAMESET
961
+ %coreattrs; -- id, class, style, title --
962
+ rows %MultiLengths; #IMPLIED -- list of lengths,
963
+ default: 100% (1 row) --
964
+ cols %MultiLengths; #IMPLIED -- list of lengths,
965
+ default: 100% (1 col) --
966
+ onload %Script; #IMPLIED -- all the frames have been loaded --
967
+ onunload %Script; #IMPLIED -- all the frames have been removed --
968
+ >
969
+ ]]>
970
+
971
+ <![ %HTML.Frameset; [
972
+ <!-- reserved frame names start with "_" otherwise starts with letter -->
973
+ <!ELEMENT FRAME - O EMPTY -- subwindow -->
974
+ <!ATTLIST FRAME
975
+ %coreattrs; -- id, class, style, title --
976
+ longdesc %URI; #IMPLIED -- link to long description
977
+ (complements title) --
978
+ name CDATA #IMPLIED -- name of frame for targetting --
979
+ src %URI; #IMPLIED -- source of frame content --
980
+ frameborder (1|0) 1 -- request frame borders? --
981
+ marginwidth %Pixels; #IMPLIED -- margin widths in pixels --
982
+ marginheight %Pixels; #IMPLIED -- margin height in pixels --
983
+ noresize (noresize) #IMPLIED -- allow users to resize frames? --
984
+ scrolling (yes|no|auto) auto -- scrollbar or none --
985
+ >
986
+ ]]>
987
+
988
+ <!ELEMENT IFRAME - - (%flow;)* -- inline subwindow -->
989
+ <!ATTLIST IFRAME
990
+ %coreattrs; -- id, class, style, title --
991
+ longdesc %URI; #IMPLIED -- link to long description
992
+ (complements title) --
993
+ name CDATA #IMPLIED -- name of frame for targetting --
994
+ src %URI; #IMPLIED -- source of frame content --
995
+ frameborder (1|0) 1 -- request frame borders? --
996
+ marginwidth %Pixels; #IMPLIED -- margin widths in pixels --
997
+ marginheight %Pixels; #IMPLIED -- margin height in pixels --
998
+ scrolling (yes|no|auto) auto -- scrollbar or none --
999
+ align %IAlign; #IMPLIED -- vertical or horizontal alignment --
1000
+ height %Length; #IMPLIED -- frame height --
1001
+ width %Length; #IMPLIED -- frame width --
1002
+ >
1003
+
1004
+ <![ %HTML.Frameset; [
1005
+ <!ENTITY % noframes.content "(BODY) -(NOFRAMES)">
1006
+ ]]>
1007
+
1008
+ <!ENTITY % noframes.content "(%flow;)*">
1009
+
1010
+ <!ELEMENT NOFRAMES - - %noframes.content;
1011
+ -- alternate content container for non frame-based rendering -->
1012
+ <!ATTLIST NOFRAMES
1013
+ %attrs; -- %coreattrs, %i18n, %events --
1014
+ >
1015
+
1016
+ <!--================ Document Head =======================================-->
1017
+ <!-- %head.misc; defined earlier on as "SCRIPT|STYLE|META|LINK|OBJECT" -->
1018
+ <!ENTITY % head.content "TITLE & ISINDEX? & BASE?">
1019
+
1020
+ <!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head -->
1021
+ <!ATTLIST HEAD
1022
+ %i18n; -- lang, dir --
1023
+ profile %URI; #IMPLIED -- named dictionary of meta info --
1024
+ >
1025
+
1026
+ <!-- The TITLE element is not considered part of the flow of text.
1027
+ It should be displayed, for example as the page header or
1028
+ window title. Exactly one title is required per document.
1029
+ -->
1030
+ <!ELEMENT TITLE - - (#PCDATA) -(%head.misc;) -- document title -->
1031
+ <!ATTLIST TITLE %i18n>
1032
+
1033
+ <!ELEMENT ISINDEX - O EMPTY -- single line prompt -->
1034
+ <!ATTLIST ISINDEX
1035
+ %coreattrs; -- id, class, style, title --
1036
+ %i18n; -- lang, dir --
1037
+ prompt %Text; #IMPLIED -- prompt message -->
1038
+
1039
+ <!ELEMENT BASE - O EMPTY -- document base URI -->
1040
+ <!ATTLIST BASE
1041
+ href %URI; #IMPLIED -- URI that acts as base URI --
1042
+ target %FrameTarget; #IMPLIED -- render in this frame --
1043
+ >
1044
+
1045
+ <!ELEMENT META - O EMPTY -- generic metainformation -->
1046
+ <!ATTLIST META
1047
+ %i18n; -- lang, dir, for use with content --
1048
+ http-equiv NAME #IMPLIED -- HTTP response header name --
1049
+ name NAME #IMPLIED -- metainformation name --
1050
+ content CDATA #REQUIRED -- associated information --
1051
+ scheme CDATA #IMPLIED -- select form of content --
1052
+ >
1053
+
1054
+ <!ELEMENT STYLE - - %StyleSheet -- style info -->
1055
+ <!ATTLIST STYLE
1056
+ %i18n; -- lang, dir, for use with title --
1057
+ type %ContentType; #REQUIRED -- content type of style language --
1058
+ media %MediaDesc; #IMPLIED -- designed for use with these media --
1059
+ title %Text; #IMPLIED -- advisory title --
1060
+ >
1061
+
1062
+ <!ELEMENT SCRIPT - - %Script; -- script statements -->
1063
+ <!ATTLIST SCRIPT
1064
+ charset %Charset; #IMPLIED -- char encoding of linked resource --
1065
+ type %ContentType; #REQUIRED -- content type of script language --
1066
+ language CDATA #IMPLIED -- predefined script language name --
1067
+ src %URI; #IMPLIED -- URI for an external script --
1068
+ defer (defer) #IMPLIED -- UA may defer execution of script --
1069
+ event CDATA #IMPLIED -- reserved for possible future use --
1070
+ for %URI; #IMPLIED -- reserved for possible future use --
1071
+ >
1072
+
1073
+ <!ELEMENT NOSCRIPT - - (%flow;)*
1074
+ -- alternate content container for non script-based rendering -->
1075
+ <!ATTLIST NOSCRIPT
1076
+ %attrs; -- %coreattrs, %i18n, %events --
1077
+ >
1078
+
1079
+ <!--================ Document Structure ==================================-->
1080
+ <!ENTITY % version "version CDATA #FIXED '%HTML.Version;'">
1081
+
1082
+ <![ %HTML.Frameset; [
1083
+ <!ENTITY % html.content "HEAD, FRAMESET">
1084
+ ]]>
1085
+
1086
+ <!ENTITY % html.content "HEAD, BODY">
1087
+
1088
+ <!ELEMENT HTML O O (%html.content;) -- document root element -->
1089
+ <!ATTLIST HTML
1090
+ %i18n; -- lang, dir --
1091
+ %version;
1092
+ >