deplate 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS.TXT +26 -0
- data/CHANGES.TXT +177 -0
- data/LICENSE.TXT +340 -0
- data/NEWS.TXT +29 -0
- data/README.TXT +86 -0
- data/TODO.TXT +202 -0
- data/VERSION.TXT +1 -0
- data/bin/deplate +3 -0
- data/bin/deplate.bat +2 -0
- data/etc/deplate.ini +361 -0
- data/lib/deplate.rb +31 -0
- data/lib/deplate/abstract-class.rb +30 -0
- data/lib/deplate/builtin.rb +11 -0
- data/lib/deplate/cache.rb +59 -0
- data/lib/deplate/commands.rb +693 -0
- data/lib/deplate/common.rb +335 -0
- data/lib/deplate/converter.rb +99 -0
- data/lib/deplate/core.rb +2705 -0
- data/lib/deplate/css/article.css +545 -0
- data/lib/deplate/css/deplate.css +699 -0
- data/lib/deplate/css/heading-navbar.css +29 -0
- data/lib/deplate/css/layout-deplate-print.css +540 -0
- data/lib/deplate/css/layout-deplate.css +764 -0
- data/lib/deplate/css/sans-serif.css +160 -0
- data/lib/deplate/css/serif-e.css +170 -0
- data/lib/deplate/css/serif-rel.css +121 -0
- data/lib/deplate/css/serif.css +190 -0
- data/lib/deplate/css/slides.css +11 -0
- data/lib/deplate/css/tabbar-left.css +91 -0
- data/lib/deplate/css/tabbar-right-ie.css +14 -0
- data/lib/deplate/css/tabbar-right.css +118 -0
- data/lib/deplate/css/tabbar-top.css +64 -0
- data/lib/deplate/css/tabbar.css +81 -0
- data/lib/deplate/css/text-sans-serif.css +154 -0
- data/lib/deplate/css/text-serif.css +175 -0
- data/lib/deplate/define.rb +439 -0
- data/lib/deplate/docbook.rb +738 -0
- data/lib/deplate/elements.rb +1355 -0
- data/lib/deplate/etc.rb +199 -0
- data/lib/deplate/external.rb +135 -0
- data/lib/deplate/fmt/dbk-article-4.1.2.rb +21 -0
- data/lib/deplate/fmt/dbk-article.rb +46 -0
- data/lib/deplate/fmt/dbk-book.rb +46 -0
- data/lib/deplate/fmt/dbk-ref.rb +105 -0
- data/lib/deplate/fmt/dbk-slides.rb +47 -0
- data/lib/deplate/fmt/dbk-snippet.rb +21 -0
- data/lib/deplate/fmt/html-snippet.rb +21 -0
- data/lib/deplate/fmt/html.rb +1696 -0
- data/lib/deplate/fmt/htmlsite.rb +419 -0
- data/lib/deplate/fmt/htmlslides.rb +21 -0
- data/lib/deplate/fmt/htmlwebsite.rb +70 -0
- data/lib/deplate/fmt/latex-snippet.rb +22 -0
- data/lib/deplate/fmt/latex.rb +1242 -0
- data/lib/deplate/fmt/php.rb +19 -0
- data/lib/deplate/fmt/phpsite.rb +19 -0
- data/lib/deplate/fmt/plain.rb +598 -0
- data/lib/deplate/fmt/template.rb +34 -0
- data/lib/deplate/fmt/xhtml10t.rb +41 -0
- data/lib/deplate/formatter-snippet.rb +17 -0
- data/lib/deplate/formatter.rb +1210 -0
- data/lib/deplate/input.rb +492 -0
- data/lib/deplate/input/deplate-headings.rb +48 -0
- data/lib/deplate/input/deplate-restricted.rb +70 -0
- data/lib/deplate/input/deplate.rb +28 -0
- data/lib/deplate/input/rdoc.rb +277 -0
- data/lib/deplate/input/template.rb +29 -0
- data/lib/deplate/lib/latex/highlight-extra.sty +15 -0
- data/lib/deplate/lib/latex/highlight-typical.sty +15 -0
- data/lib/deplate/lib/tabmenu.js +146 -0
- data/lib/deplate/locale/de.latin1 +708 -0
- data/lib/deplate/locale/ru.koi8-r +48 -0
- data/lib/deplate/locale/zh_cn.gb2312 +35 -0
- data/lib/deplate/macros.rb +639 -0
- data/lib/deplate/messages.rb +120 -0
- data/lib/deplate/metadata.rb +77 -0
- data/lib/deplate/metadata/marshal.rb +24 -0
- data/lib/deplate/metadata/xml.rb +42 -0
- data/lib/deplate/metadata/yaml.rb +26 -0
- data/lib/deplate/mod/anyword.rb +56 -0
- data/lib/deplate/mod/babelfish.rb +27 -0
- data/lib/deplate/mod/code-gvim.rb +52 -0
- data/lib/deplate/mod/code-highlight.rb +91 -0
- data/lib/deplate/mod/colored-log.rb +17 -0
- data/lib/deplate/mod/de.rb +19 -0
- data/lib/deplate/mod/en.rb +17 -0
- data/lib/deplate/mod/endnotes.rb +60 -0
- data/lib/deplate/mod/fr.rb +46 -0
- data/lib/deplate/mod/html-asciimath.rb +40 -0
- data/lib/deplate/mod/html-deplate-button.rb +15 -0
- data/lib/deplate/mod/html-headings-navbar.rb +39 -0
- data/lib/deplate/mod/html-obfuscate-email.rb +47 -0
- data/lib/deplate/mod/html-sidebar.rb +232 -0
- data/lib/deplate/mod/htmlslides-navbar-fh.rb +32 -0
- data/lib/deplate/mod/iconv.rb +35 -0
- data/lib/deplate/mod/imgurl.rb +30 -0
- data/lib/deplate/mod/inlatex-compound.rb +69 -0
- data/lib/deplate/mod/koma.rb +109 -0
- data/lib/deplate/mod/latex-emph-table-head.rb +38 -0
- data/lib/deplate/mod/latex-styles.rb +461 -0
- data/lib/deplate/mod/latex-verbatim-small.rb +29 -0
- data/lib/deplate/mod/makefile.rb +194 -0
- data/lib/deplate/mod/mark-external-urls.rb +38 -0
- data/lib/deplate/mod/markup-1-warn.rb +37 -0
- data/lib/deplate/mod/markup-1.rb +41 -0
- data/lib/deplate/mod/navbar-png.rb +33 -0
- data/lib/deplate/mod/noindent.rb +32 -0
- data/lib/deplate/mod/numpara.rb +40 -0
- data/lib/deplate/mod/particle-math.rb +34 -0
- data/lib/deplate/mod/php-extra.rb +44 -0
- data/lib/deplate/mod/pstoedit.rb +71 -0
- data/lib/deplate/mod/recode.rb +57 -0
- data/lib/deplate/mod/ru_koi8-r.rb +20 -0
- data/lib/deplate/mod/smiley.rb +50 -0
- data/lib/deplate/mod/soffice.rb +23 -0
- data/lib/deplate/mod/symbols-latin1.rb +58 -0
- data/lib/deplate/mod/symbols-od-utf-8.rb +16 -0
- data/lib/deplate/mod/symbols-plain.rb +58 -0
- data/lib/deplate/mod/symbols-sgml.rb +97 -0
- data/lib/deplate/mod/symbols-utf-8.rb +81 -0
- data/lib/deplate/mod/symbols-xml.rb +34 -0
- data/lib/deplate/mod/syntax-region-alt.rb +37 -0
- data/lib/deplate/mod/utf8.rb +49 -0
- data/lib/deplate/mod/validate-html.rb +35 -0
- data/lib/deplate/mod/xmlrpc.rb +233 -0
- data/lib/deplate/mod/zh-cn-autospace.rb +108 -0
- data/lib/deplate/mod/zh-cn.rb +59 -0
- data/lib/deplate/once-method.rb +44 -0
- data/lib/deplate/output.rb +249 -0
- data/lib/deplate/particles.rb +815 -0
- data/lib/deplate/regions.rb +1076 -0
- data/lib/deplate/structured.rb +763 -0
- data/lib/deplate/template.rb +430 -0
- data/lib/deplate/templates/html-doc.html +28 -0
- data/lib/deplate/templates/html-left-tabbar-js.html +37 -0
- data/lib/deplate/templates/html-left-tabbar.html +31 -0
- data/lib/deplate/templates/html-tabbar-right-table.html +43 -0
- data/lib/deplate/templates/html-tabbar-right.html +23 -0
- data/lib/deplate/templates/html-tabbar-top.html +43 -0
- data/lib/deplate/templates/html-tabbar.html +31 -0
- data/lib/deplate/wiki-markup.rb +117 -0
- data/lib/deplate/xml.rb +109 -0
- data/lib/deplate/zh-cn.rb +59 -0
- data/lib/ps2ppm.rb +239 -0
- data/man/man1/deplate.1 +692 -0
- metadata +210 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
# particle-math.rb
|
2
|
+
# @Author: Thomas Link (samul AT web.de)
|
3
|
+
# @Website: http://deplate.sf.net/
|
4
|
+
# @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
|
5
|
+
# @Created: 25-M�r-2005.
|
6
|
+
# @Last Change: 23-Okt-2005.
|
7
|
+
# @Revision: 0.19
|
8
|
+
#
|
9
|
+
# = Description
|
10
|
+
# This provides a math markup as known from LaTeX: $\latexmarkup$
|
11
|
+
|
12
|
+
class Deplate::Particle::Math < Deplate::Particle
|
13
|
+
@@particles << self
|
14
|
+
@rx = /^\$(\S.*?)\$/
|
15
|
+
|
16
|
+
def setup
|
17
|
+
@proxy = Deplate::Macro::Math.new(@deplate, @container, @context, {}, @alt, get_text)
|
18
|
+
end
|
19
|
+
|
20
|
+
def process
|
21
|
+
@elt = @proxy.process
|
22
|
+
end
|
23
|
+
|
24
|
+
def get_text
|
25
|
+
@match[1]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
class Deplate::Core
|
30
|
+
def hook_late_require_particle_math
|
31
|
+
register_particle(Deplate::Particle::Math)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# php-extra.rb
|
2
|
+
# @Author: Thomas Link (samul AT web.de)
|
3
|
+
# @Website: http://deplate.sf.net/
|
4
|
+
# @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
|
5
|
+
# @Created: 05-Mai-2005.
|
6
|
+
# @Last Change: 23-Okt-2005.
|
7
|
+
# @Revision: 0.5
|
8
|
+
#
|
9
|
+
# = Description
|
10
|
+
# Provide some php specific elements/particles/macros ...
|
11
|
+
|
12
|
+
class Deplate::Regions::Php < Deplate::Regions::Native
|
13
|
+
@@regions["Php"] = self
|
14
|
+
def process
|
15
|
+
@elt = ['<?php', @elt, '?>'].join("\n")
|
16
|
+
self
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class Deplate::Command::PHP < Deplate::Command
|
21
|
+
@@commands["PHP"] = self
|
22
|
+
def format_special
|
23
|
+
['<?php', @elt, '?>'].join(' ')
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
class Deplate::Macro::Php < Deplate::Macro::Insert
|
28
|
+
@@macros['php'] = self
|
29
|
+
|
30
|
+
def setup(text)
|
31
|
+
super
|
32
|
+
@text = ['<?php', @text, '?>'].join(' ')
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
class Deplate::Macro::PhpValue < Deplate::Macro::Insert
|
37
|
+
@@macros['='] = self
|
38
|
+
|
39
|
+
def setup(text)
|
40
|
+
super
|
41
|
+
@text = ['<?php print_r (', @text, ' ); ?>'].join(' ')
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# pstoedit.rb
|
2
|
+
# @Author: Thomas Link (samul AT web.de)
|
3
|
+
# @Website: http://deplate.sf.net/
|
4
|
+
# @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
|
5
|
+
# @Created: 13-Apr-2005.
|
6
|
+
# @Last Change: 23-Okt-2005.
|
7
|
+
# @Revision: 0.76
|
8
|
+
#
|
9
|
+
# = Description
|
10
|
+
# Use pstoedit for converting postscript to images.
|
11
|
+
#
|
12
|
+
# = TODO
|
13
|
+
# * Run pstoedit only if the file has changed
|
14
|
+
# * Output from latex is sometimes ugly
|
15
|
+
|
16
|
+
module Deplate::External
|
17
|
+
module_function
|
18
|
+
def pstoedit(invoker, fps, fout, args)
|
19
|
+
cmd = [get_app('pstoedit'), args, '-mergetext -adt -pti', fps, fout].join(' ')
|
20
|
+
log_popen(invoker, cmd)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
class Deplate::Formatter
|
25
|
+
def pstoedit_wrap(invoker, sfx, &block)
|
26
|
+
case sfx
|
27
|
+
when 'sfx'
|
28
|
+
sfx = nil
|
29
|
+
when 'jpeg'
|
30
|
+
sfx = 'jpg'
|
31
|
+
else
|
32
|
+
log(["Unhandled suffix, let's see how it works", sfx], :anyway)
|
33
|
+
end
|
34
|
+
if sfx
|
35
|
+
begin
|
36
|
+
invoker.args['sfx'] = 'ps'
|
37
|
+
block.call(invoker)
|
38
|
+
id = inlatex_id(invoker, true)
|
39
|
+
fps = id + '.ps'
|
40
|
+
fout = [id, '.', sfx].join
|
41
|
+
args = @deplate.variables['pstoeditArgs']
|
42
|
+
@deplate.in_working_dir do
|
43
|
+
Deplate::External.pstoedit(invoker, fps, fout, args)
|
44
|
+
end
|
45
|
+
return fout
|
46
|
+
ensure
|
47
|
+
invoker.args['sfx'] = sfx
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
alias :pstoedit_inlatex :inlatex
|
53
|
+
def inlatex(invoker)
|
54
|
+
sfx = invoker.args['sfx'] || @deplate.variables['ltxSfx'] || inlatex_sfx
|
55
|
+
invoker.elt = [pstoedit_wrap(invoker, sfx) {|i| pstoedit_inlatex(i)}]
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
class Deplate::Regions::Img
|
60
|
+
alias :img_re_pstoedit :img
|
61
|
+
def img
|
62
|
+
img = nil
|
63
|
+
sfx = @args['sfx'] || @deplate.variables['imgSfx'] || 'png'
|
64
|
+
fout = @deplate.formatter.pstoedit_wrap(self, sfx) {|i| img = img_re_pstoedit}
|
65
|
+
if img
|
66
|
+
img.elt = [fout]
|
67
|
+
end
|
68
|
+
img
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# recode.rb
|
2
|
+
# @Author: Thomas Link (samul AT web.de)
|
3
|
+
# @Website: http://deplate.sf.net/
|
4
|
+
# @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
|
5
|
+
# @Created: 11-Apr-2005.
|
6
|
+
# @Last Change: 23-Okt-2005.
|
7
|
+
# @Revision: 0.56
|
8
|
+
#
|
9
|
+
# = Description
|
10
|
+
# Recode text on-the-fly using GNU +recode+. The source encoding is
|
11
|
+
# taken from the +encoding+ variable (default: latin-1), the target
|
12
|
+
# encoding is defined in the +recodeEncoding+ (default: utf-8) variable.
|
13
|
+
#
|
14
|
+
# This doesn't work properly yet. Until I find out how to make +recode+
|
15
|
+
# work on each line or how to use the recode libary via dl, we have to
|
16
|
+
# start and stop +recode+ for each text bit.
|
17
|
+
|
18
|
+
class Deplate::Formatter
|
19
|
+
# def hook_pre_go_recode
|
20
|
+
# recode_start
|
21
|
+
# end
|
22
|
+
|
23
|
+
def hook_post_go_recode
|
24
|
+
recode_stop
|
25
|
+
end
|
26
|
+
|
27
|
+
def recode_start
|
28
|
+
unless defined?(@recode_encoding_source)
|
29
|
+
@recode_encoding_source = @deplate.variables['encoding'] || "latin-1"
|
30
|
+
@recode_encoding_target = @deplate.variables['recodeEncoding'] || "utf-8"
|
31
|
+
@deplate.variables['encoding'] = @recode_encoding_target
|
32
|
+
end
|
33
|
+
unless @recode_io
|
34
|
+
@recode_io = IO.popen("#{Deplate::External.get_app('recode')} -d #@recode_encoding_source..#@recode_encoding_target", "w+")
|
35
|
+
@recode_io.sync = true
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def recode_stop
|
40
|
+
if @recode_io
|
41
|
+
@recode_io.close
|
42
|
+
@recode_io = nil
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def plain_text_recode(text)
|
47
|
+
acc = []
|
48
|
+
recode_start
|
49
|
+
@recode_io.puts(text)
|
50
|
+
@recode_io.close_write
|
51
|
+
acc << @recode_io.read.chomp
|
52
|
+
recode_stop
|
53
|
+
acc.join
|
54
|
+
end
|
55
|
+
|
56
|
+
end
|
57
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# ru_koi8-r.rb -- Standard messages
|
2
|
+
# @Authors: Maxim Komar (komar from ukr.net), Thomas Link (samul AT web.de)
|
3
|
+
# @Website: http://komar.org.ua
|
4
|
+
# @Website: http://deplate.sf.net/
|
5
|
+
# @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
|
6
|
+
# @Created: 01-Sep-2004.
|
7
|
+
# @Last Change: 23-Okt-2005.
|
8
|
+
# @Revision: 0.61
|
9
|
+
|
10
|
+
require 'deplate/messages'
|
11
|
+
|
12
|
+
class Deplate::Messages::RuKoi8r < Deplate::Messages
|
13
|
+
setup 'ru'
|
14
|
+
def_prop 'lang', 'ru'
|
15
|
+
def_prop 'latex_lang', 'russian'
|
16
|
+
def_prop 'latex_lang_cmd', %{\\usepackage[russian]{babel}}
|
17
|
+
def_prop 'encoding', 'koi8-r'
|
18
|
+
load_catalog 'ru.koi8-r'
|
19
|
+
end
|
20
|
+
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# smiley.rb
|
2
|
+
# @Author: Thomas Link (samul AT web.de)
|
3
|
+
# @Website: http://deplate.sf.net/
|
4
|
+
# @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
|
5
|
+
# @Created: 16-Nov-2004.
|
6
|
+
# @Last Change: 23-Okt-2005.
|
7
|
+
# @Revision: 0.58
|
8
|
+
#
|
9
|
+
# Description:
|
10
|
+
#
|
11
|
+
# Usage:
|
12
|
+
#
|
13
|
+
# TODO:
|
14
|
+
#
|
15
|
+
# CHANGES:
|
16
|
+
#
|
17
|
+
|
18
|
+
class Deplate::Particle::Smiley < Deplate::Particle
|
19
|
+
@@particles << self
|
20
|
+
@smileys = {}
|
21
|
+
@rx = nil
|
22
|
+
|
23
|
+
class << self
|
24
|
+
attr_reader :smileys
|
25
|
+
def def_smiley(text, img, deplate=nil)
|
26
|
+
@smileys[text] = img
|
27
|
+
@rx = Regexp.new(%{^(%s)} % @smileys.keys.collect{|t| Regexp.escape(t)}.join('|'))
|
28
|
+
if deplate
|
29
|
+
deplate.register_particle(self.class)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def_smiley(':-)', 'smiley')
|
35
|
+
|
36
|
+
def setup
|
37
|
+
@elt = @match[1]
|
38
|
+
end
|
39
|
+
|
40
|
+
def process
|
41
|
+
sfx = @deplate.variables["smileySfx"] || @deplate.variables["imgSfx"] || "png"
|
42
|
+
img = self.class.smileys[@elt]
|
43
|
+
if img
|
44
|
+
@elt = @deplate.formatter.include_image("#{img}.#{sfx}", {"alt" => @elt}, true)
|
45
|
+
else
|
46
|
+
log(["Unknown smiley", @elt], :error)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# mod-soffice.rb - Some OpenOffice specific modifications to the html output
|
2
|
+
# @Author: Thomas Link (samul AT web.de)
|
3
|
+
# @Website: http://deplate.sf.net/
|
4
|
+
# @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
|
5
|
+
# @Created: 27-Jun-2004.
|
6
|
+
# @Last Change: 23-Okt-2005.
|
7
|
+
# @Revision: 0.10
|
8
|
+
#
|
9
|
+
# Description:
|
10
|
+
# Some OpenOffice specific modifications to the html output
|
11
|
+
#
|
12
|
+
# TODO:
|
13
|
+
# ToC, LoT, LoF, Index, Bib, citations, references, labels etc.
|
14
|
+
#
|
15
|
+
# CHANGES:
|
16
|
+
#
|
17
|
+
|
18
|
+
class Deplate::Formatter::HTML
|
19
|
+
def format_pagenumber(invoker)
|
20
|
+
"<SDFIELD TYPE=PAGE SUBTYPE=RANDOM FORMAT=PAGE></SDFIELD>"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# symbols-latin1.rb
|
2
|
+
# @Author: Thomas Link (samul AT web.de)
|
3
|
+
# @Website: http://deplate.sf.net/
|
4
|
+
# @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
|
5
|
+
# @Created: 27-Aug-2004.
|
6
|
+
# @Last Change: 01-Nov-2005.
|
7
|
+
# @Revision: 0.35
|
8
|
+
|
9
|
+
module Deplate::Symbols::Latin1
|
10
|
+
def symbol_quote(invoker)
|
11
|
+
""" #"""
|
12
|
+
end
|
13
|
+
|
14
|
+
def symbol_gt(invoker)
|
15
|
+
">" #">"
|
16
|
+
end
|
17
|
+
|
18
|
+
def symbol_lt(invoker)
|
19
|
+
"<" #"<"
|
20
|
+
end
|
21
|
+
|
22
|
+
def symbol_amp(invoker)
|
23
|
+
"&" #"&"
|
24
|
+
end
|
25
|
+
|
26
|
+
def doublequote_open(invoker)
|
27
|
+
%{�}
|
28
|
+
end
|
29
|
+
|
30
|
+
def doublequote_close(invoker)
|
31
|
+
%{�}
|
32
|
+
end
|
33
|
+
|
34
|
+
def singlequote_open(invoker)
|
35
|
+
%{�}
|
36
|
+
end
|
37
|
+
|
38
|
+
def singlequote_close(invoker)
|
39
|
+
%{�}
|
40
|
+
end
|
41
|
+
|
42
|
+
def nonbreakingspace(invoker)
|
43
|
+
%{�}
|
44
|
+
end
|
45
|
+
|
46
|
+
def symbol_paragraph(invoker)
|
47
|
+
%{�}
|
48
|
+
end
|
49
|
+
|
50
|
+
def format_symbol(invoker, sym)
|
51
|
+
return plain_text(sym)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
class Deplate::Core
|
56
|
+
@@symbols["ISO-8859-1"] = Deplate::Symbols::Latin1
|
57
|
+
end
|
58
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# symbols-od-utf-8.rb
|
2
|
+
# @Author: Thomas Link (samul AT web.de)
|
3
|
+
# @Website: http://deplate.sf.net/
|
4
|
+
# @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
|
5
|
+
# @Created: 27-Aug-2004.
|
6
|
+
# @Last Change: 23-Okt-2005.
|
7
|
+
# @Revision: 0.36
|
8
|
+
|
9
|
+
require 'deplate/mod/symbols-utf-8'
|
10
|
+
|
11
|
+
module Deplate::Symbols::Utf8
|
12
|
+
def nonbreakingspace(invoker)
|
13
|
+
%{<text:s/>}
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# symbols-plain.rb
|
2
|
+
# @Author: Thomas Link (samul AT web.de)
|
3
|
+
# @Website: http://deplate.sf.net/
|
4
|
+
# @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
|
5
|
+
# @Created: 27-Aug-2004.
|
6
|
+
# @Last Change: 01-Nov-2005.
|
7
|
+
# @Revision: 0.25
|
8
|
+
|
9
|
+
module Deplate::Symbols::Plain
|
10
|
+
def symbol_quote(invoker)
|
11
|
+
""" #"""
|
12
|
+
end
|
13
|
+
|
14
|
+
def symbol_gt(invoker)
|
15
|
+
">" #">"
|
16
|
+
end
|
17
|
+
|
18
|
+
def symbol_lt(invoker)
|
19
|
+
"<" #"<"
|
20
|
+
end
|
21
|
+
|
22
|
+
def symbol_amp(invoker)
|
23
|
+
"&" #"&"
|
24
|
+
end
|
25
|
+
|
26
|
+
def doublequote_open(invoker)
|
27
|
+
%{"}
|
28
|
+
end
|
29
|
+
|
30
|
+
def doublequote_close(invoker)
|
31
|
+
%{"}
|
32
|
+
end
|
33
|
+
|
34
|
+
def singlequote_open(invoker)
|
35
|
+
%{'}
|
36
|
+
end
|
37
|
+
|
38
|
+
def singlequote_close(invoker)
|
39
|
+
%{'}
|
40
|
+
end
|
41
|
+
|
42
|
+
def nonbreakingspace(invoker)
|
43
|
+
%{ }
|
44
|
+
end
|
45
|
+
|
46
|
+
def symbol_paragraph(invoker)
|
47
|
+
%{§}
|
48
|
+
end
|
49
|
+
|
50
|
+
def format_symbol(invoker, sym)
|
51
|
+
return plain_text(sym)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
class Deplate::Core
|
56
|
+
@@symbols["plain"] = Deplate::Symbols::Plain
|
57
|
+
end
|
58
|
+
|