【Invention content】
The many aspects of the application provide a kind of processing method and processing device of page official documents and correspondence, to improve the processing of page official documents and correspondence
Efficiency and reliability.
The one side of the application provides a kind of processing method of page official documents and correspondence, including:
Official documents and correspondence template is obtained, the official documents and correspondence template includes at least one region;
Determine official documents and correspondence languages;
According to region and the correspondence of the official documents and correspondence information of the official documents and correspondence languages, obtain each at least one region
The official documents and correspondence information of the corresponding official documents and correspondence languages in region;
According to the official documents and correspondence of the corresponding official documents and correspondence languages in each region in the official documents and correspondence template and at least one region
Information obtains the page official documents and correspondence.
The aspect and any possible implementation manners as described above, it is further provided a kind of realization method, the determining text
Case languages, including:
Country according to belonging to target user determines the official documents and correspondence languages.
The aspect and any possible implementation manners as described above, it is further provided a kind of realization method, it is described according to institute
The official documents and correspondence information of the corresponding official documents and correspondence languages in each region in official documents and correspondence template and at least one region is stated, obtains the page
Face official documents and correspondence, including:
By the official documents and correspondence information of the corresponding official documents and correspondence languages in region each at least one region, it is mapped to the text
In case template, to obtain the page official documents and correspondence.
The aspect and any possible implementation manners as described above, it is further provided a kind of realization method, it is described according to area
It is corresponding described to obtain each region at least one region for domain and the correspondence of the official documents and correspondence information of the official documents and correspondence languages
Before the official documents and correspondence information of official documents and correspondence languages, further include:
The region and the correspondence of the official documents and correspondence information of the official documents and correspondence languages is configured.
The aspect and any possible implementation manners as described above, it is further provided a kind of realization method, the page text
Case includes mail official documents and correspondence, document official documents and correspondence or Web page official documents and correspondence.
The another aspect of the application provides a kind of processing unit of page official documents and correspondence, including:
Acquiring unit, for obtaining official documents and correspondence template, the official documents and correspondence template includes at least one region;
Determination unit, for determining official documents and correspondence languages;
Matching unit, for the correspondence according to region and the official documents and correspondence information of the official documents and correspondence languages, obtain described at least
The official documents and correspondence information of the corresponding official documents and correspondence languages in each region in one region;
Map unit, for according to the corresponding text in each region in the official documents and correspondence template and at least one region
The official documents and correspondence information of case languages obtains the page official documents and correspondence.
The aspect and any possible implementation manners as described above, it is further provided a kind of realization method, the determining list
Member is specifically used for
Country according to belonging to target user determines the official documents and correspondence languages.
The aspect and any possible implementation manners as described above, it is further provided a kind of realization method, the mapping are single
Member is specifically used for
By the official documents and correspondence information of the corresponding official documents and correspondence languages in region each at least one region, it is mapped to the text
In case template, to obtain the page official documents and correspondence.
The aspect and any possible implementation manners as described above, it is further provided a kind of realization method, described device is also
Including dispensing unit, it is used for
The region and the correspondence of the official documents and correspondence information of the official documents and correspondence languages is configured.
The aspect and any possible implementation manners as described above, it is further provided a kind of realization method, the page text
Case includes mail official documents and correspondence, document official documents and correspondence or Web page official documents and correspondence.
As shown from the above technical solution, the embodiment of the present application is included at least by obtaining official documents and correspondence template, the official documents and correspondence template
One region and determining official documents and correspondence languages, and then according to region and the correspondence of the official documents and correspondence information of the official documents and correspondence languages, obtain
The official documents and correspondence information of the corresponding official documents and correspondence languages in each region at least one region, enabling according to the official documents and correspondence mould
The official documents and correspondence information of the corresponding official documents and correspondence languages in each region, obtains the page official documents and correspondence in plate and at least one region,
Due to only needing to safeguard an official documents and correspondence template, without writing the page official documents and correspondence of required all languages versions, therefore, operation letter
It is single, and accuracy is high, so as to improve the efficiency and reliability of page official documents and correspondence processing.
In addition, the technical solution provided using the application, if the structure of page official documents and correspondence has adjustment, it is only necessary to adjust official documents and correspondence
The division in region in template, without rewriting the page official documents and correspondence of required all languages versions, so as to further
Improve the efficiency of page official documents and correspondence processing.
In addition, the technical solution provided using the application, if the target user of page official documents and correspondence has adjustment, for example, increasing
Target user of one languages etc., it is only necessary to the official documents and correspondence information corresponding to each region included by official documents and correspondence template is adjusted, without
The page official documents and correspondence of corresponding languages version is rewritten for the target user of adjustment, so as to further improve at page official documents and correspondence
The efficiency of reason.
【Specific embodiment】
Purpose, technical scheme and advantage to make the embodiment of the present application are clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical solution in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
The whole other embodiments obtained without creative efforts, shall fall in the protection scope of this application.
It should be noted that terminal involved in the embodiment of the present application can include but is not limited to mobile phone, individual digital
Assistant (Personal Digital Assistant, PDA), radio hand-held equipment, tablet computer (Tablet Computer),
PC (Personal Computer, PC), MP3 player, MP4 players etc..
In addition, the terms "and/or", only a kind of incidence relation for describing affiliated partner, represents there may be
Three kinds of relationships, for example, A and/or B, can represent:Individualism A exists simultaneously A and B, these three situations of individualism B.Separately
Outside, character "/" herein, it is a kind of relationship of "or" to typically represent forward-backward correlation object.
Fig. 1 is the flow diagram of the processing method of page official documents and correspondence that one embodiment of the application provides, as shown in Figure 1.
101st, official documents and correspondence template is obtained, the official documents and correspondence template includes at least one region.
Optionally, in a possible realization method of the present embodiment, in 101, specifically can according to official documents and correspondence content,
For example, title, text, slogan, image etc., carry out region division to official documents and correspondence template, official documents and correspondence template are divided into several regions, often
The size in a region is not particularly limited, as shown in Figure 2.It is understood that any other dividing mode can also be used,
Region division is carried out to official documents and correspondence template, the present embodiment is to this without being particularly limited to.
In this way, since the comparison of the region division mode of official documents and correspondence template is flexible, and can be adjusted at any time, so as to carry
The flexibility of high page official documents and correspondence processing and diversity.
Specifically, each region can be numbered, is 002 by the number of region 2 for example, being 001 by the number of region 1,
It is 003 by the number of region 3, is 004 by the number of region 4, be 005 by the number of region 5, is 006 by the number of region 6.Then, it is every
A region sets a variable, for example, region 1 is set as variable $ 001, region 2 is set as variable $ 002, and region 3 is set as becoming
$ 003 is measured, region 4 is set as variable $ 004, and region 5 is set as variable $ 005, and region 6 is set as variable $ 006.
In this way, the operation by setting variable, it can be by the relevant variable in each region included in official documents and correspondence template
It is associated.
102nd, official documents and correspondence languages are determined.
It optionally,, specifically can be according to target user in 102 in a possible realization method of the present embodiment
Affiliated country determines the official documents and correspondence languages.Wherein, the audient of spoken and written languages that target user can be to be presented in page official documents and correspondence
Side, for example, member of a website etc..It specifically, can be according to the log-on message of target user, for example, IP address, Guo Jixin
Breath etc., determines the country belonging to the target user, as shown in table 1, and then further according to affiliated country, determines the official documents and correspondence language
Kind.
1 target user of table and the correspondence of affiliated country
Target user |
Country |
Zhang San |
China |
Mary |
The U.S. |
…… |
…… |
103rd, it according to region and the correspondence of the official documents and correspondence information of the official documents and correspondence languages, obtains at least one region
The official documents and correspondence information of the corresponding official documents and correspondence languages in each region.
Optionally, in a possible realization method of the present embodiment, before 103, institute can also further be configured
State region and the correspondence of the official documents and correspondence information of the official documents and correspondence languages.By taking the region division of official documents and correspondence template shown in Fig. 2 as an example, institute
The region of configuration and the correspondence of the official documents and correspondence information of the official documents and correspondence languages can be as shown in table 2.
2 region of table and the correspondence of the official documents and correspondence information of official documents and correspondence languages
Official documents and correspondence languages |
$001 |
$002 |
$003 |
$004 |
$005 |
$006 |
The official documents and correspondence information of Chinese |
Official documents and correspondence A1 |
Official documents and correspondence A2 |
Official documents and correspondence A3 |
Official documents and correspondence A4 |
Official documents and correspondence A5 |
Official documents and correspondence A6 |
The official documents and correspondence information of English |
Official documents and correspondence B1 |
Official documents and correspondence B2 |
Official documents and correspondence B3 |
Official documents and correspondence B4 |
Official documents and correspondence B5 |
Official documents and correspondence B6 |
The official documents and correspondence information of French |
Official documents and correspondence C1 |
Official documents and correspondence C2 |
Official documents and correspondence C3 |
Official documents and correspondence C4 |
Official documents and correspondence C5 |
Official documents and correspondence C6 |
The official documents and correspondence information of German |
Official documents and correspondence D1 |
Official documents and correspondence D2 |
Official documents and correspondence D3 |
Official documents and correspondence D4 |
Official documents and correspondence D5 |
Official documents and correspondence D6 |
The official documents and correspondence information of Russian |
Official documents and correspondence E1 |
Official documents and correspondence E2 |
Official documents and correspondence E3 |
Official documents and correspondence E4 |
Official documents and correspondence E5 |
Official documents and correspondence E6 |
…… |
…… |
…… |
…… |
…… |
…… |
…… |
It is understood that table 2 can also be further made of several sublists, for example, for representing region and Chinese
Official documents and correspondence information correspondence sublist A, for representing the sublist B of the correspondence of the official documents and correspondence information in region and English, use
In sublist C of correspondence of official documents and correspondence information for representing region and French etc., as long as the text in region and each languages can be represented
The form of the correspondence of case information can, the present embodiment is to this without being particularly limited to.
104th, according to the corresponding official documents and correspondence languages in each region in the official documents and correspondence template and at least one region
Official documents and correspondence information obtains the page official documents and correspondence.
It optionally, in 104, specifically can be at least one by described in a possible realization method of the present embodiment
The official documents and correspondence information of the corresponding official documents and correspondence languages in each region, is mapped in the official documents and correspondence template, with described in acquisition in a region
Page official documents and correspondence.
Specifically, can by the official documents and correspondence information of the corresponding official documents and correspondence languages in region each at least one region,
It is mapped in the official documents and correspondence template in corresponding region, to obtain the page official documents and correspondence.
For example, it is assumed that official documents and correspondence template has been divided 6 regions, each region is provided with a variable, i.e. variable field point
It Wei not $ 001, $ 002, $ 003, $ 004, $ 005 and $ 006.So, then each variable field can be traversed, by each variable field
The official documents and correspondence information of the corresponding official documents and correspondence languages in indicated region, replaces corresponding variable field successively, to generate finally
Page official documents and correspondence.
Optionally, in a possible realization method of the present embodiment, the page official documents and correspondence involved by the application can wrap
It includes but is not limited to mail official documents and correspondence, document official documents and correspondence or Web page official documents and correspondence, the present embodiment is to this without being particularly limited to.
Wherein, mail official documents and correspondence is the official documents and correspondence for showing content with mail he, and mail can include but is not limited to plain text class
Type mail and hypertext markup language (HyperText Markup Language, HTML) type mail.
Wherein, document official documents and correspondence is the official documents and correspondence for showing content with document form.Document can include but is not limited to WORD documents,
EXCEL document or PDF document.
Wherein, WWW (World Wide Web, Web) page official documents and correspondence is the official documents and correspondence for showing content in the form of Web page.
Web page can include being marked by one or more hypertext markup language (HyperText Markup Language, HTML)
A display block of composition, referred to as page elements are signed, for example, text, label, hyperlink, button, input frame, combobox etc..
It, can be with for example, page editing device etc. it should be noted that 101~104 executive agent can be processing unit
In the client being located locally, to carry out processed offline or may be located in the server of network side, to be located online
Reason or can also partial function be located in client, partial function is located in server, with progress offline with online junction
Reason, the present embodiment is to this without being particularly limited to.
It is understood that application program that the client can be mounted in terminal or can also be browsing
One webpage of device, if can realize the page official documents and correspondence processing objective reality form can, the present embodiment to this without
It is particularly limited to.
Existing processing method needs to write the page official documents and correspondence of various languages versions one by one by operating personnel.For example, for
The user of Chinese writes the page official documents and correspondence of a Chinese version, for the user of English, writes the page text of an english language version
Case etc..Due to needing to write the page official documents and correspondence of multiple languages versions so that it is complicated for operation, and easily malfunction, so as to cause
The reduction of the efficiency and reliability of page official documents and correspondence processing.
The technical solution provided using the application, it is required without writing due to only needing to safeguard an official documents and correspondence template
The page official documents and correspondence of all languages versions, it is therefore, easy to operate, and also accuracy is high.
In the present embodiment, by obtaining official documents and correspondence template, the official documents and correspondence template includes at least one region and determining official documents and correspondence
Languages, and then according to region and the correspondence of the official documents and correspondence information of the official documents and correspondence languages, obtain every at least one region
The official documents and correspondence information of the corresponding official documents and correspondence languages in a region, enabling according to the official documents and correspondence template and at least one region
In each corresponding official documents and correspondence languages in region official documents and correspondence information, the page official documents and correspondence is obtained, due to only needing to safeguard a text
Case template, it is therefore, easy to operate without writing the page official documents and correspondence of required all languages versions, and also accuracy is high, so as to
Improve the efficiency and reliability of page official documents and correspondence processing.
In addition, the technical solution provided using the application, if the structure of page official documents and correspondence has adjustment, it is only necessary to adjust official documents and correspondence
The division in region in template, without rewriting the page official documents and correspondence of required all languages versions, so as to further
Improve the efficiency of page official documents and correspondence processing.
In addition, the technical solution provided using the application, if the target user of page official documents and correspondence has adjustment, for example, increasing
Target user of one languages etc., it is only necessary to the official documents and correspondence information corresponding to each region included by official documents and correspondence template is adjusted, without
The page official documents and correspondence of corresponding languages version is rewritten for the target user of adjustment, so as to further improve at page official documents and correspondence
The efficiency of reason.
It should be noted that for aforementioned each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the application is not limited by described sequence of movement because
According to the application, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily the application
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
Fig. 3 is the structure diagram of the processing unit of page official documents and correspondence that another embodiment of the application provides, as shown in Figure 3.
It is single that the processing unit of the page official documents and correspondence of the present embodiment can include acquiring unit 31, determination unit 32, matching unit 33 and mapping
Member 34.Wherein, acquiring unit 31, for obtaining official documents and correspondence template, the official documents and correspondence template includes at least one region;Determination unit
32, for determining official documents and correspondence languages;Matching unit 33, for being closed according to region is corresponding with the official documents and correspondence information of the official documents and correspondence languages
System obtains the official documents and correspondence information of the corresponding official documents and correspondence languages in each region at least one region;Map unit 34, is used for
According to the official documents and correspondence information of the corresponding official documents and correspondence languages in each region in the official documents and correspondence template and at least one region, obtain
The page official documents and correspondence.
Optionally, in a possible realization method of the present embodiment, the acquiring unit 31 specifically can be according to text
Case content, for example, title, text, slogan, image etc., carry out region division to official documents and correspondence template, official documents and correspondence template is divided into several
Region, the size in each region are not particularly limited, as shown in Figure 2.It is understood that the acquiring unit 31 can also adopt
With any other dividing mode, region division is carried out to official documents and correspondence template, the present embodiment is to this without being particularly limited to.
In this way, since the comparison of the region division mode of official documents and correspondence template is flexible, and can be adjusted at any time, so as to carry
The flexibility of high page official documents and correspondence processing and diversity.
Specifically, each region can be numbered, is 002 by the number of region 2 for example, being 001 by the number of region 1,
It is 003 by the number of region 3, is 004 by the number of region 4, be 005 by the number of region 5, is 006 by the number of region 6.Then, it is every
A region sets a variable, for example, region 1 is set as variable $ 001, region 2 is set as variable $ 002, and region 3 is set as becoming
$ 003 is measured, region 4 is set as variable $ 004, and region 5 is set as variable $ 005, and region 6 is set as variable $ 006.
In this way, the operation by setting variable, it can be by the relevant variable in each region included in official documents and correspondence template
It is associated.
Optionally, in a possible realization method of the present embodiment, the determination unit 32 specifically can be used for root
According to the country belonging to target user, the official documents and correspondence languages are determined.Wherein, the language that target user can be to be presented in page official documents and correspondence
The audient side of word, for example, member of a website etc..Specifically, the determination unit 32 can be according to the note of target user
Volume information, for example, IP address, nationality's information etc., determine the country belonging to the target user, as shown in table 1, and then further according to institute
The country of category determines the official documents and correspondence languages.
Optionally, in a possible realization method of the present embodiment, as shown in figure 4, the page provided in this embodiment
The processing unit of official documents and correspondence can further include dispensing unit 41, for the official documents and correspondence in the region and the official documents and correspondence languages to be configured
The correspondence of information.By taking the region division of official documents and correspondence template shown in Fig. 2 as an example, the area that the dispensing unit 41 is configured
The correspondence of domain and the official documents and correspondence information of the official documents and correspondence languages can be as shown in table 2.
It is understood that table 2 can also be further made of several sublists, for example, for representing region and Chinese
Official documents and correspondence information correspondence word Table A, for representing the word table B of the correspondence of the official documents and correspondence information in region and English, use
In word table C of correspondence of official documents and correspondence information for representing region and French etc., as long as the text in region and each languages can be represented
The form of the correspondence of case information can, the present embodiment is to this without being particularly limited to.
Optionally, in a possible realization method of the present embodiment, the map unit 34 specifically can be used for by
The official documents and correspondence information of the corresponding official documents and correspondence languages in each region, is mapped in the official documents and correspondence template at least one region,
To obtain the page official documents and correspondence.
Specifically, the map unit 34 can be by the corresponding official documents and correspondence language in region each at least one region
The official documents and correspondence information of kind, is mapped in the official documents and correspondence template in corresponding region, to obtain the page official documents and correspondence.
For example, it is assumed that official documents and correspondence template has been divided 6 regions, each region is provided with a variable, i.e. variable field point
It Wei not $ 001, $ 002, $ 003, $ 004, $ 005 and $ 006.So, the map unit 34 can then traverse each variable field,
By the official documents and correspondence information of the corresponding official documents and correspondence languages in the region indicated by each variable field, corresponding variable word is replaced successively
Section, to generate final page official documents and correspondence.
Optionally, in a possible realization method of the present embodiment, the page official documents and correspondence involved by the application can wrap
It includes but is not limited to mail official documents and correspondence, document official documents and correspondence or Web page official documents and correspondence, the present embodiment is to this without being particularly limited to.
Wherein, mail official documents and correspondence is the official documents and correspondence for showing content with mail he, and mail can include but is not limited to plain text class
Type mail and hypertext markup language (HyperText Markup Language, HTML) type mail.
Wherein, document official documents and correspondence is the official documents and correspondence for showing content with document form.Document can include but is not limited to WORD documents,
EXCEL document or PDF document.
Wherein, WWW (World Wide Web, Web) page official documents and correspondence is the official documents and correspondence for showing content in the form of Web page.
Web page can include being marked by one or more hypertext markup language (HyperText Markup Language, HTML)
A display block of composition, referred to as page elements are signed, for example, text, label, hyperlink, button, input frame, combobox etc..
It should be noted that the processing unit of page official documents and correspondence provided in this embodiment is for example, page editing device etc., Ke Yiwei
In local client, to carry out processed offline or may be located in the server of network side, to be located online
Reason or can also partial function be located in client, partial function is located in server, with progress offline with online junction
Reason, the present embodiment is to this without being particularly limited to.
It is understood that application program that the client can be mounted in terminal or can also be browsing
One webpage of device, if can realize the page official documents and correspondence processing objective reality form can, the present embodiment to this without
It is particularly limited to.
Existing processing method needs to write the page official documents and correspondence of various languages versions one by one by operating personnel.For example, for
The user of Chinese writes the page official documents and correspondence of a Chinese version, for the user of English, writes the page text of an english language version
Case etc..Due to needing to write the page official documents and correspondence of multiple languages versions so that it is complicated for operation, and easily malfunction, so as to cause
The reduction of the efficiency and reliability of page official documents and correspondence processing.
The technical solution provided using the application, it is required without writing due to only needing to safeguard an official documents and correspondence template
The page official documents and correspondence of all languages versions, it is therefore, easy to operate, and also accuracy is high.
In the present embodiment, by acquiring unit obtain official documents and correspondence template, the official documents and correspondence template include at least one region and
Determination unit determines official documents and correspondence languages, and then is closed by matching unit according to region is corresponding with the official documents and correspondence information of the official documents and correspondence languages
System obtains the official documents and correspondence information of the corresponding official documents and correspondence languages in each region at least one region so that map unit energy
The enough official documents and correspondence information according to the corresponding official documents and correspondence languages in each region in the official documents and correspondence template and at least one region obtains
The page official documents and correspondence is obtained, due to only needing to safeguard an official documents and correspondence template, without writing the page of required all languages versions
Official documents and correspondence, it is therefore, easy to operate, and also accuracy is high, so as to improve the efficiency and reliability of page official documents and correspondence processing.
In addition, the technical solution provided using the application, if the structure of page official documents and correspondence has adjustment, it is only necessary to adjust official documents and correspondence
The division in region in template, without rewriting the page official documents and correspondence of required all languages versions, so as to further
Improve the efficiency of page official documents and correspondence processing.
In addition, the technical solution provided using the application, if the target user of page official documents and correspondence has adjustment, for example, increasing
Target user of one languages etc., it is only necessary to the official documents and correspondence information corresponding to each region included by official documents and correspondence template is adjusted, without
The page official documents and correspondence of corresponding languages version is rewritten for the target user of adjustment, so as to further improve at page official documents and correspondence
The efficiency of reason.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of division of logic function can have other dividing mode, such as multiple units or component in actual implementation
It may be combined or can be integrated into another system or some features can be ignored or does not perform.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit
It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also
That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in one and computer-readable deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, is used including some instructions so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) perform the application
The part steps of embodiment the method.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various
The medium of program code can be stored.
Finally it should be noted that:Above example is only to illustrate the technical solution of the application, rather than its limitations;Although
The application is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:It still may be used
To modify to the technical solution recorded in foregoing embodiments or carry out equivalent replacement to which part technical characteristic;
And these modification or replace, each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution spirit and
Range.