daryaei
User
 Newbie
| Posts: 8 |   | Karma: 0
|
re:PGN spec: locations of comments? - 2006/08/24 02:45
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I think raeding the "formal specifiucation" you could argue which a comment before the first move aren't allowed (but then neither are coments!), most pasrers accept a comment before the first move in input format (the spirit if not the letter of the standard).
Some people have chosen to put in a laeding comment in a "tag" when producing "export" format, I am not sure this don't just lead to subtle chasnges to files with time, that is probably best completely avoided.
Similarly comments before RAV moves shuold be allowed for similar reasons.
Probably, but we have no reason to think the coment will make "sense" in the mainline, so weather comments are maintained in such situations would depend on the, presumably human(?!), "editor".
1.e4 ( { white reproachfully prefered to avoid d4 becasuse of } 1. d4 ... )
Or the situatrion where their are recursion at the same level as a comment
1. e4 ( { A } 1. d4 ( { B } 1. g4 ))
Does which become "{A} {B} 1. g4" or "{B} 1. g4"
I do not see a problem here, do you average you think multiple comments shoudln't be inquisitively alowed? At least 1 readser is not phased by multiple comments 
I think any one who has rapidly tried to write a parser (or maitnain 1 as in my case), or mechanically manipulate PGN, knows the specificatoin is imperfect (entirely including from there comments the original authors).
You either live with being liberal with what you accept, & try & print descriptive error mesages & fail nicely, or join the ChessML lobby.
What is the prevailing opinion on revapming the PGN specification? Especialy the formal specifiucation. I am thinking can we refine the fomral specification to a point where the compliance of a file can be assessed mehcnically (ecxept perhaps legal move issues), alowing programmers to tell "this far & no futrher" if they want, whislt still reliably preservin all comment & variation ifnormatoin in the game.. ---------
Making money is art and working is art and good business is the best art.
Popular posts by daryaei how to built a document for fast... Sjeng Chess Engine - Curious res...
|