[Xastir] dbfawk files on OSX
Tom Russo
russo at bogodyn.org
Sun Mar 20 19:31:34 EST 2005
On Sun, Mar 20, 2005 at 05:27:57PM -0700, we recorded a bogon-computron collision of the <russo at bogodyn.org> flavor, containing:
> On Sun, Mar 20, 2005 at 12:47:40PM -0500, we recorded a bogon-computron collision of the <va2ksh at rac.ca> flavor, containing:
> > Hi Tom and to the rest of the list,
> >
> > Interesting, very intersting as the saying goes. Thanks for showing me
> > the testawk command, I didn't even know it existed. Well, the output
> > of testawk shows name, key, symbol, color, lanes, filled,
> > pattern=-1073742784 (for every row), display_level, font_size and
> > label_level but not a single line has label_color.
> >
> > with the dbfawk file sent earlier.
>
> Grumble. Looks like testawk was never updated to print out label_color. Must
> have been one of those variables that got added late in the game.
>
> Look at testawk.c down around line 227 --- add a printf to output label_color.
> Then try again.
But before you try again, look at testawk.c around line 181 and add a
line that awk_declare_sym's label_color (use the other lines as a pattern),
then go up around line 138 and declare "int label_color";
Aw, heck, I'll do it and commit the change. I'll go ahead and add an
initialization for pattern, too. Will take a few hours for the change to appear
on anonymous CVS, though.
> > On Mar 20, 2005, at 08:10, Tom Russo wrote:
> > >Ok, that narrows it down a lot.
> > >
> > >Please try running "testawk" (it's created in the src directory when
> > >you build
> > >xastir, but not installed into /usr/local/bin when you type "make
> > >install").
> > >
> > > testawk -D <directory containing your dbfawk file> -d <your dbf
> > >file>
> > >
> > >Testawk should tell you that the dbf signature in the dbfawk file
> > >matches
> > >your dbf file, and should show what dbfawk is doing for each record in
> > >the
> > >dbf file.
> > >
> > >If testawk shows that your dbfawk file is doing the right thing to
> > >each record
> > >then you can move on to figuring out why xastir isn't changing the
> > >colors of
> > >the labels. Try running xastir with debug level 16 and displaying
> > >just your
> > >one map (if you display more than that there's too much output). You
> > >should
> > >see output that says "dbfawk parse of structure" followed by a bunch of
> > >variable assignments. If the label_color variable is *still* correct,
> > >but the
> > >display shows black labels, then I dunno what's up --- I use
> > >label_color
> > >to set label colors all the time and at least in my cases the thing
> > >works.
> > >We'll have to dig deeper if you get to this point and still can't get
> > >the
> > >color working.
> > >
> > >--
> > >Tom Russo KM5VY SAR502 DM64ux
> > >http://www.swcp.com/~russo/
> > >Tijeras, NM QRPL#1592 K2#398 SOC#236 AHTB#1
> > > "The only thing you can do easily is be wrong, and that's hardly
> > > worth the effort." -- Norton Juster
> > >
>
> --
> Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
> Tijeras, NM QRPL#1592 K2#398 SOC#236 AHTB#1
> "The only thing you can do easily is be wrong, and that's hardly
> worth the effort." -- Norton Juster
--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 AHTB#1
"The only thing you can do easily is be wrong, and that's hardly
worth the effort." -- Norton Juster
More information about the Xastir
mailing list