Standards and letter codes
2525E and 2525D
A numeric code says which standard it belongs to (positions 1–2, Table A-I): versions 13 and 15 are 2525E, 10 and 11 are 2525D, and APP-6(D) and APP-6(E) share their structure.
2525E's drawings are built in. Load 2525D's once, and a 2525D code draws with them:
ts
import {use2525D} from '@zaes/military-symbols/2525d';
use2525D();
renderSymbol('10031000001211000000'); // 20 digits: 2525D, with 2525D's drawingsWithout it, a 2525D code draws with 2525E's drawings and says so in problems. standard: '2525D' or '2525E' picks either set for any numeric code.
Letter codes: 2525C, 2525B and APP-6(B)
The three share one 15-character structure, so which standard a letter code is read as is chosen, not detected. Each draws with its own drawings: 2525C's and 2525B's from their fonts, APP-6(B)'s from its own plates where it differs from 2525B.
ts
import {use2525C} from '@zaes/military-symbols/2525c';
import {use2525B} from '@zaes/military-symbols/2525b';
import {useAPP6B} from '@zaes/military-symbols/app6b';
use2525C(); // 2525C, the default for a letter code
use2525B();
useAPP6B();
renderSymbol('SFGPUCI----E---'); // read as 2525C
renderSymbol('SFGPUCI----E---', {letterStandard: '2525B'});
renderSymbol('GFCPSPA-------X', {letterStandard: 'APP-6B'}); // APP-6(B)'s ambulance exchange pointA letter code is converted to its 2525D code (through @zaes/sidc/2525c) for everything the two share: identity, status, headquarters, echelon, mobility, amplifiers, display options. Its frame, fill and icon are the letter standard's own.
- A function ID with no drawing of its own draws as its nearest parent, with a problem saying so.
- 2525C's emergency management and stability operations, and its point graphics, are included.
- APP-6(B)'s own codes for symbols 2525B draws under another code, and its tactical graphics coded
G*C*andG*T*, are translated;app6bName(code)gives its name. - A tactical graphic that is a line or an area is not drawn here, and
problemssays so.
On a map, a letter code keeps the standard it was placed as (letterStandard on the saved object), so changing the display options does not redraw it as another standard.