I made some small refinements to the BetzaNew.js script:
Putting an apostrophe on an atom in the XBetza descriptor now not only exempts the corresponding move from the effects of morph and captureMatrix, but also makes it ignore the spell. This seemed more logical, and I am not aware of any cases where a move should ignore morph or captureMatrix, but be sensitive to a spell.
The apostrophe can now placed both directly on the atom, as well as behind the range indicator. So it doesn't matter anymore whether you write Q'3 or Q3'. (Before only the former was accepted, which was confusing, as in the bracket notation the apostrophy would go at the very end, behind the closing bracket (e.g. [W-F]').
When a piece ID specified in the captureMatrix cannot be identified as a valid promotion piece (promotion to the type of the mover itself is always rejected), it is interpreted as a 'nothing happens', rather than being completely ignored (and cause the remainder of the row to be out of phase...). This makes it possible to represent the matrix for pieces that mimic the piece they last captured (and thus must be represented by a large variety of types) in a much more compact way, repeating the same row for each of those. (While otherwise all rows would have had to exempt a different sub-type from promotion.)
What I still might do is recognize a special symbol (say =) in a promotion set as the opportunity to defer promotion. This must now be done by including the ID of the piece that promotes as one of the choices in the promotion set. But that makes it impossible to share the same promotion set for optional promotion to the same piece between several types.
I made some small refinements to the BetzaNew.js script:
What I still might do is recognize a special symbol (say =) in a promotion set as the opportunity to defer promotion. This must now be done by including the ID of the piece that promotes as one of the choices in the promotion set. But that makes it impossible to share the same promotion set for optional promotion to the same piece between several types.