deplate 0.8.4 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.TXT +118 -0
- data/NEWS.TXT +6 -21
- data/VERSION.TXT +1 -1
- data/etc/deplate.ini +15 -2
- data/lib/action_view/helpers/deplate.rb +0 -0
- data/lib/deplate/abstract-class.rb +3 -2
- data/lib/deplate/bib.rb +3 -2
- data/lib/deplate/builtin.rb +3 -2
- data/lib/deplate/cache.rb +3 -2
- data/lib/deplate/commands.rb +3 -11
- data/lib/deplate/common.rb +7 -2
- data/lib/deplate/compat.rb +21 -0
- data/lib/deplate/compat/parsedate.rb +24 -0
- data/lib/deplate/converter.rb +3 -2
- data/lib/deplate/core.rb +135 -103
- data/lib/deplate/counters.rb +3 -2
- data/lib/deplate/css/article.css +2 -2
- data/lib/deplate/css/doc.css +3 -2
- data/lib/deplate/css/heading-navbar.css +2 -2
- data/lib/deplate/css/highlight.css +0 -0
- data/lib/deplate/css/layout-deplate-print.css +2 -2
- data/lib/deplate/css/layout-deplate.css +2 -2
- data/lib/deplate/css/presentation.css +2 -2
- data/lib/deplate/css/sans-serif.css +2 -2
- data/lib/deplate/css/screenplay.css +0 -0
- data/lib/deplate/css/serif-e.css +2 -2
- data/lib/deplate/css/serif-rel.css +3 -2
- data/lib/deplate/css/serif.css +2 -2
- data/lib/deplate/css/slides.css +3 -2
- data/lib/deplate/css/tabbar-top.css +2 -2
- data/lib/deplate/css/text-sans-serif.css +3 -2
- data/lib/deplate/css/text-serif.css +2 -2
- data/lib/deplate/css/website.css +0 -0
- data/lib/deplate/define.rb +3 -2
- data/lib/deplate/deplate-string.rb +3 -2
- data/lib/deplate/docbook.rb +4 -14
- data/lib/deplate/elements.rb +37 -4
- data/lib/deplate/encoding.rb +57 -0
- data/lib/deplate/etc.rb +7 -5
- data/lib/deplate/external.rb +5 -13
- data/lib/deplate/fmt/dbk-article-4.1.2.rb +3 -2
- data/lib/deplate/fmt/dbk-article.rb +3 -2
- data/lib/deplate/fmt/dbk-book.rb +3 -2
- data/lib/deplate/fmt/dbk-ref.rb +3 -2
- data/lib/deplate/fmt/dbk-slides.rb +3 -2
- data/lib/deplate/fmt/dbk-snippet.rb +3 -2
- data/lib/deplate/fmt/html-snippet.rb +3 -2
- data/lib/deplate/fmt/html.rb +40 -27
- data/lib/deplate/fmt/htmlsite.rb +3 -2
- data/lib/deplate/fmt/htmlslides.rb +3 -2
- data/lib/deplate/fmt/htmlwebsite.rb +3 -2
- data/lib/deplate/fmt/latex-dramatist.rb +2 -1
- data/lib/deplate/fmt/latex-snippet.rb +3 -2
- data/lib/deplate/fmt/latex.rb +88 -67
- data/lib/deplate/fmt/null.rb +3 -2
- data/lib/deplate/fmt/php.rb +3 -2
- data/lib/deplate/fmt/phpsite.rb +3 -2
- data/lib/deplate/fmt/plain.rb +4 -3
- data/lib/deplate/fmt/sweave.rb +104 -0
- data/lib/deplate/fmt/template.rb +3 -2
- data/lib/deplate/fmt/xhtml10t.rb +82 -2
- data/lib/deplate/fmt/xhtml11m.rb +3 -2
- data/lib/deplate/formatter-snippet.rb +3 -2
- data/lib/deplate/formatter.rb +203 -29
- data/lib/deplate/guesslanguage.rb +3 -2
- data/lib/deplate/input.rb +9 -8
- data/lib/deplate/input/deplate-headings.rb +3 -2
- data/lib/deplate/input/deplate-restricted.rb +3 -2
- data/lib/deplate/input/deplate.rb +3 -2
- data/lib/deplate/input/play.rb +3 -2
- data/lib/deplate/input/rdoc.rb +3 -2
- data/lib/deplate/input/template.rb +3 -2
- data/lib/deplate/lib/Makefile.config +8 -0
- data/lib/deplate/locale/de.latin1 +6 -0
- data/lib/deplate/macros.rb +4 -2
- data/lib/deplate/messages.rb +9 -5
- data/lib/deplate/metadata.rb +3 -2
- data/lib/deplate/metadata/marshal.rb +3 -2
- data/lib/deplate/metadata/xml.rb +3 -2
- data/lib/deplate/metadata/yaml.rb +3 -2
- data/lib/deplate/mod/anyword.rb +3 -2
- data/lib/deplate/mod/babelfish.rb +3 -2
- data/lib/deplate/mod/code-coderay.rb +3 -2
- data/lib/deplate/mod/code-gvim.rb +3 -2
- data/lib/deplate/mod/code-gvim71.rb +3 -2
- data/lib/deplate/mod/code-highlight.rb +3 -2
- data/lib/deplate/mod/colored-log.rb +3 -2
- data/lib/deplate/mod/encode.rb +33 -0
- data/lib/deplate/mod/endnotes.rb +3 -2
- data/lib/deplate/mod/entities-decode.rb +2 -1
- data/lib/deplate/mod/entities-encode.rb +2 -1
- data/lib/deplate/mod/guesslanguage.rb +3 -2
- data/lib/deplate/mod/html-asciimath.rb +3 -2
- data/lib/deplate/mod/html-deplate-button.rb +3 -2
- data/lib/deplate/mod/html-headings-navbar.rb +3 -2
- data/lib/deplate/mod/html-highstep.rb +3 -2
- data/lib/deplate/mod/html-jsmath.rb +3 -2
- data/lib/deplate/mod/html-mathml.rb +2 -1
- data/lib/deplate/mod/html-obfuscate-email.rb +3 -2
- data/lib/deplate/mod/html-sidebar.rb +3 -2
- data/lib/deplate/mod/htmlslides-navbar-fh.rb +3 -2
- data/lib/deplate/mod/iconv.rb +3 -2
- data/lib/deplate/mod/imgurl.rb +4 -3
- data/lib/deplate/mod/inlatex-compound.rb +3 -2
- data/lib/deplate/mod/koma.rb +3 -2
- data/lib/deplate/mod/lang-de.rb +3 -2
- data/lib/deplate/mod/lang-en.rb +3 -2
- data/lib/deplate/mod/lang-ru-koi8-r.rb +3 -2
- data/lib/deplate/mod/lang-ru.rb +3 -2
- data/lib/deplate/mod/lang-zh_CN-autospace.rb +3 -2
- data/lib/deplate/mod/lang-zh_CN.rb +3 -2
- data/lib/deplate/mod/latex-emph-table-head.rb +3 -2
- data/lib/deplate/mod/latex-styles.rb +3 -2
- data/lib/deplate/mod/latex-verbatim-small.rb +3 -2
- data/lib/deplate/mod/linkmap.rb +2 -1
- data/lib/deplate/mod/makefile.rb +39 -46
- data/lib/deplate/mod/mark-external-urls.rb +3 -2
- data/lib/deplate/mod/markup-1-warn.rb +3 -2
- data/lib/deplate/mod/markup-1.rb +3 -2
- data/lib/deplate/mod/navbar-png.rb +3 -2
- data/lib/deplate/mod/noindent.rb +3 -2
- data/lib/deplate/mod/numpara.rb +3 -2
- data/lib/deplate/mod/particle-math.rb +3 -2
- data/lib/deplate/mod/php-extra.rb +3 -2
- data/lib/deplate/mod/pstoedit.rb +3 -2
- data/lib/deplate/mod/recode.rb +3 -2
- data/lib/deplate/mod/smart-dash.rb +3 -2
- data/lib/deplate/mod/smiley.rb +3 -2
- data/lib/deplate/mod/soffice.rb +3 -2
- data/lib/deplate/mod/symbols-latin1.rb +8 -2
- data/lib/deplate/mod/symbols-od-utf-8.rb +3 -2
- data/lib/deplate/mod/symbols-plain.rb +3 -2
- data/lib/deplate/mod/symbols-sgml.rb +6 -5
- data/lib/deplate/mod/symbols-utf-8.rb +6 -5
- data/lib/deplate/mod/symbols-xml.rb +3 -2
- data/lib/deplate/mod/syntax-region-alt.rb +3 -2
- data/lib/deplate/mod/utf8.rb +3 -2
- data/lib/deplate/mod/validate-html.rb +3 -2
- data/lib/deplate/mod/xmlrpc.rb +3 -2
- data/lib/deplate/nukumi2.rb +3 -2
- data/lib/deplate/once-method.rb +3 -2
- data/lib/deplate/output.rb +3 -2
- data/lib/deplate/particles.rb +12 -6
- data/lib/{ps2ppm.rb → deplate/ps2ppm.rb} +11 -11
- data/lib/deplate/regions.rb +75 -52
- data/lib/deplate/skeletons.rb +3 -2
- data/lib/deplate/structured.rb +8 -24
- data/lib/deplate/template.rb +3 -2
- data/lib/deplate/themes/presentation.html/css/presentation.css +2 -2
- data/lib/deplate/themes/presentation.html/prelude.txt +1 -1
- data/lib/deplate/themes/presentation.html/resources/spacer.png +0 -0
- data/lib/deplate/themes/s5.xhtml/README.TXT +2 -0
- data/lib/deplate/themes/s5.xhtml/templates/s5.xhtml +42 -0
- data/lib/deplate/themes/s5.xhtml/theme.ini +11 -0
- data/lib/deplate/variables.rb +12 -2
- data/lib/deplate/wiki-markup.rb +3 -2
- data/lib/deplate/xml.rb +19 -21
- data/lib/deplate/zh_CN.rb +3 -2
- data/man/man1/deplate.1 +83 -128
- 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:
|
7
|
-
# @Revision: 0.
|
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:
|
7
|
-
# @Revision: 0.
|
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)
|
data/lib/deplate/mod/markup-1.rb
CHANGED
@@ -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:
|
7
|
-
# @Revision: 0.
|
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:
|
7
|
-
# @Revision: 0.
|
7
|
+
# @Last Change: 2009-02-02.
|
8
|
+
# @Revision: 0.80
|
8
9
|
#
|
9
10
|
# Description:
|
10
11
|
#
|
data/lib/deplate/mod/noindent.rb
CHANGED
@@ -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:
|
7
|
-
# @Revision: 0.
|
7
|
+
# @Last Change: 2009-02-02.
|
8
|
+
# @Revision: 0.20
|
8
9
|
#
|
9
10
|
# Description:
|
10
11
|
# Avoid inserting spaces and linebreaks
|
data/lib/deplate/mod/numpara.rb
CHANGED
@@ -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:
|
7
|
-
# @Revision: 0.
|
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:
|
7
|
-
# @Revision: 0.
|
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:
|
7
|
-
# @Revision: 0.
|
7
|
+
# @Last Change: 2009-02-02.
|
8
|
+
# @Revision: 0.30
|
8
9
|
#
|
9
10
|
# = Description
|
10
11
|
# Provide some php specific elements/particles/macros ...
|
data/lib/deplate/mod/pstoedit.rb
CHANGED
@@ -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:
|
7
|
-
# @Revision: 0.
|
7
|
+
# @Last Change: 2009-02-02.
|
8
|
+
# @Revision: 0.78
|
8
9
|
#
|
9
10
|
# = Description
|
10
11
|
# Use pstoedit for converting postscript to images.
|
data/lib/deplate/mod/recode.rb
CHANGED
@@ -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:
|
7
|
-
# @Revision: 0.
|
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:
|
6
|
-
# @Revision: 0.
|
6
|
+
# @Last Change: 2009-02-02.
|
7
|
+
# @Revision: 0.27
|
7
8
|
|
8
9
|
class Deplate::Particle::Symbol
|
9
10
|
@@symbols_table.delete(['--'])
|
data/lib/deplate/mod/smiley.rb
CHANGED
@@ -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-
|
7
|
-
# @Revision: 0.
|
7
|
+
# @Last Change: 2009-02-02.
|
8
|
+
# @Revision: 0.70
|
8
9
|
#
|
9
10
|
# Description:
|
10
11
|
#
|
data/lib/deplate/mod/soffice.rb
CHANGED
@@ -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:
|
7
|
-
# @Revision: 0.
|
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:
|
7
|
-
# @Revision: 0.
|
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
|
+
"�" #%{ }
|
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:
|
7
|
-
# @Revision: 0.
|
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:
|
7
|
-
# @Revision: 0.
|
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:
|
7
|
-
# @Revision: 0.
|
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
|
" " #%{ }
|
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:
|
7
|
-
# @Revision: 0.
|
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:
|
7
|
-
# @Revision: 0.
|
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:
|
7
|
-
# @Revision: 0.
|
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:
|
data/lib/deplate/mod/utf8.rb
CHANGED
@@ -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:
|
7
|
-
# @Revision: 0.
|
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:
|
7
|
-
# @Revision: 0.
|
7
|
+
# @Last Change: 2009-02-02.
|
8
|
+
# @Revision: 0.23
|
8
9
|
#
|
9
10
|
# Description:
|
10
11
|
#
|
data/lib/deplate/mod/xmlrpc.rb
CHANGED
@@ -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:
|
7
|
-
# @Revision: 0.
|
7
|
+
# @Last Change: 2009-02-02.
|
8
|
+
# @Revision: 0.249
|
8
9
|
#
|
9
10
|
# = Description
|
10
11
|
#
|
data/lib/deplate/nukumi2.rb
CHANGED
@@ -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:
|
6
|
-
# @Revision: 0.
|
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.
|
data/lib/deplate/once-method.rb
CHANGED
@@ -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:
|
7
|
-
# @Revision: 0.
|
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.
|
data/lib/deplate/output.rb
CHANGED
@@ -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:
|
7
|
-
# @Revision: 0.
|
7
|
+
# @Last Change: 2009-02-02.
|
8
|
+
# @Revision: 0.267
|
8
9
|
|
9
10
|
require 'forwardable'
|
10
11
|
require 'deplate/metadata'
|
data/lib/deplate/particles.rb
CHANGED
@@ -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:
|
7
|
-
# @Revision: 0.
|
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
|
-
@
|
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,
|