#!/bin/sh # This is a simple wrapper to display man pages in bidirectional languages. PG="$#" if [ ! "$PG" = "1" ]; then echo " The \"bidiman\" script is a simple wrapper to display bidirectional man pages like those made of a mix of Persian and English. It accepts only one argument: the manual page to be displayed, encoded in an UTF-8 charset. Example of usage: LANG=fa_IR bidiman installpkg " else GROFF_ENCODING=UTF-8 man $1|fribidi --nobreak --wrtl|most fi