From 36c6cd214ba5d4d7e9534dc7ae8d0f21a82ae121 Mon Sep 17 00:00:00 2001 From: ehouse Date: Thu, 13 Apr 2006 03:06:18 +0000 Subject: [PATCH] print letter as well as tile in text dumps (same as cpp version) --- dawg/dict2dawg.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dawg/dict2dawg.pl b/dawg/dict2dawg.pl index ad9c2656f..56784b730 100755 --- a/dawg/dict2dawg.pl +++ b/dawg/dict2dawg.pl @@ -252,9 +252,10 @@ sub printNode { print STDERR "[$index] "; + my $letter = TrieNodeGetLetter($node); printf( STDERR - "letter=%d; isTerminal=%d; isLastSib=%d; fco=%d;\n", - TrieNodeGetLetter($node), + "letter=%d(%s); isTerminal=%d; isLastSib=%d; fco=%d;\n", + $letter, "" . $gRevMap[$letter], TrieNodeGetIsTerminal($node), TrieNodeGetIsLastSibling($node), TrieNodeGetFirstChildOffset($node));