1. A method of recognition of characters from a bit-mapped graphic file received from an optical scanning device comprising a template cache for recognized characters, feature analysis means, context analysis means, said template cache can be trained; said template cache along with said context analysis means are used as the first shape characteristic analyzing means, said feature analysis means along with said context analysis means are used as second shape characteristic analyzing means and as a training means for template cache, said method comprising the steps of initially emptying the template cache; analyzing the shape characteristics of each character by the template cache; analyzing the shape characteristics of each character by the feature analysis means if no or not enough reliability of recognition is achieved after the template cache analyzing; analyzing the results of said shape analyzing routines by said context analysis means; sending results of said context analysis to said template cache for template training.