Fig. 1 is one block scheme of structure of a word processor of the present invention that has been used for display application.In this structure, this word processor mainly comprises a CPU(CPU (central processing unit)) 2 ,-ROM(ROM (read-only memory)) 3 ,-dictionary memory 4 ,-file memory 5, and one do not need to translate vocabulary storer 6.This word processor 1 also comprises a working storage 7 ,-display-memory 8, and-display unit 9, and-key input unit 10.
CPU2 controls each unit of this word processor 1 according to being stored in various control programs among the ROM3.In addition, the sequential operation of this CPU2 execution word processor 1 and a translation supporting process (back will be described) reach the translation vocabulary that reads corresponding to these original text vocabulary with the original text vocabulary that reads the English statement (being the original text statement) that is stored in the file memory 5 from dictionary memory 4.Then CPU2 utilizes the original text vocabulary that 7 pairs of working storage read and the line number and the display position of translation vocabulary to carry out a judgement, and subsequently these data is write display-memory 8.
ROM3 is storing various control programs and translation supporting process program in advance.According to those control programs, operate the desired sequential operation of this word processor and be performed, and this translation supporting process is performed according to this translation supporting process program.
This dictionary memory 4 is made of-ROM or similar dress.This dictionary memory 4 storing be used for about one by key input unit 10 input and deposit in file memory 5-file data of English text is converted to the dictionary data of Chinese character, and storing the translation lexical data (Japanese) that the English file data that is used for being stored in file memory 5 is translated as corresponding Japanese file data.
This document storer 5 by-RAM or similarly device constitute and the file data (English file and Japanese file) imported by key input unit 10 of storage.This do not need to translate vocabulary storer 6 by-ROM ,-RAM etc. constitutes.This does not need to translate vocabulary storer 6 and storing the specific original text vocabulary of translating in the original text vocabulary of reading when supporting process is operated (english vocabulary) carrying out (specific english vocabulary) from file memory 5, and these vocabulary need not translated.Be shown in Fig. 2 at the specific original text vocabulary that does not need to translate in the vocabulary storer 6.
This work storage 7 is made of-RAM or similar device.As shown in Figure 1, this working storage 7 comprises :-original text vocabulary register 7a is used for storing the source text of reading from file memory 5 in the mode of original text vocabulary unit;-translation vocabulary register 7b is used for storing the translation vocabulary of reading from dictionary 4; And an original text vocabulary line number register 7c, be used for storing line number data about the original text vocabulary that is stored in original text vocabulary register 7a.This working storage 7 also comprises: a translation vocabulary line number register 7d is used for storing the line number data about the translation vocabulary that is stored in this translation vocabulary register 7b;
-original text vocabulary pointer 7e is used for storing the display position data about the original text vocabulary that is stored in original text vocabulary register 7a; And a translation vocabulary pointer 7f, be used for storing display position data about the translation vocabulary that is stored in translation vocabulary register 7b.
This display-memory 8 is made of-RAM or similar device, and has the demonstration memory block, and this document data, original text lexical data and translation lexical data promptly write to it.The display position of these data is determined by CPU2.This display unit 9 is by-CRT(canal ray tube) or-liquid crystal indicator constitutes, and shows file data, original text lexical data and the translation lexical data that has been written into display-memory 8 thereon.
At key input unit 10, be provided with katakana character key, letter key, digital input key, various function keys etc.This key input unit 10 is to the file data of CPU2 output function person by this key input unit input.
Various operating process according to the word processor 1 of present embodiment will be described below.
At first with reference to Fig. 3 explanation this translation operational process by the CPU2 execution.
In this example, suppose that original text statement (English statement) is used as file data by operating key input block 10 and imports in advance and deposit in the file memory 5.In addition, suppose that also one one space code is provided between each speech in succession of this English statement on demand, and according to this space code, the section of these english vocabularies can detect.When being sent an interpretive order by key operation, CPU2 begins the head of searching character data in the English text in being stored in file memory 5, and confirms whether to have character data (step S1 and S2).When not having the character numeral (end code etc.), then should translation supporting process EO.Otherwise when having character data, the character code of this character data is read one by one by order, and is deposited in this original text vocabulary register 7a(step S3).Then, "+1 " is added on this original text vocabulary line number register 7c in succession, up to judging this Statement Completion by detecting space code.Then, calculate the line number of this original text vocabulary, this line number that calculates is deposited in original text vocabulary line number register 7c(step S4 and S5).
Then, whether the original text lexical data of retrieve stored in this original text vocabulary storage 7a is present in this does not need to translate in the vocabulary storer 6, judges thus whether translation vocabulary need annotate to this original text vocabulary (step S6 and S7).When this original text vocabulary is present in when not needing to translate in the vocabulary storer 6, translation vocabulary does not need filling to give this original text vocabulary, the processing procedure (back will be described) (step S8) that process is advanced to only show original text vocabulary is returned the character data search procedure of step S1 again.Otherwise, when this original text vocabulary is not stored in this when not needing to translate vocabulary storer 6, owing to its translation vocabulary need be annotated to this original text vocabulary, whether corresponding vocabulary is had its translation vocabulary (step S9 and S10) by retrieval in dictionary memory 4 to check.If there is no with the corresponding appropriate translation vocabulary of this original text vocabulary, then process advances to and only shows the corresponding processing procedure of original text vocabulary (step S8).Otherwise when having corresponding translation vocabulary, this translation vocabulary is read from dictionary memory 4 and is deposited in translation vocabulary register 7b, and calculates the line number of this translation vocabulary and deposit among the translation vocabulary line number register 7d (step S11).
Then, that obtain in the processing of comparison step S4 and the S5 operation and be stored in the original text vocabulary line number among this original text vocabulary line number register 7c and in the processing operation of step S11, obtain and be stored in translation vocabulary line number (step S12) among this translation vocabulary line number register 7b.If comparative result be translation vocabulary line number greater than original text vocabulary line number, then process advances to the original text vocabulary based on translation vocabulary/translation vocabulary procedure for displaying (then will discuss) of step S13.If the line number of this original text vocabulary is more than or equal to the line number of this translation vocabulary, then process advances to the original text vocabulary based on original text vocabulary/translation vocabulary procedure for displaying (then will discuss) of step S14.Then, after finishing based on the original text vocabulary/translation vocabulary procedure for displaying of original text vocabulary, processing procedure is returned this character data search procedure at step S1.
The detailed process of the original text vocabulary display process operation of step S8 is described with reference to Fig. 4 below.
At the first step S101 of this process flow diagram that is shown in Fig. 4, check whether the original text vocabulary line number data that deposit this original text vocabulary line number register 7c at step S4 and the S5 of Fig. 3 are less than or equal to the data (original text vocabulary line number≤residue line number) about the line number of displayable residue vocabulary with behavior unit.When original text vocabulary line number was less than or equal to displayable residue vocabulary line number, this original text vocabulary was deposited in the display position by the display-memory 8 of original text vocabulary pointer 7e appointment, and was displayed on (step S102) on the display unit 9.The display position data of this original text vocabulary pointer 7e are upgraded (step S103) with " space between current original text vocabulary pointer value+original text vocabulary line number+phrase ".Then, the display position data of this translation vocabulary pointer 7f are upgraded with " space between current translation vocabulary pointer value+original text vocabulary line number+phrase ", and this process so far finishes (step S104).
On the other hand, if judge the line number of this original text vocabulary line number, then be somebody's turn to do the value of the original text vocabulary pointer 7e that indicates original text vocabulary display position and the value of this translation vocabulary pointer 7f that indicates translation vocabulary display position and upgraded (step S105) with downward 2 row greater than displayable residue vocabulary at step S101.Afterwards, check whether the display position of each pointer has exceeded the end row (step S106) of screen in the display unit 9.When the display position of this each pointer has exceeded the end of screen during row, after the indication range of this display unit 9 is these data scrolling 2 row (step S107), this original text vocabulary is displayed on by on the display position of this original text vocabulary pointer 7e appointment (step S102).When the end that the display position of this each pointer does not exceed screen during row, this original text vocabulary is displayed on the display position by this original text vocabulary pointer 7e appointment.Then, the data of this original text vocabulary pointer 7e and this translation vocabulary pointer 7f are updated to finish this process (step S103 and step S104).
Below with the detailed process of the original text vocabulary among the step S13 of key diagram 3/translation vocabulary procedure for displaying based on translation vocabulary.
In Fig. 5, at first relatively be stored in translation vocabulary line number data among the translation vocabulary line number register 7d and whether be less than or equal to data (translation vocabulary line number≤residue line number) (step S201) with the line number of the residue vocabulary of behavior unit about can on display screen, showing what the process of the step S11 of Fig. 3 obtained.When this translation vocabulary line number was less than or equal to the line number of displayable residue vocabulary, original text vocabulary and translation vocabulary all deposited in by the display position of the display-memory 8 of original text vocabulary pointer 7e and translation vocabulary pointer 7f appointment and are displayed on (step S202) on the display unit 9.Then, the display position data of this original text vocabulary pointer 7e are upgraded (step S203) with " space between current original text vocabulary pointer value+translation vocabulary line number+phrase ".Then, the display position data of this translation vocabulary pointer 7f are upgraded with " space between current translation vocabulary pointer value+translation vocabulary line number+phrase ", and this process finishes (step S204).
On the other hand, when in step S201 translation vocabulary line number greater than can show residue vocabulary line number the time, the value of the value of the original text vocabulary pointer 7e of this indication original text vocabulary display position and translation vocabulary pointer 7f that should indication translation vocabulary display position is upgraded (step S205) with downward 2 row.Then, check whether the display position of each pointer has exceeded the end row (step S206) of screen in the display unit 9.When this display position has exceeded this screen, the indication range of this display unit 9 scroll up 2 the row (step S207), afterwards, original text vocabulary and translation vocabulary are presented at by on the display position of original text vocabulary pointer 7e and translation vocabulary pointer 7f appointment (step S202).Otherwise when indication range did not exceed display screen, this original text vocabulary and translation vocabulary were displayed on respectively by on the display position of original text vocabulary pointer 7e and translation vocabulary pointer 7f appointment (step S202).Then, upgraded in the mode that is similar to aforesaid way about the data of original text vocabulary pointer 7e with about the data of translation mark remittance pointer 7f, and this process finishes (step S203 and S204).
Be described in the detailed process of the original text vocabulary based on original text vocabulary/translation vocabulary display process operation of the step S14 of Fig. 3 below with reference to Fig. 6.
In the first step S301 of Fig. 6, step S4 that checks at Fig. 3 and S5 are stored in original text vocabulary line number data among the original text vocabulary line number register 7c and whether are less than or equal to data (original text vocabulary line number≤residue line number) about the line number of displayable residue vocabulary with behavior unit.When this original text vocabulary line number is less than or equal to the line number of displayable residue vocabulary, this original text vocabulary and translation vocabulary are deposited in the display position by original text vocabulary pointer 7e and translation vocabulary pointer 7f appointment of display-memory 8, and are displayed on (step S302) on the display unit 9.The display position data of this original text vocabulary pointer 7e are upgraded (step S303) with " space between current original text vocabulary pointer value+original text mark remittance line number+phrase ".Then, this translation vocabulary refers to that the display position data of 7f are upgraded with " space between current translation vocabulary pointer value+original text vocabulary line number+phrase ", and this process finishes (step S304).
On the other hand, when in this original text vocabulary line number of step S301 during greater than the line number of displayable residue vocabulary, the value of the translation vocabulary pointer 7f of the value of the original text vocabulary pointer 7e of this indication original text vocabulary display position and this indication translation vocabulary display position is all upgraded (step S305) with downward 2 row.Afterwards, check whether the display position of each pointer has exceeded the end row (step S306) of screen in the display unit 9.When the display position of this each pointer has exceeded the end of this screen during row, after the indication range of display unit 9 has scrolled up 2 row (step S307), this original text vocabulary and this translation vocabulary are displayed on by on the display position of original text vocabulary pointer 7e and translation vocabulary pointer 7f appointment (step S302).When the end that the display position of this each pointer does not exceed screen during row, this original text vocabulary and this translation vocabulary are displayed on by on the display position of original text vocabulary pointer 7e and translation vocabulary pointer 7f appointment (step S302).Then, the data of this original text vocabulary pointer 7e and translation vocabulary pointer 7f are updated to finish this process (step S303 and S304).
For example, when the English statement (being the original text statement) that is shown in Fig. 7 being carried out above-mentioned translation supporting process, as shown in Figure 8, those are stored in the vocabulary (being original text vocabulary) that does not need to translate in the vocabulary storer 6 in advance,, do not annotate with translation vocabulary as " I, hav; be; style, the " etc.Otherwise other vocabulary then needs translation as " always, broadcasting, should be, conversation " etc., and appropriate translation vocabulary is that unit annotates in each corresponding original text vocabulary with the fragment.
When translation vocabulary is annotated to corresponding original text vocabulary, according to the line number of original text vocabulary greater than the line number of translation vocabulary or the line number of translation vocabulary situation greater than the line number of original text vocabulary, demonstration along translation vocabulary or original text vocabulary is different at interval, between original text vocabulary and original text vocabulary, to set up position correspondence accurately, illustrated as above-mentioned procedure for displaying based on original text vocabulary and translation vocabulary.In addition, the line number of this original text vocabulary and translation vocabulary with can be relatively in the line number of the shown residue vocabulary of each display line.When the line number of these original text vocabulary and translation vocabulary during greater than the line number of displayable residue vocabulary, indication range is moved downward 2 row to show these original text vocabulary and translation vocabulary.When display line during at row of the end of screen, along with the roll display screen, display screen scrolls up 2 row to avoid only showing that original text vocabulary is capable.
Its result because the length of translation vocabulary is counted with behavior unit, is a unit with the phrase of original text vocabulary, and translation vocabulary can be located in corresponding original text vocabulary below, so any user can easily be the meaning of unit understanding original text statement with the speech.
Be used as one group of processing because capable and translation vocabulary is capable for the purpose original text vocabulary that shows and monitor, have and only operate the advantage that scroll key can confirm that one group of original text vocabulary/translation vocabulary shows, and to being improved by the efficient of the output function of the character string of this translation supporting process processing.Be shown because translation vocabulary is the unit with vocabulary, a series of translation statements that are different from prior art are shown, and can do simplyr than traditional translation supportive device according to the hardware and software of translating equipment of the present invention.Its result can provide and translate supportive device cheaply, and adopts the manufacturing cost of the word processor of this translation supportive device also can be lowered.
As previously mentioned, for an original text vocabulary, a plurality of translation vocabulary are deposited in this dictionary memory 4, when being each original text vocabulary demonstration translation vocabulary in the above-described embodiments, are deposited in the selected and output of translation vocabulary of dictionary memory 4 with the first estate.But also can adopt other translation vocabulary system of selection.Such as, a kind of method is to show a window, wherein translation vocabulary writes out along each row, to allow the user select an appropriate translation vocabulary from these translation vocabulary.Be the priority sequence that speech cliction of storage is converged such as, a kind of method again, and select the translation vocabulary of output according to this priority sequence.
Though translation vocabulary is presented at corresponding original text vocabulary below in the above-described embodiments, translation vocabulary also may be displayed on the top or the next door of corresponding original text vocabulary.In addition, though original text vocabulary and translation vocabulary all are shown in the above-described embodiments, the present invention is not limited to this.The present invention also can be applicable to the occasion that original text statement and translation statement all are printed out.