This JavaScript library gives website users more ways to interact with written ITU call signs, including for amateur radio.
Upload callsign.js and callsign.css to the webserver and add callsign.js to the <head>
section.
<script id="callsign-js" src="callsign.js" defer></script>
Tag the call signs with the custom HTML tag <call-sign>
:
<p>I had contact with <call-sign>SM8AYA</call-sign> on shortwave.</p>
Options can be set as attributes in the <link>
tag.
Name | Default | Description |
---|---|---|
data-flag |
true |
Show country flag before the call signs. |
data-monospace |
true |
Render call sign with a monospace font. |
data-phonetic |
true |
Add phonetic information for screen readers. |
data-search |
false |
Find and mark up untagged call signs in the document. |
The files are intentionally not provided minified. Amateur radio is about learning and experimenting. Minified files makes it drastically harder to understand the code.
The PREFIX_TABLE mapping in this library is compiled from multiple authoritative sources to ensure accuracy across all 160 countries:
- ITU Radio Regulations Appendix 42 – Table of allocation of international call sign series - Official ITU allocation table
- ITU Radiocommunication Bureau Circular - Current call sign assignments and updates
- ARRL International Call Sign Series - Comprehensive amateur radio call sign reference
- ITU Master International Frequency Register (MIFR) - Official frequency and call sign database
- Country-specific amateur radio licensing authorities - National regulatory bodies via IARU member societies
- Radio-Electronics.com Call Sign Database - Cross-reference for prefix verification
- ITU Radio Regulations Article 19 – Identification of stations
- ITU prefix – Wikipedia
- International Amateur Radio Union (IARU) - Global amateur radio coordination