%<*cmp>
\CompatSection{\spec{sub surface}}
\CompatTable{sub surface}{main}{{
  autonomous underwater vehicle/{main={[fill]unmanned}},
  bottomed sea mine decoy/{main={[fill]sea mine=top half,{[scale=.6,yshift=-6]decoy}},lower={bottomed}},
  bottomed submarine/{main={submarine},lower={bottomed}},
  civilian autonomous underwatervehicle/{main={unmanned}},
  civilian diver/{main={diving}},
  civilian seabed installation/{main={seabed installation}},
  civilian submersible/{main={submersible}},
  civilian/{main={squashed text=CIV}},
  improvised explosive device/{main={squashed text=IED}},
  military diver/{main={diving=military}},
  military seabed installation/{main={[fill]seabed installation}},
  military/{main={squashed text=MIL}},
  moored sea mine decoy/{main={[fill]sea mine=top half,{[yshift=-4,scale=.6]decoy}},lower={[yshift=-2]bottomed,moored}},
  non submarine/{main={small squashed text=NON SUB}},
  other submersible/{main={[fill]submersible}},
  sea mine decoy/{main={[fill]sea mine=top half,{[scale=.6,yshift=-6]decoy}}},
  snorkelling submarine/{main={submarine},upper={[yshift=-8]surfaced,[yshift=-2]type=vlight}},
  submarine/{main={submarine}},
  surfaced submarine/{main={submarine},lower={surfaced}},
  torpedo/{main={torpedo}},
  underwater decoy/{main={decoy},upper={[yshift=-4]bottomed}},
  underwater weapon/{main={squashed text=WPN}},
  unexploded ordnance/{main={unexploded ordnance}},
}}

\CompatTable{sub surface}{upper}{{
  anti submarine warfare/{upper={squashed text=ASW}},
  attack/{upper={text=A}},
  auxiliary/{upper={squashed text=AUX}},
  ballistic missile/{upper={text=B}},
  certain submarine/{upper={text=CT}},
  command and control/{upper={text=C2}},
  guided missile/{upper={text=G}},
  intelligence surveillance reconnaissance/{upper={squashed text=ISR}},
  mine countermeasures/{upper={squashed text=MCM}},
  mine warfare/{upper={text=MW}},
  other guided missile/{upper={text=M}},
  possible submarine high 3/{upper={text=P3}},
  possible submarine high 4/{upper={text=P4}},
  possible submarine low 1/{upper={text=P1}},
  possible submarine low 2/{upper={text=P2}},
  probable submarine/{upper={text=PB}},
  special operations force/{upper={squashed text=SOF}},
  surface warfare/{upper={squashed text=SUW}},
}}

\CompatTable{sub surface}{lower}{{
  air independent propulsion/{lower={text=AI}},
  autonomous control/{lower={squashed text=AUT}},
  diesel propulsion/{lower={text=D}},
  diesel type 1/{lower={text=D1}},
  diesel type 2/{lower={text=D2}},
  diesel type 3/{lower={text=D3}},
  expendable/{lower={squashed text=EXP}},
  nuclear propulsion/{lower={text=N}},
  nuclear type 1/{lower={text=N1}},
  nuclear type 2/{lower={text=N2}},
  nuclear type 3/{lower={text=N3}},
  nuclear type 4/{lower={text=N4}},
  nuclear type 5/{lower={text=N5}},
  nuclear type 6/{lower={text=N6}},
  remotely piloted/{lower={text=RP}},
}}
%</cmp>
