Added basic recognition of sym elements

DO NOT MERGE THIS PATCH YET

The patch currently doesn't do the right thing as it doesn't take into account the current font.