Image Processing Reference
In-Depth Information
Fig. 12.7
Different rules for producing the pattern of letter
in Ma'qeli script
where V (the alphabet) is a set of symbols containing elements that can be replaced
(variables),
ω
(start, axiom or initiator) is a string of symbols from V defining the
Generating a string using Ma'qeli script
Input:
An array of string, Table of rules
Output:
A string in the form of Ma'qeli Script
Output
Ma'qeli_Script
(
Input
)
Begin
Step1
: Get the current character and search through the alphabet file to examine whether
it is Persian or not
Step2
: If the current character does not find in the alphabet file go to
End
Step3
: Scan the left and right neighborhoods of character in the string to find whether it
is connective or not
Step4
: Based on output of Step 3, select the proper Rule number from rule's table and
perform
B0 - B8
,
Start
,and
End
rules
Step5
: If the character belongs to the set of space, isolated, final, put a space in output
by shifting current block with the amount of 1 cell
Step6
: If there is any character go to Step 1.
End
Search WWH ::
Custom Search