detectCharacterType function

Function to detect whether a character is continuous or discrete