1. A method for image processing, comprising: obtaining an image comprising: a first graphics element comprising a first hand-drawn character; and a second graphics element comprising a second hand-drawn character; determining that the first graphics element is a command specifying a name of a font and that the second graphics element is a non-command; and generating an electronic document comprising a text character corresponding to the second hand-drawn character and in the font, wherein the electronic document does not include the first graphics element.
1. A method for image processing, comprising: obtaining an image comprising: a first graphics element comprising a first hand-drawn character; and a second graphics element comprising a second hand-drawn character; determining that the first graphics element is a command specifying a name of a font and that the second graphics element is a non-command; and generating an electronic document comprising a text character corresponding to the second hand-drawn character and in the font, wherein the electronic document does not include the first graphics element. 2. The method of claim 1 , wherein determining that the first graphics element is the command comprises: extracting a plurality of characters from the first graphics element by executing intelligent character recognition (ICR) on the image, wherein the first graphics element is a hand-written string; identifying a command-invoking character within the plurality of characters; and mapping a subset of the plurality of characters to the command.