cairo 1.5.1 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of cairo might be problematic. Click here for more details.

Files changed (207) hide show
  1. data/ChangeLog +153 -0
  2. data/NEWS +16 -2
  3. data/README +2 -0
  4. data/Rakefile +21 -7
  5. data/doc/doc.css +69 -0
  6. data/doc/en/cairo-antialias.html +27 -0
  7. data/doc/en/cairo-clip-not-representable-error.html +36 -0
  8. data/doc/en/cairo-color-base.html +58 -0
  9. data/doc/en/cairo-color-cmyk.html +146 -0
  10. data/doc/en/cairo-color-hsv.html +126 -0
  11. data/doc/en/cairo-color-rgb.html +131 -0
  12. data/doc/en/cairo-color-x11.html +162 -0
  13. data/doc/en/cairo-color.html +227 -0
  14. data/doc/en/cairo-content.html +26 -0
  15. data/doc/en/cairo-context-blur.html +28 -0
  16. data/doc/en/cairo-context-circle.html +28 -0
  17. data/doc/en/cairo-context-color.html +28 -0
  18. data/doc/en/cairo-context-path.html +33 -0
  19. data/doc/en/cairo-context-rectangle.html +28 -0
  20. data/doc/en/cairo-context-triangle.html +28 -0
  21. data/doc/en/cairo-context.html +622 -0
  22. data/doc/en/cairo-error.html +33 -0
  23. data/doc/en/cairo-extend.html +27 -0
  24. data/doc/en/cairo-file-not-found.html +36 -0
  25. data/doc/en/cairo-fill-rule.html +25 -0
  26. data/doc/en/cairo-filter.html +29 -0
  27. data/doc/en/cairo-font-extents.html +60 -0
  28. data/doc/en/cairo-font-face.html +27 -0
  29. data/doc/en/cairo-font-options.html +128 -0
  30. data/doc/en/cairo-font-slant.html +26 -0
  31. data/doc/en/cairo-font-weight.html +25 -0
  32. data/doc/en/cairo-format.html +35 -0
  33. data/doc/en/cairo-glyph.html +88 -0
  34. data/doc/en/cairo-gradient-pattern.html +63 -0
  35. data/doc/en/cairo-hint-metrics.html +26 -0
  36. data/doc/en/cairo-hint-style.html +28 -0
  37. data/doc/en/cairo-image-surface.html +71 -0
  38. data/doc/en/cairo-invalid-content-error.html +36 -0
  39. data/doc/en/cairo-invalid-dash-error.html +36 -0
  40. data/doc/en/cairo-invalid-dsc-comment-error.html +36 -0
  41. data/doc/en/cairo-invalid-format-error.html +36 -0
  42. data/doc/en/cairo-invalid-index-error.html +36 -0
  43. data/doc/en/cairo-invalid-matrix-error.html +36 -0
  44. data/doc/en/cairo-invalid-path-data-error.html +36 -0
  45. data/doc/en/cairo-invalid-pop-group-error.html +36 -0
  46. data/doc/en/cairo-invalid-restore-error.html +36 -0
  47. data/doc/en/cairo-invalid-status-error.html +36 -0
  48. data/doc/en/cairo-invalid-stride-error.html +36 -0
  49. data/doc/en/cairo-invalid-string-error.html +36 -0
  50. data/doc/en/cairo-invalid-visual-error.html +36 -0
  51. data/doc/en/cairo-line-cap.html +26 -0
  52. data/doc/en/cairo-line-join.html +26 -0
  53. data/doc/en/cairo-linear-pattern.html +49 -0
  54. data/doc/en/cairo-matrix.html +243 -0
  55. data/doc/en/cairo-no-current-point-error.html +36 -0
  56. data/doc/en/cairo-null-pointer-error.html +36 -0
  57. data/doc/en/cairo-operator.html +37 -0
  58. data/doc/en/cairo-paper-parse-error.html +36 -0
  59. data/doc/en/cairo-paper-unknown-paper-name.html +55 -0
  60. data/doc/en/cairo-paper-unknown-unit.html +55 -0
  61. data/doc/en/cairo-paper-unrecognized-paper-description.html +55 -0
  62. data/doc/en/cairo-paper.html +173 -0
  63. data/doc/en/cairo-path-close-path.html +38 -0
  64. data/doc/en/cairo-path-curve-to.html +38 -0
  65. data/doc/en/cairo-path-data-type.html +27 -0
  66. data/doc/en/cairo-path-data.html +87 -0
  67. data/doc/en/cairo-path-line-to.html +38 -0
  68. data/doc/en/cairo-path-move-to.html +38 -0
  69. data/doc/en/cairo-path.html +144 -0
  70. data/doc/en/cairo-pattern-type-mismatch-error.html +36 -0
  71. data/doc/en/cairo-pattern.html +88 -0
  72. data/doc/en/cairo-pdf-surface.html +46 -0
  73. data/doc/en/cairo-point.html +63 -0
  74. data/doc/en/cairo-ps-level.html +38 -0
  75. data/doc/en/cairo-ps-surface.html +81 -0
  76. data/doc/en/cairo-quartz-surface.html +38 -0
  77. data/doc/en/cairo-radial-pattern.html +49 -0
  78. data/doc/en/cairo-read-error.html +36 -0
  79. data/doc/en/cairo-rectangle.html +78 -0
  80. data/doc/en/cairo-scaled-font.html +73 -0
  81. data/doc/en/cairo-solid-pattern.html +51 -0
  82. data/doc/en/cairo-subpixel-order.html +28 -0
  83. data/doc/en/cairo-surface-finished-error.html +36 -0
  84. data/doc/en/cairo-surface-pattern.html +46 -0
  85. data/doc/en/cairo-surface-type-mismatch-error.html +36 -0
  86. data/doc/en/cairo-surface.html +100 -0
  87. data/doc/en/cairo-svg-surface.html +66 -0
  88. data/doc/en/cairo-svg-version.html +38 -0
  89. data/doc/en/cairo-temp-file-error.html +36 -0
  90. data/doc/en/cairo-text-extents.html +65 -0
  91. data/doc/en/cairo-win32-surface.html +43 -0
  92. data/doc/en/cairo-write-error.html +36 -0
  93. data/doc/en/cairo.html +109 -0
  94. data/doc/en/index.html +1058 -0
  95. data/doc/index.html +18 -0
  96. data/doc/ja/cairo-antialias.html +43 -0
  97. data/doc/ja/cairo-clip-not-representable-error.html +42 -0
  98. data/doc/ja/cairo-color-base.html +61 -0
  99. data/doc/ja/cairo-color-cmyk.html +138 -0
  100. data/doc/ja/cairo-color-hsv.html +121 -0
  101. data/doc/ja/cairo-color-rgb.html +131 -0
  102. data/doc/ja/cairo-color-x11.html +169 -0
  103. data/doc/ja/cairo-color.html +303 -0
  104. data/doc/ja/cairo-content.html +37 -0
  105. data/doc/ja/cairo-context-blur.html +39 -0
  106. data/doc/ja/cairo-context-circle.html +40 -0
  107. data/doc/ja/cairo-context-color.html +38 -0
  108. data/doc/ja/cairo-context-path.html +63 -0
  109. data/doc/ja/cairo-context-rectangle.html +46 -0
  110. data/doc/ja/cairo-context-triangle.html +33 -0
  111. data/doc/ja/cairo-context.html +1435 -0
  112. data/doc/ja/cairo-error.html +42 -0
  113. data/doc/ja/cairo-extend.html +42 -0
  114. data/doc/ja/cairo-file-not-found.html +37 -0
  115. data/doc/ja/cairo-fill-rule.html +44 -0
  116. data/doc/ja/cairo-filter.html +29 -0
  117. data/doc/ja/cairo-font-extents.html +96 -0
  118. data/doc/ja/cairo-font-face.html +41 -0
  119. data/doc/ja/cairo-font-options.html +172 -0
  120. data/doc/ja/cairo-font-slant.html +36 -0
  121. data/doc/ja/cairo-font-weight.html +33 -0
  122. data/doc/ja/cairo-format.html +67 -0
  123. data/doc/ja/cairo-glyph.html +101 -0
  124. data/doc/ja/cairo-gradient-pattern.html +105 -0
  125. data/doc/ja/cairo-hint-metrics.html +43 -0
  126. data/doc/ja/cairo-hint-style.html +50 -0
  127. data/doc/ja/cairo-image-surface.html +117 -0
  128. data/doc/ja/cairo-invalid-content-error.html +40 -0
  129. data/doc/ja/cairo-invalid-dash-error.html +40 -0
  130. data/doc/ja/cairo-invalid-dsc-comment-error.html +40 -0
  131. data/doc/ja/cairo-invalid-format-error.html +40 -0
  132. data/doc/ja/cairo-invalid-index-error.html +40 -0
  133. data/doc/ja/cairo-invalid-matrix-error.html +40 -0
  134. data/doc/ja/cairo-invalid-path-data-error.html +40 -0
  135. data/doc/ja/cairo-invalid-pop-group-error.html +40 -0
  136. data/doc/ja/cairo-invalid-restore-error.html +41 -0
  137. data/doc/ja/cairo-invalid-status-error.html +41 -0
  138. data/doc/ja/cairo-invalid-stride-error.html +41 -0
  139. data/doc/ja/cairo-invalid-string-error.html +40 -0
  140. data/doc/ja/cairo-invalid-visual-error.html +43 -0
  141. data/doc/ja/cairo-line-cap.html +36 -0
  142. data/doc/ja/cairo-line-join.html +39 -0
  143. data/doc/ja/cairo-linear-pattern.html +73 -0
  144. data/doc/ja/cairo-matrix.html +329 -0
  145. data/doc/ja/cairo-no-current-point-error.html +40 -0
  146. data/doc/ja/cairo-null-pointer-error.html +40 -0
  147. data/doc/ja/cairo-operator.html +37 -0
  148. data/doc/ja/cairo-paper-parse-error.html +41 -0
  149. data/doc/ja/cairo-paper-unknown-paper-name.html +62 -0
  150. data/doc/ja/cairo-paper-unknown-unit.html +61 -0
  151. data/doc/ja/cairo-paper-unrecognized-paper-description.html +62 -0
  152. data/doc/ja/cairo-paper.html +343 -0
  153. data/doc/ja/cairo-path-close-path.html +43 -0
  154. data/doc/ja/cairo-path-curve-to.html +56 -0
  155. data/doc/ja/cairo-path-data-type.html +39 -0
  156. data/doc/ja/cairo-path-data.html +113 -0
  157. data/doc/ja/cairo-path-line-to.html +48 -0
  158. data/doc/ja/cairo-path-move-to.html +48 -0
  159. data/doc/ja/cairo-path.html +130 -0
  160. data/doc/ja/cairo-pattern-type-mismatch-error.html +42 -0
  161. data/doc/ja/cairo-pattern.html +114 -0
  162. data/doc/ja/cairo-pdf-surface.html +72 -0
  163. data/doc/ja/cairo-point.html +76 -0
  164. data/doc/ja/cairo-ps-level.html +48 -0
  165. data/doc/ja/cairo-ps-surface.html +200 -0
  166. data/doc/ja/cairo-quartz-surface.html +78 -0
  167. data/doc/ja/cairo-radial-pattern.html +79 -0
  168. data/doc/ja/cairo-read-error.html +41 -0
  169. data/doc/ja/cairo-rectangle.html +95 -0
  170. data/doc/ja/cairo-scaled-font.html +130 -0
  171. data/doc/ja/cairo-solid-pattern.html +73 -0
  172. data/doc/ja/cairo-subpixel-order.html +43 -0
  173. data/doc/ja/cairo-surface-finished-error.html +40 -0
  174. data/doc/ja/cairo-surface-pattern.html +54 -0
  175. data/doc/ja/cairo-surface-type-mismatch-error.html +42 -0
  176. data/doc/ja/cairo-surface.html +177 -0
  177. data/doc/ja/cairo-svg-surface.html +100 -0
  178. data/doc/ja/cairo-svg-version.html +52 -0
  179. data/doc/ja/cairo-temp-file-error.html +36 -0
  180. data/doc/ja/cairo-text-extents.html +87 -0
  181. data/doc/ja/cairo-win32-surface.html +86 -0
  182. data/doc/ja/cairo-write-error.html +41 -0
  183. data/doc/ja/cairo.html +134 -0
  184. data/doc/ja/index.html +1059 -0
  185. data/extconf.rb +53 -17
  186. data/pkg-config.rb +197 -52
  187. data/samples/pac.rb +8 -9
  188. data/samples/pac2.rb +6 -6
  189. data/samples/png.rb +1 -2
  190. data/samples/text2.rb +9 -3
  191. data/src/cairo.def +6 -0
  192. data/src/lib/cairo.rb +35 -5
  193. data/src/lib/cairo/paper.rb +183 -0
  194. data/src/lib/cairo/papers.rb +41 -0
  195. data/src/rb_cairo.c +4 -3
  196. data/src/rb_cairo.h +18 -1
  197. data/src/rb_cairo_constants.c +124 -2
  198. data/src/rb_cairo_context.c +35 -5
  199. data/src/rb_cairo_exception.c +23 -1
  200. data/src/rb_cairo_font_options.c +1 -1
  201. data/src/rb_cairo_path.c +1 -14
  202. data/src/rb_cairo_surface.c +301 -82
  203. data/test/run-test.rb +15 -0
  204. data/test/test_paper.rb +81 -0
  205. data/test/test_pkg_config.rb +121 -0
  206. metadata +187 -3
  207. data/samples/.#blur.rb.1.1 +0 -36
data/ChangeLog CHANGED
@@ -1,5 +1,158 @@
1
+ 2008-04-11 Kouhei Sutou <kou@cozmixng.org>
2
+
3
+ * Rakefile: follow the recent Hoe's changes.
4
+
5
+ * src/rb_cairo_surface.c: implemented Cairo::PSSurface#eps?.
6
+
7
+ * samples/png.rb: use convenience notation.
8
+
9
+ * samples/pac.rb, samples/pac2.rb: use Cairo::Paper.
10
+
11
+ * src/rb_cairo_surface.c: don't change paper's unit.
12
+
13
+ * src/lib/cairo/papers.rb: add landscape papers.
14
+
15
+ * test/test_paper.rb, src/lib/cairo/paper.rb: support name parsing.
16
+
17
+ * src/lib/cairo/paper.rb: improve unit handling.
18
+
19
+ * src/rb_cairo.c:
20
+ - BINDINGS_VERSION: 1.5.2 -> 1.6.0.
21
+ - support <= 1.6.0.
22
+
23
+ * NEWS: update.
24
+
25
+ * src/lib/cairo/papers.rb: fix unit.
26
+
27
+ * src/cairo.def, src/rb_cairo.c, src/rb_cairo.h, src/lib/cairo.rb,
28
+ src/rb_cairo_surface.c: Cairo::PSSurface.new,
29
+ Cairo::PDFSurface.new, Cairo::SVGSurface.new,
30
+ Cairo::PSSurface#set_size and Cairo::PDFSurface#set_size accept
31
+ paper description that can be parsed by Cairo::Paper.parse as page
32
+ size.
33
+
34
+ * src/lib/cairo/paper.rb, test/test_paper.rb: use pt as default unit.
35
+
36
+ * src/cairo.def, src/rb_cairo.h, src/rb_cairo_surface.c: add
37
+ CRSURFACE2RVAL_WITH_DESTROY() and
38
+ rb_cairo_surface_to_ruby_object_with_destroy().
39
+
40
+ * src/rb_cairo_surface.c (cr_surface_create_similar): fix memory leak.
41
+
42
+ 2008-04-09 Kouhei Sutou <kou@cozmixng.org>
43
+
44
+ * src/lib/cairo/paper.rb, test/test_paper.rb: improve parser.
45
+
46
+ * src/lib/cairo/paper.rb, src/lib/cairo/papers.rb,
47
+ test/test_paper.rb: add.
48
+
49
+ 2008-04-04 Kouhei Sutou <kou@cozmixng.org>
50
+
51
+ * extconf.rb: cleanup libruby-cairo.a.
52
+
53
+ * extconf.rb: support building with Wine + MinGW on my Linux
54
+ environment.
55
+
56
+ * extconf.rb: use search path for nmake.
57
+
58
+ * extconf.rb: add the same directory of extconf.rb to load path.
59
+
60
+ * extconf.rb: fix IMPLIB path.
61
+
62
+ * src/rb_cairo_constants.c: define dummy
63
+ rb_cairo_ps_level_from_ruby_object() just for creating cairo.lib.
64
+
65
+ * extconf.rb: substitute DLLIB not TARGET.
66
+
67
+ * pkg-config.rb: fix substitution for MSVC.
68
+
69
+ * extconf.rb: support output option for MSVC.
70
+
71
+ * src/rb_cairo_path.c: remove garbages.
72
+
73
+ * extconf.rb: fix object file extension substitution.
74
+
75
+ * pkg-config.rb: detect MSVC environment.
76
+
77
+ * pkg-config.rb: handle DL error.
78
+
79
+ 2008-04-03 Kouhei Sutou <kou@cozmixng.org>
80
+
81
+ * pkg-config.rb, test/test_pkg_config.rb: support
82
+ --with-override-variables extconf.rb option.
83
+
84
+ 2008-04-01 Kouhei Sutou <kou@cozmixng.org>
85
+
86
+ * samples/text2.rb: don't use block variable assignment.
87
+
88
+ * src/depend (install-so): use -run instead of ftools.
89
+
90
+ 2008-03-26 Kouhei Sutou <kou@cozmixng.org>
91
+
92
+ * src/rb_cairo_surface.c: added missing HAVE_RUBY_COCOA check.
93
+ Thanks to OBATA Akio!!!
94
+ * README: added OBATA Akio to the thanks list.
95
+
96
+ 2008-03-25 Kouhei Sutou <kou@cozmixng.org>
97
+
98
+ * src/rb_cairo_context.c (cr_initialize): fixed style.
99
+
100
+ 2008-03-04 Kouhei Sutou <kou@cozmixng.org>
101
+
102
+ * pkg-config.rb: supported building with ruby 1.9.1.
103
+
104
+ 2008-03-01 Kouhei Sutou <kou@cozmixng.org>
105
+
106
+ * src/rb_cairo_surface.c, src/cairo.def: Cairo::QuartzImageSurface
107
+ will work.
108
+
109
+ * src/rb_cairo_surface.c: supported <= 1.5.12.
110
+
111
+ * pkg-config.rb: searched default path too.
112
+
113
+ 2008-02-24 Kouhei Sutou <kou@cozmixng.org>
114
+
115
+ * pkg-config.rb: implemented --cflags-only-I.
116
+ * test/: added.
117
+
118
+ * src/rb_cairo_surface.c: worked with cairo >= 1.2.0.
119
+
120
+ * src/rb_cairo_context.c: fixed declaration position.
121
+
122
+ * extconf.rb: RUBY_ -> RB_.
123
+
124
+ * pkg-config.rb: implemented pkg-config for cross compiling with Wine.
125
+
126
+ 2008-02-21 Kouhei Sutou <kou@cozmixng.org>
127
+
128
+ * src/cairo.def, src/rb_cairo.h, src/rb_cairo_surface.c:
129
+ Cairo::Win32PrintingSurface will work.
130
+
131
+ * src/: supported <= 1.5.10.
132
+
133
+ 2008-01-18 Kouhei Sutou <kou@cozmixng.org>
134
+
135
+ * src/rb_cairo_surface.c: used rbobj_to_nsobj() and
136
+ ocid_to_rbobj() instead of rbobj_get_ocid() and ocobj_s_new().
137
+ Suggested by kimura wataru. Thanks!!!
138
+
139
+ * README: added kimura wataru to Thanks list.
140
+
141
+ * src/rb_cairo_surface.c: fixed # of arguments for
142
+ Cairo::Surface#mark_dirty.
143
+
144
+ * src/rb_cairo_surface.c: improved argument error message.
145
+
146
+ * extconf.rb: detected RubyCocoa.
147
+
1
148
  2008-01-11 Kouhei Sutou <kou@cozmixng.org>
2
149
 
150
+ * Rakefile: added docs task dependencies.
151
+
152
+ * dist.sh: updated update host.
153
+
154
+ * src/rb_cairo.c: 1.5.1 -> 1.5.2.
155
+
3
156
  * src/: Cairo::WIN32Surface -> Cairo::Win32Surface.
4
157
 
5
158
  * NEWS: added an entry for 1.5.1.
data/NEWS CHANGED
@@ -1,5 +1,19 @@
1
+ Release 1.6.0 (2008-04-11) Kouhei Sutou <kou@cozmixng.org>)
2
+ ===========================================================
3
+
4
+ Features
5
+ --------
6
+ * Support cairo 1.6.0.
7
+ * Improve Quartz surface support. (thanks to kimura wataru, OBATA Akio)
8
+ * Support Cairo::Win32PrintingSurface.
9
+ * Support Cairo::QuartzImageSurface.
10
+ * Support ruby 1.9.1.
11
+ * Add Cairo::Paper.
12
+ * Improve size specification of Cairo::PSSurface,
13
+ Cairo::PDFSurface, Cairo::SVGSurface.
14
+
1
15
  Release 1.5.1 (2008-01-11) Kouhei Sutou <kou@cozmixng.org>)
2
- ==========================================================
16
+ ===========================================================
3
17
 
4
18
  Features
5
19
  --------
@@ -13,7 +27,7 @@ Features
13
27
  don't use in newly written code.
14
28
 
15
29
  Release 1.5.0 (2007-05-27) Kouhei Sutou <kou@cozmixng.org>)
16
- ==========================================================
30
+ ===========================================================
17
31
 
18
32
  Many API improvement.
19
33
 
data/README CHANGED
@@ -50,3 +50,5 @@ Thanks
50
50
  * NANKI Haruo: some bug fix patches.
51
51
  * Paul van Tilburg: some patches that support ruby 1.9.
52
52
  * Binzo: some bug reports and fixed that.
53
+ * kimura wataru: some advices for RubyCocoa.
54
+ * OBATA Akio: reports a bug.
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- # -*- ruby -*-
1
+ # -*- coding: utf-8; mode: ruby -*-
2
2
 
3
3
  require 'English'
4
4
 
@@ -25,7 +25,7 @@ base_dir_included_components = %w(AUTHORS COPYING ChangeLog GPL
25
25
  NEWS README Rakefile
26
26
  extconf.rb pkg-config.rb)
27
27
  excluded_components = %w(.cvsignore .gdb_history CVS depend Makefile pkg)
28
- excluded_suffixes = %w(.png .ps .pdf .o .so .txt)
28
+ excluded_suffixes = %w(.png .ps .pdf .o .so .txt .~)
29
29
  Find.find(base_dir) do |target|
30
30
  target = truncate_base_dir[target]
31
31
  components = target.split(File::SEPARATOR)
@@ -40,7 +40,13 @@ end
40
40
  File.open(manifest, "w") do |f|
41
41
  f.puts manifest_contents.sort.join("\n")
42
42
  end
43
+
44
+ # For Hoe's no user friendly default behavior. :<
45
+ File.open("README.txt", "w") {|file| file << "= Dummy README\n== XXX\n"}
46
+ FileUtils.cp("NEWS", "History.txt")
43
47
  at_exit do
48
+ FileUtils.rm_f("README.txt")
49
+ FileUtils.rm_f("History.txt")
44
50
  FileUtils.rm_f(manifest)
45
51
  end
46
52
 
@@ -74,6 +80,9 @@ end
74
80
 
75
81
  project.spec.dependencies.delete_if {|dependency| dependency.name == "hoe"}
76
82
 
83
+ # fix Hoe's overwork.
84
+ task(:release).prerequisites.delete_if {|prerequisite| prerequisite == "clean"}
85
+
77
86
  # fix Hoe's incorrect guess.
78
87
  project.spec.executables.clear
79
88
  project.lib_files = project.spec.files.grep(%r|^src/lib/|)
@@ -109,9 +118,10 @@ end
109
118
 
110
119
 
111
120
  # for releasing
112
- task :dist do
121
+ task :dist => [:docs] do
113
122
  sh "./dist.sh", version
114
123
  end
124
+ task :gem => [:docs]
115
125
 
116
126
  # for documentation
117
127
  langs = [
@@ -128,11 +138,11 @@ doc_css = File.join(doc_dir, "doc.css")
128
138
  doc_title_image = File.join(doc_dir, "rcairo-title.png")
129
139
  task(doc_index).instance_variable_get("@actions").clear
130
140
 
131
- file doc_index => doc_dir do
141
+ file doc_dir do
132
142
  mkdir_p doc_dir
133
143
  end
134
144
 
135
- file doc_title_image => rcairo_doc_title_image do
145
+ file doc_title_image => [doc_dir, rcairo_doc_title_image] do
136
146
  cp rcairo_doc_title_image, doc_title_image
137
147
  end
138
148
 
@@ -173,9 +183,13 @@ EOH
173
183
  end
174
184
 
175
185
  langs.each do |lang,|
176
- lang_doc_index = File.join(doc_dir, lang, "index.html")
186
+ lang_doc_dir = File.join(doc_dir, lang)
187
+ file lang_doc_dir do
188
+ mkdir_p lang_doc_dir
189
+ end
190
+ lang_doc_index = File.join(lang_doc_dir, "index.html")
177
191
  task doc_index => lang_doc_index
178
- file lang_doc_index do
192
+ file lang_doc_index => [lang_doc_dir] do
179
193
  lang_doc_dir = File.join(doc_dir, lang)
180
194
  lang_rcairo_doc_dir = File.join(rcairo_doc_dir, lang)
181
195
  mkdir_p lang_doc_dir
@@ -0,0 +1,69 @@
1
+ body
2
+ {
3
+ background-color: white;
4
+ margin: 1em;
5
+ }
6
+
7
+ h1
8
+ {
9
+ background-image: url(rcairo-title.png);
10
+ background-repeat: no-repeat;
11
+ background-position: right top;
12
+ padding-top: 50px;
13
+ }
14
+
15
+ h2
16
+ {
17
+ border-top: solid 1px black;
18
+ padding-top: 0.5em;
19
+ }
20
+
21
+ body > ul > li
22
+ {
23
+ line-height: 150%;
24
+ }
25
+
26
+ code
27
+ {
28
+ font: monospace;
29
+ font-style: italic;
30
+ }
31
+
32
+ dt
33
+ {
34
+ margin-bottom: 1em;
35
+ margin: 1.5em;
36
+ }
37
+
38
+ dt code
39
+ {
40
+ font-weight: bold;
41
+ padding: 0.5em;
42
+ background: #eeeeee;
43
+ border: solid 1px #aaaaaa;
44
+ }
45
+
46
+ dd
47
+ {
48
+ margin-bottom: 2em;
49
+ line-height: 150%;
50
+ padding: 1em;
51
+ padding-top: 0em;
52
+ border-bottom: 1px solid #ffaaaa;
53
+ border-right: 2px solid #ffaaaa;
54
+ }
55
+
56
+ pre
57
+ {
58
+ background: #ffeeee;
59
+ border: solid 1px #ffaaaa;
60
+ padding: 0.5em;
61
+ margin-left: 1em;
62
+ font: monospace;
63
+ }
64
+
65
+ em
66
+ {
67
+ color: #cb2327;
68
+ font-weight: bold;
69
+ }
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
6
+ <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
8
+ <title>module Cairo::Antialias</title>
9
+ <link href="../doc.css" type="text/css" rel="stylesheet" />
10
+ </head>
11
+ <body>
12
+ <h1><a name="label-0" id="label-0">module Cairo::Antialias</a></h1><!-- RDLabel: "module Cairo::Antialias" -->
13
+ <h2><a name="label-1" id="label-1">Constants</a></h2><!-- RDLabel: "Constants" -->
14
+ <dl>
15
+ <dt><a name="label-2" id="label-2"><code>DEFAULT</code></a></dt><!-- RDLabel: "DEFAULT" -->
16
+ <dt><a name="label-3" id="label-3"><code>GRAY</code></a></dt><!-- RDLabel: "GRAY" -->
17
+ <dt><a name="label-4" id="label-4"><code>NONE</code></a></dt><!-- RDLabel: "NONE" -->
18
+ <dt><a name="label-5" id="label-5"><code>SUBPIXEL</code></a></dt><!-- RDLabel: "SUBPIXEL" -->
19
+ </dl>
20
+ <h2><a name="label-6" id="label-6">See Also</a></h2><!-- RDLabel: "See Also" -->
21
+ <ul>
22
+ <li><a href="index.html#label-0">Index</a></li>
23
+ </ul>
24
+ <h2><a name="label-7" id="label-7">ChangeLog</a></h2><!-- RDLabel: "ChangeLog" -->
25
+
26
+ </body>
27
+ </html>
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
6
+ <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
8
+ <title>class Cairo::ClipNotRepresentableError</title>
9
+ <link href="../doc.css" type="text/css" rel="stylesheet" />
10
+ </head>
11
+ <body>
12
+ <h1><a name="label-0" id="label-0">class Cairo::ClipNotRepresentableError</a></h1><!-- RDLabel: "class Cairo::ClipNotRepresentableError" -->
13
+ <h2><a name="label-1" id="label-1">Object Hierarchy</a></h2><!-- RDLabel: "Object Hierarchy" -->
14
+ <ul>
15
+ <li>Object
16
+ <ul>
17
+ <li>Exception
18
+ <ul>
19
+ <li>StandardError
20
+ <ul>
21
+ <li><a href="cairo-error.html#label-0">Cairo::Error</a>
22
+ <ul>
23
+ <li>Cairo::ClipNotRepresentableError</li>
24
+ </ul></li>
25
+ </ul></li>
26
+ </ul></li>
27
+ </ul></li>
28
+ </ul>
29
+ <h2><a name="label-2" id="label-2">See Also</a></h2><!-- RDLabel: "See Also" -->
30
+ <ul>
31
+ <li><a href="index.html#label-0">Index</a></li>
32
+ </ul>
33
+ <h2><a name="label-3" id="label-3">ChangeLog</a></h2><!-- RDLabel: "ChangeLog" -->
34
+
35
+ </body>
36
+ </html>
@@ -0,0 +1,58 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
6
+ <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
8
+ <title>class Cairo::Color::Base</title>
9
+ <link href="../doc.css" type="text/css" rel="stylesheet" />
10
+ </head>
11
+ <body>
12
+ <h1><a name="label-0" id="label-0">class Cairo::Color::Base</a></h1><!-- RDLabel: "class Cairo::Color::Base" -->
13
+ <h2><a name="label-1" id="label-1">Object Hierarchy</a></h2><!-- RDLabel: "Object Hierarchy" -->
14
+ <ul>
15
+ <li>Object
16
+ <ul>
17
+ <li>Cairo::Color::Base</li>
18
+ </ul></li>
19
+ </ul>
20
+ <h2><a name="label-2" id="label-2">Class Methods</a></h2><!-- RDLabel: "Class Methods" -->
21
+ <dl>
22
+ <dt><a name="label-3" id="label-3"><code>Cairo::Color::Base.new</code></a></dt><!-- RDLabel: "Cairo::Color::Base.new" -->
23
+ <dd>
24
+ <ul>
25
+ <li>Returns: self: <em>FIXME</em></li>
26
+ </ul></dd>
27
+ </dl>
28
+ <h2><a name="label-4" id="label-4">Instance Methods</a></h2><!-- RDLabel: "Instance Methods" -->
29
+ <dl>
30
+ <dt><a name="label-5" id="label-5"><code>a</code></a></dt><!-- RDLabel: "a" -->
31
+ <dd>
32
+ <ul>
33
+ <li>Returns: self: <em>FIXME</em></li>
34
+ </ul></dd>
35
+ <dt><a name="label-6" id="label-6"><code>a=</code></a></dt><!-- RDLabel: "a=" -->
36
+ <dd>
37
+ <ul>
38
+ <li>Returns: self: <em>FIXME</em></li>
39
+ </ul></dd>
40
+ <dt><a name="label-7" id="label-7"><code>alpha</code></a></dt><!-- RDLabel: "alpha" -->
41
+ <dd>
42
+ <ul>
43
+ <li>Returns: self: <em>FIXME</em></li>
44
+ </ul></dd>
45
+ <dt><a name="label-8" id="label-8"><code>alpha=</code></a></dt><!-- RDLabel: "alpha=" -->
46
+ <dd>
47
+ <ul>
48
+ <li>Returns: self: <em>FIXME</em></li>
49
+ </ul></dd>
50
+ </dl>
51
+ <h2><a name="label-9" id="label-9">See Also</a></h2><!-- RDLabel: "See Also" -->
52
+ <ul>
53
+ <li><a href="index.html#label-0">Index</a></li>
54
+ </ul>
55
+ <h2><a name="label-10" id="label-10">ChangeLog</a></h2><!-- RDLabel: "ChangeLog" -->
56
+
57
+ </body>
58
+ </html>