Writer Adaptive Training and Writing Variant Model Refinement for Offline Arabic Handwriting Recognition