1#! /usr/bin/sed -f
2#
3# each line of the form ^.. .* contains the code for a language.
4#
5/^.. / {
6  h
7  s/^.. \(.*\)/\1./
8  x
9  s/^\(..\).*/@item \1/
10  G
11  p
12}
13#
14# delete the rest
15#
16d
17