2009/1/10 Alexander Wagner <[email protected]>
> Mikhail Kalenkov wrote:
>
> Hi!
>
> oh, again I forgot to change field To, sorry
>>
>
> I wonder, why it seems necessary for you to replace al chars
> by lower case while it is not necessary for other. I see no
> problem with doing the string comp in lowercase but I'd like
> to understand why this is necessary at all.
>
Look at the photo proc in main.tcl. It converts names to lower case and
strip the first two blanks.
This photo-stuff mainly uses a hash (= list in tcl? I'm
> alsways confusing Tcl-speak) with the player names as index.
> It then just uses the data of this hashs entries as photo to
> display. Acutally, this way has some drawbacks with very
> large photo collectios, which are mainly memory related
> (FIDE.spf is one example, add a conversion from CB's
> Mega...), but there should not be any principle problems.
I checked that in my case hash keys are lower case strings. I guess that it
happend due to photo proc.
> Anyway, in FIDE.spf the index to this hash is "Kasparov,
> Garry" and not "kasparov, garry". Therefore, I wonder why
> lowercase should work at all. Its a bit strange for me.
>
> Additionally, by removing te trimEngineName lines you sould
> not see any "player photos" for chess engines anymore.
I understand it, but with trimEngineName lines I don't see any photos. Very
strange, I agree.
> Can you specify a bit about the system you use? did you do
> any processing of FIDE.spf? Suppose you're using unix, does
> this match your system as well:
>
> (2053) /tmp> grep -i kasparov FIDE.spf
> photo "Kasparov, Garry" {
> photo "Kasparov, Sergey" {
> photo "Kasparova, Tatiana" {
>
> As you see, they all use upper/lower case letters...
>
> <confused>
Of course I didn't touch FIDE.spf
[mkalen...@sadki photos]$ grep -i kasparov FIDE.spf
photo "Kasparov, Garry" {
photo "Kasparov, Sergey" {
photo "Kasparova, Tatiana" {
I use Fedora 10.
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