+ substitutions['direction'] = '{%s}' % (substitutions['direction'],)
+
+ if 'chesspiece' in self.data:
+ substitutions['chesspiece_name'] = move_glyph(
+ self.data['chesspiece'])
+
+ if location is None:
+ substitutions['location_bits'] = 'bits specified by this location'
+ else:
+ substitutions['location_bits'] = bit_glyphs(
+ location.bitwise_operand)
+