groff-commit
[Top][All Lists]
Advanced

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

[Groff-commit] groff/contrib/hdtbl ChangeLog examples/fontdump...


From: Werner LEMBERG
Subject: [Groff-commit] groff/contrib/hdtbl ChangeLog examples/fontdump...
Date: Tue, 30 May 2006 20:03:01 +0000

CVSROOT:        /cvsroot/groff
Module name:    groff
Branch:         
Changes by:     Werner LEMBERG <address@hidden> 06/05/30 20:03:01

Modified files:
        contrib/hdtbl  : ChangeLog 
        contrib/hdtbl/examples: fontdumps_n.roff fontdumps_x.roff 

Log message:
        * example/fontdumps_x.roff: Remove warnings about
        non-existent glyphs.
        Add copyright notice.
        Formatting.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/groff/contrib/hdtbl/ChangeLog.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/contrib/hdtbl/examples/fontdumps_n.roff.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/contrib/hdtbl/examples/fontdumps_x.roff.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: groff/contrib/hdtbl/ChangeLog
diff -u groff/contrib/hdtbl/ChangeLog:1.6 groff/contrib/hdtbl/ChangeLog:1.7
--- groff/contrib/hdtbl/ChangeLog:1.6   Tue May 30 17:28:27 2006
+++ groff/contrib/hdtbl/ChangeLog       Tue May 30 20:03:01 2006
@@ -13,6 +13,10 @@
        non-existent glyphs.
        Add copyright notice.
        Formatting.
+       * example/fontdumps_x.roff: Remove warnings about
+       non-existent glyphs.
+       Add copyright notice.
+       Formatting.
 
 2006-05-25  Werner LEMBERG  <address@hidden>
 
Index: groff/contrib/hdtbl/examples/fontdumps_n.roff
diff -u groff/contrib/hdtbl/examples/fontdumps_n.roff:1.3 
groff/contrib/hdtbl/examples/fontdumps_n.roff:1.4
--- groff/contrib/hdtbl/examples/fontdumps_n.roff:1.3   Tue May 30 17:36:10 2006
+++ groff/contrib/hdtbl/examples/fontdumps_n.roff       Tue May 30 20:03:01 2006
@@ -1,7 +1,7 @@
 .\"    -*-     mode: roff      -*-
 .ig
 
-mixed_pickles.roff
+fontdumps_n.roff
 
 This file is part of groff, the GNU roff type-setting system.
 
@@ -27,9 +27,9 @@
 .
 .
 .\"    ******************************************************************
-.\"    **              Groff glyphs vs. character codes:               **
+.\"    **              groff glyphs vs. character codes:               **
 .\"    **      .fontdump [font1 font2 ... ]                            **
-.\"    **              Print glyphs of font1, font2, ... versus        **
+.\"    **              Print glyphs of font1, font2, ..., versus       **
 .\"    **              character code.                                 **
 .\"    **              `all' as fontname prints all fonts in the       **
 .\"    **              specified fontpath `*fontpath'.                 **
@@ -50,7 +50,7 @@
        "echo -n .ds *f\ ; \
         ls --color=never \\*[*fontpath]/dev\*[.T] \
         | tr [:cntrl:] ' '"
-.  \"  this dummy-line is necessary; it is eaten by the preceding line
+.  \"  This dummy line is necessary; the preceding line eats it.
 .
 .  while !"\\*[*args]"" \{\
 .    pops *$1 *args
@@ -102,7 +102,7 @@
 .      TR 
 .        TD
 .          TBL cols=12 border=.1n bc=red csp=.1n cpd=.2n fgc=red4 bgc=beige \
-               hal=c "fsz=1.2 1.2" fst=\\*[*$1]
+               hal=c fsz='1.2 1.2' fst=\\*[*$1]
 .            nr c# 0-1 1
 .            nr y# 0-1 1
 .            TR fst=HB fgc=blue 
Index: groff/contrib/hdtbl/examples/fontdumps_x.roff
diff -u groff/contrib/hdtbl/examples/fontdumps_x.roff:1.2 
groff/contrib/hdtbl/examples/fontdumps_x.roff:1.3
--- groff/contrib/hdtbl/examples/fontdumps_x.roff:1.2   Tue May 30 17:28:27 2006
+++ groff/contrib/hdtbl/examples/fontdumps_x.roff       Tue May 30 20:03:01 2006
@@ -1,103 +1,157 @@
-.\"    -*- roff -*-
-.\"    Time-stamp: <FontdumpsX.roff: 17.02.2006 14:34:56 x01 - address@hidden>
+.\"    -*-     mode: roff      -*-
+.ig
+
+fontdumps_x.roff
+
+This file is part of groff, the GNU roff type-setting system.
+
+Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+written by Joachim Walsdorff <address@hidden>.
+
+groff is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+groff is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with groff; see the file COPYING.  If not, write to the Free
+Software Foundation, 51 Franklin St - Fifth Floor, Boston, MA
+02110-1301, USA.
+
+..
+.
+.
 .\"    ******************************************************************
-.\"    **              Groff-Fontglyphs vs Charactercode:              **
+.\"    **              groff glyphs vs. character codes:               **
 .\"    **      .fontdump [font1 font2 ... ]                            **
-.\"    **              Print glyphs of font1 font2 ... versus          **
-.\"    **              charactercode.                                  **
+.\"    **              Print glyphs of font1, font2, ..., versus       **
+.\"    **              character code.                                 **
 .\"    **              `all' as fontname prints all fonts in the       **
 .\"    **              specified fontpath `*fontpath'.                 **
-.\"    **              without arg: glyps/codes of active font.        **
+.\"    **              without arg: glyphs and codes of active font.   **
 .\"    ******************************************************************
+.
 .time start
+.
 .ds *fontpath /usr/local/share/groff/1.19.3/font
-.\"ds *fontpath /usr/share/groff/1.18.1/font
 .
 .de fontdump
-.ie \\n(.$ .ds *args \\$*
-.el .ds *args \\n[.fn]
-.pso bash -c \
-"echo -n .ds *f\ ;ls --color=never \\*[*fontpath]/dev\*(.T | tr [:cntrl:] ' '"
-.\"    this dummy-line is necessary; the preceding line eats it.
-.while !"\\*[*args]"" \{ .
-.   pops *$1 *args
-.   if "\\*[*$1]"all" \{ .
-.      ds *args \\*(*f \\*[*args]
+.  ie \\n[.$] \
+.    ds *args \\$*
+.  el \
+.    ds *args \\n[.fn]
+.
+.  pso bash -c \
+       "echo -n .ds *f\ ; \
+        ls --color=never \\*[*fontpath]/dev\*[.T] \
+        | tr [:cntrl:] ' '"
+.  \"  This dummy line is necessary; the preceding line eats it.
+.
+.  while !"\\*[*args]"" \{\
+.    pops *$1 *args
+.
+.    if "\\*[*$1]"all" \{\
+.      ds *args \\*[*f] \\*[*args]
 .      pops *$1 *args
-.      nr *all 1 
-.   \}
-.   if \\n[*all] \{ .
-.      if "\\*[*$1]"." .nr *all 0
-.      if !F \\*[*$1] .continue 
-.   \}
-.   index "\\*(*f" \\*[*$1]
-.   ie \\n(.y>18 .if !F \\*[*$1] \{ .
-.      tm \\n(.F:\\n(.c: Font \\*[*$1] not found.
-.      continue 
-.   \}
-.   el \{ .
-.      if !\\n[index] \{ . 
-.         tm \\n(.F:\\n(.c: Font \\*[*$1] not found.
-.         continue 
+.      nr *all 1
+.    \}
+.
+.    if \\n[*all] \{\
+.      if "\\*[*$1]"." \
+.        nr *all 0
+.      if !F \\*[*$1] \
+.        continue
+.    \}
+.
+.    index "\\*[*f]" \\*[*$1]
+.
+.    ie (\\n[.y] > 18) \
+.      if !F \\*[*$1] \{\
+.        tm \\n[.F]:\\n[.c]: Font \\*[*$1] not found.
+.        continue
 .      \}
-.   nr * \\n(.f
-.   ft \\*[*$1]
-.   nr ** \\n(.f
-.   ft
-.   if \\n(**=\\n* .continue 
-.   \}
-.   if \\n[t*cptn] .bp
-.   TBL border=.1n bc=red cpd=0 csp=.1n bgc=
-.   CPTN Groff-Font \\*[*$1] .br val=b ".pso grep -e internalname \
-         \\*[*fontpath]/dev\*(.T/\\*[*$1]"
-.   TR 
-.   TD
-.   TBL cols=18 border=.1n bc=red csp=.1n cpd=.2n fgc=red4 bgc=beige hal=c \
-        fsz='1.2 1.7' fst=\\*[*$1]
-.   nr c# 0-1 1
-.   nr y# 0 1
-.   TR fst=HB fgc=blue 
-.   TD 
-.   nr x# 0-1 1
-.   while \\n+[x#]<16 \{ .
-.      d2x \\n[x#]
-.      TD 
-.      nop \&.\\*[hex#] 
-.   \}
-.   TD
-.   nr y# -1
-.   while \\n+(y#<17 \{ .
-.      TR 
-.      TD  fgc=blue fst=HB
-.      d2x \\n(y# 
-.      nop \\*[hex#]. 
-.      nr x# 0-1 1
-.      while \\n+(x#<16 \{ .
-.         TD 
-.         nop \N'\\n+(c#' 
+.    el \{\
+.      if !\\n[index] \{\
+.        tm \\n[.F]:\\n[.c]: Font \\*[*$1] not found.
+.        continue
 .      \}
-.   TD fgc=blue fst=HB 
-.   d2x \\n(y#
-.   nop \\*[hex#]. 
-.   \}
-.   TR fst=HB fgc=blue 
-.   TD 
-.   nr x# 0-1 1
-.   while \\n+[x#]<16 \{ .
-.      d2x \\n[x#]
-.      TD 
-.      nop \&..\\*[hex#]
-.   \}
-.   TD 
-.   ETB 
-.   ETB 
-.\}
+.
+.      nr * \\n[.f]
+.      ft \\*[*$1]
+.      nr ** \\n[.f]
+.      ft
+.
+.      if (\\n[**] == \\n[*]) \
+.        continue
+.    \}
+.
+.    if \\n[t*cptn] \
+.      bp
+.
+.    tm listing font `\\*[*$1]'...
+.
+.    TBL border=.1n bc=red cpd=0 csp=.1n bgc=
+.      CPTN groff font \\*[*$1] \
+            .br \
+            val=b ".pso grep -e internalname \\*[*fontpath]/dev\*[.T]/\\*[*$1]"
+.      TR
+.        TD
+.          TBL cols=18 border=.1n bc=red csp=.1n cpd=.2n fgc=red4 bgc=beige \
+               hal=c fsz='1.2 1.7' fst=\\*[*$1]
+.            nr c# 0-1 1
+.            nr y# 0 1
+.            TR fst=HB fgc=blue
+.              TD
+.              nr x# 0-1 1
+.              while (\\n+[x#] < 16) \{\
+.                d2x \\n[x#]
+.                  TD
+.                    nop \&.\\*[hex#]
+.              \}
+.              TD
+.
+.            nr y# -1
+.            while (\\n+[y#] < 17) \{\
+.              TR
+.                TD fgc=blue fst=HB
+.                d2x \\n[y#]
+.                  nop \\*[hex#].
+.                nr x# 0-1 1
+.                while (\\n+[x#] < 16) \{\
+.                  TD
+.                    if c \N'\\n+[c#]' \
+.                      nop \N'\\n[c#]'
+.                \}
+.                TD fgc=blue fst=HB
+.                d2x \\n[y#]
+.                  nop \\*[hex#].
+.            \}
+.
+.            TR fst=HB fgc=blue
+.              TD
+.              nr x# 0-1 1
+.              while (\\n+[x#] < 16) \{\
+.                d2x \\n[x#]
+.                TD
+.                  nop \&..\\*[hex#]
+.              \}
+.              TD
+.          ETB
+.    ETB
+.  \}
 ..
 .
 .fontdump all
+.
 .time
 .date
-.\"    466MHz Celeron CPU, 384MB RAM 
+.
+.\"    466MHz Celeron CPU, 384MB RAM
 .\"    WindowsXP/cygwin groff18.1:     107s
 .\"    WindowsXP/cygwin groff19.2:     390s
 .\"    Suse Linux 9.3 groff19.2:        66s




reply via email to

[Prev in Thread] Current Thread [Next in Thread]