* cvsweb: more enscript cleanup
@ 2019-11-11 15:23 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-11-11 15:23 UTC (permalink / raw)
To: source
Log Message:
-----------
more enscript cleanup
Removed Files:
-------------
cvsweb/enscript:
lang_cvsweb.st
lang_cvsweb_diff.st
Revision Data
-------------
--- enscript/lang_cvsweb.st
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- GNU Enscript language file for FreeBSD-CVSweb.
- $FreeBSD$
- */
-
-state lang_cvsweb
-{
- BEGIN {
- /* RGB -> HTML color mapper function. */
- sub map_color (r, g, b)
- {
- return sprintf ("#%02X%02X%02X", r, g, b);
- }
-
- LANGUAGE_SPECIALS = /[<>\&\"]/;
-
- sub language_print (str)
- {
- str = regsuball (str, /\&/, "&");
- str = regsuball (str, /</, "<");
- str = regsuball (str, />/, ">");
- str = regsuball (str, /\"/, """);
- print (str);
- }
-
- sub language_symbol (symbol)
- {
- return false;
- }
-
- sub header ()
- {
- }
-
- sub trailer ()
- {
- }
-
- sub face_on (face)
- {
- if (face[boldp])
- print ("<b>");
- if (face[italicp])
- print ("<i>");
-
- if (face[fg_color])
- print ("<span style=\"color: ", face[fg_color], "\">");
- if (face[bg_color])
- print ("<span style=\"background-color: ", face[bg_color], "\">");
- }
-
- sub face_off (face)
- {
- if (face[fg_color])
- print ("</span>");
- if (face[bg_color])
- print ("</span>");
-
- if (face[italicp])
- print ("</i>");
- if (face[boldp])
- print ("</b>");
- }
-
- return;
- }
-}
-
-\f
-/*
-Local variables:
-mode: c
-End:
-*/
--- enscript/lang_cvsweb_diff.st
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- GNU Enscript language file for FreeBSD-CVSweb diffs.
- $FreeBSD$
- */
-
-state lang_cvsweb_diff
-{
- BEGIN {
- /* RGB -> HTML color mapper function. */
- sub map_color (r, g, b)
- {
- return sprintf ("#%02X%02X%02X", r, g, b);
- }
-
- LANGUAGE_SPECIALS = /[<>\&\"]/;
-
- sub language_print (str)
- {
- str = regsuball (str, /\&/, "&");
- str = regsuball (str, /</, "<");
- str = regsuball (str, />/, ">");
- str = regsuball (str, /\"/, """);
- print (str);
- }
-
- sub language_symbol (symbol)
- {
- return false;
- }
-
- sub header ()
- {
- }
-
- sub trailer ()
- {
- }
-
- sub face_on (face)
- {
- if (face[boldp])
- print ("<b>");
- if (face[italicp])
- print ("<i>");
-
- if (face[fg_color])
- print ("<span style=\"color: ", face[fg_color], "; background-color: lightgrey\">");
- if (face[bg_color])
- print ("<span style=\"background-color: ", face[bg_color], "\">");
- }
-
- sub face_off (face)
- {
- if (face[fg_color])
- print ("</span>");
- if (face[bg_color])
- print ("</span>");
-
- if (face[italicp])
- print ("</i>");
- if (face[boldp])
- print ("</b>");
- }
-
- return;
- }
-}
-
-\f
-/*
-Local variables:
-mode: c
-End:
-*/
--
To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-11 15:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-11 15:23 cvsweb: more enscript cleanup schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).