[gegl] generated: Use <code> instead of <tt>



commit 1f1e4aae07f65b63d86f2e5fb603c504ed2fd918
Author: Mukund Sivaraman <muks banu com>
Date:   Thu Apr 19 08:49:16 2012 +0530

    generated: Use <code> instead of <tt>
    
    <tt> is deprecated.

 operations/generated/color-burn.c    |    2 +-
 operations/generated/color-dodge.c   |    2 +-
 operations/generated/darken.c        |    2 +-
 operations/generated/difference.c    |    2 +-
 operations/generated/exclusion.c     |    2 +-
 operations/generated/hard-light.c    |    2 +-
 operations/generated/lighten.c       |    2 +-
 operations/generated/overlay.c       |    2 +-
 operations/generated/plus.c          |    2 +-
 operations/generated/screen.c        |    2 +-
 operations/generated/soft-light.c    |    2 +-
 operations/generated/svg-12-blend.rb |    9 +++++----
 12 files changed, 16 insertions(+), 15 deletions(-)
---
diff --git a/operations/generated/color-burn.c b/operations/generated/color-burn.c
index 3cc174d..da53949 100644
--- a/operations/generated/color-burn.c
+++ b/operations/generated/color-burn.c
@@ -114,7 +114,7 @@ gegl_chant_class_init (GeglChantClass *klass)
   gegl_operation_class_set_keys (operation_class,
   "name"        , "svg:color-burn",
   "description" ,
-        _("SVG blend operation color-burn (<tt>if cA * aB + cB * aA <= aA * aB: d = cA * (1 - aB) + cB * (1 - aA) otherwise: d = (cA == 0 ? 1 : (aA * (cA * aB + cB * aA - aA * aB) / cA) + cA * (1 - aB) + cB * (1 - aA))</tt>)"),
+        _("SVG blend operation color-burn (<code>if cA * aB + cB * aA <= aA * aB: d = cA * (1 - aB) + cB * (1 - aA) otherwise: d = (cA == 0 ? 1 : (aA * (cA * aB + cB * aA - aA * aB) / cA) + cA * (1 - aB) + cB * (1 - aA))</code>)"),
         NULL);
   gegl_operation_class_set_key (operation_class, "categories", "compositors:svgfilter");
 }
diff --git a/operations/generated/color-dodge.c b/operations/generated/color-dodge.c
index 655392f..bb7efda 100644
--- a/operations/generated/color-dodge.c
+++ b/operations/generated/color-dodge.c
@@ -114,7 +114,7 @@ gegl_chant_class_init (GeglChantClass *klass)
   gegl_operation_class_set_keys (operation_class,
   "name"        , "svg:color-dodge",
   "description" ,
-        _("SVG blend operation color-dodge (<tt>if cA * aB + cB * aA >= aA * aB: d = aA * aB + cA * (1 - aB) + cB * (1 - aA) otherwise: d = (cA == aA ? 1 : cB * aA / (aA == 0 ? 1 : 1 - cA / aA)) + cA * (1 - aB) + cB * (1 - aA)</tt>)"),
+        _("SVG blend operation color-dodge (<code>if cA * aB + cB * aA >= aA * aB: d = aA * aB + cA * (1 - aB) + cB * (1 - aA) otherwise: d = (cA == aA ? 1 : cB * aA / (aA == 0 ? 1 : 1 - cA / aA)) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
         NULL);
   gegl_operation_class_set_key (operation_class, "categories", "compositors:svgfilter");
 }
diff --git a/operations/generated/darken.c b/operations/generated/darken.c
index 4568982..806af63 100644
--- a/operations/generated/darken.c
+++ b/operations/generated/darken.c
@@ -112,7 +112,7 @@ gegl_chant_class_init (GeglChantClass *klass)
   gegl_operation_class_set_keys (operation_class,
   "name"        , "svg:darken",
   "description" ,
-        _("SVG blend operation darken (<tt>d = MIN (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 - aA)</tt>)"),
+        _("SVG blend operation darken (<code>d = MIN (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
         NULL);
   gegl_operation_class_set_key (operation_class, "categories", "compositors:svgfilter");
 }
diff --git a/operations/generated/difference.c b/operations/generated/difference.c
index 3c17a42..98c2125 100644
--- a/operations/generated/difference.c
+++ b/operations/generated/difference.c
@@ -112,7 +112,7 @@ gegl_chant_class_init (GeglChantClass *klass)
   gegl_operation_class_set_keys (operation_class,
   "name"        , "svg:difference",
   "description" ,
-        _("SVG blend operation difference (<tt>d = cA + cB - 2 * (MIN (cA * aB, cB * aA))</tt>)"),
+        _("SVG blend operation difference (<code>d = cA + cB - 2 * (MIN (cA * aB, cB * aA))</code>)"),
         NULL);
   gegl_operation_class_set_key (operation_class, "categories", "compositors:svgfilter");
 }
diff --git a/operations/generated/exclusion.c b/operations/generated/exclusion.c
index 5fec960..239e68d 100644
--- a/operations/generated/exclusion.c
+++ b/operations/generated/exclusion.c
@@ -112,7 +112,7 @@ gegl_chant_class_init (GeglChantClass *klass)
   gegl_operation_class_set_keys (operation_class,
   "name"        , "svg:exclusion",
   "description" ,
-        _("SVG blend operation exclusion (<tt>d = (cA * aB + cB * aA - 2 * cA * cB) + cA * (1 - aB) + cB * (1 - aA)</tt>)"),
+        _("SVG blend operation exclusion (<code>d = (cA * aB + cB * aA - 2 * cA * cB) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
         NULL);
   gegl_operation_class_set_key (operation_class, "categories", "compositors:svgfilter");
 }
diff --git a/operations/generated/hard-light.c b/operations/generated/hard-light.c
index da4f595..9093dcf 100644
--- a/operations/generated/hard-light.c
+++ b/operations/generated/hard-light.c
@@ -114,7 +114,7 @@ gegl_chant_class_init (GeglChantClass *klass)
   gegl_operation_class_set_keys (operation_class,
   "name"        , "svg:hard-light",
   "description" ,
-        _("SVG blend operation hard-light (<tt>if 2 * cA < aA: d = 2 * cA * cB + cA * (1 - aB) + cB * (1 - aA) otherwise: d = aA * aB - 2 * (aB - cB) * (aA - cA) + cA * (1 - aB) + cB * (1 - aA)</tt>)"),
+        _("SVG blend operation hard-light (<code>if 2 * cA < aA: d = 2 * cA * cB + cA * (1 - aB) + cB * (1 - aA) otherwise: d = aA * aB - 2 * (aB - cB) * (aA - cA) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
         NULL);
   gegl_operation_class_set_key (operation_class, "categories", "compositors:svgfilter");
 }
diff --git a/operations/generated/lighten.c b/operations/generated/lighten.c
index 9720dee..9872f0c 100644
--- a/operations/generated/lighten.c
+++ b/operations/generated/lighten.c
@@ -112,7 +112,7 @@ gegl_chant_class_init (GeglChantClass *klass)
   gegl_operation_class_set_keys (operation_class,
   "name"        , "svg:lighten",
   "description" ,
-        _("SVG blend operation lighten (<tt>d = MAX (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 - aA)</tt>)"),
+        _("SVG blend operation lighten (<code>d = MAX (cA * aB, cB * aA) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
         NULL);
   gegl_operation_class_set_key (operation_class, "categories", "compositors:svgfilter");
 }
diff --git a/operations/generated/overlay.c b/operations/generated/overlay.c
index 6407f54..e9e8181 100644
--- a/operations/generated/overlay.c
+++ b/operations/generated/overlay.c
@@ -114,7 +114,7 @@ gegl_chant_class_init (GeglChantClass *klass)
   gegl_operation_class_set_keys (operation_class,
   "name"        , "svg:overlay",
   "description" ,
-        _("SVG blend operation overlay (<tt>if 2 * cB > aB: d = 2 * cA * cB + cA * (1 - aB) + cB * (1 - aA) otherwise: d = aA * aB - 2 * (aB - cB) * (aA - cA) + cA * (1 - aB) + cB * (1 - aA)</tt>)"),
+        _("SVG blend operation overlay (<code>if 2 * cB > aB: d = 2 * cA * cB + cA * (1 - aB) + cB * (1 - aA) otherwise: d = aA * aB - 2 * (aB - cB) * (aA - cA) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
         NULL);
   gegl_operation_class_set_key (operation_class, "categories", "compositors:svgfilter");
 }
diff --git a/operations/generated/plus.c b/operations/generated/plus.c
index 9850acf..0374987 100644
--- a/operations/generated/plus.c
+++ b/operations/generated/plus.c
@@ -112,7 +112,7 @@ gegl_chant_class_init (GeglChantClass *klass)
   gegl_operation_class_set_keys (operation_class,
     "name"        , "svg:plus",
     "description" ,
-    _("SVG blend operation plus (<tt>d = cA + cB</tt>)"),
+    _("SVG blend operation plus (<code>d = cA + cB</code>)"),
     NULL);
   gegl_operation_class_set_key (operation_class, "categories", "compositors:svgfilter");
 }
diff --git a/operations/generated/screen.c b/operations/generated/screen.c
index 5d6b2f0..4b2f2a8 100644
--- a/operations/generated/screen.c
+++ b/operations/generated/screen.c
@@ -112,7 +112,7 @@ gegl_chant_class_init (GeglChantClass *klass)
   gegl_operation_class_set_keys (operation_class,
   "name"        , "svg:screen",
   "description" ,
-        _("SVG blend operation screen (<tt>d = cA + cB - cA * cB</tt>)"),
+        _("SVG blend operation screen (<code>d = cA + cB - cA * cB</code>)"),
         NULL);
   gegl_operation_class_set_key (operation_class, "categories", "compositors:svgfilter");
 }
diff --git a/operations/generated/soft-light.c b/operations/generated/soft-light.c
index d25e9e0..b1ad2c1 100644
--- a/operations/generated/soft-light.c
+++ b/operations/generated/soft-light.c
@@ -116,7 +116,7 @@ gegl_chant_class_init (GeglChantClass *klass)
   gegl_operation_class_set_keys (operation_class,
   "name"        , "gegl:soft-light",
   "description" ,
-        _("SVG blend operation soft-light (<tt>if 2 * cA < aA: d = cB * (aA - (aB == 0 ? 1 : 1 - cB / aB) * (2 * cA - aA)) + cA * (1 - aB) + cB * (1 - aA); if 8 * cB <= aB: d = cB * (aA - (aB == 0 ? 1 : 1 - cB / aB) * (2 * cA - aA) * (aB == 0 ? 3 : 3 - 8 * cB / aB)) + cA * (1 - aB) + cB * (1 - aA); otherwise: d = (aA * cB + (aB == 0 ? 0 : sqrt (cB / aB) * aB - cB) * (2 * cA - aA)) + cA * (1 - aB) + cB * (1 - aA)</tt>)"),
+        _("SVG blend operation soft-light (<code>if 2 * cA < aA: d = cB * (aA - (aB == 0 ? 1 : 1 - cB / aB) * (2 * cA - aA)) + cA * (1 - aB) + cB * (1 - aA); if 8 * cB <= aB: d = cB * (aA - (aB == 0 ? 1 : 1 - cB / aB) * (2 * cA - aA) * (aB == 0 ? 3 : 3 - 8 * cB / aB)) + cA * (1 - aB) + cB * (1 - aA); otherwise: d = (aA * cB + (aB == 0 ? 0 : sqrt (cB / aB) * aB - cB) * (2 * cA - aA)) + cA * (1 - aB) + cB * (1 - aA)</code>)"),
         NULL);
   gegl_operation_class_set_key (operation_class, "categories", "compositors:svgfilter");
 }
diff --git a/operations/generated/svg-12-blend.rb b/operations/generated/svg-12-blend.rb
index 66e074c..9bd6f36 100755
--- a/operations/generated/svg-12-blend.rb
+++ b/operations/generated/svg-12-blend.rb
@@ -1,4 +1,5 @@
 #!/usr/bin/env ruby
+# -*- coding: utf-8 -*-
 
 copyright = '
 /* !!!! AUTOGENERATED FILE generated by svg12-blend.rb !!!!!
@@ -186,7 +187,7 @@ a.each do
   gegl_operation_class_set_keys (operation_class,
   \"name\"        , \"svg:#{name}\",
   \"description\" ,
-        _(\"SVG blend operation #{name} (<tt>d = #{formula1}</tt>)\"),
+        _(\"SVG blend operation #{name} (<code>d = #{formula1}</code>)\"),
         NULL);
 "
   file.write file_tail2
@@ -251,7 +252,7 @@ b.each do
   gegl_operation_class_set_keys (operation_class,
   \"name\"        , \"svg:#{name}\",
   \"description\" ,
-        _(\"SVG blend operation #{name} (<tt>if #{cond1}: d = #{formula1} otherwise: d = #{formula2}</tt>)\"),
+        _(\"SVG blend operation #{name} (<code>if #{cond1}: d = #{formula1} otherwise: d = #{formula2}</code>)\"),
         NULL);
 "
   file.write file_tail2
@@ -320,7 +321,7 @@ c.each do
   gegl_operation_class_set_keys (operation_class,
   \"name\"        , \"gegl:#{name}\",
   \"description\" ,
-        _(\"SVG blend operation #{name} (<tt>if #{cond1}: d = #{formula1}; if #{cond2}: d = #{formula2}; otherwise: d = #{formula3}</tt>)\"),
+        _(\"SVG blend operation #{name} (<code>if #{cond1}: d = #{formula1}; if #{cond2}: d = #{formula2}; otherwise: d = #{formula3}</code>)\"),
         NULL);
 "
   file.write file_tail2
@@ -382,7 +383,7 @@ d.each do
   gegl_operation_class_set_keys (operation_class,
     \"name\"        , \"svg:#{name}\",
     \"description\" ,
-    _(\"SVG blend operation #{name} (<tt>d = #{formula1}</tt>)\"),
+    _(\"SVG blend operation #{name} (<code>d = #{formula1}</code>)\"),
     NULL);
 "
   file.write file_tail2



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]