X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fdictionary-manager;h=0ecad0ddad8a38bb444e9cb912e0f79e96c9dd2d;hb=2c3d2e7de4d4aea3536ea79ced23677e24589833;hp=365aecb01fb1184fc865faa979ae58bba551ff81;hpb=21b1420b1f35ea2ae9440f9db9009093a8b6eae2;p=ypp-sc-tools.db-test.git diff --git a/pctb/dictionary-manager b/pctb/dictionary-manager index 365aecb..0ecad0d 100755 --- a/pctb/dictionary-manager +++ b/pctb/dictionary-manager @@ -42,6 +42,9 @@ # if it wrote a byte to fd 4, it can take another question +set aadepth 2 + + #---------- library routines ---------- proc manyset {list args} { @@ -898,7 +901,7 @@ proc recursor {} { # $database($context 0x 0x...) = $hex -set database_magic/char {# ypp-sc-tools pctb font v2} +set database_magic/char "# ypp-sc-tools pctb font v3 depth=$aadepth" proc read_database_header/char {f} { global rows @@ -1134,10 +1137,10 @@ proc chop_counted {var} { } proc approve_decompose_data {specdata} { - global data + global data aadepth set data $specdata - regsub-data {^ypp-sc-tools dictionary update v2\n} {} + regsub-data "^ypp-sc-tools dictionary update v3 depth=$aadepth\\n" {} uplevel 1 chop_counted pirate uplevel 1 chop_counted caller uplevel 1 chop_counted dict