These files are all in the current working directory. There is not
yet any feature to have them be somewhere else. The helper programs
- yppsc-ocr-resolver
- yppsc-commod-processor
+ dictionary-manager
+ commod-results-processor
must (currently) also be in the current directory.
Future versions may have more helpers and more data files.
if (!processor) {
sysassert( dup2(fileno(tf),0) ==0 );
- execlp("./yppsc-commod-processor", "yppsc-commod-processor",
- o_outputmode, (char*)0);
- sysassert(!"execlp commod-processor failed");
+ EXECLP_HELPER("commod-results-processor", o_outputmode, (char*)0);
}
waitpid_check_exitstatus(processor, "output processor/uploader");
set data [exec pnmscale 2 << $ppm]
image create photo image/main -data $data
- set alloptions [exec ./yppsc-resolver-pixoptions $unk_what]
+ set alloptions [exec ./dictionary-pixmap-options $unk_what]
read_database ./pixmaps.txt
+++ /dev/null
-#!/bin/sh
-set -ex
-
-needle=$(pnmnoraw)
-
-exec 3<database.ppm
-
-while true; do
- read <&3 title
- if [ x"$title" = x. ]; then
- exit 0
- fi
- straw=$(pnmnoraw <&3)
- if [ x"$straw" = x"$needle" ]; then
- printf "%s\n" "$title"
- exit 0
- fi
-done