deplate 0.8.4 → 0.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -2,22 +2,22 @@
2
2
  # ps2ppm.rb
3
3
  # @Author: Peter Kleiweg
4
4
  # @Created: 11-Nov-2004.
5
- # @Last Change: 30-Jul-2005.
6
- # @Revision: 0.101
5
+ # @Last Change: 2008-12-15.
6
+ # @Revision: 0.104
7
7
  #
8
8
  # Ruby translation of the ps2ppm script that can be found
9
- # http://odur.let.rug.nl/~kleiweg/postscript/ps2ppm
10
- # here.
9
+ # http://odur.let.rug.nl/~kleiweg/postscript/ps2ppm here.
11
10
  #
12
11
  # Note that this is still very perlish.
13
12
  #
14
13
  # The original perl script is by Peter Kleiweg.
15
14
  # Kaspar Schiess (eule AT space.ch) converted this script to ruby.
16
15
  #
17
- # This is a slightly modified and de-perlished version of his converted script.
16
+ # This is a slightly modified and de-perlished version of his converted
17
+ # script.
18
18
  #
19
19
 
20
- require 'getopts'
20
+ # require 'getopts'
21
21
  # require 'pp'
22
22
 
23
23
  module Ps2ppm
@@ -231,9 +231,9 @@ LEV2HEAD
231
231
  module_function :run
232
232
  end
233
233
 
234
- if __FILE__ == $0
235
- file = ARGV.pop
236
- getopts('1f:ghm:oO:r:t')
237
- Ps2ppm.run(file, $OPT)
238
- end
234
+ # if __FILE__ == $0
235
+ # file = ARGV.pop
236
+ # getopts('1f:ghm:oO:r:t')
237
+ # Ps2ppm.run(file, $OPT)
238
+ # end
239
239
 
@@ -1,19 +1,12 @@
1
+ # encoding: ASCII
1
2
  # regions.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: 08-Mai-2004.
6
- # @Last Change: 2008-07-09.
7
- # @Revision: 0.1777
8
-
9
- # Description:
10
- #
11
- # Usage:
12
- #
13
- # TODO:
14
- #
15
- # CHANGES:
16
- #
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.1849
9
+
17
10
 
18
11
  class Deplate::Region < Deplate::Element
19
12
  @@regions = {}
@@ -88,7 +81,7 @@ class Deplate::Region < Deplate::Element
88
81
  def setup(region=nil)
89
82
  if region
90
83
  @region = region
91
- @args = region.args
84
+ @args.merge!(region.args)
92
85
  update_args
93
86
  end
94
87
  end
@@ -121,12 +114,12 @@ class Deplate::Region < Deplate::Element
121
114
  e.match_expected(prototype, self) # if prototype
122
115
  # e.doc_type = doc_type
123
116
  # e.doc_slot = doc_slot
124
- acc << e.format_current
117
+ acc << e.format_contained(self)
125
118
  end
126
119
  fmt = self.class.formatter2 || self.class.formatter
127
120
  if fmt
128
121
  @elt = @deplate.formatter.join_blocks(acc)
129
- return format_current(fmt)
122
+ return format_contained(self, fmt)
130
123
  else
131
124
  return @deplate.formatter.join_blocks(acc)
132
125
  end
@@ -425,10 +418,12 @@ end
425
418
  class Deplate::Regions::Inlatex < Deplate::Region
426
419
  register_as 'Inlatex'
427
420
  register_as 'Ltx'
421
+ register_as 'Latex'
422
+ register_as 'LaTeX'
428
423
  set_formatter :format_inlatex
429
424
  self.label_mode = :once
430
425
 
431
- attr_reader :content_type
426
+ attr_reader :content_type
432
427
 
433
428
  def setup(region)
434
429
  super
@@ -453,7 +448,7 @@ class Deplate::Regions::Inlatex < Deplate::Region
453
448
  log("Cannot attach caption to a LaTeX fragment marked as inline", :error)
454
449
  elsif @content_type == "table"
455
450
  register_table
456
- else
451
+ elsif @content_type == "fig"
457
452
  register_figure
458
453
  end
459
454
  end
@@ -471,7 +466,7 @@ class Deplate::Regions::Img < Deplate::Region
471
466
 
472
467
  def finish
473
468
  finish_accum
474
- nt = @regNote.split(/ /)
469
+ nt = (@args['cmd'] || (!@regNote.empty? && @regNote) || @deplate.variables['imgCmd'] || '').split(/ /)
475
470
  @prg = nt[0]
476
471
  @cmdLineArgs = nt[1..-1]
477
472
  unless @prg
@@ -493,40 +488,61 @@ class Deplate::Regions::Img < Deplate::Region
493
488
  end
494
489
 
495
490
  def img
496
- id = @args["id"]
497
- unless id
498
- @@ImgAutoN += 1
499
- id = @deplate.auxiliary_auto_filename('img', @@ImgAutoN, @accum)
500
- end
501
- sfx = @args["sfx"] || suffix
502
- src = "#{id}.#{@prg}"
503
- out = "#{id}.#{sfx}"
504
- pwd = Dir.pwd
505
- d = @deplate.dest ? File.dirname(@deplate.dest) : "."
506
- i = nil
507
- @deplate.in_working_dir do
508
- accum = prepare(@accum, out, sfx)
509
- if Deplate::Region.check_file(self, out, src, accum)
510
- log(["Files exist! Using", out], :anyway)
511
- else
512
- unless @deplate.options.force
513
- for f in [src]
514
- if File.exist?(f)
515
- raise "Please delete '#{f}' or change the id before proceeding"
491
+ formatter_handler = "img_#@prg"
492
+ if @deplate.formatter.respond_to?(formatter_handler)
493
+
494
+ rv = Deplate::Element::PseudoElement.new(@deplate, @source, self) do |invoker|
495
+ @deplate.formatter.send(formatter_handler, self, @accum)
496
+ end
497
+
498
+ class << rv
499
+ def register_caption
500
+ @container.register_caption
501
+ end
502
+
503
+ def set_caption(*args)
504
+ @container.set_caption(*args)
505
+ end
506
+ end
507
+
508
+ else
509
+
510
+ id = @args["id"]
511
+ unless id
512
+ @@ImgAutoN += 1
513
+ id = @deplate.auxiliary_auto_filename('img', @@ImgAutoN, @accum)
514
+ end
515
+ sfx = @args["sfx"] || suffix
516
+ src = "#{id}.#{@prg}"
517
+ out = "#{id}.#{sfx}"
518
+ pwd = Dir.pwd
519
+ d = @deplate.dest ? File.dirname(@deplate.dest) : "."
520
+ rv = nil
521
+ @deplate.in_working_dir do
522
+ accum = prepare(@accum, out, sfx)
523
+ if Deplate::Region.check_file(self, out, src, accum)
524
+ log(["Files exist! Using", out], :anyway)
525
+ else
526
+ unless @deplate.options.force
527
+ for f in [src]
528
+ if File.exist?(f)
529
+ raise "Please delete '#{f}' or change the id before proceeding"
530
+ end
516
531
  end
517
532
  end
533
+ Deplate::External.write_file(self, src) {|io| io.puts(accum.join("\n"))}
534
+ run(src, out, sfx)
535
+ end
536
+ if block_given?
537
+ rv = yield(id, out)
538
+ else
539
+ rv = Deplate::Command::IMG.new(@deplate, @source, out, @match, @args, "IMG")
540
+ rv.finish
518
541
  end
519
- Deplate::External.write_file(self, src) {|io| io.puts(accum.join("\n"))}
520
- run(src, out, sfx)
521
- end
522
- if block_given?
523
- i = yield(id, out)
524
- else
525
- i = Deplate::Command::IMG.new(@deplate, @source, out, @match, @args, "IMG")
526
- i.finish
527
542
  end
528
543
  end
529
- return i
544
+ return rv
545
+
530
546
  end
531
547
 
532
548
  def suffix
@@ -850,11 +866,17 @@ class Deplate::Regions::R < Deplate::Region
850
866
 
851
867
  def finish
852
868
  finish_accum
853
- begin
854
- return do_R
855
- rescue StandardError => e
856
- log(["Program call failed", e, e.backtrace[0..10]], :error)
857
- return nil
869
+ if @deplate.formatter.respond_to?(:region_R)
870
+ return Deplate::Element::PseudoElement.new(@deplate, @source, self) do |invoker|
871
+ @deplate.formatter.send(:region_R, self, @accum)
872
+ end
873
+ else
874
+ begin
875
+ return do_R
876
+ rescue StandardError => e
877
+ log(["Program call failed", e, e.backtrace[0..10]], :error)
878
+ return nil
879
+ end
858
880
  end
859
881
  end
860
882
 
@@ -873,7 +895,7 @@ class Deplate::Regions::R < Deplate::Region
873
895
  case @regNote.strip
874
896
  when "xtable"
875
897
  rOut = do_xtable(r, out)
876
- when "drop"
898
+ when "drop", "swallow"
877
899
  rOut = do_drop(r, out)
878
900
  when "verb", "verbatim"
879
901
  rOut = do_verbatim(r, out)
@@ -1204,6 +1226,7 @@ end
1204
1226
  class Deplate::Regions::Swallow < Deplate::Region
1205
1227
  register_as 'Swallow'
1206
1228
  register_as 'Skip'
1229
+ register_as 'Drop'
1207
1230
 
1208
1231
  def finish
1209
1232
  finish_accum
@@ -1,9 +1,10 @@
1
+ # encoding: ASCII
1
2
  # skeletons.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: 28-Apr-2006.
5
- # @Last Change: 2007-02-24.
6
- # @Revision: 0.149
6
+ # @Last Change: 2009-02-02.
7
+ # @Revision: 0.151
7
8
 
8
9
  # Skeletons:
9
10
  class Deplate::SkeletonExpander < Deplate::CommonObject
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # structured.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: 17-M�r-2004.
6
- # @Last Change: 2007-07-01.
7
- # @Revision: 0.2740
7
+ # @Last Change: 2009-02-05.
8
+ # @Revision: 0.2753
8
9
  #
9
10
  # TODO:
10
11
  # - am Ende des Dokuments muss ein Stapel mit offenen tags abgearbeitet werden
@@ -191,7 +192,7 @@ class Deplate::Formatter::Structured < Deplate::Formatter
191
192
 
192
193
  def_abstract :get_figure_caption, :get_figure
193
194
 
194
- def include_image(invoker, file, args, inline=false)
195
+ def include_image_general(invoker, file, args, inline=false)
195
196
  f = File.basename(file, '*')
196
197
  file = use_image_filename(file, args)
197
198
  return get_image(args, file, f, inline)
@@ -282,7 +283,6 @@ class Deplate::Formatter::Structured < Deplate::Formatter
282
283
  acc = []
283
284
  acc << close_headings(invoker.level)
284
285
  acc << format_heading_open(invoker)
285
- @deplate.options.headings = [] unless @deplate.options.headings
286
286
  @deplate.options.headings << invoker
287
287
  join_blocks(acc)
288
288
  end
@@ -581,11 +581,11 @@ class Deplate::Formatter::Structured < Deplate::Formatter
581
581
  y = e[:year]
582
582
  p = e[:pages] ? ": %s" % e[:pages] : ""
583
583
  if a and y
584
- m = "%s %s" % [a, y]
584
+ m = "%s %s" % [a.join(', '), y].flatten
585
585
  else
586
586
  m = a || y
587
587
  end
588
- acc << [n, m, p].join
588
+ acc << [n, m, p].flatten.join
589
589
  end
590
590
  acc.join("; ")
591
591
  end
@@ -630,7 +630,7 @@ class Deplate::Formatter::Structured < Deplate::Formatter
630
630
  ee = bibdef[e]
631
631
  if ee
632
632
  ee = simple_latex_reformat(ee)
633
- ee = @deplate.parse_and_format(invoker, ee, false, [
633
+ ee = @deplate.parse_and_format(invoker, ee, false, :excluded => [
634
634
  Deplate::Particle::Macro,
635
635
  Deplate::Particle::CurlyBrace,
636
636
  Deplate::HyperLink::Extended,
@@ -666,23 +666,7 @@ class Deplate::Formatter::Structured < Deplate::Formatter
666
666
  # end
667
667
  get_heading_close(invoker.args, invoker.level)
668
668
  end
669
-
670
- def close_headings(level)
671
- hds = @deplate.options.headings
672
- if hds
673
- acc = []
674
- loop do
675
- hd = hds.last
676
- if hd and level <= hd.level
677
- acc << indent_text(format_heading_close(hd), :mult => hd.level - level)
678
- hds.pop
679
- else
680
- break
681
- end
682
- end
683
- return join_blocks(acc)
684
- end
685
- end
669
+
686
670
 
687
671
 
688
672
  ################################################ List of ... {{{1
@@ -1,10 +1,11 @@
1
+ # encoding: ASCII
1
2
  # template.rb -- simple templates for deplate
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-Aug-2004.
6
- # @Last Change: 2008-07-20.
7
- # @Revision: 0.561
7
+ # @Last Change: 2009-02-02.
8
+ # @Revision: 0.563
8
9
  #
9
10
  # Description:
10
11
  #
@@ -1,8 +1,8 @@
1
1
  /* Text style: sans-serif */
2
2
  /* @Author: Thomas Link (samul AT web.de) */
3
3
  /* @Created: 13-Apr-2004. */
4
- /* @Last Change: 2008-07-08. */
5
- /* @Revision: 0.637 */
4
+ /* @Last Change: 2008-12-04. */
5
+ /* @Revision: 0.639 */
6
6
 
7
7
  body, table, div {
8
8
  /* font-family: Georgia, Bookman, Times, Serif; */
@@ -13,7 +13,7 @@
13
13
  % #LIST plain! max=2: toc
14
14
 
15
15
 
16
- % 2007-01-12; @Last Change: 2008-07-06.
16
+ % 2007-01-12; @Last Change: 2008-12-04.
17
17
  % vi: ft=viki:tw=72:ts=4
18
18
  % Local Variables:
19
19
  % End:
@@ -0,0 +1,2 @@
1
+ This directory contains material based on http://meyerweb.com/eric/tools/s5/
2
+
@@ -0,0 +1,42 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <title>{get: title}</title>
6
+ <!-- metadata -->
7
+ <meta name="generator" content="S5" />
8
+ <meta name="version" content="S5 1.1" />
9
+ <meta name="presdate" content="{get: date}" />
10
+ <meta name="author" content="{get: author}" />
11
+ <!-- configuration parameters -->
12
+ <meta name="defaultView" content="slideshow" />
13
+ <meta name="controlVis" content="hidden" />
14
+ <!-- style sheet links -->
15
+ <link rel="stylesheet" href="ui/{arg default="default": s5theme}/slides.css" type="text/css" media="projection" id="slideProj" />
16
+ <link rel="stylesheet" href="ui/{arg default="default": s5theme}/outline.css" type="text/css" media="screen" id="outlineStyle" />
17
+ <link rel="stylesheet" href="ui/{arg default="default": s5theme}/print.css" type="text/css" media="print" id="slidePrint" />
18
+ <link rel="stylesheet" href="ui/{arg default="default": s5theme}/opera.css" type="text/css" media="projection" id="operaFix" />
19
+ #PREMATTER: css
20
+ <!-- S5 JS -->
21
+ <script src="ui/{arg default="default": s5theme}/slides.js" type="text/javascript"></script>
22
+ </head>
23
+ <body>
24
+
25
+ <div class="layout">
26
+ <div id="controls"><!-- DO NOT EDIT --></div>
27
+ <div id="currentSlide"><!-- DO NOT EDIT --></div>
28
+ <div id="header"></div>
29
+ <div id="footer">
30
+ <h1>{arg: s5footer}</h1>
31
+ <h2>{get: title}</h2>
32
+ </div>
33
+ </div>
34
+
35
+ <div class="presentation">
36
+
37
+ #BODY
38
+
39
+ </div>
40
+
41
+ </body>
42
+ </html>
@@ -0,0 +1,11 @@
1
+ --template=s5.xhtml
2
+ --suffix=.html
3
+ fmt xhtml10t
4
+ htmlHeadingPre1=<div class="slide">
5
+ htmlHeadingPost1=</div>
6
+ htmlTitlePre=<div class="slide">
7
+ htmlTitlePost=</div>
8
+ htmlTagTitle=h1
9
+ htmlTagAuthor=h3
10
+ htmlTagAuthorNote=h4
11
+ htmlTagDate=h4
@@ -1,9 +1,13 @@
1
+ # encoding: ASCII
1
2
  # variables.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-05-22.
6
- # @Revision: 0.75
6
+ # @Last Change: 2009-02-04.
7
+ # @Revision: 0.85
8
+
9
+ require 'deplate/encoding'
10
+
7
11
 
8
12
  class Deplate::Variables < Hash
9
13
  attr_accessor :deplate
@@ -68,6 +72,12 @@ class Deplate::Variables < Hash
68
72
  Deplate::Core.log(['Doc variable has wrong type', key, var.class], :error)
69
73
  end
70
74
  else
75
+ case name
76
+ when 'encoding'
77
+ if RUBY_VERSION >= '1.9.1'
78
+ Encoding.default_external = Deplate::Encoding.ruby_enc_name(value)
79
+ end
80
+ end
71
81
  super(name, value)
72
82
  end
73
83
  end