graphics/bdfedit: Added (Tcl/TK based editor for BDF fonts).

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2015-02-20 09:46:31 +07:00 committed by Willy Sudiarto Raharjo
parent 5ea3db7bec
commit a636184219
9 changed files with 296 additions and 0 deletions

4
graphics/bdfedit/README Normal file
View File

@ -0,0 +1,4 @@
bdfedit (Tcl/TK based editor for BDF fonts)
bdfedit is a lightweight and simple font editor, with an intuitive
user interface.

121
graphics/bdfedit/bdfedit.1 Normal file
View File

@ -0,0 +1,121 @@
.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings. \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
. ds -- \(*W-
. ds PI pi
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
. ds L" ""
. ds R" ""
. ds C` ""
. ds C' ""
'br\}
.el\{\
. ds -- \|\(em\|
. ds PI \(*p
. ds L" ``
. ds R" ''
. ds C`
. ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\"
.\" If the F register is turned on, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD. Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{
. if \nF \{
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. if !\nF==2 \{
. nr % 0
. nr F 2
. \}
. \}
.\}
.rr rF
.\" ========================================================================
.\"
.IX Title "BDFEDIT 1"
.TH BDFEDIT 1 "2015-02-02" "1.3" "SlackBuilds.org"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
bdfedit \- Tcl/Tk\-based editor for BDF fonts
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
bdfedit [\fIfilename\fR|\fI\-\fR|\fIfont@[server[:port]]\fR]
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
Running bdfedit brings up the font editing window. If a font was
specified on the command line, this font is loaded (use \fB\-\fR to load a
font from stdin). The font must be a \s-1BDF\s0 font, and can be specified
as a filename. It may also be the name of a font, and a fontserver,
in one of the following forms:
.PP
.Vb 3
\& font@server:port
\& font@server (defaults to port 7100)
\& font@ (defaults to localhost:7100)
.Ve
.PP
and \*(L"font\*(R" should be the name of the font. In order to use this method,
you must have \*(L"fstobdf\*(R" installed on your system and in your \s-1PATH,\s0 and
you must have a fontserver running somewhere. Fonts loaded this way will
assume the filename is the same as the fontname (without the server or
port), with \*(L".bdf\*(R" appended. This method of specifying fonts may also
be used when opening fonts with the \*(L"Load\*(R" option in the \*(L"File\*(R" menu.
.PP
See \fB/usr/doc/bdfedit\-1.3/bdfedit.help\fR for more information.
.SH "OPTIONS"
.IX Header "OPTIONS"
\&\fBbdfedit\fR takes no options.
.SH "FILES"
.IX Header "FILES"
.Vb 1
\& $HOME/.bdfeditrc
.Ve
.PP
Defaults to use for newly-created fonts. See \fB/usr/doc/bdfedit\-1.3/bdfedit.samprc\fR.
.SH "AUTHOR"
.IX Header "AUTHOR"
\&\fBbdfedit\fR is © 2000 Thomas A. Fine.
.PP
Man page created by B. Watson <yalhcru@gmail.com>, for the SlackBuilds.org project (but
it may be used by anyone).

View File

@ -0,0 +1,77 @@
#!/bin/sh
# Slackware build script for bdfedit
# Written by B. Watson (yalhcru@gmail.com)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/
# for details.
# Why do we need another BDF editor? Because gbdfed keeps segfaulting on
# me. Also, bdfedit's UI uses a single window instead of the multiple
# windows gbdfed uses (which is better will be a matter of personal
# preference, but I prefer 1 window). fontforge is also capable of
# editing BDFs but its UI is irritating (to me anyway).
# Yes, this is old software that hasn't been maintained in 12+ years,
# but it works fine.
PRGNAM=bdfedit
VERSION=${VERSION:-1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH=noarch
# no CFLAGS or LIBDIRSUFFIX needed here
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM$VERSION
tar xvf $CWD/$PRGNAM$VERSION.tar.gz
cd $PRGNAM$VERSION
chown -R root:root .
# upstream perms are bad, do this instead of find|chmod.
chmod 755 .
chmod 644 *
mkdir -p $PKG/usr/bin
# instead of having bdfedit source completion.tcl, just include its
# contents directly in bdfedit. Avoids having to create a private
# lib or share dir. Also set correct path to wish in #! line.
( echo '#!/usr/bin/wish -f'
cat completion.tcl
sed '1,5d' $PRGNAM ) \
> $PKG/usr/bin/$PRGNAM
chmod 755 $PKG/usr/bin/$PRGNAM
# .desktop and icon made for this build. Don't laugh, I'm not
# a graphic designer, OK?
mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps
cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
# man page written for this build (copy/paste from readme, mostly).
mkdir -p $PKG/usr/man/man1
gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $PRGNAM.* *.$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Name=BDFEdit
GenericName=BDF Font Editor
Type=Application
Exec=bdfedit
Icon=bdfedit
Terminal=false
StartupNotify=false
Categories=Graphics;

View File

@ -0,0 +1,10 @@
PRGNAM="bdfedit"
VERSION="1.3"
HOMEPAGE="http://hea-www.harvard.edu/~fine/Tech/bdfedit.html"
DOWNLOAD="http://hea-www.harvard.edu/~fine/Tech/bdfedit1.3.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="c29a74fa4d964e197f96c66777ccf18b"
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com"

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -0,0 +1,52 @@
# pod source for bdfedit man page. Convert with:
# pod2man --stderr -s1 -cSlackBuilds.org -r1.3 -u bdfedit.pod > bdfedit.1
=pod
=encoding utf8
=head1 NAME
bdfedit - Tcl/Tk-based editor for BDF fonts
=head1 SYNOPSIS
bdfedit [I<filename>|I<->|I<font@[server[:port]]>]
=head1 DESCRIPTION
Running bdfedit brings up the font editing window. If a font was
specified on the command line, this font is loaded (use B<-> to load a
font from stdin). The font must be a BDF font, and can be specified
as a filename. It may also be the name of a font, and a fontserver,
in one of the following forms:
font@server:port
font@server (defaults to port 7100)
font@ (defaults to localhost:7100)
and "font" should be the name of the font. In order to use this method,
you must have "fstobdf" installed on your system and in your PATH, and
you must have a fontserver running somewhere. Fonts loaded this way will
assume the filename is the same as the fontname (without the server or
port), with ".bdf" appended. This method of specifying fonts may also
be used when opening fonts with the "Load" option in the "File" menu.
See B</usr/doc/bdfedit-1.3/bdfedit.help> for more information.
=head1 OPTIONS
B<bdfedit> takes no options.
=head1 FILES
$HOME/.bdfeditrc
Defaults to use for newly-created fonts. See B</usr/doc/bdfedit-1.3/bdfedit.samprc>.
=head1 AUTHOR
B<bdfedit> is © 2000 Thomas A. Fine.
Man page created by B. Watson <yalhcru@gmail.com>, for the SlackBuilds.org project (but
it may be used by anyone).

View File

@ -0,0 +1,3 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

View File

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
bdfedit: bdfedit (Tcl/TK based editor for BDF fonts)
bdfedit:
bdfedit: bdfedit is a lightweight and simple font editor, with an intuitive
bdfedit: user interface.
bdfedit:
bdfedit:
bdfedit:
bdfedit:
bdfedit:
bdfedit:
bdfedit: