Re: [chessx-developer] Text in angle brackets in comments is not displayed
Chess Database and PGN viewer
Brought to you by:
hognose
From: Fex X. <fs...@gm...> - 2020-07-15 21:55:03
|
Thanks for responding to my email. Let me clarify a few things from my last email. The issue was that text in a move comment displayed in angle brackets was not displayed in the game browser. 1. These are not XML tags. They are also not HTML tags. This is ordinary ASCII text in which some strings are enclosed in angle brackets. They should be displayed like any other ASCII text comment. It is clear these cannot be HTML or XML tags. For one thing, there is no end tag! 2. I did not mean to suggest that CQL is embedded into a comment. CQL is distributed with a sample PGN database, used in the CQL examples for documentation. The sample database CQL uses in its documentation can be downloaded here: http://www.gadycosteff.com/cql/pgn/sample.pgn . That PGN file (mainly excerpts from the Heijden database) has examples of comments containing angle brackets. To clarify, my request is this: display the text of a comment. (Obviously, if ChessX makes exception for text enclosed in HTML tags, that is fine. That does not apply in this case. These strings are obviously not HTML and so they should be displayed as normal text). I believe this is the intent of the PGN specification, which allows ASCII text in comments. The Heijden PGN database has been under development for over 20 years and displays fine in ChessBase, HiArcs and probably others. We do not want a situation where a conformant, ASCII, PGN file looks fine in some PGN viewers but in which comments are invisible in other PGN viewers. That is confusing for users and database creators. On Wed, Jul 15, 2020 at 12:54 AM jens-chessx <jen...@gm...> wrote: > We are correctly handling XML- and HTML-Tags, for example <i>Important > move</i>. > But this is probably the problem - you have your own XML-Tags inside > comments which should trigger different behaviour. > For my understanding: what is the idea of embedding CQL into a comment? > Should ChessX trigger a CQL-Query once it finds such a comment, for > example, when displaying a move with a CQL-command, display a button which > executes the command? > I can’t see any samples on the Heidjen study database - what tags is > Heidjen using and which intention does this database have with XML? > BTW: the comment editor below the board shows the <thisshoulddisplay> tag, > only the game browser does not show it. > We are currently redesigning the game browser, so changes might be coming! > > Jens > > > Am 15.07.2020 um 00:30 schrieb Fex Xef <fs...@gm...>: > > A PGN move comment like {<foo>} is not displayed by ChessX ([MacOS]). > Instead, a comment with text "<foo>" should be displayed. > > Correctly handling such comments is important for some PGN databases. For > example, the Heijden study database, a collection of 85000 endgame studies > in PGN, relies extensively on such comments for annotations. See > http://hhdbv.nl/ . Some CQL examples use these tags as well, > http://www.gadycosteff.com/cql . > > Do you know if or when this will be fixed, or if there is a workaround? > > A sample game illustrating this is below: > > [Event "chessx tag bug"] > [Site "?"] > [Date "2020.07.14"] > [White "Bug1"] > [Black "Bug2"] > [EventDate "2011.??.??"] > > 1.e4 e5 2. Nf3 {<thisshoulddisplay>} 1-0 > > > > > > > > > _______________________________________________ > chessx-developer mailing list > che...@li... > https://lists.sourceforge.net/lists/listinfo/chessx-developer > > > _______________________________________________ > chessx-developer mailing list > che...@li... > https://lists.sourceforge.net/lists/listinfo/chessx-developer > |