Text this: An orthonormal system on the construction of the generalized cantor set