Commit 1f1e4aae authored by Mukund Sivaraman's avatar Mukund Sivaraman

generated: Use <code> instead of <tt>

<tt> is deprecated.
parent fcb52539
......@@ -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");
}
......
......@@ -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");
}
......
......@@ -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");
}
......
......@@ -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");
}
......
......@@ -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");
}
......
......@@ -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");
}
......
......@@ -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");
}
......
......@@ -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");
}
......
......@@ -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");
}
......
......@@ -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");
}
......
......@@ -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");
}
......
#!/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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment