X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=blobdiff_plain;f=pctb%2Fdictionary-manager;h=d9de00cb99da21296c1142952e15a2eb4961e23c;hp=0ecad0ddad8a38bb444e9cb912e0f79e96c9dd2d;hb=9c4e6ae34ea06c776ebbf5410f7bc1ce78edad2f;hpb=b1f4b728760aaa2cba8e19dca85b93d248f6db12 diff --git a/pctb/dictionary-manager b/pctb/dictionary-manager index 0ecad0d..d9de00c 100755 --- a/pctb/dictionary-manager +++ b/pctb/dictionary-manager @@ -517,7 +517,7 @@ proc upload_status {} { } proc maybe_upload_entry {im def} { - global reqkind privacy_setting env dbname quiet + global reqkind privacy_setting env dbname quiet aadepth debug "DB-UPDATE PRIVACY $privacy_setting" if {!$privacy_setting} return @@ -526,6 +526,8 @@ proc maybe_upload_entry {im def} { set pl {} lappend pl dict $dbname + lappend pl version 3 + lappend pl depth $aadepth if {$privacy_setting>=2} { set pirate [string totitle $env(YPPSC_PIRATE)] @@ -693,9 +695,11 @@ proc char_read_pgm {f} { append o $ointerl } -# debug "DATA $o" - set data [exec pnmscale 1 << $o] - image create photo image/main -data $data + debug "DATA1 $o" + set tmpfile ./#dictimage#.tmp + exec pnmscale 1 << $o >$tmpfile + image create photo image/main -file $tmpfile + file delete $tmpfile } #---------- character set editor display ----------