source@mandoc.bsd.lv
 help / color / Atom feed
* 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, /\&/, "&amp;");
-	str = regsuball (str, /</, "&lt;");
-	str = regsuball (str, />/, "&gt;");
-	str = regsuball (str, /\"/, "&quot;");
-	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, /\&/, "&amp;");
-	str = regsuball (str, /</, "&lt;");
-	str = regsuball (str, />/, "&gt;");
-	str = regsuball (str, /\"/, "&quot;");
-	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, back to index

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

source@mandoc.bsd.lv

Archives are clonable: git clone --mirror http://inbox.vuxu.org/mandoc-source

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.mandoc.source


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git