  The paper proposes an algorithm for the script recognition based on the
texture characteristics. The image texture is achieved by coding each letter
with the equivalent script type (number code) according to its position in the
text line. Each code is transformed into equivalent gray level pixel creating
an 1-D image. Then, the image texture is subjected to the run-length analysis.
This analysis extracts the run-length features, which are classified to make a
distinction between the scripts under consideration. In the experiment, a
custom oriented database is subject to the proposed algorithm. The database
consists of some text documents written in Cyrillic, Latin and Glagolitic
scripts. Furthermore, it is divided into training and test parts. The results
of the experiment show that 3 out of 5 run-length features can be used for
effective differentiation between the analyzed South Slavic scripts.
