add writing direction option in koptcontext