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,6 @@
1
+ [egg_info]
2
+ tag_build = dev
3
+ tag_date = true
4
+
5
+ [aliases]
6
+ release = egg_info -RDb ''
@@ -0,0 +1,88 @@
1
+ #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
3
+ """
4
+ Pygments
5
+ ~~~~~~~~
6
+
7
+ Pygments is a syntax highlighting package written in Python.
8
+
9
+ It is a generic syntax highlighter for general use in all kinds of software
10
+ such as forum systems, wikis or other applications that need to prettify
11
+ source code. Highlights are:
12
+
13
+ * a wide range of common languages and markup formats is supported
14
+ * special attention is paid to details, increasing quality by a fair amount
15
+ * support for new languages and formats are added easily
16
+ * a number of output formats, presently HTML, LaTeX, RTF, SVG, all image \
17
+ formats that PIL supports and ANSI sequences
18
+ * it is usable as a command-line tool and as a library
19
+ * ... and it highlights even Brainfuck!
20
+
21
+ The `Pygments tip`_ is installable with ``easy_install Pygments==dev``.
22
+
23
+ .. _Pygments tip:
24
+ http://bitbucket.org/birkenfeld/pygments-main/get/tip.zip#egg=Pygments-dev
25
+
26
+ :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
27
+ :license: BSD, see LICENSE for details.
28
+ """
29
+
30
+ try:
31
+ from setuptools import setup, find_packages
32
+ have_setuptools = True
33
+ except ImportError:
34
+ from distutils.core import setup
35
+ def find_packages():
36
+ return [
37
+ 'pygments',
38
+ 'pygments.lexers',
39
+ 'pygments.formatters',
40
+ 'pygments.styles',
41
+ 'pygments.filters',
42
+ ]
43
+ have_setuptools = False
44
+
45
+ try:
46
+ from distutils.command.build_py import build_py_2to3 as build_py
47
+ except ImportError:
48
+ from distutils.command.build_py import build_py
49
+
50
+ if have_setuptools:
51
+ add_keywords = dict(
52
+ entry_points = {
53
+ 'console_scripts': ['pygmentize = pygments.cmdline:main'],
54
+ },
55
+ )
56
+ else:
57
+ add_keywords = dict(
58
+ scripts = ['pygmentize'],
59
+ )
60
+
61
+ setup(
62
+ name = 'Pygments',
63
+ version = '1.5',
64
+ url = 'http://pygments.org/',
65
+ license = 'BSD License',
66
+ author = 'Georg Brandl',
67
+ author_email = 'georg@python.org',
68
+ description = 'Pygments is a syntax highlighting package written in Python.',
69
+ long_description = __doc__,
70
+ keywords = 'syntax highlighting',
71
+ packages = find_packages(),
72
+ platforms = 'any',
73
+ zip_safe = False,
74
+ include_package_data = True,
75
+ classifiers = [
76
+ 'License :: OSI Approved :: BSD License',
77
+ 'Intended Audience :: Developers',
78
+ 'Intended Audience :: End Users/Desktop',
79
+ 'Intended Audience :: System Administrators',
80
+ 'Development Status :: 5 - Production/Stable',
81
+ 'Programming Language :: Python',
82
+ 'Programming Language :: Python :: 2',
83
+ 'Programming Language :: Python :: 3',
84
+ 'Operating System :: OS Independent',
85
+ ],
86
+ cmdclass = {'build_py': build_py},
87
+ **add_keywords
88
+ )
@@ -0,0 +1,37 @@
1
+ <!--
2
+ This is the HTML 4.0 Frameset DTD, which should be
3
+ used for documents with frames. This DTD is identical
4
+ to the HTML 4.0 Transitional DTD except for the
5
+ content model of the "HTML" element: in frameset
6
+ documents, the "FRAMESET" element replaces the "BODY"
7
+ element.
8
+
9
+ Draft: $Date: 1999/05/02 15:37:15 $
10
+
11
+ Authors:
12
+ Dave Raggett <dsr@w3.org>
13
+ Arnaud Le Hors <lehors@w3.org>
14
+ Ian Jacobs <ij@w3.org>
15
+
16
+ Further information about HTML 4.0 is available at:
17
+
18
+ http://www.w3.org/TR/REC-html40.
19
+ -->
20
+ <!ENTITY % HTML.Version "-//W3C//DTD HTML 4.0 Frameset//EN"
21
+ -- Typical usage:
22
+
23
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
24
+ "http://www.w3.org/TR/REC-html40/frameset.dtd">
25
+ <html>
26
+ <head>
27
+ ...
28
+ </head>
29
+ <frameset>
30
+ ...
31
+ </frameset>
32
+ </html>
33
+ -->
34
+
35
+ <!ENTITY % HTML.Frameset "INCLUDE">
36
+ <!ENTITY % HTML4.dtd PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
37
+ %HTML4.dtd;
@@ -0,0 +1,869 @@
1
+ <!--
2
+ This is HTML 4.0 Strict DTD, which excludes the presentation
3
+ attributes and elements that W3C expects to phase out as
4
+ 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
+ <!--
25
+ Typical usage:
26
+
27
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
28
+ "http://www.w3.org/TR/REC-html40/strict.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 Transitional HTML 4.0 DTD is:
42
+
43
+ "-//W3C//DTD HTML 4.0 Transitional//EN
44
+
45
+ and its URI is:
46
+
47
+ http://www.w3.org/TR/REC-html40/loose.dtd
48
+
49
+ If you are writing a document that includes frames, use
50
+ the following FPI:
51
+
52
+ "-//W3C//DTD HTML 4.0 Frameset//EN"
53
+
54
+ with the URI:
55
+
56
+ http://www.w3.org/TR/REC-html40/frameset.dtd
57
+
58
+ The following URIs are supported in relation to HTML 4.0
59
+
60
+ "http://www.w3.org/TR/REC-html40/strict.dtd" (Strict DTD)
61
+ "http://www.w3.org/TR/REC-html40/loose.dtd" (Loose DTD)
62
+ "http://www.w3.org/TR/REC-html40/frameset.dtd" (Frameset DTD)
63
+ "http://www.w3.org/TR/REC-html40/HTMLlat1.ent" (Latin-1 entities)
64
+ "http://www.w3.org/TR/REC-html40/HTMLsymbol.ent" (Symbol entities)
65
+ "http://www.w3.org/TR/REC-html40/HTMLspecial.ent" (Special entities)
66
+
67
+ These URIs point to the latest version of each file. To reference
68
+ this specific revision use the following URIs:
69
+
70
+ "http://www.w3.org/TR/REC-html40-971218/strict.dtd"
71
+ "http://www.w3.org/TR/REC-html40-971218/loose.dtd"
72
+ "http://www.w3.org/TR/REC-html40-971218/frameset.dtd"
73
+ "http://www.w3.org/TR/REC-html40-971218/HTMLlat1.ent"
74
+ "http://www.w3.org/TR/REC-html40-971218/HTMLsymbol.ent"
75
+ "http://www.w3.org/TR/REC-html40-971218/HTMLspecial.ent"
76
+
77
+ -->
78
+
79
+ <!--================== Imported Names ====================================-->
80
+
81
+ <!ENTITY % ContentType "CDATA"
82
+ -- media type, as per [RFC2045]
83
+ -->
84
+
85
+ <!ENTITY % ContentTypes "CDATA"
86
+ -- comma-separated list of media types, as per [RFC2045]
87
+ -->
88
+
89
+ <!ENTITY % Charset "CDATA"
90
+ -- a character encoding, as per [RFC2045]
91
+ -->
92
+
93
+ <!ENTITY % Charsets "CDATA"
94
+ -- a space separated list of character encodings, as per [RFC2045]
95
+ -->
96
+
97
+ <!ENTITY % LanguageCode "NAME"
98
+ -- a language code, as per [RFC1766]
99
+ -->
100
+
101
+ <!ENTITY % Character "CDATA"
102
+ -- a single character from [ISO10646]
103
+ -->
104
+
105
+ <!ENTITY % LinkTypes "CDATA"
106
+ -- space-separated list of link types
107
+ -->
108
+
109
+ <!ENTITY % MediaDesc "CDATA"
110
+ -- single or comma-separated list of media descriptors
111
+ -->
112
+
113
+ <!ENTITY % URI "CDATA"
114
+ -- a Uniform Resource Identifier,
115
+ see [URI]
116
+ -->
117
+
118
+ <!ENTITY % Datetime "CDATA" -- date and time information. ISO date format -->
119
+
120
+
121
+ <!ENTITY % Script "CDATA" -- script expression -->
122
+
123
+ <!ENTITY % StyleSheet "CDATA" -- style sheet data -->
124
+
125
+
126
+
127
+ <!ENTITY % Text "CDATA">
128
+
129
+
130
+ <!-- Parameter Entities -->
131
+
132
+ <!ENTITY % head.misc "SCRIPT|STYLE|META|LINK|OBJECT" -- repeatable head elements -->
133
+
134
+ <!ENTITY % heading "H1|H2|H3|H4|H5|H6">
135
+
136
+ <!ENTITY % list "UL | OL">
137
+
138
+ <!ENTITY % preformatted "PRE">
139
+
140
+
141
+ <!--================ Character mnemonic entities =========================-->
142
+
143
+ <!ENTITY % HTMLlat1 PUBLIC
144
+ "-//W3C//ENTITIES Latin1//EN//HTML"
145
+ "http://www.w3.org/TR/REC-html40-971218/HTMLlat1.ent">
146
+ %HTMLlat1;
147
+
148
+ <!ENTITY % HTMLsymbol PUBLIC
149
+ "-//W3C//ENTITIES Symbols//EN//HTML"
150
+ "http://www.w3.org/TR/REC-html40-971218/HTMLsymbol.ent">
151
+ %HTMLsymbol;
152
+
153
+ <!ENTITY % HTMLspecial PUBLIC
154
+ "-//W3C//ENTITIES Special//EN//HTML"
155
+ "http://www.w3.org/TR/REC-html40-971218/HTMLspecial.ent">
156
+ %HTMLspecial;
157
+ <!--=================== Generic Attributes ===============================-->
158
+
159
+ <!ENTITY % coreattrs
160
+ "id ID #IMPLIED -- document-wide unique id --
161
+ class CDATA #IMPLIED -- space separated list of classes --
162
+ style %StyleSheet; #IMPLIED -- associated style info --
163
+ title %Text; #IMPLIED -- advisory title/amplification --"
164
+ >
165
+
166
+ <!ENTITY % i18n
167
+ "lang %LanguageCode; #IMPLIED -- language code --
168
+ dir (ltr|rtl) #IMPLIED -- direction for weak/neutral text --"
169
+ >
170
+
171
+ <!ENTITY % events
172
+ "onclick %Script; #IMPLIED -- a pointer button was clicked --
173
+ ondblclick %Script; #IMPLIED -- a pointer button was double clicked--
174
+ onmousedown %Script; #IMPLIED -- a pointer button was pressed down --
175
+ onmouseup %Script; #IMPLIED -- a pointer button was released --
176
+ onmouseover %Script; #IMPLIED -- a pointer was moved onto --
177
+ onmousemove %Script; #IMPLIED -- a pointer was moved within --
178
+ onmouseout %Script; #IMPLIED -- a pointer was moved away --
179
+ onkeypress %Script; #IMPLIED -- a key was pressed and released --
180
+ onkeydown %Script; #IMPLIED -- a key was pressed down --
181
+ onkeyup %Script; #IMPLIED -- a key was released --"
182
+ >
183
+
184
+ <!-- Reserved Feature Switch -->
185
+ <!ENTITY % HTML.Reserved "IGNORE">
186
+
187
+ <!-- The following attributes are reserved for possible future use -->
188
+ <![ %HTML.Reserved; [
189
+ <!ENTITY % reserved
190
+ "datasrc %URI; #IMPLIED -- a single or tabular Data Source --
191
+ datafld CDATA #IMPLIED -- the property or column name --
192
+ dataformatas (plaintext|html) plaintext -- text or html --"
193
+ >
194
+ ]]>
195
+
196
+ <!ENTITY % reserved "">
197
+
198
+ <!ENTITY % attrs "%coreattrs; %i18n; %events;">
199
+
200
+
201
+ <!--=================== Text Markup ======================================-->
202
+
203
+ <!ENTITY % fontstyle
204
+ "TT | I | B | BIG | SMALL">
205
+
206
+ <!ENTITY % phrase "EM | STRONG | DFN | CODE |
207
+ SAMP | KBD | VAR | CITE | ABBR | ACRONYM" >
208
+
209
+ <!ENTITY % special
210
+ "A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO">
211
+
212
+ <!ENTITY % formctrl "INPUT | SELECT | TEXTAREA | LABEL | BUTTON">
213
+
214
+ <!-- %inline; covers inline or "text-level" elements -->
215
+ <!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl;">
216
+
217
+ <!ELEMENT (%fontstyle;|%phrase;) - - (%inline;)*>
218
+ <!ATTLIST (%fontstyle;|%phrase;)
219
+ %attrs; -- %coreattrs, %i18n, %events --
220
+ >
221
+
222
+ <!ELEMENT (SUB|SUP) - - (%inline;)* -- subscript, superscript -->
223
+ <!ATTLIST (SUB|SUP)
224
+ %attrs; -- %coreattrs, %i18n, %events --
225
+ >
226
+
227
+ <!ELEMENT SPAN - - (%inline;)* -- generic language/style container -->
228
+ <!ATTLIST SPAN
229
+ %attrs; -- %coreattrs, %i18n, %events --
230
+ %reserved; -- reserved for possible future use --
231
+ >
232
+
233
+ <!ELEMENT BDO - - (%inline;)* -- I18N BiDi over-ride -->
234
+ <!ATTLIST BDO
235
+ %coreattrs; -- id, class, style, title --
236
+ lang %LanguageCode; #IMPLIED -- language code --
237
+ dir (ltr|rtl) #REQUIRED -- directionality --
238
+ >
239
+
240
+
241
+ <!ELEMENT BR - O EMPTY -- forced line break -->
242
+ <!ATTLIST BR
243
+ %coreattrs; -- id, class, style, title --
244
+ >
245
+
246
+ <!--================== HTML content models ===============================-->
247
+
248
+ <!--
249
+ HTML has two basic content models:
250
+
251
+ %inline; character level elements and text strings
252
+ %block; block-like elements e.g. paragraphs and lists
253
+ -->
254
+
255
+ <!ENTITY % block
256
+ "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
257
+ BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">
258
+
259
+ <!ENTITY % flow "%block; | %inline;">
260
+
261
+ <!--=================== Document Body ====================================-->
262
+
263
+ <!ELEMENT BODY O O (%block;|SCRIPT)+ +(INS|DEL) -- document body -->
264
+ <!ATTLIST BODY
265
+ %attrs; -- %coreattrs, %i18n, %events --
266
+ onload %Script; #IMPLIED -- the document has been loaded --
267
+ onunload %Script; #IMPLIED -- the document has been removed --
268
+ >
269
+
270
+ <!ELEMENT ADDRESS - - (%inline;)* -- information on author -->
271
+ <!ATTLIST ADDRESS
272
+ %attrs; -- %coreattrs, %i18n, %events --
273
+ >
274
+
275
+ <!ELEMENT DIV - - (%flow;)* -- generic language/style container -->
276
+ <!ATTLIST DIV
277
+ %attrs; -- %coreattrs, %i18n, %events --
278
+ %reserved; -- reserved for possible future use --
279
+ >
280
+
281
+
282
+ <!--================== The Anchor Element ================================-->
283
+
284
+ <!ENTITY % Shape "(rect|circle|poly|default)">
285
+ <!ENTITY % Coords "CDATA" -- comma separated list of lengths -->
286
+
287
+ <!ELEMENT A - - (%inline;)* -(A) -- anchor -->
288
+ <!ATTLIST A
289
+ %attrs; -- %coreattrs, %i18n, %events --
290
+ charset %Charset; #IMPLIED -- char encoding of linked resource --
291
+ type %ContentType; #IMPLIED -- advisory content type --
292
+ name CDATA #IMPLIED -- named link end --
293
+ href %URI; #IMPLIED -- URI for linked resource --
294
+ hreflang %LanguageCode; #IMPLIED -- language code --
295
+ rel %LinkTypes; #IMPLIED -- forward link types --
296
+ rev %LinkTypes; #IMPLIED -- reverse link types --
297
+ accesskey %Character; #IMPLIED -- accessibility key character --
298
+ shape %Shape; rect -- for use with client-side image maps --
299
+ coords %Coords; #IMPLIED -- for use with client-side image maps --
300
+ tabindex NUMBER #IMPLIED -- position in tabbing order --
301
+ onfocus %Script; #IMPLIED -- the element got the focus --
302
+ onblur %Script; #IMPLIED -- the element lost the focus --
303
+ >
304
+
305
+ <!--================== Client-side image maps ============================-->
306
+
307
+ <!-- These can be placed in the same document or grouped in a
308
+ separate document although this isn't yet widely supported -->
309
+
310
+ <!ELEMENT MAP - - ((%block;)+ | AREA+) -- client-side image map -->
311
+ <!ATTLIST MAP
312
+ %attrs; -- %coreattrs, %i18n, %events --
313
+ name CDATA #REQUIRED -- for reference by usemap --
314
+ >
315
+
316
+ <!ELEMENT AREA - O EMPTY -- client-side image map area -->
317
+ <!ATTLIST AREA
318
+ %attrs; -- %coreattrs, %i18n, %events --
319
+ shape %Shape; rect -- controls interpretation of coords --
320
+ coords %Coords; #IMPLIED -- comma separated list of lengths --
321
+ href %URI; #IMPLIED -- URI for linked resource --
322
+ nohref (nohref) #IMPLIED -- this region has no action --
323
+ alt %Text; #REQUIRED -- short description --
324
+ tabindex NUMBER #IMPLIED -- position in tabbing order --
325
+ accesskey %Character; #IMPLIED -- accessibility key character --
326
+ onfocus %Script; #IMPLIED -- the element got the focus --
327
+ onblur %Script; #IMPLIED -- the element lost the focus --
328
+ >
329
+
330
+ <!--================== The LINK Element ==================================-->
331
+
332
+ <!--
333
+ Relationship values can be used in principle:
334
+
335
+ a) for document specific toolbars/menus when used
336
+ with the LINK element in document head e.g.
337
+ start, contents, previous, next, index, end, help
338
+ b) to link to a separate style sheet (rel=stylesheet)
339
+ c) to make a link to a script (rel=script)
340
+ d) by stylesheets to control how collections of
341
+ html nodes are rendered into printed documents
342
+ e) to make a link to a printable version of this document
343
+ e.g. a postscript or pdf version (rel=alternate media=print)
344
+ -->
345
+
346
+ <!ELEMENT LINK - O EMPTY -- a media-independent link -->
347
+ <!ATTLIST LINK
348
+ %attrs; -- %coreattrs, %i18n, %events --
349
+ charset %Charset; #IMPLIED -- char encoding of linked resource --
350
+ href %URI; #IMPLIED -- URI for linked resource --
351
+ hreflang %LanguageCode; #IMPLIED -- language code --
352
+ type %ContentType; #IMPLIED -- advisory content type --
353
+ rel %LinkTypes; #IMPLIED -- forward link types --
354
+ rev %LinkTypes; #IMPLIED -- reverse link types --
355
+ media %MediaDesc; #IMPLIED -- for rendering on these media --
356
+ >
357
+
358
+ <!--=================== Images ===========================================-->
359
+
360
+ <!-- Length defined in strict DTD for cellpadding/cellspacing -->
361
+ <!ENTITY % Length "CDATA" -- nn for pixels or nn% for percentage length -->
362
+ <!ENTITY % MultiLength "CDATA" -- pixel, percentage, or relative -->
363
+
364
+ <!ENTITY % MultiLengths "CDATA" -- comma-separated list of MultiLength -->
365
+
366
+ <!ENTITY % Pixels "CDATA" -- integer representing length in pixels -->
367
+
368
+
369
+ <!-- To avoid problems with text-only UAs as well as
370
+ to make image content understandable and navigable
371
+ to users of non-visual UAs, you need to provide
372
+ a description with ALT, and avoid server-side image maps -->
373
+ <!ELEMENT IMG - O EMPTY -- Embedded image -->
374
+ <!ATTLIST IMG
375
+ %attrs; -- %coreattrs, %i18n, %events --
376
+ src %URI; #REQUIRED -- URI of image to embed --
377
+ alt %Text; #REQUIRED -- short description --
378
+ longdesc %URI; #IMPLIED -- link to long description
379
+ (complements alt) --
380
+ height %Length; #IMPLIED -- override height --
381
+ width %Length; #IMPLIED -- override width --
382
+ usemap %URI; #IMPLIED -- use client-side image map --
383
+ ismap (ismap) #IMPLIED -- use server-side image map --
384
+ >
385
+
386
+ <!-- USEMAP points to a MAP element which may be in this document
387
+ or an external document, although the latter is not widely supported -->
388
+
389
+ <!--==================== OBJECT ======================================-->
390
+ <!--
391
+ OBJECT is used to embed objects as part of HTML pages
392
+ PARAM elements should precede other content. SGML mixed content
393
+ model technicality precludes specifying this formally ...
394
+ -->
395
+
396
+ <!ELEMENT OBJECT - - (PARAM | %flow;)*
397
+ -- generic embedded object -->
398
+ <!ATTLIST OBJECT
399
+ %attrs; -- %coreattrs, %i18n, %events --
400
+ declare (declare) #IMPLIED -- declare but don't instantiate flag --
401
+ classid %URI; #IMPLIED -- identifies an implementation --
402
+ codebase %URI; #IMPLIED -- base URI for classid, data, archive--
403
+ data %URI; #IMPLIED -- reference to object's data --
404
+ type %ContentType; #IMPLIED -- content type for data --
405
+ codetype %ContentType; #IMPLIED -- content type for code --
406
+ archive %URI; #IMPLIED -- space separated archive list --
407
+ standby %Text; #IMPLIED -- message to show while loading --
408
+ height %Length; #IMPLIED -- override height --
409
+ width %Length; #IMPLIED -- override width --
410
+ usemap %URI; #IMPLIED -- use client-side image map --
411
+ name CDATA #IMPLIED -- submit as part of form --
412
+ tabindex NUMBER #IMPLIED -- position in tabbing order --
413
+ %reserved; -- reserved for possible future use --
414
+ >
415
+
416
+ <!ELEMENT PARAM - O EMPTY -- named property value -->
417
+ <!ATTLIST PARAM
418
+ id ID #IMPLIED -- document-wide unique id --
419
+ name CDATA #REQUIRED -- property name --
420
+ value CDATA #IMPLIED -- property value --
421
+ valuetype (DATA|REF|OBJECT) DATA -- How to interpret value --
422
+ type %ContentType; #IMPLIED -- content type for value
423
+ when valuetype=ref --
424
+ >
425
+
426
+
427
+ <!--=================== Horizontal Rule ==================================-->
428
+
429
+ <!ELEMENT HR - O EMPTY -- horizontal rule -->
430
+ <!ATTLIST HR
431
+ %coreattrs; -- id, class, style, title --
432
+ %events;
433
+ >
434
+
435
+ <!--=================== Paragraphs =======================================-->
436
+
437
+ <!ELEMENT P - O (%inline;)* -- paragraph -->
438
+ <!ATTLIST P
439
+ %attrs; -- %coreattrs, %i18n, %events --
440
+ >
441
+
442
+ <!--=================== Headings =========================================-->
443
+
444
+ <!--
445
+ There are six levels of headings from H1 (the most important)
446
+ to H6 (the least important).
447
+ -->
448
+
449
+ <!ELEMENT (%heading;) - - (%inline;)* -- heading -->
450
+ <!ATTLIST (%heading;)
451
+ %attrs; -- %coreattrs, %i18n, %events --
452
+ >
453
+
454
+ <!--=================== Preformatted Text ================================-->
455
+
456
+ <!-- excludes markup for images and changes in font size -->
457
+ <!ENTITY % pre.exclusion "IMG|OBJECT|BIG|SMALL|SUB|SUP">
458
+
459
+ <!ELEMENT PRE - - (%inline;)* -(%pre.exclusion;) -- preformatted text -->
460
+ <!ATTLIST PRE
461
+ %attrs; -- %coreattrs, %i18n, %events --
462
+ >
463
+
464
+ <!--===================== Inline Quotes ==================================-->
465
+
466
+ <!ELEMENT Q - - (%inline;)* -- short inline quotation -->
467
+ <!ATTLIST Q
468
+ %attrs; -- %coreattrs, %i18n, %events --
469
+ cite %URI; #IMPLIED -- URI for source document or msg --
470
+ >
471
+
472
+ <!--=================== Block-like Quotes ================================-->
473
+
474
+ <!ELEMENT BLOCKQUOTE - - (%block;|SCRIPT)+ -- long quotation -->
475
+ <!ATTLIST BLOCKQUOTE
476
+ %attrs; -- %coreattrs, %i18n, %events --
477
+ cite %URI; #IMPLIED -- URI for source document or msg --
478
+ >
479
+
480
+ <!--=================== Inserted/Deleted Text ============================-->
481
+
482
+
483
+ <!-- INS/DEL are handled by inclusion on BODY -->
484
+ <!ELEMENT (INS|DEL) - - (%flow;)* -- inserted text, deleted text -->
485
+ <!ATTLIST (INS|DEL)
486
+ %attrs; -- %coreattrs, %i18n, %events --
487
+ cite %URI; #IMPLIED -- info on reason for change --
488
+ datetime %Datetime; #IMPLIED -- date and time of change --
489
+ >
490
+
491
+ <!--=================== Lists ============================================-->
492
+
493
+ <!-- definition lists - DT for term, DD for its definition -->
494
+
495
+ <!ELEMENT DL - - (DT|DD)+ -- definition list -->
496
+ <!ATTLIST DL
497
+ %attrs; -- %coreattrs, %i18n, %events --
498
+ >
499
+
500
+ <!ELEMENT DT - O (%inline;)* -- definition term -->
501
+ <!ELEMENT DD - O (%flow;)* -- definition description -->
502
+ <!ATTLIST (DT|DD)
503
+ %attrs; -- %coreattrs, %i18n, %events --
504
+ >
505
+
506
+
507
+ <!ELEMENT OL - - (LI)+ -- ordered list -->
508
+ <!ATTLIST OL
509
+ %attrs; -- %coreattrs, %i18n, %events --
510
+ >
511
+
512
+ <!-- Unordered Lists (UL) bullet styles -->
513
+ <!ELEMENT UL - - (LI)+ -- unordered list -->
514
+ <!ATTLIST UL
515
+ %attrs; -- %coreattrs, %i18n, %events --
516
+ >
517
+
518
+
519
+
520
+ <!ELEMENT LI - O (%flow;)* -- list item -->
521
+ <!ATTLIST LI
522
+ %attrs; -- %coreattrs, %i18n, %events --
523
+ >
524
+
525
+ <!--================ Forms ===============================================-->
526
+ <!ELEMENT FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form -->
527
+ <!ATTLIST FORM
528
+ %attrs; -- %coreattrs, %i18n, %events --
529
+ action %URI; #REQUIRED -- server-side form handler --
530
+ method (GET|POST) GET -- HTTP method used to submit the form--
531
+ enctype %ContentType; "application/x-www-form-urlencoded"
532
+ onsubmit %Script; #IMPLIED -- the form was submitted --
533
+ onreset %Script; #IMPLIED -- the form was reset --
534
+ accept-charset %Charsets; #IMPLIED -- list of supported charsets --
535
+ >
536
+
537
+ <!-- Each label must not contain more than ONE field -->
538
+ <!ELEMENT LABEL - - (%inline;)* -(LABEL) -- form field label text -->
539
+ <!ATTLIST LABEL
540
+ %attrs; -- %coreattrs, %i18n, %events --
541
+ for IDREF #IMPLIED -- matches field ID value --
542
+ accesskey %Character; #IMPLIED -- accessibility key character --
543
+ onfocus %Script; #IMPLIED -- the element got the focus --
544
+ onblur %Script; #IMPLIED -- the element lost the focus --
545
+ >
546
+
547
+ <!ENTITY % InputType
548
+ "(TEXT | PASSWORD | CHECKBOX |
549
+ RADIO | SUBMIT | RESET |
550
+ FILE | HIDDEN | IMAGE | BUTTON)"
551
+ >
552
+
553
+ <!-- attribute name required for all but submit & reset -->
554
+ <!ELEMENT INPUT - O EMPTY -- form control -->
555
+ <!ATTLIST INPUT
556
+ %attrs; -- %coreattrs, %i18n, %events --
557
+ type %InputType; TEXT -- what kind of widget is needed --
558
+ name CDATA #IMPLIED -- submit as part of form --
559
+ value CDATA #IMPLIED -- required for radio and checkboxes --
560
+ checked (checked) #IMPLIED -- for radio buttons and check boxes --
561
+ disabled (disabled) #IMPLIED -- unavailable in this context --
562
+ readonly (readonly) #IMPLIED -- for text and passwd --
563
+ size CDATA #IMPLIED -- specific to each type of field --
564
+ maxlength NUMBER #IMPLIED -- max chars for text fields --
565
+ src %URI; #IMPLIED -- for fields with images --
566
+ alt CDATA #IMPLIED -- short description --
567
+ usemap %URI; #IMPLIED -- use client-side image map --
568
+ tabindex NUMBER #IMPLIED -- position in tabbing order --
569
+ accesskey %Character; #IMPLIED -- accessibility key character --
570
+ onfocus %Script; #IMPLIED -- the element got the focus --
571
+ onblur %Script; #IMPLIED -- the element lost the focus --
572
+ onselect %Script; #IMPLIED -- some text was selected --
573
+ onchange %Script; #IMPLIED -- the element value was changed --
574
+ accept %ContentTypes; #IMPLIED -- list of MIME types for file upload --
575
+ %reserved; -- reserved for possible future use --
576
+ >
577
+
578
+ <!ELEMENT SELECT - - (OPTGROUP|OPTION)+ -- option selector -->
579
+ <!ATTLIST SELECT
580
+ %attrs; -- %coreattrs, %i18n, %events --
581
+ name CDATA #IMPLIED -- field name --
582
+ size NUMBER #IMPLIED -- rows visible --
583
+ multiple (multiple) #IMPLIED -- default is single selection --
584
+ disabled (disabled) #IMPLIED -- unavailable in this context --
585
+ tabindex NUMBER #IMPLIED -- position in tabbing order --
586
+ onfocus %Script; #IMPLIED -- the element got the focus --
587
+ onblur %Script; #IMPLIED -- the element lost the focus --
588
+ onchange %Script; #IMPLIED -- the element value was changed --
589
+ %reserved; -- reserved for possible future use --
590
+ >
591
+
592
+ <!ELEMENT OPTGROUP - - (OPTION)+ -- option group -->
593
+ <!ATTLIST OPTGROUP
594
+ %attrs; -- %coreattrs, %i18n, %events --
595
+ disabled (disabled) #IMPLIED -- unavailable in this context --
596
+ label %Text; #REQUIRED -- for use in hierarchical menus --
597
+ >
598
+
599
+ <!ELEMENT OPTION - O (#PCDATA) -- selectable choice -->
600
+ <!ATTLIST OPTION
601
+ %attrs; -- %coreattrs, %i18n, %events --
602
+ selected (selected) #IMPLIED
603
+ disabled (disabled) #IMPLIED -- unavailable in this context --
604
+ label %Text; #IMPLIED -- for use in hierarchical menus --
605
+ value CDATA #IMPLIED -- defaults to element content --
606
+ >
607
+
608
+ <!ELEMENT TEXTAREA - - (#PCDATA) -- multi-line text field -->
609
+ <!ATTLIST TEXTAREA
610
+ %attrs; -- %coreattrs, %i18n, %events --
611
+ name CDATA #IMPLIED
612
+ rows NUMBER #REQUIRED
613
+ cols NUMBER #REQUIRED
614
+ disabled (disabled) #IMPLIED -- unavailable in this context --
615
+ readonly (readonly) #IMPLIED
616
+ tabindex NUMBER #IMPLIED -- position in tabbing order --
617
+ accesskey %Character; #IMPLIED -- accessibility key character --
618
+ onfocus %Script; #IMPLIED -- the element got the focus --
619
+ onblur %Script; #IMPLIED -- the element lost the focus --
620
+ onselect %Script; #IMPLIED -- some text was selected --
621
+ onchange %Script; #IMPLIED -- the element value was changed --
622
+ %reserved; -- reserved for possible future use --
623
+ >
624
+
625
+ <!--
626
+ #PCDATA is to solve the mixed content problem,
627
+ per specification only whitespace is allowed there!
628
+ -->
629
+ <!ELEMENT FIELDSET - - (#PCDATA,LEGEND,(%flow;)*) -- form control group -->
630
+ <!ATTLIST FIELDSET
631
+ %attrs; -- %coreattrs, %i18n, %events --
632
+ >
633
+
634
+ <!ELEMENT LEGEND - - (%inline;)* -- fieldset legend -->
635
+ <!ENTITY % LAlign "(top|bottom|left|right)">
636
+
637
+ <!ATTLIST LEGEND
638
+ %attrs; -- %coreattrs, %i18n, %events --
639
+ accesskey %Character; #IMPLIED -- accessibility key character --
640
+ >
641
+
642
+ <!ELEMENT BUTTON - -
643
+ (%flow;)* -(A|%formctrl;|FORM|FIELDSET)
644
+ -- push button -->
645
+ <!ATTLIST BUTTON
646
+ %attrs; -- %coreattrs, %i18n, %events --
647
+ name CDATA #IMPLIED
648
+ value CDATA #IMPLIED -- sent to server when submitted --
649
+ type (button|submit|reset) submit -- for use as form button --
650
+ disabled (disabled) #IMPLIED -- unavailable in this context --
651
+ tabindex NUMBER #IMPLIED -- position in tabbing order --
652
+ accesskey %Character; #IMPLIED -- accessibility key character --
653
+ onfocus %Script; #IMPLIED -- the element got the focus --
654
+ onblur %Script; #IMPLIED -- the element lost the focus --
655
+ %reserved; -- reserved for possible future use --
656
+ >
657
+
658
+ <!--======================= Tables =======================================-->
659
+
660
+ <!-- IETF HTML table standard, see [RFC1942] -->
661
+
662
+ <!--
663
+ The BORDER attribute sets the thickness of the frame around the
664
+ table. The default units are screen pixels.
665
+
666
+ The FRAME attribute specifies which parts of the frame around
667
+ the table should be rendered. The values are not the same as
668
+ CALS to avoid a name clash with the VALIGN attribute.
669
+
670
+ The value "border" is included for backwards compatibility with
671
+ <TABLE BORDER> which yields frame=border and border=implied
672
+ For <TABLE BORDER=1> you get border=1 and frame=implied. In this
673
+ case, it is appropriate to treat this as frame=border for backwards
674
+ compatibility with deployed browsers.
675
+ -->
676
+ <!ENTITY % TFrame "(void|above|below|hsides|lhs|rhs|vsides|box|border)">
677
+
678
+ <!--
679
+ The RULES attribute defines which rules to draw between cells:
680
+
681
+ If RULES is absent then assume:
682
+ "none" if BORDER is absent or BORDER=0 otherwise "all"
683
+ -->
684
+
685
+ <!ENTITY % TRules "(none | groups | rows | cols | all)">
686
+
687
+ <!-- horizontal placement of table relative to document -->
688
+ <!ENTITY % TAlign "(left|center|right)">
689
+
690
+ <!-- horizontal alignment attributes for cell contents -->
691
+ <!ENTITY % cellhalign
692
+ "align (left|center|right|justify|char) #IMPLIED
693
+ char %Character; #IMPLIED -- alignment char, e.g. char=':' --
694
+ charoff %Length; #IMPLIED -- offset for alignment char --"
695
+ >
696
+
697
+ <!-- vertical alignment attributes for cell contents -->
698
+ <!ENTITY % cellvalign
699
+ "valign (top|middle|bottom|baseline) #IMPLIED"
700
+ >
701
+
702
+ <!ELEMENT TABLE - -
703
+ (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>
704
+ <!ELEMENT CAPTION - - (%inline;)* -- table caption -->
705
+ <!ELEMENT THEAD - O (TR)+ -- table header -->
706
+ <!ELEMENT TFOOT - O (TR)+ -- table footer -->
707
+ <!ELEMENT TBODY O O (TR)+ -- table body -->
708
+ <!ELEMENT COLGROUP - O (col)* -- table column group -->
709
+ <!ELEMENT COL - O EMPTY -- table column -->
710
+ <!ELEMENT TR - O (TH|TD)+ -- table row -->
711
+ <!ELEMENT (TH|TD) - O (%flow;)* -- table header cell, table data cell-->
712
+
713
+ <!ATTLIST TABLE -- table element --
714
+ %attrs; -- %coreattrs, %i18n, %events --
715
+ summary %Text; #IMPLIED -- purpose/structure for speech output--
716
+ width %Length; #IMPLIED -- table width --
717
+ border %Pixels; #IMPLIED -- controls frame width around table --
718
+ frame %TFrame; #IMPLIED -- which parts of frame to render --
719
+ rules %TRules; #IMPLIED -- rulings between rows and cols --
720
+ cellspacing %Length; #IMPLIED -- spacing between cells --
721
+ cellpadding %Length; #IMPLIED -- spacing within cells --
722
+ %reserved; -- reserved for possible future use --
723
+ datapagesize CDATA #IMPLIED -- reserved for possible future use --
724
+ >
725
+
726
+ <!ENTITY % CAlign "(top|bottom|left|right)">
727
+
728
+ <!ATTLIST CAPTION
729
+ %attrs; -- %coreattrs, %i18n, %events --
730
+ >
731
+
732
+ <!--
733
+ COLGROUP groups a set of COL elements. It allows you to group
734
+ several semantically related columns together.
735
+ -->
736
+ <!ATTLIST COLGROUP
737
+ %attrs; -- %coreattrs, %i18n, %events --
738
+ span NUMBER 1 -- default number of columns in group --
739
+ width %MultiLength; #IMPLIED -- default width for enclosed COLs --
740
+ %cellhalign; -- horizontal alignment in cells --
741
+ %cellvalign; -- vertical alignment in cells --
742
+ >
743
+
744
+ <!--
745
+ COL elements define the alignment properties for cells in
746
+ one or more columns.
747
+
748
+ The WIDTH attribute specifies the width of the columns, e.g.
749
+
750
+ width=64 width in screen pixels
751
+ width=0.5* relative width of 0.5
752
+
753
+ The SPAN attribute causes the attributes of one
754
+ COL element to apply to more than one column.
755
+ -->
756
+ <!ATTLIST COL -- column groups and properties --
757
+ %attrs; -- %coreattrs, %i18n, %events --
758
+ span NUMBER 1 -- COL attributes affect N columns --
759
+ width %MultiLength; #IMPLIED -- column width specification --
760
+ %cellhalign; -- horizontal alignment in cells --
761
+ %cellvalign; -- vertical alignment in cells --
762
+ >
763
+
764
+ <!--
765
+ Use THEAD to duplicate headers when breaking table
766
+ across page boundaries, or for static headers when
767
+ TBODY sections are rendered in scrolling panel.
768
+
769
+ Use TFOOT to duplicate footers when breaking table
770
+ across page boundaries, or for static footers when
771
+ TBODY sections are rendered in scrolling panel.
772
+
773
+ Use multiple TBODY sections when rules are needed
774
+ between groups of table rows.
775
+ -->
776
+ <!ATTLIST (THEAD|TBODY|TFOOT) -- table section --
777
+ %attrs; -- %coreattrs, %i18n, %events --
778
+ %cellhalign; -- horizontal alignment in cells --
779
+ %cellvalign; -- vertical alignment in cells --
780
+ >
781
+
782
+ <!ATTLIST TR -- table row --
783
+ %attrs; -- %coreattrs, %i18n, %events --
784
+ %cellhalign; -- horizontal alignment in cells --
785
+ %cellvalign; -- vertical alignment in cells --
786
+ >
787
+
788
+
789
+ <!-- Scope is simpler than axes attribute for common tables -->
790
+ <!ENTITY % Scope "(row|col|rowgroup|colgroup)">
791
+
792
+ <!-- TH is for headers, TD for data, but for cells acting as both use TD -->
793
+ <!ATTLIST (TH|TD) -- header or data cell --
794
+ %attrs; -- %coreattrs, %i18n, %events --
795
+ abbr %Text; #IMPLIED -- abbreviation for header cell --
796
+ axis CDATA #IMPLIED -- names groups of related headers--
797
+ headers IDREFS #IMPLIED -- list of id's for header cells --
798
+ scope %Scope; #IMPLIED -- scope covered by header cells --
799
+ rowspan NUMBER 1 -- number of rows spanned by cell --
800
+ colspan NUMBER 1 -- number of cols spanned by cell --
801
+ %cellhalign; -- horizontal alignment in cells --
802
+ %cellvalign; -- vertical alignment in cells --
803
+ >
804
+
805
+
806
+ <!--================ Document Head =======================================-->
807
+ <!-- %head.misc; defined earlier on as "SCRIPT|STYLE|META|LINK|OBJECT" -->
808
+ <!ENTITY % head.content "TITLE & BASE?">
809
+
810
+ <!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head -->
811
+ <!ATTLIST HEAD
812
+ %i18n; -- lang, dir --
813
+ profile %URI; #IMPLIED -- named dictionary of meta info --
814
+ >
815
+
816
+ <!-- The TITLE element is not considered part of the flow of text.
817
+ It should be displayed, for example as the page header or
818
+ window title. Exactly one title is required per document.
819
+ -->
820
+ <!ELEMENT TITLE - - (#PCDATA) -(%head.misc;) -- document title -->
821
+ <!ATTLIST TITLE %i18n>
822
+
823
+
824
+ <!ELEMENT BASE - O EMPTY -- document base URI -->
825
+ <!ATTLIST BASE
826
+ href %URI; #REQUIRED -- URI that acts as base URI --
827
+ >
828
+
829
+ <!ELEMENT META - O EMPTY -- generic metainformation -->
830
+ <!ATTLIST META
831
+ %i18n; -- lang, dir, for use with content --
832
+ http-equiv NAME #IMPLIED -- HTTP response header name --
833
+ name NAME #IMPLIED -- metainformation name --
834
+ content CDATA #REQUIRED -- associated information --
835
+ scheme CDATA #IMPLIED -- select form of content --
836
+ >
837
+
838
+ <!ELEMENT STYLE - - %StyleSheet -- style info -->
839
+ <!ATTLIST STYLE
840
+ %i18n; -- lang, dir, for use with title --
841
+ type %ContentType; #REQUIRED -- content type of style language --
842
+ media %MediaDesc; #IMPLIED -- designed for use with these media --
843
+ title %Text; #IMPLIED -- advisory title --
844
+ >
845
+
846
+ <!ELEMENT SCRIPT - - %Script; -- script statements -->
847
+ <!ATTLIST SCRIPT
848
+ charset %Charset; #IMPLIED -- char encoding of linked resource --
849
+ type %ContentType; #REQUIRED -- content type of script language --
850
+ language CDATA #IMPLIED -- predefined script language name --
851
+ src %URI; #IMPLIED -- URI for an external script --
852
+ defer (defer) #IMPLIED -- UA may defer execution of script --
853
+ event CDATA #IMPLIED -- reserved for possible future use --
854
+ for %URI; #IMPLIED -- reserved for possible future use --
855
+ >
856
+
857
+ <!ELEMENT NOSCRIPT - - (%block;)+
858
+ -- alternate content container for non script-based rendering -->
859
+ <!ATTLIST NOSCRIPT
860
+ %attrs; -- %coreattrs, %i18n, %events --
861
+ >
862
+
863
+ <!--================ Document Structure ==================================-->
864
+ <!ENTITY % html.content "HEAD, BODY">
865
+
866
+ <!ELEMENT HTML O O (%html.content;) -- document root element -->
867
+ <!ATTLIST HTML
868
+ %i18n; -- lang, dir --
869
+ >