Flag semaphore is a visual telegraphy system in which a signaller holds a coloured flag in each hand and places the two arms at fixed angles to spell out a message. It was the standard ship-to-ship method before radio and is still part of maritime and scouting training. This encoder converts text into the standard semaphore alphabet, describing the angle of each arm for every letter.
How it works
Imagine the signaller’s body as a clock centre. Each arm can point in one of eight directions: straight down, low (down-diagonal), out (horizontal), high (up-diagonal), and up. The semaphore alphabet is built systematically: A is left-arm low-left / right-arm down, and the pattern rotates one arm at a time through the circle.
This tool stores the canonical left/right angle pair for each of the 26 letters and prints them as readable descriptions such as Left: out-left, Right: down. Words are separated by a blank line so message structure is clear.
Example
The letter A is Left: low-left, Right: down, and R is Left: out-left, Right: high-right. Spelling a short word shows one labelled line per letter, which a learner can use to practise the arm movements in front of a mirror.