Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplify Honden.

  • Loading branch information...
commit d8292d16d350d809acc288b5c6ad5d54e58e0f14 1 parent b6b961d
伴上段 authored
View
64 README.md
@@ -1,46 +1,45 @@
# Honden: A Flashcard System Built on Oboeta
-This is a collection of scripts built on top of [Oboeta], my minimalistic flashcard system. All cards are stored as plain UTF-8 text in flat files: associated media files are stored in subdirectories.
+This is a collection of scripts built on top of [Oboeta](https://github.com/joodan-van-github/oboeta), my minimalistic flashcard system. All cards are stored as plain UTF-8 text in flat files: associated media files are stored in subdirectories.
## Installing
-Open a terminal, navigate to the directory containing Honden's source code, and execute the `install.sh` script, passing the directory where you want to install the scripts as the first parameter. The installation script will also create the proper directory hierarchy if it isn't already present; see the next section for more information about the directory hierarchy.
-
-For example:
+Open a terminal, navigate to the directory containing Honden's source code, and execute the `install.sh` script, passing the directory where you want to install the scripts as the first parameter. For example,
$ ./install.sh ~/flashcards
-will copy the scripts to `~/flashcards` and create subdirectories if necessary. You might have to change users (e.g., run `sudo`) depending on which installation directory you select.
+will copy the scripts to `~/flashcards`. You might have to change users (e.g., run `sudo`) depending on which installation directory you select.
+
+## Creating a Deck
+
+Most Honden scripts use information stored within a configuration file named `config.txt`, which is nothing more than a Bourne shell script that sets environment variables. Most of the values are easy to understand.
+
+To create `config.txt`, create a new directory, navigate to it, and run `honden`. This will also create the directory hierarchy described in the next section. NOTE: `honden` will overwrite `config.txt` if it already exists but it won't overwrite the directories.
+
+The scripts assume that the deck and log files are formatted according to Oboeta's guidelines. The default deck settings assume that each card has four fields: the card's unique integral ID, the card's creation date, the front, and the back. You can specify different filters in `config.txt` if your card format is different.
## The Directory Hierarchy
-Assuming `.` is the root directory of a Honden installation, the directory hierarchy looks like this:
+Assuming `.` contains `config.txt`, the directory hierarchy looks like this:
./
backups/
This directory contains backup archives created by
backupall and backupcards. These are bzipped
TARs (.tar.bz2).
- decks/
- This directory contains plain text flashcard deck and
- log files. Deck files have a .txt extension and log
- files have a .log extension. Deck and log files are
- associated by name. For example, a deck named
- kanji.txt would have a log file named kanji.log.
media/
recordings/
flashcards/
- ロー/
- This directory contains recordings of flashcards.
- Each recording's name is the integral ID of the
- associated flashcard followed by the .wav
- extension. If there are multiple recordings for
- a single flashcard, then the first one is named
- as just mentioned, whereas subsequent recordings'
- names are the flashcard's unique ID followed by
- ".N", where N is the recording's zero-based index,
- and the .wav extension.
+ This directory contains recordings of flashcards.
+ Each recording's name is the integral ID of the
+ associated flashcard followed by the .wav
+ extension. If there are multiple recordings for
+ a single flashcard, then the first one is named
+ as just mentioned, whereas subsequent recordings'
+ names are the flashcard's unique ID followed by
+ ".N", where N is the recording's zero-based index,
+ and the .wav extension.
sds/
This directory contains Chinese character stroke
order diagrams. Each file's name is the character
@@ -52,20 +51,15 @@ Assuming `.` is the root directory of a Honden installation, the directory hiera
## The Scripts
-Most of the scripts use the Bourne shell (`sh`) and the standard `awk` (actually, some rely on `gawk`), `date`, `sed`, and `sort` utilities. All of them should be easy to understand: Open them with your favorite text editor to check them out. Here's a high-level overview of the most important ones:
-
-* `backupall` and `backupcards` back up all files and just cards and the scripts, respectively, to the `backups` directory.
-* `carddate` generates a timestamp suitable for use in flashcards.
-* `logdate` generates a timestamp suitable for use in logs.
-* `edeck` edits the specified deck with your favorite text editor, whereas `seedeck` just views it via `less`.
-* `newdeck` creates a new deck and associated log file using `touch(1)`.
-* `nextid` scans all decks and log files for the next unique integral flashcard ID.
-* `genline` is a handy script that appends new cards generated from its parameters to the specified deck. It automatically generates the cards' unique IDs and adds blank rubi annotations for kanji (Chinese) characters via `rubify`.
-* `reviewsome` is the driver behind `reviewsentences` and `reviewkanji`. It uses SM-2 to select flashcards from the specified deck and sets up a local HTTP server on port 1337 to review them. It requires a "filter program" to transform `oboeta`'s output into suitable lines for `oboetahttp`. Honden has two filters, `filterkanji` and `filtersentences`, for kanji decks and Japanese sentence decks, respectively. `reviewkanji` and `reviewsentences` set all of this up for you assuming that you have decks named "kanji" and "sentences".
-* `seesome` is identical to `reviewsome` but does not log review results.
-* `reviewclozes` is like `reviewsentences` but it generates and reviews cloze deletions from the answer (back) fields of a sentence deck.
+Most of the scripts use the Bourne shell (`sh`), `gawk`, `date`, `sort`, and `uniq` utilities. All of them should be easy to understand: Open them with your favorite text editor to check them out. Here's a high-level overview of the most important ones:
-NOTE: Some of the Japanese-specific scripts depend on [Hinomoto](https://github.com/joodan-van-github/hinomoto), a small collection of programs for parsing and tagging Unicode text. Of course, you can remove these dependencies.
+* `backupall` and `backupcards` back up all files or just cards, respectively, to the `backups` directory.
+* `edeck` edits the deck with your favorite text editor.
+* `seedeck` views the deck with your favorite viewer.
+* `nextid` scans the decks and its log file for the next unique integral flashcard ID.
+* `genline` is a handy script that appends new cards generated from its parameters to the deck. It automatically generates the cards' unique IDs.
+* `review` uses SM-2 to select flashcards from the deck and sets up a local HTTP server on port 1337 to review them.
+* `defaultfilter` is the filter that `config.txt` specifies by default to transform `oboeta`'s output into something that `oboetahttp` can consume. (`review` uses this.)
## License
View
14 carddate
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-# Generate a Timestamp Suitable for Cards
-# Written in 2012 by 伴上段
-#
-# To the extent possible under law, the author(s) have dedicated all copyright
-# and related and neighboring rights to this software to the public domain
-# worldwide. This software is distributed without any warranty.
-#
-# You should have received a copy of the CC0 Public Domain Dedication along
-# with this software. If not, see
-# <http://creativecommons.org/publicdomain/zero/1.0/>.
-
-date +'%Y年%m月%d日%H時%M分'
View
7 reviewsentences → defaultfilter
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!/usr/bin/gawk -f
-# Review Sentence Flashcards over HTTP
+# Transform Flashcard Lines into Readable Forms for the HTTP Server
# Written in 2012 by 伴上段
#
# To the extent possible under law, the author(s) have dedicated all copyright
@@ -11,5 +11,6 @@
# with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
-reviewsome sentences filtersentences
+BEGIN { FS = " "; OFS = " " }
+{ print $1, $3; print $4; system("") }
View
28 downloadsds
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-# Download Stroke Order Diagrams for All Kanji Characters in Stdin
-# Written in 2012 by 伴上段
-#
-# To the extent possible under law, the author(s) have dedicated all copyright
-# and related and neighboring rights to this software to the public domain
-# worldwide. This software is distributed without any warranty.
-#
-# You should have received a copy of the CC0 Public Domain Dedication along
-# with this software. If not, see
-# <http://creativecommons.org/publicdomain/zero/1.0/>.
-
-ret=0
-for cp in `dunicode | uniquhan`; do
- ch=`echo $cp | eunicode -n`
- if [ ! -f $ch.png ]; then
- echo $ch
- curl -f -o $ch.png http://jisho.org/static/images/stroke_diagrams/${cp}_frames.png
- if [ $? -ne 0 ]; then
- rm -f $ch.png
- echo "Failed to download $ch.png" >&2
- ret=1
- fi
- fi
-done
-exit $ret
-
View
17 edeck
@@ -1,6 +1,6 @@
#!/bin/sh
-# Edit the Specified Deck with Your Favorite Text Editor
+# Edit the Deck
# Written in 2012 by 伴上段
#
# To the extent possible under law, the author(s) have dedicated all copyright
@@ -11,17 +11,6 @@
# with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
-usage() {
- echo "Usage: `basename $0` [-h] deck-name-no-extension"
-}
-
-if [ $# -ne 1 ]; then
- usage >&2
- exit 1
-elif [ "$1" = "-h" ]; then
- usage
- exit 0
-fi
-
-leafpad decks/$1.txt
+. config.txt
+exec $EDITOR $DECK
View
28 filterkanji
@@ -1,28 +0,0 @@
-#!/usr/bin/gawk -f
-
-# Transform Kanji Flashcard Lines into Readable Forms for Review Scripts
-# Written in 2012 by 伴上段
-#
-# To the extent possible under law, the author(s) have dedicated all copyright
-# and related and neighboring rights to this software to the public domain
-# worldwide. This software is distributed without any warranty.
-#
-# You should have received a copy of the CC0 Public Domain Dedication along
-# with this software. If not, see
-# <http://creativecommons.org/publicdomain/zero/1.0/>.
-
-BEGIN { FS = "\t"; }
-{
- if (NF > 3 && $4 != "") {
- printf("%s", $1)
- for (i = 4; i < NF; i++) {
- printf("\t%s", $i)
- }
- printf("\n")
- } else {
- print $1 "\t" $3
- }
- printf("%s\t<img src=\"/media/sds/%s.png\">\n", $3, $3)
- system("")
-}
-
View
32 filtersentences
@@ -1,32 +0,0 @@
-#!/usr/bin/gawk -f
-
-# Transform Sentence Flashcard Lines into Readable Forms for Review Scripts
-# Written in 2012 by 伴上段
-#
-# To the extent possible under law, the author(s) have dedicated all copyright
-# and related and neighboring rights to this software to the public domain
-# worldwide. This software is distributed without any warranty.
-#
-# You should have received a copy of the CC0 Public Domain Dedication along
-# with this software. If not, see
-# <http://creativecommons.org/publicdomain/zero/1.0/>.
-
-BEGIN { FS = "\t" }
-{
- firstsound = 0
- print $1 "\t" $3
- printf("%s", $4)
- for (i = 5; i <= NF; i++) {
- if ($i == "") {
- printf("\t<a href=\"javascript:window.open('/media/recordings/flashcards/ロー/%s", $1)
- if (firstsound != 0) {
- printf("." firstsound)
- }
- printf(".wav')\">Listen to Audio</a>")
- firstsound = firstsound + 1
- }
- }
- printf("\n")
- system("")
-}
-
View
41 genkanjicards
@@ -1,41 +0,0 @@
-#!/bin/sh
-
-# Add New Flashcards for the Specified Kanji
-# Written in 2012 by 伴上段
-#
-# To the extent possible under law, the author(s) have dedicated all copyright
-# and related and neighboring rights to this software to the public domain
-# worldwide. This software is distributed without any warranty.
-#
-# You should have received a copy of the CC0 Public Domain Dedication along
-# with this software. If not, see
-# <http://creativecommons.org/publicdomain/zero/1.0/>.
-
-# This adds kanji from standard input that are not in the
-# specified flashcard deck file to that deck file.
-
-usage() {
- echo "Usage: `basename $0` [-h] kanji-deck-name-no-extension"
-}
-
-if [ $# -ne 1 ]; then
- usage >&2
- exit 1
-elif [ "$1" = "-h" ]; then
- usage
- exit 0
-fi
-
-cleanup() {
- rm -f $tmpfile
-}
-trap cleanup EXIT
-tmpfile=`mktemp genkanjicards.holdings.XXXXXXXX`
-
-dunicode | uniquhan >$tmpfile
-for kanji in `dunicode <decks/$1.txt | uniquhan | comm -2 -3 $tmpfile - | eunicode -n`; do
- echo "`nextid` `carddate` $kanji " >>decks/$1.txt
-done
-
-edeck $1
-
View
16 genline
@@ -1,7 +1,6 @@
#!/bin/sh
-# Automatically Generate a Card for the Specified Deck and Open the Deck
-# for Editing
+# Automatically Generate Cards and Open the Deck for Editing
# Written in 2012 by 伴上段
#
# To the extent possible under law, the author(s) have dedicated all copyright
@@ -12,24 +11,23 @@
# with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
+. config.txt
+
usage() {
- echo "Usage: `basename $0` [-h] deck-name-no-extension card-text [card-text ...]"
+ echo "Usage: `basename $0` [-h] card-text [card-text ...]"
}
if [ $# -eq 1 -a "$1" = "-h" ]; then
usage
exit 0
-elif [ $# -lt 2 ]; then
+elif [ $# -lt 1 ]; then
usage >&2
exit 1
fi
-deckname=$1
-shift
-deck=decks/$deckname.txt
while [ $# -ne 0 ]; do
- echo "`./nextid` `./carddate` $1 `echo $1 | dunicode | annouhan '[' ':]' | eunicode`" | tee -a $deck
+ echo "`nextid` `$CARDDATE` $1 `echo $1 | $GENLINEFILTER`" | tee -a $DECK
shift
done
-exec edeck $deckname
+exec edeck
View
14 getsds
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-# Download Stroke Order Diagrams for All Decks and Log Files
-# Written in 2012 by 伴上段
-#
-# To the extent possible under law, the author(s) have dedicated all copyright
-# and related and neighboring rights to this software to the public domain
-# worldwide. This software is distributed without any warranty.
-#
-# You should have received a copy of the CC0 Public Domain Dedication along
-# with this software. If not, see
-# <http://creativecommons.org/publicdomain/zero/1.0/>.
-
-cd media/sds && ( cat ../../decks/* | ../../downloadsds )
View
49 honden
@@ -0,0 +1,49 @@
+#!/bin/sh
+
+# Create a Honden Deck and Directory Hierarchy
+# Written in 2012 by 伴上段
+#
+# To the extent possible under law, the author(s) have dedicated all copyright
+# and related and neighboring rights to this software to the public domain
+# worldwide. This software is distributed without any warranty.
+#
+# You should have received a copy of the CC0 Public Domain Dedication along
+# with this software. If not, see
+# <http://creativecommons.org/publicdomain/zero/1.0/>.
+
+cat >config.txt <<EOF
+# Honden Configuration File
+
+# the deck file (CSV using tabs) and its associated log file (also CSV using tabs)
+DECK=deck.txt
+LOG=deck.log
+
+# review limits (max new cards and max old cards)
+NUM_NEW=20
+NUM_OLD=40
+
+# HTML font properties: CSS font face list and font size, including units
+FONT_FACE='serif'
+FONT_SIZE=48pt
+
+# programs that transform oboeta input and output
+INPUTFILTER=cat
+OUTPUTFILTER=defaultfilter
+
+# timestamp generators (one for flashcards and one for log entries)
+CARDDATE="date +%Y年%m月%d日%H時%M分"
+LOGDATE="date +%Y年%m月%d日"
+
+# your favorite text editor and text viewer
+EDITOR=vim
+VIEWER=less
+
+EOF
+
+. config.txt
+touch $DECK $LOG
+mkdir -p -m 0755 backups
+mkdir -p -m 0755 media/recordings
+mkdir -p -m 0755 media/sds
+mkdir -p -m 0755 other
+
View
14 install.sh
@@ -12,22 +12,14 @@
# <http://creativecommons.org/publicdomain/zero/1.0/>.
if [ $# -eq 0 ]; then
- echo "ERROR: No installation directory specified. Please specify it as the first command-line argument for this script." >&2
+ echo "no installation directory specified" >&2
exit 1
fi
if [ ! -d "$1" ]; then
- echo "ERROR: $1 is not a directory." >&2
+ echo "$1 is not a directory." >&2
exit 1
fi
-echo "Creating directory hierarchy"
-mkdir -p -m 0755 $1/backups
-mkdir -p -m 0755 $1/decks
-mkdir -p -m 0755 $1/media/recordings/flashcards/ロー
-mkdir -p -m 0755 $1/media/sds
-mkdir -p -m 0755 $1/other
-
-echo "Installing scripts"
set -x
-install backupall backupcards carddate downloadsds edeck filterkanji filtersentences genkanjicards genline getsds logdate newdeck nextid reviewclozes reviewkanji reviewsentences reviewsome rubify seedeck seesome $1
+install backupall backupcards defaultfilter edeck genline honden nextid review seedeck $1
View
14 logdate
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-# Generate a Timestamp Suitable for Logs
-# Written in 2012 by 伴上段
-#
-# To the extent possible under law, the author(s) have dedicated all copyright
-# and related and neighboring rights to this software to the public domain
-# worldwide. This software is distributed without any warranty.
-#
-# You should have received a copy of the CC0 Public Domain Dedication along
-# with this software. If not, see
-# <http://creativecommons.org/publicdomain/zero/1.0/>.
-
-date +'%Y年%m月%d日'
View
3  nextid
@@ -11,7 +11,8 @@
# with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
-cat decks/*.txt decks/*.log | awk 'BEGIN { max = 0; }
+. config.txt
+cat $DECK $LOG | awk 'BEGIN { max = 0; }
{ val = int($1); if (val > max) { max = val; } }
END { print max + 1 }'
View
21 newdeck → review
@@ -1,6 +1,6 @@
#!/bin/sh
-# Generate New Deck and Log Files
+# Review Cards over HTTP
# Written in 2012 by 伴上段
#
# To the extent possible under law, the author(s) have dedicated all copyright
@@ -11,17 +11,14 @@
# with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
-usage() {
- echo "Usage: `basename $0` [-h] deck-name-no-extension"
-}
+. config.txt
-if [ $# -ne 1 ]; then
- usage >&2
- exit 1
-elif [ "$1" = "-h" ]; then
- usage
- exit 0
-fi
+cpipe=reviewsome.$$.command
+cleanup() {
+ rm -f $cpipe
+}
+trap cleanup EXIT INT
+mkfifo -m 0700 $cpipe
-touch decks/$1.txt decks/$1.log
+osm2 -n $NUM_OLD -e $NUM_NEW $LOG <$DECK | $INPUTFILTER | oboeta -2 $cpipe $LOG | $OUTPUTFILTER | oboetahttp -2 -n $FONT_FACE -i $FONT_SIZE >$cpipe
View
40 reviewclozes
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-# Review Sentences with Cloze Deletions over HTTP
-# Written in 2012 by 伴上段
-#
-# To the extent possible under law, the author(s) have dedicated all copyright
-# and related and neighboring rights to this software to the public domain
-# worldwide. This software is distributed without any warranty.
-#
-# You should have received a copy of the CC0 Public Domain Dedication along
-# with this software. If not, see
-# <http://creativecommons.org/publicdomain/zero/1.0/>.
-
-usage() {
- echo "Usage: `basename $0` [-h] deck-name-no-extension"
-}
-
-if [ $# -le 2 -a "$1" = "-h" ]; then
- usage
- exit 0
-elif [ $# -ne 1 ]; then
- usage >&2
- exit 1
-fi
-
-cpipe=reviewsome.$$.command
-cleanup() {
- rm -f $cpipe
-}
-trap cleanup EXIT INT
-mkfifo -m 0700 $cpipe
-
-touch decks/$1.clozes.log
-cut --complement -f 1 decks/$1.txt | ocloze | osm2 -n 30 -e 10 decks/$1.clozes.log | rubify | oboeta -2 $cpipe decks/$1.clozes.log | gawk -F' ' '
-{
- print $4
- print $(NF-4)
- system("")
-}' | oboetahttp -2 -n '\"HanaMinA\", sans-serif' -i 48 >$cpipe
-
View
15 reviewkanji
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# Review Kanji Flashcards over HTTP
-# Written in 2012 by 伴上段
-#
-# To the extent possible under law, the author(s) have dedicated all copyright
-# and related and neighboring rights to this software to the public domain
-# worldwide. This software is distributed without any warranty.
-#
-# You should have received a copy of the CC0 Public Domain Dedication along
-# with this software. If not, see
-# <http://creativecommons.org/publicdomain/zero/1.0/>.
-
-reviewsome kanji filterkanji
-
View
41 reviewsome
@@ -1,41 +0,0 @@
-#!/bin/sh
-
-# Review Cards from the Specified Deck over HTTP
-# Written in 2012 by 伴上段
-#
-# To the extent possible under law, the author(s) have dedicated all copyright
-# and related and neighboring rights to this software to the public domain
-# worldwide. This software is distributed without any warranty.
-#
-# You should have received a copy of the CC0 Public Domain Dedication along
-# with this software. If not, see
-# <http://creativecommons.org/publicdomain/zero/1.0/>.
-
-usage() {
- echo "Usage: `basename $0` [-h] deck-name-no-extension card-filter-program"
-}
-
-if [ $# -le 4 -a "$1" = "-h" ]; then
- usage
- exit 0
-elif [ $# -ne 2 ]; then
- usage >&2
- exit 1
-fi
-
-cpipe=reviewsome.$$.command
-cleanup() {
- rm -f $cpipe
-}
-trap cleanup EXIT INT
-mkfifo -m 0700 $cpipe
-
-osm2 -n 30 -e 10 decks/$1.log <decks/$1.txt | rubify | oboeta -2 $cpipe decks/$1.log | awk '
-{
- for (n = 1; n <= NF - 5; n++) {
- printf("%s\t", $n)
- }
- printf("%s\n", $(NF - 4))
- system("")
-}' | $2 | oboetahttp -2 -n '\"HanaMinA\", sans-serif' -i 48 >$cpipe
-
View
15 rubify
@@ -1,15 +0,0 @@
-#!/bin/sed -f
-
-# Transform [:] Ruby Annotations from Standard Input into HTML5 Ruby Constructs
-# Written in 2012 by 伴上段
-#
-# To the extent possible under law, the author(s) have dedicated all copyright
-# and related and neighboring rights to this software to the public domain
-# worldwide. This software is distributed without any warranty.
-#
-# You should have received a copy of the CC0 Public Domain Dedication along
-# with this software. If not, see
-# <http://creativecommons.org/publicdomain/zero/1.0/>.
-
-s|\[\([^]:]*\):\([^]]*\)\]|<ruby>\1<rp>(</rp><rt>\2</rt><rp>)</rp></ruby>|g
-
View
17 seedeck
@@ -1,6 +1,6 @@
#!/bin/sh
-# View the Specified Deck with Less
+# View the Deck
# Written in 2012 by 伴上段
#
# To the extent possible under law, the author(s) have dedicated all copyright
@@ -11,17 +11,6 @@
# with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
-usage() {
- echo "Usage: `basename $0` [-h] deck-name-no-extension"
-}
-
-if [ $# -ne 1 ]; then
- usage >&2
- exit 1
-elif [ "$1" = "-h" ]; then
- usage
- exit 0
-fi
-
-less decks/$1.txt
+. config.txt
+exec $VIEWER $DECK
View
42 seesome
@@ -1,42 +0,0 @@
-#!/bin/sh
-
-# Review Cards from the Specified Deck over HTTP (Dry Run: No Logs)
-# Written in 2012 by 伴上段
-#
-# To the extent possible under law, the author(s) have dedicated all copyright
-# and related and neighboring rights to this software to the public domain
-# worldwide. This software is distributed without any warranty.
-#
-# You should have received a copy of the CC0 Public Domain Dedication along
-# with this software. If not, see
-# <http://creativecommons.org/publicdomain/zero/1.0/>.
-
-usage() {
- echo "Usage: `basename $0` [-h] deck-name-no-extension card-filter-program"
-}
-
-if [ $# -le 4 -a "$1" = "-h" ]; then
- usage
- exit 0
-elif [ $# -ne 2 ]; then
- usage >&2
- exit 1
-fi
-
-cpipe=reviewsome.$$.command
-cleanup() {
- rm -f $cpipe
-}
-trap cleanup EXIT
-trap cleanup INT
-mkfifo -m 0700 $cpipe
-
-osm2 -n 30 -e 10 decks/$1.log <decks/$1.txt | rubify | oboeta -d -2 $cpipe decks/$1.log | awk '
-{
- for (n = 1; n <= NF - 5; n++) {
- printf("%s\t", $n)
- }
- printf("%s\n", $(NF - 4))
- system("")
-}' | $2 | oboetahttp -2 -n '\"HanaMinA\", sans-serif' -i 48 >$cpipe
-
Please sign in to comment.
Something went wrong with that request. Please try again.