Refactored textid from s_id extraction into function Glossa::textid_from_sid().