Hi Alexander,

I quickly checked correspondence code and came to a first possibility,
starting at line 1477 :

            # Add moves from clipbase to the DB game. This keeps
            # comments, but requires that tries are inserted as variants
            # as it is always appended to the end of the game
            for {set x $plyStart} {$x < $plyEnd} {incr x} {
                sc_base switch "clipbase"

                # move to the beginning of the new part
                sc_move start
                sc_move forward [expr {$x+1}]

                # Get the move...
                set move [sc_game info next]
                # ... move on one ply ...
                sc_move forward
                # ... and get the comment
                set comment [sc_pos getComment]
                # switch to Correspondence DB and add the move and comment
                sc_base switch     $CorrSlot
                sc_move addSan     $move
                sc_pos  setComment $comment
            }

When you write
set move [sc_game info next]
you will get a move translated according to user settings. To get the
english version that will fit
sc_move addSan     $move
you must call
set move [sc_game info nextMoveNT]

see tkscid.cpp around lines 6488.

Another solution (I don't recommend it as the API should be complete enough
to avoid this), if you don't want to bother with piece translations stuff is
to simply call at the start of a proc

set old_lang $::language
sc_info language en
......
<your code here>
......
sc_info language $old_lang

Also note that there exists some helper functions that translate /
untranslate pieces in Tcl (see ::trans and ::untrans in language.tcl).

But the first solution I described (use of the NT suffix) is the one to use,
even if there are multiple choices.

Pascal

2008/3/26, Alexander Wagner <[EMAIL PROTECTED]>:
>
> Hi!
>
> Just came accross this point: in CC support I've to import
> PGN files from scids Inbox directory. Now, if I set the
> language of scid say to German but import a PGN with english
> notation, I get an error (e.g. "Can't read move Sd7" for a
> Knight move Nd7). Switching the language to english gets the
> move correctly imported. I believe scid is stumbling accorss
> the S from Springer which is invalid in english notation.
>
> Can someone confirm this?
>
> --
>
> Kind regards,                /                 War is Peace.
>                              |            Freedom is Slavery.
> Alexander Wagner            |         Ignorance is Strength.
>                              |
>                              | Theory     : G. Orwell, "1984"
>                             /  In practice:   USA, since 2001
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
>
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Scid-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scid-users
>
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Scid-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to