Pascal Georges wrote:

Hi!

>> (yellow is noted by a Y, no other colours seem to be supported nor any
>> markers). I think it would easy up transitions to Scid if we could
>> translate those things upon import (or allow scid to learn the other
>> syntax). Unfortunately, I'm completely lost at the location where this
>> should be done. Maybe it's even an easy thing to do.
> 
> Follow the function sc_base_import in tkscid.cpp. At first sight this
> should not be hard to map one format to the other while importing the
> game. It seems everything is around line 1178 in pgnparse.cpp.

Thinking more about it: if I get you correctly you suggest to do 
replacements while _importing_ PGN commentary. I think it would be wiser 
to teach Scid to understand CBs commentary format instead of replacing 
it and thus locate the code to handle graphical annotations in the 
parsing part of [%]-commentaries. I guess this lives much higher up in 
the tcl part(?)

Do you also have some hint where this lives there?

(Reason: if it's done on import one has to touch original data and it 
would also work only for those files that are newly imported. E.g. if 
you've importet data some time ago you'd have to reimport it. However, 
one might have worked on that data.)

-- 

Kind regards,                /                 War is Peace.
                             |            Freedom is Slavery.
Alexander Wagner            |         Ignorance is Strength.
                             |
                             | Theory     : G. Orwell, "1984"
                            /  In practice:   USA, since 2001

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Scid-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to