deplate 0.7.3 → 0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. data/AUTHORS.TXT +3 -0
  2. data/CHANGES.TXT +248 -175
  3. data/LICENSE.TXT +0 -0
  4. data/NEWS.TXT +28 -24
  5. data/README.TXT +0 -0
  6. data/TODO.TXT +174 -88
  7. data/VERSION.TXT +1 -1
  8. data/bin/deplate +0 -0
  9. data/bin/deplate.bat +0 -0
  10. data/etc/deplate.ini +91 -3
  11. data/lib/action_view/helpers/deplate.rb +45 -0
  12. data/lib/deplate.rb +6 -1
  13. data/lib/deplate/abstract-class.rb +0 -0
  14. data/lib/deplate/bib.rb +576 -0
  15. data/lib/deplate/builtin.rb +0 -0
  16. data/lib/deplate/cache.rb +55 -5
  17. data/lib/deplate/commands.rb +346 -183
  18. data/lib/deplate/common.rb +209 -48
  19. data/lib/deplate/converter.rb +12 -6
  20. data/lib/deplate/core.rb +777 -378
  21. data/lib/deplate/counters.rb +254 -0
  22. data/lib/deplate/css/article.css +4 -3
  23. data/lib/deplate/css/deplate.css +121 -5
  24. data/lib/deplate/css/heading-navbar.css +0 -0
  25. data/lib/deplate/css/layout-deplate-print.css +0 -0
  26. data/lib/deplate/css/layout-deplate.css +0 -0
  27. data/lib/deplate/css/sans-serif.css +0 -0
  28. data/lib/deplate/css/serif-e.css +0 -0
  29. data/lib/deplate/css/serif-rel.css +0 -0
  30. data/lib/deplate/css/serif.css +9 -3
  31. data/lib/deplate/css/slides.css +0 -0
  32. data/lib/deplate/css/tabbar-left.css +0 -0
  33. data/lib/deplate/css/tabbar-right-ie.css +3 -9
  34. data/lib/deplate/css/tabbar-right.css +51 -18
  35. data/lib/deplate/css/tabbar-top.css +7 -1
  36. data/lib/deplate/css/tabbar.css +0 -0
  37. data/lib/deplate/css/text-sans-serif.css +0 -0
  38. data/lib/deplate/css/text-serif.css +0 -0
  39. data/lib/deplate/define.rb +183 -177
  40. data/lib/deplate/deplate-string.rb +82 -0
  41. data/lib/deplate/docbook.rb +236 -128
  42. data/lib/deplate/elements.rb +584 -417
  43. data/lib/deplate/etc.rb +163 -101
  44. data/lib/deplate/external.rb +42 -11
  45. data/lib/deplate/fmt/dbk-article-4.1.2.rb +0 -0
  46. data/lib/deplate/fmt/dbk-article.rb +0 -0
  47. data/lib/deplate/fmt/dbk-book.rb +0 -0
  48. data/lib/deplate/fmt/dbk-ref.rb +3 -3
  49. data/lib/deplate/fmt/dbk-slides.rb +0 -0
  50. data/lib/deplate/fmt/dbk-snippet.rb +0 -0
  51. data/lib/deplate/fmt/html-snippet.rb +0 -0
  52. data/lib/deplate/fmt/html.rb +783 -550
  53. data/lib/deplate/fmt/htmlsite.rb +192 -199
  54. data/lib/deplate/fmt/htmlslides.rb +0 -0
  55. data/lib/deplate/fmt/htmlwebsite.rb +3 -3
  56. data/lib/deplate/fmt/latex-snippet.rb +0 -0
  57. data/lib/deplate/fmt/latex.rb +242 -83
  58. data/lib/deplate/fmt/null.rb +32 -0
  59. data/lib/deplate/fmt/php.rb +4 -4
  60. data/lib/deplate/fmt/phpsite.rb +6 -5
  61. data/lib/deplate/fmt/plain.rb +160 -106
  62. data/lib/deplate/fmt/template.rb +0 -0
  63. data/lib/deplate/fmt/xhtml10t.rb +0 -0
  64. data/lib/deplate/formatter-snippet.rb +0 -0
  65. data/lib/deplate/formatter.rb +613 -301
  66. data/lib/deplate/input.rb +202 -142
  67. data/lib/deplate/input/deplate-headings.rb +4 -6
  68. data/lib/deplate/input/deplate-restricted.rb +15 -9
  69. data/lib/deplate/input/deplate.rb +2 -4
  70. data/lib/deplate/input/rdoc.rb +39 -38
  71. data/lib/deplate/input/template.rb +0 -0
  72. data/lib/deplate/lib/Makefile.config +29 -0
  73. data/lib/deplate/lib/latex/deplate.sty +54 -0
  74. data/lib/deplate/lib/latex/highlight-extra.sty +0 -0
  75. data/lib/deplate/lib/latex/highlight-typical.sty +0 -0
  76. data/lib/deplate/lib/php/page-comment.inc.php +216 -0
  77. data/lib/deplate/lib/tabmenu.js +0 -0
  78. data/lib/deplate/locale/de.latin1 +155 -17
  79. data/lib/deplate/locale/ru.koi8-r +0 -0
  80. data/lib/deplate/locale/zh_cn.gb2312 +0 -0
  81. data/lib/deplate/macros.rb +133 -82
  82. data/lib/deplate/messages.rb +6 -4
  83. data/lib/deplate/metadata.rb +0 -0
  84. data/lib/deplate/metadata/marshal.rb +0 -0
  85. data/lib/deplate/metadata/xml.rb +0 -0
  86. data/lib/deplate/metadata/yaml.rb +0 -0
  87. data/lib/deplate/mod/anyword.rb +3 -3
  88. data/lib/deplate/mod/babelfish.rb +4 -4
  89. data/lib/deplate/mod/code-gvim.rb +8 -4
  90. data/lib/deplate/mod/code-highlight.rb +3 -3
  91. data/lib/deplate/mod/colored-log.rb +0 -0
  92. data/lib/deplate/mod/de.rb +2 -2
  93. data/lib/deplate/mod/en.rb +0 -0
  94. data/lib/deplate/mod/endnotes.rb +0 -0
  95. data/lib/deplate/mod/fr.rb +0 -0
  96. data/lib/deplate/mod/html-asciimath.rb +0 -0
  97. data/lib/deplate/mod/html-deplate-button.rb +0 -0
  98. data/lib/deplate/mod/html-headings-navbar.rb +5 -13
  99. data/lib/deplate/mod/html-jsmath.rb +39 -0
  100. data/lib/deplate/mod/html-obfuscate-email.rb +3 -3
  101. data/lib/deplate/mod/html-sidebar.rb +0 -0
  102. data/lib/deplate/mod/htmlslides-navbar-fh.rb +3 -3
  103. data/lib/deplate/mod/iconv.rb +0 -0
  104. data/lib/deplate/mod/imgurl.rb +4 -4
  105. data/lib/deplate/mod/inlatex-compound.rb +7 -10
  106. data/lib/deplate/mod/koma.rb +0 -0
  107. data/lib/deplate/mod/latex-emph-table-head.rb +0 -0
  108. data/lib/deplate/mod/latex-styles.rb +7 -4
  109. data/lib/deplate/mod/latex-verbatim-small.rb +0 -0
  110. data/lib/deplate/mod/makefile.rb +23 -7
  111. data/lib/deplate/mod/mark-external-urls.rb +3 -3
  112. data/lib/deplate/mod/markup-1-warn.rb +10 -10
  113. data/lib/deplate/mod/markup-1.rb +0 -0
  114. data/lib/deplate/mod/navbar-png.rb +24 -8
  115. data/lib/deplate/mod/noindent.rb +0 -0
  116. data/lib/deplate/mod/numpara.rb +0 -0
  117. data/lib/deplate/mod/particle-math.rb +4 -4
  118. data/lib/deplate/mod/php-extra.rb +46 -6
  119. data/lib/deplate/mod/pstoedit.rb +0 -0
  120. data/lib/deplate/mod/recode.rb +0 -0
  121. data/lib/deplate/mod/ru_koi8-r.rb +0 -0
  122. data/lib/deplate/mod/smart-dash.rb +26 -0
  123. data/lib/deplate/mod/smiley.rb +69 -7
  124. data/lib/deplate/mod/soffice.rb +0 -0
  125. data/lib/deplate/mod/symbols-latin1.rb +14 -23
  126. data/lib/deplate/mod/symbols-od-utf-8.rb +5 -3
  127. data/lib/deplate/mod/symbols-plain.rb +5 -35
  128. data/lib/deplate/mod/symbols-sgml.rb +8 -9
  129. data/lib/deplate/mod/symbols-utf-8.rb +8 -9
  130. data/lib/deplate/mod/symbols-xml.rb +5 -9
  131. data/lib/deplate/mod/syntax-region-alt.rb +5 -5
  132. data/lib/deplate/mod/utf8.rb +0 -0
  133. data/lib/deplate/mod/validate-html.rb +0 -0
  134. data/lib/deplate/mod/xmlrpc.rb +0 -0
  135. data/lib/deplate/mod/zh-cn-autospace.rb +18 -20
  136. data/lib/deplate/mod/zh-cn.rb +4 -6
  137. data/lib/deplate/nukumi2.rb +71 -0
  138. data/lib/deplate/once-method.rb +0 -0
  139. data/lib/deplate/output.rb +19 -21
  140. data/lib/deplate/particles.rb +178 -116
  141. data/lib/deplate/regions.rb +99 -58
  142. data/lib/deplate/skeletons.rb +122 -0
  143. data/lib/deplate/structured.rb +164 -106
  144. data/lib/deplate/template.rb +67 -43
  145. data/lib/deplate/templates/html-doc.html +0 -0
  146. data/lib/deplate/templates/html-left-tabbar-js.html +0 -0
  147. data/lib/deplate/templates/html-left-tabbar.html +0 -0
  148. data/lib/deplate/templates/html-tabbar-right-pcomments.php +22 -0
  149. data/lib/deplate/templates/html-tabbar-right-step.html +24 -0
  150. data/lib/deplate/templates/html-tabbar-right-table.html +0 -0
  151. data/lib/deplate/templates/html-tabbar-right.html +2 -4
  152. data/lib/deplate/templates/html-tabbar-top.html +0 -9
  153. data/lib/deplate/templates/html-tabbar.html +0 -0
  154. data/lib/deplate/variables.rb +127 -0
  155. data/lib/deplate/wiki-markup.rb +99 -33
  156. data/lib/deplate/xml.rb +18 -18
  157. data/lib/deplate/zh-cn.rb +0 -0
  158. data/lib/ps2ppm.rb +0 -0
  159. data/man/man1/deplate.1 +564 -474
  160. metadata +201 -186
@@ -13,6 +13,7 @@ Contributors:
13
13
  htmlslides-navbar-fh module
14
14
  Frederik Eaton :: Suggestions concering inline latex support
15
15
  Csaba Henk :: Nested elements in lists (patch)
16
+ Andrea Rota :: blosxom plugin, generic textpipe perl module
16
17
 
17
18
  Credits:
18
19
  - The manual-directory contains ASCIIMathML.js by Peter Jipsen
@@ -21,6 +22,8 @@ Credits:
21
22
  (http://www.matterform.com/).
22
23
  - term.rb is written by Florian Frank
23
24
  (http://raa.ruby-lang.org/project/ansicolor/)
25
+ - setup.rb is written by Minero Aoki
26
+ (http://raa.ruby-lang.org/project/setup/)
24
27
 
25
28
 
26
29
  % vim: ft=viki:tw=72
@@ -1,177 +1,250 @@
1
- 2005-03-23 deplate 0.7.3
2
- * elements.rb: Disabled #Html, #Latex shortcuts for #Native.
3
- * templates.rb: Made the template formatter accessible (for use with the
4
- template input filter).
5
- * plain.rb: Limited support for alphabethic lists.
6
- * particle-math.rb: LaTeX-like $\math$ markup
7
- * messages.rb: Reimplementation of localized messages
8
- * configure: Added a pseudo configure script for support for: configure &&
9
- make && make install
10
- * common.rb: Variables can now be arrays and hashes
11
- * html.rb: auxiliaryDirSuffix: images and other auxiliary files are stored
12
- in the "#{DESTINATION}#{SUFFIX}" subdir. Currently for HTML output only.
13
- * formatter.rb: Slightly improved word-wrap.
14
- * marshal.rb: Simply dump metadata using Marshal.dump
15
- * messages.rb: deplate can now be fully localized, including the messages
16
- in the log.
17
- * de.latin1: Complete German message catalog.
18
- * structured.rb, html.rb, latex.rb: Prototype of format_label has changed:
19
- format_label(invoker, mode=nil, label=nil)
20
- * html.rb, formatter.rb: Reference by ID (no additional label required).
21
- * html.rb: Reference to objects (e.g. tables). The ref macro behaves like
22
- in LaTeX output.
23
- * formatter.rb, elements.rb: Fixed problem with duplicate labels in lists.
24
- * commands.rb: #LANG command to change the document's language (might be
25
- necessary when loading a language module from within the document)
26
- * core.rb: If HOME isn't set, the configuration directory is
27
- ENV['USERPROFILE']/deplate.rc where ENV['USERPROFILE'] (on MS Win) is
28
- something like 'c:\Documents and Settings\USER\'.
29
- * utf8.rb: New module that provides improved unicode awareness.
30
- * recode.rb, iconv.rb: 2 new modules providing on-the-fly conversion
31
- between character sets (iconv is the preferred solution).
32
- * formatter.rb: Adapted #plain_text for use with iconv.
33
- * core.rb: --log FILE command line option ('-' send log to stdout)
34
- * core.rb: don't include files twice
35
- * imgurl.rb: A module that make deplate insert urls/links to images as
36
- images and not as references
37
- * core.rb, deplate.ini: Read user settings from deplate.ini
38
- * php.rb: A simple variant of html.rb that can be used for php output
39
- * inlatex-compound.rb: __New module:__ Collect LaTeX fragments in one
40
- file, compile them as one, separate the output afterwards. The advantage:
41
- you can define LaTeX commands in #Inlatex regions and they integrate well
42
- with the rest of the document.
43
- * regions.rb: #Inlatex: @deplate.formatter.inlatex(self) is already called
44
- by #setup for 2 reasons: (1) cooperate with inlatex-compound.rb; (2) make
45
- it possible to change inlatex related variables
46
- * particles.rb: In extended wiki links, the destination part gets fully
47
- parsed too
48
- * particles.rb, macro.rb, input.rb: Fixed the handling of single escaped
49
- curly braces in macro arguments.
50
- * core.rb, regions.rb: Changed the way how inline ruby code is evaluated;
51
- added a sandbox by Florian Gross, flgr AT ccan.de, so that you can set
52
- --allow-ruby to 5 without compromising deplate's functionality
53
- * html-deplate-button.rb: New module
54
- * rdoc.rb: Fixed problem with description lists.
55
- * wiki-markup.rb: Fixed rdoc incompatibility (_word_ etc.)
56
- * core.rb: deplate.ini may contain multi-line variable definitions (saved
57
- as array)
58
- * html.rb: A list items leading character is reflected in the items class.
59
- This may change in the future as the current handling of changing leading
60
- characters isn't correct. Basically a different leading character (e.g.
61
- "+" instead of "-") should create a new list environment, which currently
62
- isn't the case. So if you alternately use "+" and "-" to mark list items,
63
- this will some day in the future create many lists instead of just one
64
- list environment at it is currently the case.
65
- * define.rb: #DefElement
66
- * particles.rb: Fixed minor problem with \''verbatim\'' text
67
- * html.rb: Fixed problem with empty or duplicate IDs in headings
68
- * input.rb: embeddedTextRx (deplate text can be hidden in comments, and
69
- normal text can be converted into, e.g., verbatim or code regions)
70
- * html-obfuscate-email.rb: new module
71
- * define.rb: #DefElement now uses the standard template formatter
72
- * define.rb: #DefParticle
73
- * html.rb: Fixed problem with duplicate labels
74
- * xmlrpc.rb: Options weren't propagated
75
- * html.rb: Solved once and for all the problem with duplicate labels in
76
- html output
77
- * core.rb: Don't generate file labels when running in included mode
78
- * dbk-snippet.rb, html-snippet.rb, latex-snippet.rb, formatter-snippet.rb:
79
- Minor variants of the corresponding formatters that are meant to be used
80
- to format single phrases, single words etc. (the main difference is that
81
- paragraphs simply return their content)
82
- * xmlrpc.rb: The xmlrpc server now always creates a new converter for each
83
- request unless the ''xmlrpcReuseInterpreter'' variable ist defined, which
84
- will make it reuse the previous converter (which was the default behaviour
85
- in earlier versions)
86
- * regions.rb: Footnotes IDs can be defined in the ''id'' argument __or__
87
- the "region note" (how it was done before).
88
- * html.rb: Footnotes are wrapped in a div (class=footnotes) tag.
89
- * particles.rb: Wiki names must begin with A-Z even then wiki chars were
90
- redefined
91
- * formatter.rb: If the bib file wasn't found, use kpsewhich to locate it.
92
- Fixed some problems with bibliographies.
93
- * commands.rb: Reenabled #INC's inputFormat argument.
94
- * particles.rb, several other files: Dynamically created particles are no
95
- longer registered in @@particles but are added to @deplate.input's
96
- particles list. This should prevent problems when using several output
97
- format via the converter or xmlrpc modules. This possibly breaks modules
98
- like anyword, zh-cn, ru ...
99
- * makefile.rb: A module to create a standard makefile for the given input
100
- files
101
- * commands.rb: #CAPTION: Don't assign a caption to an element that already
102
- has one
103
- * regions.rb: If the rScanTable variable is set, guess column breaks in R
104
- generated tables (doesn't work yet properly)
105
- * formatter.rb: (inadvertent) wiki names in bibliographic entries don't
106
- get translated as hyperlinks; in citations, insert a space between the
107
- note and the author's name; other minor citation related tweaks
108
- * particles.rb, html.rb: URLs/wiki names may have a target attribute. If
109
- an extended wiki name has the form [[url]*] (see the '*'), the destination
110
- will be opened in a new window (target=_blank).
111
- * regions.rb: #Quote and #Abstract regions can now take (block-level)
112
- elements (e.g., lists, tables) as body.
113
- * koma.rb: Fixed missing argument in format_pagenumber
114
- * core.rb: Options can be set in the ini file by prepending the name with
115
- ':', i.e. 'option foo=bar' is equivalent to ':foo=bar'
116
- * core.rb: There is a new "--allow" command line option. The argument is a
117
- comma separated list of flags: x, X, :
118
- * elements.rb: If ":" is allowed, you can access options in some
119
- situations by prepending a name with ":" (e.g. #IF tests).
120
- * etc.rb: New file.
121
- * common.rb, elements.rb, particles.rb, macros.rb: Slightly refactored
122
- base classes & modules hierarchy.
123
- * define.rb: Fixed DefMacro (as a side effect, macro definitions may now
124
- contain #IF statements).
125
- * formatter.rb etc.: NAME, RX etc. are now class properties/attributes.
126
- ''declare_formatter'' is called automatically when setting the formatter's
127
- name.
128
- * html.rb: Slightly improved parsing of dates.
129
- * html.rb: The LIST command has some new options: min, max, top, sub,
130
- levels (HTML only; this provides for partial listings)
131
- * elements.rb, html.rb: subToC parameter (currently only useful for HTML
132
- output)
133
- * plain.rb: Arity of format_figure.
134
- * commands.rb: If the #INCLUDE command has an explicit file argument and
135
- an anonymous argument, the explicit one overrides the anonymous one; a
136
- message is displayed (fixes BUG 1325550).
137
- * input.rb: Minor changes. Successfully mix input formats by including a
138
- rdoc document into a deplate/viki document.
139
- * makefile.rb: The makefile module propagates command line arguments.
140
- * common.rb, elements.rb: Fixed handling of styles.
141
- * core.rb: Fixed interaction between -d & -o command line options.
142
- * particles.rb: Markup of camel case names (back to 0.7.2) again.
143
- * core.rb: Fixed #pop_input_format. tc-mixed-input.rb succeeds.
144
- * html-obfuscate-email.rb: Minor change.
145
- * core.rb: Fixed file not found handling.
146
- * regions.rb: Fixed #do_xtable.
147
- * html.rb: Handle special characters in the img.alt argument. The alt text
148
- of an image created by the ltx macro is the latex source.
149
- * input.rb: Fixed interaction of line continuation & comments
150
- * makefile.rb: Split makefile: Makefile & Makefile.config (which won't be
151
- overwritten).
152
- * koma.rb: Fixed use of tables in header & footer.
153
- * makefile.rb: make view: (uses a generic viewer to display the latest
154
- output)
155
- * koma.rb: Fixed slot warning.
156
- * docbook.rb: Fix problem arising from allowing block elements in
157
- abstracts and quotes.
158
- * xml.rb: Don't require symbol modules twice.
159
- * particles.rb: Fixed bug introduced when caching autoindex particles.
160
- * input.rb: (parse_args) Bool vars can be defined as var=true and
161
- var=false.
162
- * macros.rb: Fixed problem with false boolean values.
163
- * elements.rb: If the an ordered list is explicitly numbered, this
164
- numbering is maintained (not supported by all formatters).
165
- * formatter.rb: Fixed incorrect formatting of lists.
166
- * core.rb, html.rb etc.: Fix: absolute vs. relative path name.
167
- * core.rb: Also check the data dir (/usr/share) for compatibility with
168
- setup.rb.
169
- * commands.rb: Use Deplate::Core.library_directories() for #INC.
170
- * core.rb: Fix: file names of autogenerates breaks (eg MAKEBIB &
171
- htmlsite).
172
- * latex.rb: texLists option
173
- * latex.rb, html.rb, formatter.rb: Improved support for explicitly
174
- numbered lists (not for docbook yet).
175
-
1
+ deplate 0.8
2
+ * external.rb: With ruby-mswin, add .exe to the name of an external
3
+ application (if not specified).
4
+ * common.rb: moved @accum from \CommonElement to Element.
5
+ * elements.rb: @accum defaults to [].
6
+ * commands.rb: PAGE command (same as ''---8<---'').
7
+ * elements.rb (do_accumulate): set indentation.
8
+ * common.rb: class attributes.
9
+ * elements.rb, html.rb, latex.rb, structures.rb: Embedded elements in
10
+ lists.
11
+ * input.rb: FIX: boolean variables.
12
+ * plain.rb: If ansiColor is defined, some text styles are used.
13
+ * docbook.rb, structured.rb: Fix: indentation of verbatim region, headings
14
+ etc.
15
+ * setup.rb: Updated to 3.4.1
16
+ * html.rb: In a mailto url, the protocol is removed from the name.
17
+ * html.rb: Support for task lists (html, plain text, latex).
18
+ * input.rb: If embeddedVerbatim is empty, the text will be swallowed.
19
+ * core.rb, commands.rb: The handling of the search path has changed; css &
20
+ templates are searched in $PWD/deplate.rc too.
21
+ * core.rb: If an unknown language is set (using #LANG), try to load a
22
+ module of the same name (if the allow flags contain 'l').
23
+ * htmlsite.rb: The page body is wrapped in a div.
24
+ * html.rb, latex.rb, structured.rb: include_image and macros/commands
25
+ depending on it, accept a file argument.
26
+ * elements.rb: FIX: numbering of tables/figures (created by #Table).
27
+ * html.rb: FIX: nextKey (jump between pages of multi html output by single
28
+ key press) didn't work.
29
+ * html.rb: html_navigation_buttons service.
30
+ * html.rb: FIX: inconsistent handling of html classes.
31
+ * particles.rb: Allow interwiki names for extended wiki names, e.g
32
+ ''[[WIKI::FooBar#a][Foo and Bar]]''. \(experimental)
33
+ * region.rb: #Ins alias for #Native.
34
+ * macros.rb: Output of the ruby macro gets formatted by default.
35
+ * input.rb: FIX: comments in regions were removed by the input handler.
36
+ * elements.rb, ...: Renamed list: Numbered -> Ordered
37
+ * formatter.rb, html.rb, latex.rb: Generalized handling of the style
38
+ attribute/option.
39
+ * elements.rb, particles.rb, formatter.rb ...: Refactoring: more use of
40
+ home-grown class attributes.
41
+ * formatter.rb, html.rb, plain.rb: Generalized listings, counters (html,
42
+ plain text, latex).
43
+ * commands.rb: New: #DEFLIST, #REGISTER commands.
44
+ * elements.rb: Chaining formatters for elements: set_formatter accepts
45
+ arrays. \(experimental)
46
+ * commands.rb: #ARG: accept default argument
47
+ * html.rb: FIX: The value argument in explicitly numbered lists was
48
+ invalid.
49
+ * code-gvim.rb: Replace <font> tags with <span> so that the output is
50
+ valid 4.1t html.
51
+ * regions.rb: FIX: Labelling of #Foreach generated output was wrong.
52
+ * latex.rb: elementStyle and particleStyle options (for different markup
53
+ of styles). (obsolete)
54
+ * macros.rb: The text macro can be used to attach a style to some inline
55
+ text.
56
+ * elements.rb, common.rb: Generate most get_* methods by way of def_get.
57
+ * macro.rb: New counter macro.
58
+ * core.rb: Some adjustments for use of counters.
59
+ * core.rb: Use counters for toc.
60
+ * core.rb: FIX: bug #1363959.
61
+ * elements.rb: FIX: Exception when a clip was empty.
62
+ * input.rb, elements.rb: Improved handling of ''if'' arguments.
63
+ * define.rb: Consistent use of Deplate::Cache.
64
+ * symbols-*.rb, xml.rb ...: Revamped symbols code.
65
+ * htmlsite.rb, output.rb: Got rid of the @idx counter.
66
+ * core.rb, output.rb: Removed Deplate::Core#current_top (this was a
67
+ leftover from experiments with setting the output already during the first
68
+ pass).
69
+ * core.rb, html.rb, htmlsite.rb: Use def_service to define & register
70
+ services.
71
+ * core.rb, etc.rb, elements.rb: Counters are now transparently
72
+ hierarchical. The use of the variable ''#{entity}Numbering'' has changed.
73
+ If it is set to 0, the numbering is flat. If it is 1, the chapter number
74
+ is prepended to the element's number. Sooner or later, higher values will
75
+ yield useful results too.
76
+ * core.rb: @counters and @listings moved to @options.
77
+ * latex.rb: FIX: Can't include remote images (use the basename instead)
78
+ * docbook.rb: FIX: Close headings when in "included" mode (put closing
79
+ tags in the main body).
80
+ * docbook.rb: FIX: Inadvertent hyperlinks in bib entries; other problem
81
+ with MAKEBIB.
82
+ * macros.rb, commands.rb: The (x)val macros and (X)VAL commands know some
83
+ new options: sub, tr, upcase, downcase, capitalize.
84
+ * particles.rb: Try to be a little bit smarter when selecting opening or
85
+ closing quotes.
86
+ * regions.rb: #Write region: Write an expanded template to a file
87
+ \(requires the w or W allow flags to be set).
88
+ * etc.rb, elements.rb, core.rb: Counters can depend on other (parent)
89
+ counters.
90
+ * core.rb: FIX: Make the object() service work.
91
+ * macros.rb, etc.rb, core.rb: ''.'' allow flag; make something like
92
+ ''{arg: obj[method]}'' work.
93
+ * elements.rb: The default value for date related commands/macros is
94
+ "today".
95
+ * elements.rb: FIX: In some cases a label pointed to an obsolete objects,
96
+ which were unified with another object
97
+ * core.rb: FIX: allow=x,X was ignored
98
+ * elements.rb: Table rows are accumulated right away.
99
+ * deplate-string.rb: NEW: ''DeplateString'' convenience class.
100
+ * variables.rb, counters.rb: Extract from etc.rb.
101
+ * core.rb, converter.rb: FIX: to_xhtml10t didn't work.
102
+ * commmands.rb: Allow ''#VAR id=var: value''.
103
+ * converter.rb: Missing methods are forwarded to the instance of
104
+ Deplate::Core.
105
+ * nukumi2.rb: NEW: Experimental hack for using deplate with nukumi2
106
+ (v0.5).
107
+ * core.rb: NEW: ''auxiliaryDir'' and ''mandatoryID'' variables.
108
+ * commands.rb: NEW: KEYWORDS command (a simple wrapper for ''#VAR
109
+ id=keywords'').
110
+ * wiki-markup.rb: FIX: to_be_continued? in
111
+ Deplate::Input::Wiki::ParagraphIndentedVerbatim
112
+ * macro.rb: FIX: ''var'' macro.
113
+ * core.rb: prefixID variable; if not defined, prefix autogenerated
114
+ auxiliary files with the current document's base name.
115
+ * core.rb, particles.rb: autoindexed elements are now registered in
116
+ @deplate.options.
117
+ * elements.rb: The ''#REGISTER'' command is volatile, which could result
118
+ in a different result from ''{counter}'' when used in the registered
119
+ element.
120
+ * macros.rb: Disabled the byId argument for the ''ref'' macro.
121
+ * common.rb, elements.rb: Elements have a ''volatile'' class attribute.
122
+ * input.rb, particles.rb: Simple Wiki names now check for the surrounding
123
+ text, which should avoid some problem with international characters.
124
+ * html.rb, latex.rb, plain.rb, structured.rb: The ref macro can take a
125
+ ''prefix'' argument (default: nonbreaking space).
126
+ * formatter.rb, latex.rb: New ''bibStyle'' variable (can be set instead of
127
+ passing an argument to #MAKEBIB)
128
+ * macros.rb: The ''cite'' macro allows names to be separated by [ ,;].
129
+ * formatter.rb: Improved formatting & bibtex-compatibility of the
130
+ bibliography. Handle @string entries.
131
+ * core.rb, input.rb: Boolean variables where not properly set when defined
132
+ on the command line (-D).
133
+ * core.rb: --list-modules, --list-css command line options.
134
+ * core.rb: Create the directory given in the -d command line option if
135
+ necessary.
136
+ * commands.rb: #MAKEBIB sets the ''bibStyle'' variable if not already set
137
+ * core.rb: allow 'r' flag to enable the deplate.rc hierarchy (only
138
+ partially supported yet); if set, config.rb is loaded from deplate.rc too.
139
+ * core.rb: Allow command line options in deplate.ini; add ''allow''
140
+ directive for deplate.ini.
141
+ * latex.rb: Set DIV in class document options, not as argument to the
142
+ typearea package.
143
+ * plain.rb: FIX: #Abstract and #Quote regions were word wrapped twice
144
+ which resulted in malformed output.
145
+ * elements.rb: Avoid multiple whitespace.
146
+ * plain.rb, external.rb: Use jave to convert images to ascii
147
+ representations (requires the ''asciiArt'' variable to be set).
148
+ * core.rb: Variables in deplate.ini weren't set according to the canonic
149
+ rules.
150
+ * plain.rb: Changed the suffix to ".text"
151
+ * smiley.rb: Ignore imgSfx, smileySfx; use the formatter's default suffix
152
+ rules.
153
+ * makefile.rb: The module now searches the library for a Makefile.config
154
+ template.
155
+ * elements.rb: If a heading has an url option attached, it is turned into
156
+ a hyperlink (experimental; inspired by a hack by Chen Shou:
157
+ http://blog.csdn.net/Solstice/archive/2006/02/22/606266.aspx)
158
+ * html.rb: CSS files defined via the css variable are copied to the
159
+ destination too.
160
+ * core.rb, html.rb, htmlsite.rb: ''--split-level'' command line option;
161
+ split files at any level (experimental; based on a hack by Chen Shou)
162
+ * core.rb: The numbering of auto-numbered file names has slightly changed;
163
+ the first file is named 'basename.suffix', the next one
164
+ 'basename00001.suffix' and so on (before, all files were numbered).
165
+ * core.rb: A ''homeIndex'' variable was introduced to help ''deplate''
166
+ determine the heading level of the first page in multi-file output (which
167
+ is otherwise assumed to be 0 but this is wrong in some situations).
168
+ * core.rb: A ''autoBaseName'' variable was introduced to deduce the output
169
+ file name from the current input file. (based on a hack by Chen Shou)
170
+ * particles.rb: Defined how to disable certain particles or symbols.
171
+ * formatter.rb: Restricted LaTeX: Remove blacklisted commands from LaTeX
172
+ code (based on class.latexrender.php by Benjamin Zeiss & Steve Mayer:
173
+ http://www.mayer.dial.pipex.com/tex.htm#latexrender) unless the allow
174
+ flags contain ''t''.
175
+ * external.rb: Default value for ps2imgRes was changed to 120.
176
+ * formatter.rb: Default value for ltxPointsize was changed to 10.
177
+ * commands.rb: The handling of backslashes in the #ABBREV command has
178
+ slightly changed. (experimental)
179
+ * html.rb: New htmlCssUrl and htmlImgUrl variables (the value should be a
180
+ format string); these are used for formatting image and css paths.
181
+ * deplate-restricted.rb, input.rb: In restricted mode #VAR may only set
182
+ variables beginning with an underscore (_).
183
+ * htmlsite.rb: Changed css class for tabBar*Active/Inactive.
184
+ * html-jsmath.rb: Support for jsMath for setting mathematical stuff in
185
+ html output (similar to asciimath).
186
+ * deplate-restricted.rb: Disabled macros were still accessible.
187
+ * html.rb: More general solution for handling key presses via javascript.
188
+ * html.rb: Added some javascript magic to display page contents step by
189
+ step (this should be sufficient for doing presentations for Powerpoint
190
+ conditioned people). This can be enabled by putting something like ''#ARG:
191
+ stepwiseDisplay()'' into the template.
192
+ * core.rb, html.rb, htmlsite.rb: "Services" are now formatter specific.
193
+ * smart-dash.rb: New module.
194
+ * variables.rb: Make this :option notation generally known.
195
+ * core.rb: Allow flags can be set (''+x,x'') and removed (''-x'').
196
+ * regions.rb, html.rb, latex.rb, plain.rb, structured.rb: Footnotes now
197
+ contain block elements (eg lists etc.).
198
+ * html.rb: The image tag's classes were joined with commas.
199
+ * core.rb: Work-around for some original idiocy in the handling of
200
+ multi-file output.
201
+ * formatter.rb: Lists containing elements weren't properly closed in some
202
+ situations.
203
+ * html.rb: Any image can have a ''hi'' attribute for roll-over effect.
204
+ * formatter.rb: outputFilename() and outputBasename() services.
205
+ * macros.rb: New msg macro (insert localized messages).
206
+ * template.rb: Enable msg macro for templates.
207
+ * php-extra.rb, page-comment.inc.php: Poor people's page comments (file
208
+ based, requires a writeable directory).
209
+ * html.rb: Quotations may have a source argument (at the moment HTML
210
+ only).
211
+ * core.rb: Set homeIndex to the first non-empty output.
212
+ * html.rb, htmlsite.rb: Escape references in automatically generated
213
+ hyperlinks.
214
+ * particles.rb: Deplate::Particle.build_rx() has changed and moved to
215
+ Deplate::Rx.
216
+ * skeletons.rb: Pre-processing, string-based micro-template/skeleton
217
+ expansion: skeleton (foo: ''Foo is {arg: @body}'') + input (''{{foo:
218
+ bar}}'') = new input (''Foo is bar'').
219
+ * elements.rb: Elements have an embedable attribute.
220
+ * commands.rb: #NOP command -- can be used to split lists.
221
+ * macros.rb: ''{unknown}'' will be to a clip or variable's value if such a
222
+ clip or variable is defined (older yet undocumented change).
223
+ * variables.rb: ''arg'' & ''var'' type of macros can have ''join'',
224
+ ''values'', ''keys'' arguments to deal with hashes and array.
225
+ * elements.rb: Problem with task lists containing percents as completion
226
+ index.
227
+ * deplate.sty: This is now handled as a template. On the long run, all
228
+ files in the lib subdirectory should be templates and/or valid deplate
229
+ input files.
230
+ * particles.rb: Pass ''{}'' through.
231
+ * html.rb, elements.rb: The #DATE command accepts a ''none'' argument,
232
+ that prevents deplate from including a timestamp in the document's meta
233
+ data (HTML output).
234
+ * skeletons.rb: The use of a dedicated skeletons directory was removed;
235
+ skeletons are now looked for in the lib subdirectory (as does the ''#INC''
236
+ command). The difference is that skeletons are expanded at load-time but
237
+ the #INC command at run-time, so to say.
238
+ * skeletons.rb: Skeletons are properly indented.
239
+ * html.rb, structured.rb, latex.rb, plain.rb ...: Image related commands
240
+ now take a noGuess argument that makes deplate use the filename as given.
241
+ * common.rb: ''@args[:id]'' doesn't get accidentally overridden -> solves
242
+ some problems with docbook output.
243
+ * common.rb: output_file_name() returns '' if the output file is the
244
+ current (element's) one.
245
+ * docbook.rb, structured.rb: Fixed wiki & ref formatting.
246
+ * docbook.rb: Fixed formatting of footnotes & custom lists.
247
+ * input.rb: Macros also take an ''else'' argument in addition to the
248
+ ''if'' argument, e.g. ''{text if=cat else=Chirp: Meow}''.
176
249
 
177
250
  vim: ft=changelog
File without changes
data/NEWS.TXT CHANGED
@@ -1,29 +1,33 @@
1
- * deplate 0.7.3
1
+ * deplate 0.8
2
2
 
3
- This release contains many small changes, fixes, and improvements.
3
+ This release contains many small changes and fixes. The main user-visible improvements are: better support for bibliographies, embedded elements in lists, task lists, a general style attribute, custom listings, hierarchical counters, load-time-expanded skeletons etc.
4
4
 
5
- Easier configuration; can be fully localized; define elements and particles right in the document; some new modules & formatters; improved support for rdoc input.
5
+ - Custom listings and hierarchical counters (toc, lof & lot are now implemented this way)
6
+ - Skeletons were introduced; skeletons are expanded at load-time before the document is parsed
7
+ - Improved support for bibliographies
8
+ - Improved lists:
9
+ - Enable nested/embedded elements in lists
10
+ - Some support for task lists
11
+ - Remove blacklisted LaTeX commands from input (unless allow=t is set)
12
+ - Support for a general style attribute (support for styled LaTeX and HTML output; not supported for DocBook output)
13
+ - Extended wiki names my include interwikis (e.g. [[WIKI::FooBar#a][Foo and Bar]])
14
+ - Slightly improved support for international characters in camel-case type wiki names
15
+ - More commands were made volatile (i.e. they don't close elements)
16
+ - Experimental hack for nukumi2 (v0.5)
17
+ - Support for jsMath
18
+ - A php hack was included to provide cheap/unsafe per-page user comments
19
+ - A javascript hack was included to provided step-by-step display of HTML pages
20
+ - Footnotes now contain block elements
21
+ - New commands: #PAGE, #DEFLIST, #REGISTER, #KEYWORDS, #NOP
22
+ - New regions: #Write
23
+ - New macros: counter, msg
24
+ - New variables: auxiliaryDir, mandatoryID, prefixID, bibStyle
25
+ - New services: outputFilename(), outputBasename()
26
+ - New classes: DeplateString convenience class
27
+ - New command line options: --list-modules, --list-css command
6
28
 
7
- Changes:
8
- - The #Html, #Latex shortcuts for #Native were disabled.
9
- - Template formatter can be used from the command line.
10
- - Module for LaTeX like ($\math$) math markup.
11
- - deplate can be fully localized.
12
- - Variables can be hashes & array; improved support for boolean variables.
13
- - Auxiliary files can be putted in a subdirectory (e.g., FILENAME_files).
14
- - Improved utf8 support. On-the-fly transcoding via iconv (if available).
15
- - Read user setting from ~/deplate/deplate.ini (which should make ruby hacking obsolete for most users).
16
- - Php output (basically the same as HTML).
17
- - In extended wiki links, both arguments get fully parsed (i.e., they may contain macros).
18
- - Improved support for rdoc
19
- - New elements, particles can be defined in the source document, no ruby hacking requires (experimental).
20
- - Text can be embedded in comments.
21
- - Can mix input formats (currently, only the inclusion of rdoc documents in deplate documents is supported).
22
- - Improved xmlrpc server.
23
- - Formatters for small text snippets.
24
- - Improved support for bibtex files.
25
- - Run "deplate -m makefile INPUT FILES" to create a standard Makefile.
29
+ NOTE: The way files are automatically numbered with multi-file output (e.g. when using the htmlsite formatter) has changed which may result in a different numbering under certain conditions.
26
30
 
27
- For other changes please see the log.
31
+ For other changes please see the CHANGES.TXT.
28
32
 
29
- % vi: ft=viki:tw=0:ts=4
33
+ % vi: ft=text:tw=0:ts=4