After looking at TeX, you may want to look at further extensions of it. The largest / most modern of them (not counting LuateX, which is no longer based on the WEB sources) is XeTeX.
A raw dump of the program is below; will annotate it later. Note that it may take quite a while to load.
Note: This page takes a long time to load fully, and may download about 60 megabytes.To read the program, click on "Fetch modules" below.