Arabic characters re-shaper to be used with graphics libraries ex. Rmagick
- Make sure the file
resharper.rbinside your current directory. - Require the
require_relative 'resharper'file (you can require file withrequire File.expand_path("../resharper.rb", __FILE__)if you are using ruby version 1.9.x). - Use the reshape function ex:
reshape "سلام لكم".