oh, I forgot to change field To in my previous e-mail, sorry

2009/1/10 Alexander Wagner <[email protected]>
>
>> Mikhail Kalenkov wrote:
>>
>> Hi!
>>
>>  Does somebody see a player photos with recent
>>> scid-3.7beta3? Scid reported that spf file are loaded. I
>>> checked with FIDE.spf and simplest PGN file
>>>
>>
>> Works here as well. Tried exactly that config with your pgn.
>>
>> Whats your environment?
>
>
scid-3.7beta3,  tcl-8.5

I put some debug printing just into scid script in updatePlayerPhotos proc
near the line

if {[info exists ::photo($white)]} {

Instead I wrote

set white1 "kasparov,garry"
 set white2 "Kasparov, Garry"
set white3 "kasparov, garry"
puts [info exists ::photo($white)]
puts [info exists ::photo($white1)]
puts [info exists ::photo($white2)]
puts [info exists ::photo($white3)]
if {[info exists ::photo($white)]} {

and loaded PGN with Kasparov-Karpov game. I got the following output to
console

0
1
0
0

Why?

I expected to get

1
0
1
0

I also did a dirty hack and replaced lines (again in scid script) in
updatePlayerPhotos proc

if {[info exists ::photo($white)]} {
     image create photo photoW -data $::photo($white)
     .main.photoW configure -image photoW -anchor ne
      place .main.photoW -in .main.gameInfo -x -$distance -relx 1.0 -anchor
ne
}

by

set white1 "kasparov,garry"
if {[info exists ::photo($white1)]} {
     image create photo photoW -data $::photo($white1)
     .main.photoW configure -image photoW -anchor ne
      place .main.photoW -in .main.gameInfo -x -$distance -relx 1.0 -anchor
ne
}

After that I saw Kasparov photo!! Why and where string "Kasparov, Garry" was
converted to "kasparov,garry"?

Mikhail Kalenkov.
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Scid-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to