using paragraph styles instead of all textStyleRanges