Trianon Monument

I’ve been invited to participate on the huge monument of Trianon in Budapest. My part was to program algorithm, that would generate the whole layout of 13 thousand town names grouped into 3 sizes. The program is around 2000 lines long and it generates HTML page consisting the whole layout and position of every town in the grid. All the town names must be only once in the whole layout. The monument is nearly 100 meters long.