misc/cp437: Added (emulate code page 437 on a UTF-8 terminal)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
1e448a5e6d
commit
a7692041a8
|
@ -0,0 +1,13 @@
|
||||||
|
cp437 (emulate code page 437 on a UTF-8 terminal)
|
||||||
|
|
||||||
|
cp437 is a program to emulate an old-style "code page 437" / "IBM-PC"
|
||||||
|
character set terminal on a modern terminal emulator that uses UTF-8
|
||||||
|
or similar.
|
||||||
|
|
||||||
|
It was written for the purpose of running the BitchX IRC client,
|
||||||
|
which utilises CP437 line-drawing characters in its default theme and
|
||||||
|
artwork. It should also be broadly useful for things like viewing
|
||||||
|
CP437 "ANSI art", running nethack with the IBMgraphics option or
|
||||||
|
running EPIC with scripts that use CP437 artwork.
|
||||||
|
|
||||||
|
It's also useful for converting old CP437-encoded text files to UTF-8.
|
|
@ -0,0 +1,90 @@
|
||||||
|
.\" Man page generated from reStructuredText.
|
||||||
|
.
|
||||||
|
.TH CP437 1 "2020-11-25" "0.6" "SlackBuilds.org"
|
||||||
|
.SH NAME
|
||||||
|
cp437 \- emulate code page 437 on a UTF-8 terminal
|
||||||
|
.
|
||||||
|
.nr rst2man-indent-level 0
|
||||||
|
.
|
||||||
|
.de1 rstReportMargin
|
||||||
|
\\$1 \\n[an-margin]
|
||||||
|
level \\n[rst2man-indent-level]
|
||||||
|
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
||||||
|
-
|
||||||
|
\\n[rst2man-indent0]
|
||||||
|
\\n[rst2man-indent1]
|
||||||
|
\\n[rst2man-indent2]
|
||||||
|
..
|
||||||
|
.de1 INDENT
|
||||||
|
.\" .rstReportMargin pre:
|
||||||
|
. RS \\$1
|
||||||
|
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
||||||
|
. nr rst2man-indent-level +1
|
||||||
|
.\" .rstReportMargin post:
|
||||||
|
..
|
||||||
|
.de UNINDENT
|
||||||
|
. RE
|
||||||
|
.\" indent \\n[an-margin]
|
||||||
|
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
||||||
|
.nr rst2man-indent-level -1
|
||||||
|
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
||||||
|
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
||||||
|
..
|
||||||
|
.\" RST source for cp437(1) man page. Convert with:
|
||||||
|
.
|
||||||
|
.\" rst2man.py cp437.rst > cp437.1
|
||||||
|
.
|
||||||
|
.\" rst2man.py comes from the SBo development/docutils package.
|
||||||
|
.
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.sp
|
||||||
|
cp437 \fBcommand\fP [\fIarg\fP [\fIarg\fP ...]]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.sp
|
||||||
|
cp437 is a program to emulate an old\-style "code page 437" / "IBM\-PC"
|
||||||
|
character set terminal on a modern terminal emulator that uses UTF\-8
|
||||||
|
or similar.
|
||||||
|
.sp
|
||||||
|
It was written for the purpose of running the BitchX IRC client, which utilises
|
||||||
|
CP437 line\-drawing characters in its default theme and artwork. It should
|
||||||
|
also be broadly useful for things like viewing CP437 "ANSI art", running
|
||||||
|
nethack with the IBMgraphics option or running EPIC with scripts that use CP437
|
||||||
|
artwork.
|
||||||
|
.sp
|
||||||
|
It takes no command line options. The only arguments are the command to run
|
||||||
|
and its arguments (if any).
|
||||||
|
.sp
|
||||||
|
You\(aqll need to have your LANG or LC_CTYPE environment variable
|
||||||
|
set up to match the character set used by your terminal
|
||||||
|
emulator. On Slackware, this can be done system\-wide by editing
|
||||||
|
\fB/etc/profile.d/lang.sh\fP, or by editing your shell\(aqs startup scripts
|
||||||
|
(e.g. \fB~/.bash_profile\fP).
|
||||||
|
.SH EXAMPLES
|
||||||
|
.sp
|
||||||
|
Just run cp437 followed by the command and argument you want to run:
|
||||||
|
.INDENT 0.0
|
||||||
|
.INDENT 3.5
|
||||||
|
cp437 BitchX irc.efnet.org
|
||||||
|
.UNINDENT
|
||||||
|
.UNINDENT
|
||||||
|
.sp
|
||||||
|
To convert a text file from codepage 437, you might try:
|
||||||
|
.INDENT 0.0
|
||||||
|
.INDENT 3.5
|
||||||
|
cp437 cat orig.txt > converted.txt
|
||||||
|
.UNINDENT
|
||||||
|
.UNINDENT
|
||||||
|
.SH COPYRIGHT
|
||||||
|
.sp
|
||||||
|
See the file /usr/doc/cp437\-0.6/COPYRIGHT for license information.
|
||||||
|
.SH AUTHORS
|
||||||
|
.sp
|
||||||
|
cp437 was written by Kevin Easton.
|
||||||
|
.sp
|
||||||
|
This man page written for the SlackBuilds.org project
|
||||||
|
by B. Watson, and is licensed under the WTFPL.
|
||||||
|
.SH SEE ALSO
|
||||||
|
.sp
|
||||||
|
The cp437 homepage: \fI\%https://github.com/keaston/cp437\fP
|
||||||
|
.\" Generated by docutils manpage writer.
|
||||||
|
.
|
|
@ -0,0 +1,69 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for cp437
|
||||||
|
|
||||||
|
# Written by B. Watson (yalhcru@gmail.com)
|
||||||
|
|
||||||
|
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
||||||
|
|
||||||
|
PRGNAM=cp437
|
||||||
|
VERSION=${VERSION:-0.6}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
case "$( uname -m )" in
|
||||||
|
i?86) ARCH=i586 ;;
|
||||||
|
arm*) ARCH=arm ;;
|
||||||
|
*) ARCH=$( uname -m ) ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
CWD=$(pwd)
|
||||||
|
TMP=${TMP:-/tmp/SBo}
|
||||||
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
if [ "$ARCH" = "i586" ]; then
|
||||||
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
|
else
|
||||||
|
SLKCFLAGS="-O2"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
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 .
|
||||||
|
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
|
||||||
|
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
|
||||||
|
|
||||||
|
make CFLAGS="$SLKCFLAGS"
|
||||||
|
mkdir -p $PKG/usr/bin
|
||||||
|
install -s -m0755 $PRGNAM $PKG/usr/bin
|
||||||
|
|
||||||
|
# man page by SlackBuild author, made mostly from README
|
||||||
|
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 README COPYRIGHT $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
|
||||||
|
|
||||||
|
cd $PKG
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
|
@ -0,0 +1,10 @@
|
||||||
|
PRGNAM="cp437"
|
||||||
|
VERSION="0.6"
|
||||||
|
HOMEPAGE="https://github.com/keaston/cp437"
|
||||||
|
DOWNLOAD="https://github.com/keaston/cp437/archive/v0.6/cp437-0.6.tar.gz"
|
||||||
|
MD5SUM="c2817f18160ed1580f2e393ae656a690"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
MAINTAINER="B. Watson"
|
||||||
|
EMAIL="yalhcru@gmail.com"
|
|
@ -0,0 +1,75 @@
|
||||||
|
.. RST source for cp437(1) man page. Convert with:
|
||||||
|
.. rst2man.py cp437.rst > cp437.1
|
||||||
|
.. rst2man.py comes from the SBo development/docutils package.
|
||||||
|
|
||||||
|
.. |version| replace:: 0.6
|
||||||
|
.. |date| date::
|
||||||
|
|
||||||
|
=====
|
||||||
|
cp437
|
||||||
|
=====
|
||||||
|
|
||||||
|
-----------------------------------------
|
||||||
|
emulate code page 437 on a UTF-8 terminal
|
||||||
|
-----------------------------------------
|
||||||
|
|
||||||
|
:Manual section: 1
|
||||||
|
:Manual group: SlackBuilds.org
|
||||||
|
:Date: |date|
|
||||||
|
:Version: |version|
|
||||||
|
|
||||||
|
SYNOPSIS
|
||||||
|
========
|
||||||
|
|
||||||
|
cp437 **command** [*arg* [*arg* ...]]
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
===========
|
||||||
|
|
||||||
|
cp437 is a program to emulate an old-style "code page 437" / "IBM-PC"
|
||||||
|
character set terminal on a modern terminal emulator that uses UTF-8
|
||||||
|
or similar.
|
||||||
|
|
||||||
|
It was written for the purpose of running the BitchX IRC client, which utilises
|
||||||
|
CP437 line-drawing characters in its default theme and artwork. It should
|
||||||
|
also be broadly useful for things like viewing CP437 "ANSI art", running
|
||||||
|
nethack with the IBMgraphics option or running EPIC with scripts that use CP437
|
||||||
|
artwork.
|
||||||
|
|
||||||
|
It takes no command line options. The only arguments are the command to run
|
||||||
|
and its arguments (if any).
|
||||||
|
|
||||||
|
You'll need to have your LANG or LC_CTYPE environment variable
|
||||||
|
set up to match the character set used by your terminal
|
||||||
|
emulator. On Slackware, this can be done system-wide by editing
|
||||||
|
**/etc/profile.d/lang.sh**, or by editing your shell's startup scripts
|
||||||
|
(e.g. **~/.bash_profile**).
|
||||||
|
|
||||||
|
EXAMPLES
|
||||||
|
========
|
||||||
|
|
||||||
|
Just run cp437 followed by the command and argument you want to run:
|
||||||
|
|
||||||
|
cp437 BitchX irc.efnet.org
|
||||||
|
|
||||||
|
To convert a text file from codepage 437, you might try:
|
||||||
|
|
||||||
|
cp437 cat orig.txt > converted.txt
|
||||||
|
|
||||||
|
COPYRIGHT
|
||||||
|
=========
|
||||||
|
|
||||||
|
See the file /usr/doc/cp437-|version|/COPYRIGHT for license information.
|
||||||
|
|
||||||
|
AUTHORS
|
||||||
|
=======
|
||||||
|
|
||||||
|
cp437 was written by Kevin Easton.
|
||||||
|
|
||||||
|
This man page written for the SlackBuilds.org project
|
||||||
|
by B. Watson, and is licensed under the WTFPL.
|
||||||
|
|
||||||
|
SEE ALSO
|
||||||
|
========
|
||||||
|
|
||||||
|
The cp437 homepage: https://github.com/keaston/cp437
|
|
@ -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------------------------------------------------------|
|
||||||
|
cp437: cp437 (emulate code page 437 on a UTF-8 terminal)
|
||||||
|
cp437:
|
||||||
|
cp437: cp437 is a program to emulate an old-style "code page 437" / "IBM-PC"
|
||||||
|
cp437: character set terminal on a modern terminal emulator that uses UTF-8
|
||||||
|
cp437: or similar.
|
||||||
|
cp437:
|
||||||
|
cp437: It's also useful for converting old CP437-encoded text files to UTF-8.
|
||||||
|
cp437:
|
||||||
|
cp437:
|
||||||
|
cp437:
|
||||||
|
cp437:
|
Loading…
Reference in New Issue