Information processing apparatus and non-transitory computer readable medium
An information processing apparatus includes a receiving unit, an obtaining unit, and a translating unit. The receiving unit receives a document as a target to be translated. The obtaining unit obtains a non-target region from the document, the non-target region being a region that is not a target to be translated. The translating unit does not perform translation on the non-target region but performs translation on a portion other than the non-target region.
1. An information processing apparatus comprising:
a processor programmed to:
receive a document as a target to be translated;
display the document on a screen;
receive a user input designating an area of the displayed document, the user input being an input surrounding the designated area with a frame;
define a region corresponding to the designated area as a non-target region, the non-target region being a region that is not a target to be translated; and
perform translation on a portion of the document that is not the non-target region without performing translation on the non-target region.
2. The information processing apparatus according to claim 1 , wherein the processor is programmed to:
display a translation result obtained after performing the translation on the screen while maintaining a layout of the non-target region within the document.
3. The information processing apparatus according to claim 2 , wherein the processor is programmed to display the translation result on the screen in a region other than the non-target region.
4. The information processing apparatus according to claim 1 , wherein the processor is programmed to:
obtain the non-target region from the document;
extract a region of an image similar to an image that has already been designated as not being a target to be translated from the document; and
present the extracted region as a candidate non-target region.
5. The information processing apparatus according to claim 1 , wherein
the document includes an information image indicating the non-target region, and
the processor programmed to obtain the non-target region by using the information image.
6. The information processing apparatus according to claim 1 , wherein the processor programmed to:
obtain information representing a connection between characters in character regions around the non-target region; and
perform translation in accordance with the connection.
7. The information processing apparatus according to claim 6 , wherein the processor is programmed to:
perform layout analysis on the document;
present a result of the performed layout analysis; and
obtain the information representing the connection between the characters in the character regions in accordance with an operator's instruction to select the connection.
8. A non-transitory computer-readable medium storing a program causing a computer to execute a process for information processing, the process comprising:
receiving a document as a target to be translated;
displaying the document on a screen
receiving a user input designating an area of the displayed document, the user input being an input surrounding the designated area with a frame;
defining a region corresponding to the designated area as a non-target region, the non-target region being a region that is not a target to be translated; and
performing translation on a portion of the document that is not the non-target region without performing translation on the non-target region.