deplate 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. data/CHANGES.TXT +118 -0
  2. data/NEWS.TXT +6 -21
  3. data/VERSION.TXT +1 -1
  4. data/etc/deplate.ini +15 -2
  5. data/lib/action_view/helpers/deplate.rb +0 -0
  6. data/lib/deplate/abstract-class.rb +3 -2
  7. data/lib/deplate/bib.rb +3 -2
  8. data/lib/deplate/builtin.rb +3 -2
  9. data/lib/deplate/cache.rb +3 -2
  10. data/lib/deplate/commands.rb +3 -11
  11. data/lib/deplate/common.rb +7 -2
  12. data/lib/deplate/compat.rb +21 -0
  13. data/lib/deplate/compat/parsedate.rb +24 -0
  14. data/lib/deplate/converter.rb +3 -2
  15. data/lib/deplate/core.rb +135 -103
  16. data/lib/deplate/counters.rb +3 -2
  17. data/lib/deplate/css/article.css +2 -2
  18. data/lib/deplate/css/doc.css +3 -2
  19. data/lib/deplate/css/heading-navbar.css +2 -2
  20. data/lib/deplate/css/highlight.css +0 -0
  21. data/lib/deplate/css/layout-deplate-print.css +2 -2
  22. data/lib/deplate/css/layout-deplate.css +2 -2
  23. data/lib/deplate/css/presentation.css +2 -2
  24. data/lib/deplate/css/sans-serif.css +2 -2
  25. data/lib/deplate/css/screenplay.css +0 -0
  26. data/lib/deplate/css/serif-e.css +2 -2
  27. data/lib/deplate/css/serif-rel.css +3 -2
  28. data/lib/deplate/css/serif.css +2 -2
  29. data/lib/deplate/css/slides.css +3 -2
  30. data/lib/deplate/css/tabbar-top.css +2 -2
  31. data/lib/deplate/css/text-sans-serif.css +3 -2
  32. data/lib/deplate/css/text-serif.css +2 -2
  33. data/lib/deplate/css/website.css +0 -0
  34. data/lib/deplate/define.rb +3 -2
  35. data/lib/deplate/deplate-string.rb +3 -2
  36. data/lib/deplate/docbook.rb +4 -14
  37. data/lib/deplate/elements.rb +37 -4
  38. data/lib/deplate/encoding.rb +57 -0
  39. data/lib/deplate/etc.rb +7 -5
  40. data/lib/deplate/external.rb +5 -13
  41. data/lib/deplate/fmt/dbk-article-4.1.2.rb +3 -2
  42. data/lib/deplate/fmt/dbk-article.rb +3 -2
  43. data/lib/deplate/fmt/dbk-book.rb +3 -2
  44. data/lib/deplate/fmt/dbk-ref.rb +3 -2
  45. data/lib/deplate/fmt/dbk-slides.rb +3 -2
  46. data/lib/deplate/fmt/dbk-snippet.rb +3 -2
  47. data/lib/deplate/fmt/html-snippet.rb +3 -2
  48. data/lib/deplate/fmt/html.rb +40 -27
  49. data/lib/deplate/fmt/htmlsite.rb +3 -2
  50. data/lib/deplate/fmt/htmlslides.rb +3 -2
  51. data/lib/deplate/fmt/htmlwebsite.rb +3 -2
  52. data/lib/deplate/fmt/latex-dramatist.rb +2 -1
  53. data/lib/deplate/fmt/latex-snippet.rb +3 -2
  54. data/lib/deplate/fmt/latex.rb +88 -67
  55. data/lib/deplate/fmt/null.rb +3 -2
  56. data/lib/deplate/fmt/php.rb +3 -2
  57. data/lib/deplate/fmt/phpsite.rb +3 -2
  58. data/lib/deplate/fmt/plain.rb +4 -3
  59. data/lib/deplate/fmt/sweave.rb +104 -0
  60. data/lib/deplate/fmt/template.rb +3 -2
  61. data/lib/deplate/fmt/xhtml10t.rb +82 -2
  62. data/lib/deplate/fmt/xhtml11m.rb +3 -2
  63. data/lib/deplate/formatter-snippet.rb +3 -2
  64. data/lib/deplate/formatter.rb +203 -29
  65. data/lib/deplate/guesslanguage.rb +3 -2
  66. data/lib/deplate/input.rb +9 -8
  67. data/lib/deplate/input/deplate-headings.rb +3 -2
  68. data/lib/deplate/input/deplate-restricted.rb +3 -2
  69. data/lib/deplate/input/deplate.rb +3 -2
  70. data/lib/deplate/input/play.rb +3 -2
  71. data/lib/deplate/input/rdoc.rb +3 -2
  72. data/lib/deplate/input/template.rb +3 -2
  73. data/lib/deplate/lib/Makefile.config +8 -0
  74. data/lib/deplate/locale/de.latin1 +6 -0
  75. data/lib/deplate/macros.rb +4 -2
  76. data/lib/deplate/messages.rb +9 -5
  77. data/lib/deplate/metadata.rb +3 -2
  78. data/lib/deplate/metadata/marshal.rb +3 -2
  79. data/lib/deplate/metadata/xml.rb +3 -2
  80. data/lib/deplate/metadata/yaml.rb +3 -2
  81. data/lib/deplate/mod/anyword.rb +3 -2
  82. data/lib/deplate/mod/babelfish.rb +3 -2
  83. data/lib/deplate/mod/code-coderay.rb +3 -2
  84. data/lib/deplate/mod/code-gvim.rb +3 -2
  85. data/lib/deplate/mod/code-gvim71.rb +3 -2
  86. data/lib/deplate/mod/code-highlight.rb +3 -2
  87. data/lib/deplate/mod/colored-log.rb +3 -2
  88. data/lib/deplate/mod/encode.rb +33 -0
  89. data/lib/deplate/mod/endnotes.rb +3 -2
  90. data/lib/deplate/mod/entities-decode.rb +2 -1
  91. data/lib/deplate/mod/entities-encode.rb +2 -1
  92. data/lib/deplate/mod/guesslanguage.rb +3 -2
  93. data/lib/deplate/mod/html-asciimath.rb +3 -2
  94. data/lib/deplate/mod/html-deplate-button.rb +3 -2
  95. data/lib/deplate/mod/html-headings-navbar.rb +3 -2
  96. data/lib/deplate/mod/html-highstep.rb +3 -2
  97. data/lib/deplate/mod/html-jsmath.rb +3 -2
  98. data/lib/deplate/mod/html-mathml.rb +2 -1
  99. data/lib/deplate/mod/html-obfuscate-email.rb +3 -2
  100. data/lib/deplate/mod/html-sidebar.rb +3 -2
  101. data/lib/deplate/mod/htmlslides-navbar-fh.rb +3 -2
  102. data/lib/deplate/mod/iconv.rb +3 -2
  103. data/lib/deplate/mod/imgurl.rb +4 -3
  104. data/lib/deplate/mod/inlatex-compound.rb +3 -2
  105. data/lib/deplate/mod/koma.rb +3 -2
  106. data/lib/deplate/mod/lang-de.rb +3 -2
  107. data/lib/deplate/mod/lang-en.rb +3 -2
  108. data/lib/deplate/mod/lang-ru-koi8-r.rb +3 -2
  109. data/lib/deplate/mod/lang-ru.rb +3 -2
  110. data/lib/deplate/mod/lang-zh_CN-autospace.rb +3 -2
  111. data/lib/deplate/mod/lang-zh_CN.rb +3 -2
  112. data/lib/deplate/mod/latex-emph-table-head.rb +3 -2
  113. data/lib/deplate/mod/latex-styles.rb +3 -2
  114. data/lib/deplate/mod/latex-verbatim-small.rb +3 -2
  115. data/lib/deplate/mod/linkmap.rb +2 -1
  116. data/lib/deplate/mod/makefile.rb +39 -46
  117. data/lib/deplate/mod/mark-external-urls.rb +3 -2
  118. data/lib/deplate/mod/markup-1-warn.rb +3 -2
  119. data/lib/deplate/mod/markup-1.rb +3 -2
  120. data/lib/deplate/mod/navbar-png.rb +3 -2
  121. data/lib/deplate/mod/noindent.rb +3 -2
  122. data/lib/deplate/mod/numpara.rb +3 -2
  123. data/lib/deplate/mod/particle-math.rb +3 -2
  124. data/lib/deplate/mod/php-extra.rb +3 -2
  125. data/lib/deplate/mod/pstoedit.rb +3 -2
  126. data/lib/deplate/mod/recode.rb +3 -2
  127. data/lib/deplate/mod/smart-dash.rb +3 -2
  128. data/lib/deplate/mod/smiley.rb +3 -2
  129. data/lib/deplate/mod/soffice.rb +3 -2
  130. data/lib/deplate/mod/symbols-latin1.rb +8 -2
  131. data/lib/deplate/mod/symbols-od-utf-8.rb +3 -2
  132. data/lib/deplate/mod/symbols-plain.rb +3 -2
  133. data/lib/deplate/mod/symbols-sgml.rb +6 -5
  134. data/lib/deplate/mod/symbols-utf-8.rb +6 -5
  135. data/lib/deplate/mod/symbols-xml.rb +3 -2
  136. data/lib/deplate/mod/syntax-region-alt.rb +3 -2
  137. data/lib/deplate/mod/utf8.rb +3 -2
  138. data/lib/deplate/mod/validate-html.rb +3 -2
  139. data/lib/deplate/mod/xmlrpc.rb +3 -2
  140. data/lib/deplate/nukumi2.rb +3 -2
  141. data/lib/deplate/once-method.rb +3 -2
  142. data/lib/deplate/output.rb +3 -2
  143. data/lib/deplate/particles.rb +12 -6
  144. data/lib/{ps2ppm.rb → deplate/ps2ppm.rb} +11 -11
  145. data/lib/deplate/regions.rb +75 -52
  146. data/lib/deplate/skeletons.rb +3 -2
  147. data/lib/deplate/structured.rb +8 -24
  148. data/lib/deplate/template.rb +3 -2
  149. data/lib/deplate/themes/presentation.html/css/presentation.css +2 -2
  150. data/lib/deplate/themes/presentation.html/prelude.txt +1 -1
  151. data/lib/deplate/themes/presentation.html/resources/spacer.png +0 -0
  152. data/lib/deplate/themes/s5.xhtml/README.TXT +2 -0
  153. data/lib/deplate/themes/s5.xhtml/templates/s5.xhtml +42 -0
  154. data/lib/deplate/themes/s5.xhtml/theme.ini +11 -0
  155. data/lib/deplate/variables.rb +12 -2
  156. data/lib/deplate/wiki-markup.rb +3 -2
  157. data/lib/deplate/xml.rb +19 -21
  158. data/lib/deplate/zh_CN.rb +3 -2
  159. data/man/man1/deplate.1 +83 -128
  160. metadata +16 -4
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # mark-urls.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 16-Nov-2004.
6
- # @Last Change: 2007-09-24.
7
- # @Revision: 0.41
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.43
8
9
  #
9
10
  # Description:
10
11
  #
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # textstyles-warn-single.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 03-Okt-2004.
6
- # @Last Change: 12-Nov-2005.
7
- # @Revision: 0.9
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.11
8
9
 
9
10
  class Deplate::Particle::DeprecatedTextStyleMarkup < Deplate::DeprecatedParticle
10
11
  def get_text(match)
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # textstyles1.rb -- Re-enable text styles markup prior to version 0.6
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 03-Okt-2004.
6
- # @Last Change: 2007-11-11.
7
- # @Revision: 0.13
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.15
8
9
 
9
10
  class Deplate::Particle::Emphasize < Deplate::SimpleParticle
10
11
  @rx = /^\*\*(.+?)\*\*/
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # mod-navbar1.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 14-Aug-2004.
6
- # @Last Change: 2007-04-04.
7
- # @Revision: 0.78
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.80
8
9
  #
9
10
  # Description:
10
11
  #
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # noindent.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 29-Aug-2004.
6
- # @Last Change: 23-Okt-2005.
7
- # @Revision: 0.18
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.20
8
9
  #
9
10
  # Description:
10
11
  # Avoid inserting spaces and linebreaks
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # numpara.rb -- add numbers to paragraphs
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 20-Aug-2004.
6
- # @Last Change: 23-Okt-2005.
7
- # @Revision: 0.58
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.60
8
9
  #
9
10
  # Description:
10
11
  #
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # particle-math.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 25-M�r-2005.
6
- # @Last Change: 2008-04-14.
7
- # @Revision: 0.30
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.32
8
9
  #
9
10
  # = Description
10
11
  # This provides a math markup as known from LaTeX:
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # php-extra.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 05-Mai-2005.
6
- # @Last Change: 28-Mai-2006.
7
- # @Revision: 0.28
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.30
8
9
  #
9
10
  # = Description
10
11
  # Provide some php specific elements/particles/macros ...
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # pstoedit.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 13-Apr-2005.
6
- # @Last Change: 23-Okt-2005.
7
- # @Revision: 0.76
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.78
8
9
  #
9
10
  # = Description
10
11
  # Use pstoedit for converting postscript to images.
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # recode.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 11-Apr-2005.
6
- # @Last Change: 23-Okt-2005.
7
- # @Revision: 0.56
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.58
8
9
  #
9
10
  # = Description
10
11
  # Recode text on-the-fly using GNU +recode+. The source encoding is
@@ -1,9 +1,10 @@
1
+ # encoding: ASCII
1
2
  # smart-dash.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
4
5
  # @Created: 15-Apr-2006.
5
- # @Last Change: 15-Apr-2006.
6
- # @Revision: 0.25
6
+ # @Last Change: 2009-02-02.
7
+ # @Revision: 0.27
7
8
 
8
9
  class Deplate::Particle::Symbol
9
10
  @@symbols_table.delete(['--'])
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # smiley.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 16-Nov-2004.
6
- # @Last Change: 02-Apr-2006.
7
- # @Revision: 0.68
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.70
8
9
  #
9
10
  # Description:
10
11
  #
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # mod-soffice.rb - Some OpenOffice specific modifications to the html output
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 27-Jun-2004.
6
- # @Last Change: 23-Okt-2005.
7
- # @Revision: 0.10
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.12
8
9
  #
9
10
  # Description:
10
11
  # Some OpenOffice specific modifications to the html output
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # symbols-latin1.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 27-Aug-2004.
6
- # @Last Change: 07-Jun-2006.
7
- # @Revision: 0.45
7
+ # @Last Change: 2009-02-05.
8
+ # @Revision: 0.48
8
9
 
9
10
  class Deplate::Symbols::Latin1 < Deplate::Symbols
10
11
  self.myname = 'ISO-8859-1'
@@ -45,5 +46,10 @@ class Deplate::Symbols::Latin1 < Deplate::Symbols
45
46
  # %{�}
46
47
  %{'}
47
48
  end
49
+
50
+ def nonbreakingspace(invoker)
51
+ "�" #%{&nbsp;}
52
+ end
53
+
48
54
  end
49
55
 
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # symbols-od-utf-8.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 27-Aug-2004.
6
- # @Last Change: 26-Nov-2005.
7
- # @Revision: 0.44
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.46
8
9
 
9
10
  require 'deplate/mod/symbols-utf-8'
10
11
 
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # symbols-plain.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 27-Aug-2004.
6
- # @Last Change: 07-Jun-2006.
7
- # @Revision: 0.31
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.33
8
9
 
9
10
  class Deplate::Symbols::Plain < Deplate::Symbols
10
11
  self.myname = 'plain'
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # symbols-sgml.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 27-Aug-2004.
6
- # @Last Change: 26-Nov-2005.
7
- # @Revision: 0.45
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.48
8
9
 
9
10
  class Deplate::Symbols::SGML < Deplate::Symbols
10
11
  self.myname = :sgml
@@ -45,9 +46,9 @@ class Deplate::Symbols::SGML < Deplate::Symbols
45
46
  "&#160;" #%{&nbsp;}
46
47
  end
47
48
 
48
- def symbol_paragraph(invoker)
49
- %{�}
50
- end
49
+ # def symbol_paragraph(invoker)
50
+ # %{�}
51
+ # end
51
52
 
52
53
  def format_symbol(invoker, sym)
53
54
  case sym
@@ -1,10 +1,11 @@
1
+ # encoding: UTF-8
1
2
  # symbols-sgml.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 27-Aug-2004.
6
- # @Last Change: 26-Nov-2005.
7
- # @Revision: 0.37
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.40
8
9
 
9
10
  class Deplate::Symbols::Utf8 < Deplate::Symbols
10
11
  self.myname = "utf-8"
@@ -29,9 +30,9 @@ class Deplate::Symbols::Utf8 < Deplate::Symbols
29
30
  %{ }
30
31
  end
31
32
 
32
- def symbol_paragraph(invoker)
33
- %{§}
34
- end
33
+ # def symbol_paragraph(invoker)
34
+ # %{§}
35
+ # end
35
36
 
36
37
  def format_symbol(invoker, sym)
37
38
  case sym
@@ -1,10 +1,11 @@
1
+ # encoding: ISO-8859-1
1
2
  # symbols-sgml.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 27-Aug-2004.
6
- # @Last Change: 26-Nov-2005.
7
- # @Revision: 0.31
7
+ # @Last Change: 2008-12-04.
8
+ # @Revision: 0.32
8
9
 
9
10
  require "deplate/mod/symbols-utf-8"
10
11
 
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # syntax-alt-region.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 27-Aug-2004.
6
- # @Last Change: 12-Nov-2005.
7
- # @Revision: 0.19
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.21
8
9
  #
9
10
  # Description:
10
11
  # This module provides an alternative syntax for regions, like:
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # utf8.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 10-Apr-2005.
6
- # @Last Change: 23-Okt-2005.
7
- # @Revision: 0.25
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.27
8
9
  #
9
10
  # = Description
10
11
  # This file provides improved utf-8 support.
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # validate-html.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 05-Sep-2004.
6
- # @Last Change: 23-Okt-2005.
7
- # @Revision: 0.21
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.23
8
9
  #
9
10
  # Description:
10
11
  #
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # xmlrpc.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 27-J�n-2005.
6
- # @Last Change: 2007-06-30.
7
- # @Revision: 0.247
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.249
8
9
  #
9
10
  # = Description
10
11
  #
@@ -1,9 +1,10 @@
1
+ # encoding: ASCII
1
2
  # nukumi2.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
4
5
  # @Created: 31-Dez-2005.
5
- # @Last Change: 2007-06-30.
6
- # @Revision: 0.34
6
+ # @Last Change: 2009-02-02.
7
+ # @Revision: 0.36
7
8
  #
8
9
  # = Usage
9
10
  # Add require 'deplate/nukumi2' to your nukumi2 config.rb.
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # once-method.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 25-M�r-2005.
6
- # @Last Change: 23-Okt-2005.
7
- # @Revision: 0.22
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.24
8
9
  #
9
10
  # = Description
10
11
  # Provide poor-man's once methods vor Module class.
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # output.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 04-Dez-2004.
6
- # @Last Change: 2007-09-01.
7
- # @Revision: 0.265
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.267
8
9
 
9
10
  require 'forwardable'
10
11
  require 'deplate/metadata'
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # particles.rb
2
3
  # @Author: Thomas Link (micathom AT gmail com)
3
4
  # @Website: http://deplate.sf.net/
4
5
  # @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
5
6
  # @Created: 24-M�r-2004.
6
- # @Last Change: 2008-07-20.
7
- # @Revision: 0.1927
7
+ # @Last Change: 2009-02-05.
8
+ # @Revision: 0.1944
8
9
 
9
10
  require "uri"
10
11
  require "deplate/common"
@@ -125,7 +126,7 @@ class Deplate::Particle < Deplate::BaseParticle
125
126
 
126
127
  end
127
128
 
128
- def initialize(deplate, container, context, match, alt, last='', rest='')
129
+ def initialize(deplate, container, context, match, alt, last='', rest='', args={})
129
130
  super(deplate, :container => container)
130
131
  self.level_as_string = container.level_as_string if container
131
132
  @context = context
@@ -133,6 +134,7 @@ class Deplate::Particle < Deplate::BaseParticle
133
134
  @last = last
134
135
  @rest = rest
135
136
  @alt = alt
137
+ @args = args
136
138
  setup
137
139
  end
138
140
 
@@ -182,7 +184,11 @@ class Deplate::Particle::Text < Deplate::Particle
182
184
  end
183
185
 
184
186
  def process
185
- @elt = plain_text(get_text)
187
+ if @args[:raw]
188
+ @elt = get_text
189
+ else
190
+ @elt = plain_text(get_text)
191
+ end
186
192
  end
187
193
 
188
194
  def get_text
@@ -640,12 +646,12 @@ class Deplate::HyperLink::Extended < Deplate::HyperLink
640
646
  end
641
647
 
642
648
  def process
643
- @name = @deplate.parse_and_format(self, @name, false, [
649
+ @name = @deplate.parse_and_format(self, @name, false, :excluded => [
644
650
  Deplate::HyperLink::Extended,
645
651
  Deplate::HyperLink::Simple,
646
652
  Deplate::HyperLink::Url,
647
653
  ])
648
- @dest = @deplate.parse_and_format(self, @dest, false, [
654
+ @dest = @deplate.parse_and_format(self, @dest, false, :raw => true, :excluded => [
649
655
  Deplate::HyperLink::Extended,
650
656
  Deplate::HyperLink::Simple,
651
657
  Deplate::HyperLink::Url,