Bad starting point: The documentation of the pinout of the special cable (to connect the TW523 device to a parallel port) is deliberately missing, until it gets clarified (hasn't been clarified in 22 years)?
Is the tw driver still in there kernel source? How many computers even have parallel ports these days? When I bought my server, a few years ago, I had to search pretty hard to find a motherboard with a parallel port on it.
Given that X10 to serial adaptors are easy to find, and given that serial is typically much less trouble than parallel (and easier to support in software, just open /dev/ttyXX and go to town), this seems pretty impractical. Unless you happen to have the hardware sitting around already.