Le030 — `\PE\` selector and `\Q\x` directive support

§12.1a encoding/strings (sub-class: lesser-known directives)

P2 — spec deviation (no data loss)

encoding

Sources

Description

ISO 10303-21 also defines `\PE\` (UCS extended) and `\Q\x` (alternate-quote) directives that some legacy generators emit. Few parsers implement these, so the bytes pass through to the user as literal `\PE\` or `\Q'`.

Reproducer recipe

`'\PE\foo'`; `'\Q\'foo\Q\'`

Expected kernel behavior

Heal and accept: at minimum, recognise the directives and consume the documented number of operands without lexer desynchronisation; warn-and-accept if decoding is not fully implemented.

Notes

**See also**: Le012. Synonyms: "PE directive not implemented", "Q directive passes through as literal", "alternate-quote escape unrecognised", "legacy Q directive in STEP", "STEP PE escape ignored".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Le012

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Le030: \PE\ selector and \Q\x alternate-quote directive support; ISO 10303-21 Ed.3 §6.4.3 defines \PE\ (UCS extended alphabet-extension) and \Q\x (alternate-quote) directives for use in string literals; legacy generators emit \PE\foo in PRODUCT name fields; alternate-quote directive: \Q\'foo\Q\' encodes a quoted string fragment; parsers that do not implement these directives pass bytes through verbatim producing literal \PE\ or \Q\' in the decoded attribute string; receivers must recognise and consume documented directive operands without lexer desynchronisation; warn-and-accept is the minimum requirement; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Le030'),'2;1');
5FILE_NAME('Le030.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
10#2=GEOMETRIC_CURVE_SET('',(#1));
11#8997=PERSON('\PE\foo','pe-directive-no-selector','');
12#8998=PERSON('\Q\'foo\Q\'','q-alternate-quote','');
13
14ENDSEC;
15END-ISO-10303-21;