CN113392356B - Wen An adapting method, device and storage medium - Google Patents

Wen An adapting method, device and storage medium Download PDF

Info

Publication number
CN113392356B
CN113392356B CN202110722079.9A CN202110722079A CN113392356B CN 113392356 B CN113392356 B CN 113392356B CN 202110722079 A CN202110722079 A CN 202110722079A CN 113392356 B CN113392356 B CN 113392356B
Authority
CN
China
Prior art keywords
element data
file element
effective area
file
local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110722079.9A
Other languages
Chinese (zh)
Other versions
CN113392356A (en
Inventor
王超
葛胜利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202110722079.9A priority Critical patent/CN113392356B/en
Publication of CN113392356A publication Critical patent/CN113392356A/en
Priority to PCT/CN2022/094414 priority patent/WO2023273694A1/en
Application granted granted Critical
Publication of CN113392356B publication Critical patent/CN113392356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a document adaptation method, a document adaptation device and a storage medium, which are used for receiving a request instruction sent by a client; responding to the request instruction to obtain file element data and function identification information thereof; based on the function identification information, determining local file element data corresponding to the function identification information in a preset file database; and determining incremental file element data based on the file element data and the local file element data and sending the incremental file element data to the client. Because the local preset file database has the local file element data corresponding to the file element data sent by the clients of different types of the same application. The server obtains the incremental file element data corresponding to the latest version of the file by detecting the file element data of different clients, and sends the incremental file element data to the clients for the clients to update the corresponding file element data into the corresponding incremental file element data, so that the file adaptation degree of the clients of different types of the same application can be improved.

Description

Wen An adapting method, device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers and the Internet, in particular to a document adaptation method, a document adaptation device and a storage medium.
Background
The text refers to the characters displayed to the user in Application (APP) or web page. In the prior art, the document can be stored in different positions, and the storage positions of the document can be divided into two types:
1. stored in APP, local repository of web pages, can be displayed without network.
2. The APP, the webpage and the like are stored in the server and can be displayed after being acquired through the network.
Currently, most APP, web pages, and servers generally store a plurality of corresponding language documents in code engineering of the documents in order to adapt to business processes of a plurality of countries. APP, webpage can select different language text according to different countries and carry out the adaptation and show. Illustratively, in connection with fig. 1: when the APP or the webpage is applied in English countries, the APP or the webpage displays English documents. APP or webpage can call cancel corresponding to Key1 to display, and APP or webpage can call confirm corresponding to Key2 to display. When an APP or web page is applied in a chinese country, the APP or web page displays a chinese document. The APP or the webpage can call cancellation corresponding to the Key1 to display, and the APP or the webpage can call determination corresponding to the Key2 to display.
When an APP, a web page and a server corresponding to one application are applicable to countries with different languages, a set of corresponding language adaptation documents are provided in local resources of the APP, the web page and the server. Because the adaptation files corresponding to the APP, the webpage and the server are not developed and maintained by a team, the files corresponding to the same business flow of the APP, the webpage and the server of the same application are often caused to be different.
Disclosure of Invention
The document adaptation method, the device and the storage medium provided by the embodiment of the invention can improve the document adaptation degree of different types of clients of the same application.
The technical scheme of the invention is realized as follows:
the embodiment of the invention provides a document adaptation method, which comprises the following steps:
receiving a request instruction sent by a client;
responding to the request instruction to obtain file element data and function identification information thereof;
based on the function identification information, determining local file element data corresponding to the function identification information in a preset file database;
determining delta file element data based on the file element data and the local file element data;
and sending the incremental file element data to the client for use by the client.
In the above scheme, the file element data includes: the function identification information, the at least one effective area information and the at least one version number corresponding to the at least one effective area information form an array;
the local file element data includes: the system comprises an array formed by local function identification information, at least one local effective area information, at least one local version number corresponding to the at least one local effective area information and at least one local document content information corresponding to the at least one local version number;
wherein the function identification information is the same as the local function identification information.
In the above solution, the determining delta file element data based on the text element data and the local file element data includes:
and if the version number in the file element data is smaller than the local version number in the local file element data, determining that the local file element data is the incremental file element data.
In the above solution, the determining delta file element data based on the text element data and the local file element data includes:
and if at least one effective area information in the file element data has no corresponding version number, determining the local file element data as the incremental file element data.
In the above solution, if the version number in the file element data is smaller than the local version number in the local file element data, determining that the local file element data is the incremental file element data includes:
if the at least one version number in the file element data is lower than a first version number of any local version number which is the same as the effective area information in the local file element data, forming the increment file element data based on the local function identification information, a destination sample local version number which corresponds to the first version number in the local file element data, destination sample effective area information which corresponds to the destination sample local version number and destination sample file content information; wherein the destination local version number is a local version number higher than a version of the first version number.
In the above scheme, the method further comprises:
and if the at least one version number is the same as the corresponding at least one local version number, determining that the file element data does not have the corresponding incremental file element data.
In the above scheme, the responding to the request instruction to obtain file element data and function identification information thereof includes:
And responding to the request instruction, analyzing the request instruction to obtain the file element data, and the function identification information and at least one effective area information corresponding to the function identification information included in the file element data.
In the above scheme, the responding to the request instruction to obtain file element data and function identification information thereof includes:
and responding to the request instruction, analyzing the request instruction to obtain the file element data, and the function identification information, at least one effective area information corresponding to the function identification information and at least one version number corresponding to the at least one effective area information which are included in the file element data.
In the above solution, before the receiving the request instruction sent by the client, the method further includes:
receiving replacement identification information of a replacement document;
determining target replacement effective area information based on the replacement identification information;
and receiving replacement document content information, replacing local document content information corresponding to the target replacement effective area information by adopting the replacement document content information, obtaining replacement local document element data, and updating the replacement local document element data to the preset document database.
In the above solution, the determining, based on the replacement identification information, target replacement effective area information includes:
if the replacement identification information exists in the preset file database and the local effective area information corresponding to the replacement identification information exists in the preset file database, determining the target replacement effective area information; or,
if the replacement identification information exists in the preset file database and the target replacement effective area information does not exist in the local effective area information corresponding to the replacement identification information in the preset file database, or the replacement identification information does not exist in the preset file database and the replacement identification information is correct and unique, displaying prompt information for adding the effective area information;
and receiving new effective area information fed back in response to the prompt information, wherein the new effective area information is used as the target replacement effective area information.
In the above solution, after receiving the new effective area information fed back in response to the prompt information, the new effective area information is used as the target replacement effective area information, the method further includes:
Detecting whether the new effective area information is correct and unique;
and if the new effective area information is detected to be correct and unique, adding the new effective area information into the local effective area information, and determining the new effective area information as the target replacement effective area information.
In the above scheme, the method further comprises:
and if the new effective area information is detected to be wrong or not unique, displaying the new effective area information input mistake or existing prompt information on the current page.
In the above solution, after receiving the replacement identification information of the replacement document, the method further includes:
and if the error or the non-uniqueness of the replacement identification information is detected, displaying the input error or the existing prompt information of the replacement identification information on the current page.
In the above scheme, the receiving the replacement document content information, replacing the local document content information corresponding to the target replacement effective area information with the replacement document content information, obtaining the replacement local document element data, and updating the replacement local document element data to the preset document database, includes:
receiving the replacement document content information, and replacing the local document content information corresponding to the target replacement effective area information by adopting the replacement document content information;
Acquiring a replacement version number corresponding to the target replacement effective area information, configuring the corresponding replacement version number for the target replacement effective area information, and further obtaining the replacement local file element data;
and updating the element data of the replaced local file to the preset file database.
The embodiment of the invention also provides a document adaptation method, which comprises the following steps:
acquiring a touch instruction of a target object, responding to the touch instruction, and extracting file element data at a storage position corresponding to a document; the file element data includes: the function identification information of the document;
carrying the file element data in a request instruction and sending the request instruction to a server;
receiving incremental file element data fed back by the server in response to the request instruction; the incremental file elements are derived based on the file element data and local file element data in the server;
and updating the incremental file element data to the corresponding target storage position based on the function identification information for use.
In the above scheme, the acquiring the touch instruction of the target object, responding to the touch instruction, and extracting file element data at a storage position corresponding to the document includes:
Acquiring the touch instruction of the target object, responding to the touch instruction, and extracting the function identification information and at least one effective area information corresponding to the document at a storage position corresponding to the document;
and forming the file element data based on the function identification information and the at least one effective area information.
In the above scheme, the acquiring the touch instruction of the target object, responding to the touch instruction, and extracting file element data at a storage position corresponding to the document includes:
acquiring the touch instruction of the target object, responding to the touch instruction, and extracting the function identification information, at least one effective area information and at least one version number corresponding to the at least one effective area information corresponding to the document at a storage position corresponding to the document;
the file element data is formed based on the function identification information, the at least one effective area information, and the at least one version number.
In the above solution, the updating the incremental file element data to the corresponding target storage location based on the function identification information for use includes:
analyzing the incremental file element data to obtain update identification information, at least one update effective area information, at least one update version number corresponding to the at least one update effective area information and at least one update file content information corresponding to the at least one update effective area information in the incremental file element data;
Determining the target storage position corresponding to the function identification information in a local storage;
storing the at least one update validation area information, the at least one update version number, and the at least one update file content information corresponding classification in the target storage location for use.
In the above scheme, the method further includes, in response to the touch instruction, before extracting the file element data from the storage location corresponding to the file, where the touch instruction of the target object is acquired:
acquiring initial data of file elements; the file element initial data includes: the function identification information and at least one validation area information of the document;
and storing the file element initial data in a storage position of a corresponding file.
In the above solution, after the file element data is carried in a request instruction and sent to a server, the method further includes:
if the incremental file element data fed back by the server is not received, detecting whether the file is updated for the first time;
detecting that the file is updated for the first time, and reporting errors to the file.
In the above aspect, after updating the incremental file element data to the corresponding target storage location based on the function identification information for use, the method further includes:
When a document to be displayed is displayed, obtaining the identification information to be displayed and the effective area information to be displayed of the document to be displayed;
and determining a to-be-displayed storage position corresponding to the to-be-displayed file in local storage based on the to-be-displayed identification information, and extracting to-be-displayed file content information corresponding to the to-be-displayed effective area information at the to-be-displayed storage position for display.
The embodiment of the invention also provides a document adapting device, which comprises:
the first receiving unit is used for receiving a request instruction sent by the client;
the first response unit is used for responding to the request instruction to obtain file element data and function identification information thereof;
the first processing unit is used for determining local file element data corresponding to the function identification information in a preset file database based on the function identification information;
a determining unit configured to determine delta file element data based on the text element data and local file element data;
and the first sending unit is used for sending the incremental file element data to the client for use by the client.
The embodiment of the invention also provides a document adapting device, which comprises:
The acquisition unit is used for acquiring a touch instruction of a target object and responding to the touch instruction;
the extraction unit is used for extracting file element data at a storage position corresponding to the file; the file element data includes: the function identification information of the document;
the second sending unit is used for carrying the file element data in a request instruction and sending the request instruction to a server;
the second receiving unit is used for receiving incremental file element data fed back by the server in response to the request instruction; the incremental file elements are derived based on the file element data and local file element data in the server;
and the storage unit is used for updating the incremental file element data to the corresponding target storage position based on the function identification information so as to be used.
The embodiment of the invention also provides a document adapting device, which comprises a first memory and a first processor, wherein the first memory stores a computer program which can be run on the first processor, and the first processor realizes steps in a server side method when executing the program.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a first processor implements steps in a server-side method.
The embodiment of the invention also provides a document adapting device, which comprises a second memory and a second processor, wherein the second memory stores a computer program which can be run on the second processor, and the second processor realizes the steps in the client side method when executing the program.
The embodiment of the invention also provides a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a second processor, implements steps in a client method.
In the embodiment of the invention, a request instruction sent by a client is received; responding to the request instruction to obtain file element data and function identification information thereof; based on the function identification information, determining local file element data corresponding to the function identification information in a preset file database; determining delta file element data based on the file element data and the local file element data; and sending the incremental file element data to the client for use by the client. Because the local preset file database has the local file element data corresponding to the file element data sent by the clients of different types of the same application. The server obtains the incremental file element data corresponding to the latest version of the file by detecting the file element data of different clients, and sends the incremental file element data to the clients for the clients to update the corresponding file element data into the corresponding incremental file element data, so that the file adaptation degree of the clients of different types of the same application can be improved.
Drawings
Fig. 1 is a schematic diagram of an adaptation effect of a prior art document according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram showing an optional effect of the document adaptation method according to the embodiment of the present invention;
FIG. 4 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 7 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 8 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 9 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 10 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 11 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 12 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 13 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 14 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 15 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 16 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 17 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 18 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 19 is a schematic view showing an optional effect of the document adaptation method according to the embodiment of the present invention;
FIG. 20 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 21 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 22 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 23 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention;
FIG. 24 is an interaction diagram of a document adaptation method provided by an embodiment of the present invention;
Fig. 25 is a schematic structural diagram of a document adapter according to an embodiment of the present invention;
fig. 26 is a schematic hardware diagram of a document adapter according to an embodiment of the present invention;
fig. 27 is a schematic structural diagram II of a document adapter according to an embodiment of the present invention;
fig. 28 is a second hardware entity diagram of the document adapter according to the embodiment of the present invention.
Detailed Description
The technical solution of the present invention will be further elaborated with reference to the accompanying drawings and examples, which should not be construed as limiting the invention, but all other embodiments which can be obtained by one skilled in the art without making inventive efforts are within the scope of protection of the present invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
If a similar description of "first/second" appears in the present document, the following description is added, in which the terms "first/second/third" merely distinguish similar objects and do not represent a specific ordering of the objects, it being understood that the "first/second/third" may, where allowed, interchange a specific order or precedence order such that the embodiments of the invention described herein can be implemented in an order other than that illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
Fig. 2 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention, and will be described with reference to the steps shown in fig. 2.
S101, receiving a request instruction sent by a client.
In the embodiment of the invention, the server receives the request instruction sent by the client through the communication line pre-established with the client. The request instruction is sent to the server after the target corresponding to the client opens the client.
In the embodiment of the invention, the request instruction received by the server can carry one file element data or a plurality of file element data.
The file element data comprises function identification information of the corresponding file.
The client may be an application program installed on the device terminal, for example: APP. The client may also be an application website in a web page.
S102, responding to the request instruction to obtain file element data and function identification information thereof.
In the embodiment of the invention, the server receives the request instruction sent by the client through the communication line pre-established with the client. The request instruction carries file element data of a file corresponding to the client. And the server responds to the request instruction and analyzes the file element data to obtain the function identification information contained in the file element data.
In the embodiment of the invention, the server receives the request instructions sent by different types of clients through communication lines pre-established by the different types of clients and the server of the same application. The request instructions of the clients of different types respectively carry a plurality of file element data corresponding to a plurality of files. The server analyzes the file element data of the clients of different types to obtain the function identification information corresponding to the file element data.
For example, one of the function identification information may be a character string of "0102".
For example, in connection with fig. 3, file element data corresponding to one of the files is shown. The function identification information corresponding to the document is Key_Cancel. The area identification information corresponding to the document may be "Chinese", "englist", and "thailand". Wherein, the version number corresponding to "Chinese" is V1.0. The version number corresponding to "englist" is V2.0. The version number corresponding to "thailand" is V1.2.
In the embodiment of the invention, the request instruction can be an encoded character string, voice information or text information.
In the embodiment of the invention, the server responds to the request instruction and analyzes the file element data to obtain the function identification information and at least one effective area information corresponding to the file element data. The server may also obtain function identification information, at least one effective area information, and at least one version number corresponding to the at least one effective area information, which respectively correspond to the plurality of file element data.
S103, based on the function identification information, determining local file element data corresponding to the function identification information in a preset file database.
In the embodiment of the invention, a preset file database of the server stores a plurality of local file element data corresponding to the client. The function identification information of the corresponding file is the same as the local function identification information in the local file element data. The server can determine the corresponding local file element data in the preset file database through the function identification information in the file element data.
Wherein each local file element data comprises: the local function identification information, the at least one local validation area information, the at least one local version number corresponding to the at least one local validation area information and the at least one local document content information corresponding to the at least one local validation area information of the corresponding document.
In the embodiment of the invention, the file element data comprises: the function identification information, the at least one effective area information and the at least one version number corresponding to the at least one effective area information. The local file element data includes: the system comprises an array formed by local function identification information, at least one local effective area information, at least one local version number corresponding to the at least one local effective area information and at least one local document content information corresponding to the at least one local version number; wherein the function identification information is the same as the local function identification information.
S104, determining the incremental file element data based on the file element data and the local file element data.
In the embodiment of the invention, the server obtains the local file element data corresponding to the file element data. The server detects that the local file element data is the local file element data updated by the file content information corresponding to the file element data. The server determines the local file element data as delta file element data.
In the embodiment of the invention, the server obtains the local file element data corresponding to the file element data. The server compares the version number in the file element data with the local version number in the corresponding local file element data. If the server compares the local version numbers in the local file element data to obtain the local version numbers higher than the corresponding version numbers, the server determines that the local file element data is incremental file element data.
In the embodiment of the invention, the server obtains a plurality of local file element data corresponding to the file element data. The server compares the version number in each file element data with the local version number in the corresponding local file element data. If the server compares the local version numbers in at least one local file element data in the plurality of local file element data to be higher than the corresponding version numbers, the server determines the at least one local file element data to be at least one incremental file element data.
Wherein, the representation in the incremental file element data corresponds to the file content information of the latest version of the file.
S105, the incremental file element data is sent to the client for use by the client.
In the embodiment of the invention, the server transmits the incremental file element data corresponding to the client through a communication line pre-established with the client. After receiving the incremental file element data, the client extracts updated file content information in the incremental file element data, stores the updated file content information in a storage position of the file content information of the corresponding file, and deletes the corresponding file content information.
In the embodiment of the invention, the server transmits the incremental file element data corresponding to the client through a communication line pre-established with the client. After receiving the incremental file element data, the client extracts updated file content information and a corresponding updated version number in the incremental file element data, stores the updated file content information in a storage position of the file content information of the corresponding file, deletes the corresponding file content information, stores the updated version number in a storage position of the version number of the corresponding file, and deletes the corresponding version number.
In the embodiment of the invention, a request instruction sent by a client is received; responding to the request instruction to obtain file element data and function identification information thereof; based on the function identification information, determining local file element data corresponding to the function identification information in a preset file database; determining delta file element data based on the file element data and the local file element data; and sending the incremental file element data to the client for use by the client. Because the local preset file database has the local file element data corresponding to the file element data sent by the clients of different types of the same application. The server obtains the incremental file element data corresponding to the latest version of the file by detecting the file element data of different clients, and sends the incremental file element data to the clients for the clients to update the corresponding file element data into the corresponding incremental file element data, so that the file adaptation degree of the clients of different types of the same application can be improved.
In some embodiments, referring to fig. 4, fig. 4 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, S102 shown in fig. 2 may be implemented by S106, and the description will be made in connection with the steps.
S106, responding to the request instruction, analyzing the request instruction to obtain file element data, and function identification information included in the file element data, at least one effective area information corresponding to the function identification information and at least one version number corresponding to the at least one effective area information.
In the embodiment of the invention, when the target object of the client does not start the client for the first time, the client sends a request instruction to the server. The server receives a request instruction sent by the client through a communication line pre-established with the client. The server responds to the request instruction, analyzes the request instruction, and obtains file element data, function identification information included in the file element data, at least one effective area information corresponding to the function identification information and at least one version number corresponding to the at least one effective area information.
In some embodiments, referring to fig. 4, fig. 4 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, S104 shown in fig. 2 may be implemented by S107, and the description will be made with reference to the steps.
And S107, if the version number in the file element data is smaller than the local version number in the local file element data, determining that the local file element data is incremental file element data.
In the embodiment of the invention, the server compares at least one version number of the file element data with at least one version number in the corresponding local file element data. If the version numbers in the file element data are smaller than the local version numbers in the local file element data, the server determines that the local file element data are incremental file element data.
In some embodiments, referring to fig. 5, fig. 5 is a schematic flowchart of an alternative document adaptation method provided in the embodiment of the present invention, S106 shown in fig. 4 may be implemented by S108, and the description will be made in connection with the steps.
S108, responding to the request instruction, analyzing the request instruction to obtain file element data, and function identification information contained in the file element data and at least one effective area information corresponding to the function identification information.
In the embodiment of the invention, when the target object of the client opens the client for the first time, the client sends a request instruction to the server. The server receives a request instruction sent by the client through a communication line pre-established with the client. The server responds to the request instruction, analyzes the request instruction, and obtains file element data, function identification information included in the file element data and at least one effective area information corresponding to the function identification information.
It should be noted that, when the client is started for the first time, the file element data in the request instruction sent by the client to the server only includes the function identification information and at least one effective area information of the corresponding file, and does not include the version number and the file content information corresponding to the at least one effective area information.
In some embodiments, referring to fig. 5, fig. 5 is a schematic flowchart of an alternative document adaptation method provided in the embodiment of the present invention, S107 shown in fig. 4 may be implemented by S109, and the description will be made in connection with the steps.
And S109, if at least one effective area information in the file element data has no corresponding version number, determining that the local file element data is incremental file element data.
In the embodiment of the invention, if the server analyzes and obtains the function identification information and at least one effective area information included in the file element data. Meanwhile, if at least one effective area information in the file element data does not have the corresponding version number, the client side is indicated to send a request instruction for the first time, and the file element data does not comprise the version number. The server determines that all local file element data corresponding to the file element data are incremental file element data.
In the embodiment of the invention, if the server detects that the file element data of the clients of different types do not include version numbers at the same time. The server may determine that the clients of different types are all sending the request command for the first time, and determine local file element data corresponding to the clients of different types as incremental file element data corresponding to the clients of different types.
In some embodiments, referring to fig. 6, fig. 6 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, S107 shown in fig. 4 may be implemented by S110, and the description will be made in connection with the steps.
And S110, if at least one version number in the file element data is lower than a first version number of any local version number which is the same as the effective area information in the local file element data, forming the increment file element data based on the local function identification information, the target specimen local version number corresponding to the first version number in the local file element data, the target specimen effective area information corresponding to the target specimen local version number and the target specimen text content information.
In the embodiment of the invention, at least one version number corresponding to at least one effective area information obtained by server analysis is compared with at least one local version number. If the server detects that at least one version number in the file element data exists, the first version number is lower than any local version number which is the same as the effective area information in the local file element data. The server forms incremental file element data based on the local function identification information, the destination specimen local version number corresponding to the first version number in the local file element data, destination specimen effective region information corresponding to the destination specimen local version number and destination specimen file content information.
The number of the first version numbers may be one or more, and is not limited herein.
Illustratively, at least one version number corresponding to the effective area information a and B of the function identification information 01 is V1.1 and V1.2. At least one local version number corresponding to the local effective area information a and B of the corresponding local function identification information 01 is V1.3 and V1.4. The server compares V1.1 with V1.3, and V1.2 with V1.4. The server determines that V1.3 is greater than V1.1 while V1.4 is greater than V1.2, then the server determines that the first version number includes V1.1 and V1.2. The server packages the local function identification information 01, the local effective area information a and B, and at least one local version number V1.3 and V1.4 to form delta file element data.
For example, the server detects that 10 version numbers in version numbers corresponding to a plurality of function identification information corresponding to a plurality of file element data are lower than the level of 10 local version numbers corresponding to corresponding local function identification information. The server extracts target local function identification information corresponding to 10 target specimen local version numbers, 10 target specimen local effective area information corresponding to the 10 target specimen local version numbers and 10 target specimen local document content information from a preset document database, and 10 increment document element data of the document corresponding to the 10 version numbers are formed.
The effective region information characterizes language information of a region to which the corresponding client belongs.
In some embodiments, referring to fig. 7, fig. 7 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, and S111 implementation is further included after S103 shown in fig. 4, and will be described in connection with the steps.
And S111, if at least one version number is the same as the corresponding at least one local version number, determining that the file element data does not have the corresponding incremental file element data.
In the embodiment of the invention, the server compares at least one version number subordinate to the function identification information with at least one local version number subordinate to the corresponding local function identification information. And if the server detects that at least one version number is the same as the corresponding local version number, the service area determines that the incremental file element data of the function identification information corresponding to the at least one version number is empty. The document describing the function identification information corresponding to the at least one version number is not updated. And the server does not send the incremental file element data corresponding to the function identification information to the client.
In some embodiments, referring to fig. 8, fig. 8 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, and S112 to S114 are further included before S101 shown in fig. 2, and will be described in connection with the steps.
S112, receiving the replacement identification information of the replacement document.
In the embodiment of the invention, if the target object of the server determines one or more replacement texts. And the target object transmits the replacement identification information corresponding to the replacement document to the server through the man-machine interaction equipment of the server.
The replacing document characterizes the target object, and the document content information corresponding to the replacing document in the server is required to be replaced.
S113, determining target replacement effective area information based on the replacement identification information.
In the embodiment of the invention, after the server acquires the replacement identification information of the replacement document. The server determines from a plurality of pieces of local function identification information in a preset file database and replaces target local file element data corresponding to the identification information. The server extracts the local effective area information included in the target specimen file element data. The server determines target replacement effective area information in the local effective area information.
In the embodiment of the invention, if the target object does not find the target replacement effective area information in the local effective area information, the target object can transmit the target replacement effective area information to the server through the man-machine interaction equipment of the server.
And S114, receiving replacement document content information, replacing local document content information corresponding to the target replacement effective area information by adopting the replacement document content information, obtaining replacement local document element data, and updating to a preset document database.
In the embodiment of the invention, the target object transmits the replacement document content information corresponding to the target replacement effective area information to the server through the man-machine interaction equipment of the server. The server stores the replacement document content information in a storage position of the corresponding local document content information, and deletes the corresponding local document content information. And further obtaining the element data of the replaced local file, and updating the element data of the replaced local file to a preset file database.
In the embodiment of the invention, the target object can upload the replacement document content information corresponding to the target replacement effective area information to the server through the mobile memory.
Illustratively, the target object may input the replacement document content information corresponding to the target replacement effective area information through a keyboard on the server. For example, the local document content information may be "jingdo", and the corresponding alternative document content information may be "point".
In some embodiments, referring to fig. 9, fig. 9 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, and S113 to S114 shown in fig. 8 may be implemented through S115 to S118, and will be described in connection with the steps.
S115, if the replacement identification information exists in the preset file database and the local effective area information corresponding to the replacement identification information exists in the preset file database, determining target replacement effective area information.
In the embodiment of the invention, after the server acquires the replacement identification information, the server compares the replacement identification information with a plurality of pieces of local function identification information in a preset file database. If the server detects that the replacement identification information is the same as one of the local function identification information, that is, the replacement identification information exists in the preset file database, the server extracts the local effective area information corresponding to the local function identification information corresponding to the replacement identification information. And the target object determines target replacement effective area information from the local effective area information through man-machine interaction equipment of the server.
The local effective area information may be one or more.
S116, receiving replacement document content information, and replacing local document content information corresponding to the target replacement effective area information by adopting the replacement document content information.
In the embodiment of the invention, the target object transmits the replacement document content information corresponding to the target replacement effective area information to the server through the man-machine interaction equipment of the server. And the server replaces the local text content information corresponding to the target replacement effective area information with the replacement text content information.
S117, acquiring a replacement version number corresponding to the target replacement effective area information, and configuring the corresponding replacement version number for the target replacement effective area information, so as to obtain the replacement local file element data.
In the embodiment of the invention, the target object inputs the replacement version number corresponding to the target replacement effective area information to the server through the man-machine interaction equipment of the server. The server configures the replacement version number to the target replacement effective area information. And further, the replacement local text element data is obtained.
S118, updating the element data of the replaced local file to a preset file database.
In the embodiment of the invention, the server stores the replaced local file element data in a storage position corresponding to the local file element data, and deletes the corresponding local file element data.
In some embodiments, referring to fig. 10, fig. 10 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, and S113 shown in fig. 8 may also be implemented through S119 to S122, and will be described in connection with the steps.
And S119, if the replacement identification information exists in the preset file database and the target replacement effective area information does not exist in the local effective area information corresponding to the replacement identification information in the preset file database, displaying prompt information for adding the effective area information.
In the embodiment of the invention, after the server acquires the replacement identification information, the server compares the replacement identification information with a plurality of pieces of local function identification information in a preset file database. If the server detects that the replacement identification information is the same as one of the local function identification information, that is, the replacement identification information exists in the preset file database, the server extracts the local effective area information corresponding to the local function identification information corresponding to the replacement identification information. The server acquires the prompt information that the local effective area information input by the target object does not have the target replacement effective area information. And the server displays prompt information for adding effective area information on the current page.
The hint information may be an input window for new effective area information, for example.
S120, receiving the new effective area information fed back by the response prompt information, wherein the new effective area information is used as target replacement effective area information.
In the embodiment of the invention, the target object of the server inputs new effective area information fed back by the prompt information to the server through the man-machine interaction equipment of the server. The new effective area information is target replacement effective area information.
S121, detecting whether the new effective area information is correct and unique.
In the embodiment of the invention, the server detects whether the format or the content of the new effective area information is correct, and simultaneously the server detects whether the local effective area information corresponding to the new effective area information exists in the preset file database.
And S122, if the new effective area information is detected to be correct and unique, adding the new effective area information into the local effective area information, and determining the new effective area information as target replacement effective area information.
The server detects that the format of the new effective area information is correct, and no corresponding local effective area information exists in the preset file database. The server adds the new effective area information into the corresponding local effective area information, and determines the new effective area information as target replacement effective area information.
In some embodiments, referring to fig. 11, fig. 11 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, and S113 shown in fig. 8 may also be implemented through S123 to S120, and will be described in connection with the steps.
And S123, displaying prompt information for adding effective region information if the replacement identification information does not exist in the preset file database and is correct and unique.
In the embodiment of the invention, the server detects that the local function identification information corresponding to the replacement identification information does not exist in the preset file database. And the server detects that the format of the replacement identification information is correct, and then the server displays prompt information for adding effective area information on the current page.
In some embodiments, referring to fig. 12, fig. 12 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, and S124 is further included after S121 shown in fig. 10, and the description will be made in connection with the steps.
And S124, if the new effective area information is detected to be wrong or not unique, displaying the new effective area information input mistake or the existing prompt information on the current page.
In the embodiment of the invention, if the server detects that the format of the new effective area information is wrong or the new effective area information has corresponding effective area information in the local effective area information, the server displays the new effective area information input wrong or existing prompt information on the current page.
In some embodiments, referring to fig. 13, fig. 13 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, and S125 is further included after S112 shown in fig. 8, and the description will be made with reference to the steps.
And S125, detecting that the replacement identification information is wrong or not unique, and displaying the replacement identification information input error or existing prompt information on the current page.
In some embodiments, referring to fig. 14, fig. 14 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, and the steps will be described in connection with the description.
S201, the server receives a request instruction of the client.
In the embodiment of the invention, the server receives the request instruction sent by the client through the communication line pre-established with the client.
S202, the server analyzes file element data in the request instruction, and obtains function identification information, effective area information and version number.
S203, the server determines local file element data corresponding to the file element data from the server database.
In the embodiment of the invention, the function identification information in the file element data is the same as the local function identification information in the corresponding local file element data. The server can determine the local file element data in the preset file database through the function identification information of the file element data.
S204, the server compares the version number in the local file element data with the version number in the corresponding file element data.
S205, if the two version numbers are the same, the server does not issue.
In the embodiment of the invention, the server compares the version number in the file element data with the local version number in the corresponding local file element data, and if the two version numbers are the same, the server does not issue the increment file element data of the file corresponding to the version number.
S206, the version number of the local file element data is larger than that of the file element data.
S207, the version number in the file element data is null.
In the embodiment of the invention, if the client side sends the request instruction to the server for the first time, the server detects that the version number in the file element data is empty.
S208, the server adds the function identification information corresponding to the version number, the file content information, the version number and the effective area information into the incremental file element data.
In the embodiment of the invention, the server detects that the grade of the version number is higher than the grade of the corresponding local version number. The server combines the corresponding local function identification information, the document content information and the effective area information to form incremental file element data corresponding to the local version number.
S209, the server sends the incremental file element data to the client.
In some embodiments, referring to fig. 15, fig. 15 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, and the steps will be described in connection with the description.
S211, the server acquires the replacement identification information of the replacement document through the interface.
S212, the server detects whether the replacement identification information exists in the database.
S213, checking whether the replacement identification information is normal.
In the embodiment of the invention, if the server detects that the replacement function identification information does not exist in the database. It is checked whether the replacement function identification information is normal.
S214, the server reports the replacement identification information in an error mode.
In the embodiment of the invention, if the server checks that the replacement function identification information is abnormal, the error is reported.
S215, the server displays the effective area information list of the replacement identification information.
In the embodiment of the invention, if the server detects that the replacement function identification information exists in the database. The server displays a list of effective area information of the replacement function identification information.
S216, the target object checks whether effective area information to be modified exists.
S217, the server prompts the target object to input new effective area information.
In the embodiment of the invention, if the target object checks that the effective area information to be modified does not exist in the list, the server prompts the target object to input new effective area information on the current page.
S218, the server checks whether the new effective area information is normal.
S219, the server reports the new effective area information.
S220, the server adds new effective area information in the list.
In the embodiment of the invention, if the server detects that the new effective area information is normal, the server adds the effective area information into the list.
S221, the server acquires information of a certain effective area selected by the target object.
In the embodiment of the invention, if the effective area list includes effective area information to be modified, the server acquires touch information of the target object and then selects a certain effective area information as target modification effective area information.
S222, the server prompts the target object to input new document content information.
S223, the server adds the new document content information with the corresponding version number and adds the new document content information into the database.
Fig. 16 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention, and will be described with reference to the steps shown in fig. 16.
S130, acquiring a touch instruction of the target object, and responding to the touch instruction, and extracting file element data at a storage position corresponding to the file.
In the embodiment of the invention, when the target object of the client needs to start the client, the target object sends a touch instruction to the equipment to which the client belongs. After the client receives the touch instruction, the client responds to the touch instruction and then starts. Meanwhile, the client extracts file element data corresponding to the file at a storage position corresponding to the file in the client. The file element data comprises function identification information of the corresponding file.
The touch instruction may include a touch instruction sent by the target object through the man-machine interaction component on the corresponding terminal device. The touch instruction may be a single click or a double click operation sent by the target object to the client. The touch instruction may also be a voice control instruction sent by the target object to the client.
In the embodiment of the invention, the target object clicks the client through the man-machine interaction component on the terminal, and the client is started after receiving the clicking instruction. Meanwhile, the client extracts a plurality of file element data corresponding to a plurality of files from a memory of the client. Each file element data in the plurality of file element data at least comprises function identification information of a corresponding file, at least one effective area information corresponding to the function identification information, and a version number corresponding to the at least one effective area information.
S131, carrying the file element data in a request instruction and sending the request instruction to a server.
In the embodiment of the invention, the client carries the file element data in the request instruction and sends the file element data to the server through a communication line pre-established with the server.
S132, incremental file element data fed back by the server in response to the request instruction is received.
In the embodiment of the invention, the client carries file element data corresponding to the file in a request instruction and sends the request instruction to the server through a communication line pre-established with the server. After receiving the request instruction, the server analyzes file element data corresponding to the file to obtain corresponding function identification information. The server determines the latest version of delta file element data from the plurality of local file element data based on the function identification information. The server transmits the incremental file element data to the client via a communication line pre-established with the client. The client receives delta file element data.
The incremental file element data comprises file content information of the latest version of the corresponding file.
In the embodiment of the invention, the client carries a plurality of file element data corresponding to a plurality of files in a request instruction and sends the request instruction to the server. After receiving the request instruction, the server analyzes file element data corresponding to the plurality of documents to obtain a plurality of function identification information corresponding to the plurality of documents. The server determines at least one incremental file element data of the latest version corresponding to the plurality of documents from the plurality of local file element data based on the plurality of function identification information. The server transmits the incremental file element data to the client via a communication line pre-established with the client. The client receives delta file element data.
And S133, updating the incremental file element data to the corresponding target storage position based on the function identification information for use.
In the embodiment of the invention, after the client acquires the incremental file element data, the incremental file element data is analyzed, and the update function identification information in the incremental file element data is obtained. The client determines target function identification information corresponding to at least one updated function identification information from the local plurality of function identification information. The client determines a storage position corresponding to the target function identification information, and stores the latest version of document content information in the corresponding incremental document element data in the corresponding target storage position.
In the embodiment of the invention, after the client acquires the at least one increment file element data, the at least one increment file element data is analyzed to obtain the update function identification information, the update effective area information, the update version number corresponding to the update effective area information and the update file content information in the at least one increment file element data. The client determines target function identification information corresponding to at least one updated function identification information in the plurality of function identification information. And the client determines a storage position corresponding to the target function identification information. And the client stores the update version number and the corresponding update file content information in the corresponding target storage position. And updating the file content information of the corresponding effective area information of the file to be updated in the client into the file content information of the latest version.
In some embodiments, referring to fig. 17, fig. 17 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, S130 shown in fig. 16 may be implemented through S134 to S135, and the description will be made in connection with the steps.
S134, acquiring a touch instruction of the target object, and responding to the touch instruction, and extracting the function identification information and at least one effective area information corresponding to the document at a storage position corresponding to the document.
In the embodiment of the invention, when the target object opens the client for the first time. After the client acquires the touch instruction of the target object, the client responds to the touch instruction and extracts the function identification information and at least one effective area information pre-stored in the text in the corresponding memory. Since the target object is to open the client for the first time, the document in the client does not have a corresponding version number and document content information.
The effective region information may represent application language information of a region to which the client currently belongs.
S135, forming file element data based on the function identification information and the at least one effective area information.
In the embodiment of the invention, the client forms file element data corresponding to the document based on the functional identification information of the document and at least one effective area information. Correspondingly, the client can form a plurality of file element data corresponding to a plurality of documents by the same method.
In some embodiments, referring to fig. 18, fig. 18 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, S130 shown in fig. 16 may be implemented through S136 to S137, and the description will be made in connection with the steps.
S136, acquiring a touch instruction of the target object, and responding to the touch instruction, and extracting function identification information corresponding to the document, at least one effective area information and at least one version number corresponding to the at least one effective area information at a storage position corresponding to the document.
In the embodiment of the invention, when the target object does not open the client for the first time. After the client acquires the touch instruction of the target object, the client responds to the touch instruction and extracts the function identification information, at least one effective area information and at least one version number corresponding to the at least one effective area information, which are prestored in the text, from the corresponding memory. Since the target object is the non-first-time-open client, the document in the client already has the corresponding version number and document content information, and the display of the relevant document content information has already been performed.
And S137, forming file element data based on the function identification information, the at least one effective area information and the at least one version number.
In the embodiment of the invention, the client forms file element data corresponding to the document based on the function identification information, at least one effective area information and at least one version number corresponding to the document.
Exemplary, fig. 19 is incorporated. Is file element data corresponding to one of the files. The function identification information corresponding to the document is Key_Cancel. The area function identification information corresponding to the document may be "Chinese", "englist", and "thailand". Wherein, the version number corresponding to "Chinese" is V1.0. The version number corresponding to "englist" is V2.0. The version number corresponding to "thailand" is V1.2. The document content information corresponding to the version number V1.0 is "Cancel", the document content information corresponding to the version number V1.0 is "cancer", and the document content information corresponding to the version number V1.2 is
In some embodiments, referring to fig. 18, fig. 18 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, and S133 shown in fig. 16 may be implemented through S138 to S140, and will be described in connection with the steps.
S138, analyzing the incremental file element data to obtain update identification information, at least one update effective area information, at least one update version number corresponding to the at least one update effective area information and at least one update file content information corresponding to the at least one update effective area information in the incremental file element data.
In the embodiment of the invention, a client analyzes incremental file element data to obtain update function identification information corresponding to the incremental file element data, at least one update effective area information, at least one update version number corresponding to the at least one update effective area information and at least one update file content information corresponding to the at least one update effective area information.
In the embodiment of the invention, the updated function identification information is the same as the function identification information of the corresponding document. The at least one updated validation area information is the same as the corresponding validation area information of the corresponding function identification information.
S139, determining a target storage position corresponding to the function identification information in the local storage.
In the embodiment of the invention, the client compares the updated function identification information with a plurality of function identification information, and determines target function identification information corresponding to the updated function identification information from the plurality of function identification information. The client determines a target storage position of the target function identification information corresponding to the target document.
The target storage location may be function identification information, effective area information, version number, and original storage area information of the document content information corresponding to the target document in the local storage.
S133, storing at least one update effective area information, at least one update version number and at least one update file content information corresponding classification in a target storage position for use.
In the embodiment of the invention, the client stores the update version number of each update effective area information subordinate to the target storage position of the version number of the corresponding effective area information subordinate according to the corresponding relation between the update effective area information and the corresponding effective area function identification information, and stores the update document content information of each update effective area information subordinate to the target storage position of the document content information of the corresponding effective area information subordinate to the client. And simultaneously, the client deletes the version number and the file content information subordinate to the corresponding effective area information.
In the embodiment of the invention, if the update effective area information in the incremental file element data received by the client does not exist in the corresponding file element data, the client establishes an effective area information storage area in the file element data, stores the update effective area information in the area, and stores the update version number corresponding to the update effective area information and the update file content information in the storage area corresponding to the version number and the file content information subordinate to the update effective area.
In some embodiments, referring to fig. 20, fig. 20 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, and S141 to S142 are further included before S130 shown in fig. 16, and the steps will be described in connection with the implementation of S141 to S142.
S141, acquiring initial data of file elements; the file element initial data includes: function identification information and at least one validation area information of the document.
In the embodiment of the invention, the client acquires the initial data of the file elements corresponding to a plurality of files. Wherein, each file element initial data comprises function identification information of the corresponding file and at least one effective area information.
S135, storing the initial data of the file element in a storage position of the corresponding file.
In the embodiment of the invention, the client divides the storage position corresponding to each element initial data of each document in the own memory, and stores each element initial data in the corresponding storage position.
Illustratively, 100 documents are included in the client. The client divides 100 storage positions corresponding to the files in the memory of the client, and the client stores initial element data corresponding to the 100 files in the storage positions corresponding to the file division.
In some embodiments, referring to fig. 21, fig. 21 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, and S131 shown in fig. 16 further includes S143 to S144 after S131 implementation, which will be described in connection with the steps.
S143, if the incremental file element data fed back by the server is not received, whether the file is updated for the first time is detected.
In the embodiment of the invention, if the client does not receive the incremental file element data fed back by the server, the server detects whether the corresponding file is updated for the first time.
S144, detecting that the file is updated for the first time, and reporting errors to the file.
In the embodiment of the invention, if the client detects that the corresponding file is updated for the first time, the client reports errors to the target object.
In some embodiments, referring to fig. 22, fig. 22 is a schematic flow chart of an alternative document adaptation method provided in the embodiment of the present invention, and S133 shown in fig. 16 further includes S145 to S146 implementation, and each step will be described in connection with the following description.
S145, when the to-be-displayed document is displayed, obtaining to-be-displayed identification information and to-be-displayed effective area information of the to-be-displayed document.
In the embodiment of the invention, when the target object is applied to the client, the client receives the instruction of the target object and executes the program for displaying the to-be-displayed document. And the client acquires the identification information to be displayed and the effective area information to be displayed of the document to be displayed according to the program.
The effective region information to be displayed characterizes language information of a region to which the client belongs.
S146, determining a to-be-displayed storage position corresponding to the to-be-displayed document in the local storage based on the to-be-displayed identification information, and extracting to-be-displayed document content information corresponding to the to-be-displayed effective area information at the to-be-displayed storage position for display.
In the embodiment of the invention, the client extracts the content information of the document to be displayed corresponding to the effective area information to be displayed from the local storage of the document to be displayed. And the client displays the content information of the corresponding to-be-displayed text according to the display area information of each to-be-displayed text in the program for executing the to-be-displayed text.
In some embodiments, referring to fig. 23, fig. 23 is a schematic flow chart of an alternative document adaptation method according to an embodiment of the present invention, and the steps will be described in connection with the following description.
S225, the client is started to acquire the local database file resources.
S226, the client sends all the file resource data to the server.
S227, whether the client receives the server response.
S230, the client analyzes the incremental file element data responded by the server.
S231, the client updates version numbers and file content information in the incremental file element data sent by the server.
S232, the client acquires the document content information of the corresponding document according to the function identification information corresponding to the document for use.
S228, the client detects whether the update is the first full-quantity update.
S229, the client performs error reporting.
In some embodiments, referring to fig. 24, fig. 24 is an interaction diagram of a document adaptation method provided by an embodiment of the present invention, and each step will be described in connection with the following description.
S301, a client acquires a touch instruction of a target object, and extracts file element data at a storage position corresponding to a document in response to the touch instruction
The detailed implementation of step S301 is consistent with the implementation of S130, and will not be described here again.
S302, the server receives a request instruction sent by the client.
The detailed implementation of step S302 is consistent with the implementation of S101, and will not be described here again.
S303, the server responds to the request instruction to obtain file element data and function identification information thereof.
The detailed implementation of step S303 is identical to the implementation of S102, and will not be described here again.
S304, the server determines local file element data corresponding to the function identification information in a preset file database based on the function identification information.
The detailed implementation of step S304 is consistent with the implementation of step S103, and will not be described here again.
S305, the server determines incremental file element data based on the file element data and the local file element data.
The detailed implementation of step S305 is consistent with the implementation of S104, and will not be described here again.
S306, the server sends the incremental file element data to the client for use by the client.
The detailed implementation of step S306 is consistent with the implementation of S105, and will not be described here again.
In some embodiments, referring to fig. 25, fig. 25 is a schematic structural diagram of a document adapter according to an embodiment of the present invention.
An embodiment of the present invention provides a document adaptation apparatus 800, including: a first receiving unit 803, a first responding unit 804, a first processing unit 805, a determining unit 806, and a first transmitting unit 807.
A first receiving unit 803, configured to receive a request instruction sent by a client;
a first response unit 804, configured to respond to the request instruction, and obtain file element data and function identification information thereof;
a first processing unit 805 configured to determine, in a preset file database, local file element data corresponding to the function identification information based on the function identification information;
a determining unit 806 for determining delta file element data based on the text element data and the local file element data;
A first sending unit 807, configured to send the incremental file element data to the client for use by the client.
In the embodiment of the invention, the file element data comprises: the function identification information, the at least one effective area information and the at least one version number corresponding to the at least one effective area information form an array; the local file element data includes: the system comprises an array formed by local function identification information, at least one local effective area information, at least one local version number corresponding to the at least one local effective area information and at least one local document content information corresponding to the at least one local version number; wherein the function identification information is the same as the local function identification information.
In the embodiment of the present invention, the determining unit 806 in the document adaptation apparatus 800 is configured to determine that the local file element data is incremental file element data if the version number in the file element data is smaller than the local version number in the local file element data.
In the embodiment of the present invention, the determining unit 806 in the document adaptation apparatus 800 is configured to determine that the local file element data is delta file element data if at least one effective area information in the file element data has no corresponding version number.
In the embodiment of the present invention, the determining unit 806 in the document adaptation apparatus 800 is configured to form incremental document element data based on the local function identification information, the destination sample version number corresponding to the first version number in the local document element data, the destination sample validation area information corresponding to the destination sample version number, and the destination sample document content information if at least one version number in the document element data exists and is lower than a first version number of any one local version number in the local document element data that is identical to the validation area information thereof; wherein the destination local version number is a local version number higher than the version of the first version number.
In the embodiment of the present invention, the determining unit 806 in the document adaptation apparatus 800 is configured to determine that the file element data has no corresponding incremental file element data if at least one version number is the same as the corresponding at least one local version number.
In the embodiment of the present invention, the determining unit 806 in the document adaptation apparatus 800 is configured to respond to the request instruction, parse the request instruction to obtain file element data, and function identification information included in the file element data, and at least one effective area information corresponding to the function identification information.
In the embodiment of the present invention, the first response unit 804 in the document adaptation apparatus 800 is configured to respond to a request instruction, parse the request instruction to obtain file element data, and the function identification information included in the file element data, at least one effective area information corresponding to the function identification information, and at least one version number corresponding to the at least one effective area information.
In the embodiment of the present invention, a first receiving unit 803 in the document adaptation apparatus 800 is configured to receive replacement identification information of a replacement document, and a determining unit 806 is configured to determine target replacement effective area information based on the replacement identification information; the first receiving unit 803 is further configured to receive replacement document content information, obtain replacement local document element data by using the replacement document content, replace local document content information corresponding to the target replacement effective area information, obtain replacement local document element data, and update the replacement local document element data to a preset document database.
In the embodiment of the present invention, the determining unit 806 in the document adaptation apparatus 800 is configured to determine the target replacement effective area information if the replacement identification information exists in the preset file database and the local effective area information corresponding to the replacement identification information exists in the preset file database; or,
If the replacement identification information exists in the preset file database and the target replacement effective area information does not exist in the local effective area information corresponding to the replacement identification information in the preset file database, or the replacement identification information does not exist in the preset file database and the replacement identification information is correct and unique, displaying prompt information for adding the effective area information;
and receiving the new effective area information fed back by the response prompt information, wherein the new effective area information is used as target replacement effective area information.
In the embodiment of the present invention, the determining unit 806 in the document adaptation apparatus 800 is configured to detect whether the new effective area information is correct and unique; if the new effective area information is detected to be correct and unique, adding the new effective area information into the local effective area information, and determining the new effective area information as target replacement effective area information.
In the embodiment of the present invention, the determining unit 806 in the document adaptation apparatus 800 is configured to display a new effective area information input error or existing prompt message on the current page if the new effective area information is detected to be incorrect or not unique.
In the embodiment of the present invention, the determining unit 806 in the document adaptation apparatus 800 is configured to detect that the replacement identification information is wrong or is not unique, and display the replacement identification information input error or the existing prompt information on the current page.
In the embodiment of the present invention, the first receiving unit 803 in the document adaptation apparatus 800 is configured to receive replacement document content information, and replace local document content information corresponding to the target replacement effective area information with the replacement document content information; acquiring a replacement version number corresponding to the target replacement effective area information, configuring the corresponding replacement version number for the target replacement effective area information, and further acquiring the element data of the replacement local file; and updating the element data of the replaced local file to a preset file database.
In the embodiment of the present invention, a request instruction sent by a client is received through a first receiving unit 803; responding to the request instruction through a first response unit 804 to obtain file element data and function identification information thereof; determining, by the first processing unit 805, local file element data corresponding to the function identification information in a preset file database based on the function identification information; determining, by the determining unit 806, delta file element data based on the file element data and the local file element data; the delta file element data is transmitted to the client for use by the client through a first transmission unit 807. Because the local preset file database has the local file element data corresponding to the file element data sent by the clients of different types of the same application. The server obtains the incremental file element data corresponding to the latest version of the file by detecting the file element data of different clients, and sends the incremental file element data to the clients for the clients to update the corresponding file element data into the corresponding incremental file element data, so that the file adaptation degree of the clients of different types of the same application can be improved.
It should be noted that, in the embodiment of the present invention, if the above-mentioned cluster construction and subscription information processing method is implemented in the form of a software functional module, and sold or used as a separate product, the cluster construction and subscription information processing method may also be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied essentially or in a part contributing to the related art in the form of a software product stored in a storage medium, including several instructions for causing a document adaptation apparatus (which may be a personal computer or the like) to perform all or part of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
Correspondingly, an embodiment of the invention provides a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the above-mentioned method.
Correspondingly, the embodiment of the invention provides a document adaptation device 800, which comprises a first memory 802 and a first processor 801, wherein the first memory 802 stores a computer program capable of running on the first processor 801, and the first processor 801 implements the steps in the above method when executing the program.
It should be noted here that: the description of the storage medium and apparatus embodiments above is similar to that of the method embodiments described above, with similar benefits as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus of the present invention, please refer to the description of the method embodiments of the present invention.
It should be noted that fig. 26 is a schematic diagram of a hardware entity of the document adapter apparatus provided in the embodiment of the present invention, as shown in fig. 26, the hardware entity of the document adapter apparatus 800 includes: a first processor 801 and a first memory 802, wherein;
the first processor 801 generally controls the overall operation of the document adapter apparatus 800.
The first memory 802 is configured to store instructions and applications executable by the first processor 801, and may also cache data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by each module in the first processor 801 and the document adaptation apparatus 800, which may be implemented by a FLASH memory (FLASH) or a random access memory (Random Access Memory, RAM).
In some embodiments, referring to fig. 27, fig. 27 is a schematic structural diagram of a document adapter provided in an embodiment of the present invention.
The embodiment of the invention also provides a document adapting device, which comprises: an acquisition unit 903, an extraction unit 904, a second transmission unit 905, a second reception unit 906, and a storage unit 907.
An obtaining unit 903, configured to obtain a touch instruction of a target object, and respond to the touch instruction;
an extracting unit 904, configured to extract file element data at a storage location corresponding to the document; the file element data includes: function identification information of the document;
a second sending unit 905, configured to send the file element data to the server, where the file element data is carried in a request instruction;
a second receiving unit 906, configured to receive incremental file element data fed back by the server in response to the request instruction; the incremental file elements are derived based on file element data and local file element data in the server;
a storage unit 907 for updating the delta file element data to the corresponding target storage location for use based on the function identification information.
In the embodiment of the present invention, an obtaining unit 903 in the document adaptation apparatus 900 is configured to obtain a touch instruction of a target object, and extract, in response to the touch instruction, function identification information and at least one effective area information corresponding to a document at a storage location corresponding to the document through an extracting unit 904; file element data is formed based on the function identification information and the at least one validation area information.
In the embodiment of the present invention, an obtaining unit 903 in the document adaptation apparatus 900 is configured to obtain a touch instruction of a target object, and extract, in response to the touch instruction, function identification information, at least one effective area information, and at least one version number corresponding to the at least one effective area information corresponding to the document at a storage location corresponding to the document through an extracting unit 904; file element data is formed based on the function identification information, the at least one effective area information, and the at least one version number.
In the embodiment of the present invention, the storage unit 907 in the document adaptation apparatus 900 is configured to parse the incremental file element data to obtain update identification information, at least one update effective area information, at least one update version number corresponding to the at least one update effective area information, and at least one update document content information corresponding to the at least one update effective area information in the incremental file element data; determining a target storage position corresponding to the function identification information in the local storage; at least one update validation area information, at least one update version number, and at least one update document content information corresponding category are stored in a target storage location for use.
In the embodiment of the present invention, the obtaining unit 903 in the document adaptation apparatus 900 is configured to obtain initial data of a file element; the file element initial data includes: the function identification information and at least one effective area information of the document; the file element initial data is stored in a storage location corresponding to the document.
In the embodiment of the present invention, the document adaptation apparatus 900 is configured to detect whether the document is updated for the first time if the incremental file element data fed back by the server is not received; and detecting that the obtained file is updated for the first time, and reporting errors to the file.
In the embodiment of the present invention, the obtaining unit 903 in the document adapter 900 is configured to obtain to-be-displayed identification information and to-be-displayed effective area information of a to-be-displayed document when the to-be-displayed document is displayed; and determining a storage position to be displayed corresponding to the to-be-displayed file in the local storage based on the to-be-displayed identification information, and extracting content information of the to-be-displayed file corresponding to the to-be-displayed effective area information at the storage position to be displayed for display.
In the embodiment of the present invention, the touch instruction of the target object is acquired by the acquiring unit 903, and the file element data is extracted by the extracting unit 904 in response to the touch instruction; the file element data is carried in the request instruction through a second sending unit 905 and sent to the server, and then incremental file element data fed back by the server in response to the request instruction is received through a second receiving unit 906; the incremental file elements are derived based on file element data and local file element data in the server; the delta file element data is updated to the corresponding target storage location for use by the storage unit 905 based on the function identification information. The target object sends file element data of all the files in the client to the server every time the client is started, and then receives the updated incremental file element data of the corresponding files sent by the server. The incremental file element data comprises corresponding file content information, and the client stores the incremental file element data in a corresponding target storage position according to the identification information of the file element data corresponding to the incremental file element data, so that the client can acquire updated file element data of the latest version once being started, and further the file adaptation degree of different types of clients of the same application is improved.
Correspondingly, an embodiment of the invention provides a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the above-mentioned method.
Correspondingly, the embodiment of the invention provides a document adapting device 900, which comprises a second memory 902 and a second processor 901, wherein the second memory 902 stores a computer program capable of running on the second processor 901, and the second processor 901 realizes the steps in the above method when executing the program.
It should be noted here that: the description of the storage medium and apparatus embodiments above is similar to that of the method embodiments described above, with similar benefits as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus of the present invention, please refer to the description of the method embodiments of the present invention.
Fig. 28 is a second schematic diagram of a hardware entity of the document adapter apparatus according to the embodiment of the present invention, as shown in fig. 28, the hardware entity of the document adapter apparatus 900 includes: a second processor 901 and a second memory 902, wherein;
the second processor 901 generally controls the overall operation of the document adapter apparatus 900.
The second memory 902 is configured to store instructions and applications executable by the second processor 901, and may also cache data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by each module in the second processor 901 and the document adaptation apparatus 900, which may be implemented by a FLASH memory (FLASH) or a random access memory (Random Access Memory, RAM).
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described embodiment of the apparatus is merely illustrative, for example, the division of units is merely a logic function division, and there may be other division manners in actual implementation, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, device or unit, whether electrical, mechanical or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a removable Memory device, a Read Only Memory (ROM), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present invention may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied essentially or in a part contributing to the related art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a removable memory device, a ROM, a magnetic disk, or an optical disk.
The foregoing is merely an embodiment of the present invention, but the protection scope of the present invention is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present invention, and the changes and substitutions are intended to be covered in the protection scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (25)

1. A document adaptation method, comprising:
Receiving replacement identification information of a replacement document;
determining target replacement effective area information based on the replacement identification information;
receiving replacement document content information, and replacing local document content information corresponding to the target replacement effective area information by adopting the replacement document content information;
acquiring a replacement version number corresponding to the target replacement effective area information, and configuring the corresponding replacement version number for the target replacement effective area information to obtain replacement local file element data;
updating the element data of the replaced local file to a preset file database;
receiving a request instruction sent by a client;
responding to the request instruction to obtain file element data and function identification information thereof;
based on the function identification information, determining local file element data corresponding to the function identification information in the preset file database;
determining delta file element data based on the file element data and the local file element data;
and sending the incremental file element data to the client for use by the client.
2. The document adaptation method according to claim 1, wherein the file element data comprises: the function identification information, the at least one effective area information and the at least one version number corresponding to the at least one effective area information form an array;
The local file element data includes: the system comprises an array formed by local function identification information, at least one local effective area information, at least one local version number corresponding to the at least one local effective area information and at least one local document content information corresponding to the at least one local version number;
wherein the function identification information is the same as the local function identification information.
3. The document adaptation method according to claim 2, wherein the determining delta file element data based on the file element data and the local file element data comprises:
and if the version number in the file element data is smaller than the local version number in the local file element data, determining that the local file element data is the incremental file element data.
4. The document adaptation method according to claim 2, wherein the determining delta file element data based on the file element data and the local file element data comprises:
and if at least one effective area information in the file element data has no corresponding version number, determining the local file element data as the incremental file element data.
5. The document adaptation method according to claim 3, wherein determining that the local file element data is the delta file element data if the version number in the file element data is smaller than the local version number in the local file element data comprises:
if the at least one version number in the file element data is lower than a first version number of any local version number which is the same as the effective area information in the local file element data, forming the increment file element data based on the local function identification information, a destination sample local version number which corresponds to the first version number in the local file element data, destination sample effective area information which corresponds to the destination sample local version number and destination sample file content information; wherein the destination local version number is a local version number higher than a version of the first version number.
6. The document adaptation method according to claim 3, wherein the method further comprises:
and if the at least one version number is the same as the corresponding at least one local version number, determining that the file element data does not have the corresponding incremental file element data.
7. The document adaptation method according to claim 1, wherein the responding to the request instruction, obtaining file element data and function identification information thereof, includes:
and responding to the request instruction, analyzing the request instruction to obtain the file element data, and the function identification information and at least one effective area information corresponding to the function identification information included in the file element data.
8. The document adaptation method according to claim 1, wherein the responding to the request instruction, obtaining file element data and function identification information thereof, includes:
and responding to the request instruction, analyzing the request instruction to obtain the file element data, and the function identification information, at least one effective area information corresponding to the function identification information and at least one version number corresponding to the at least one effective area information which are included in the file element data.
9. The document adaptation method according to claim 1, wherein the determining target replacement effective area information based on the replacement identification information includes:
if the replacement identification information exists in the preset file database and the local effective area information corresponding to the replacement identification information exists in the preset file database, determining the target replacement effective area information; or,
If the replacement identification information exists in the preset file database and the target replacement effective area information does not exist in the local effective area information corresponding to the replacement identification information in the preset file database, or the replacement identification information does not exist in the preset file database and the replacement identification information is correct and unique, displaying prompt information for adding the effective area information;
and receiving new effective area information fed back in response to the prompt information, wherein the new effective area information is used as the target replacement effective area information.
10. The document adaptation method according to claim 9, wherein the receiving the new effective area information fed back in response to the prompt information, the method further comprises, after the new effective area information is taken as the target replacement effective area information:
detecting whether the new effective area information is correct and unique;
and if the new effective area information is detected to be correct and unique, adding the new effective area information into the local effective area information, and determining the new effective area information as the target replacement effective area information.
11. The document adaptation method according to claim 10, wherein the method further comprises:
and if the new effective area information is detected to be wrong or not unique, displaying the new effective area information input mistake or existing prompt information on the current page.
12. The document adaptation method according to claim 9, wherein after the receiving the substitution identification information of the substitution document, the method further comprises:
and if the error or the non-uniqueness of the replacement identification information is detected, displaying the input error or the existing prompt information of the replacement identification information on the current page.
13. A document adaptation method, comprising:
the method comprises the steps of sending replacement identification information of a replacement document to a server;
if the target replacement effective area information is not found in the local effective area information, the target replacement effective area information is sent to the server;
sending the replacement document content information corresponding to the target replacement effective area information to the server;
sending a replacement version number corresponding to the target replacement effective area information to the server, so that the server configures the corresponding replacement version number for the target replacement effective area information to obtain replacement local file element data, and updating the replacement local file element data to a preset file database;
Acquiring a touch instruction of a target object, responding to the touch instruction, and extracting file element data at a storage position corresponding to a document; the file element data includes: the function identification information of the document;
carrying the file element data in a request instruction and sending the request instruction to the server;
receiving incremental file element data fed back by the server in response to the request instruction; the incremental file element data is obtained based on the file element data and local file element data in the preset file database;
and updating the incremental file element data to the corresponding target storage position based on the function identification information for use.
14. The document adaptation method according to claim 13, wherein the acquiring the touch command of the target object, and responding to the touch command, extracting the file element data at the storage location corresponding to the document, includes:
acquiring the touch instruction of the target object, responding to the touch instruction, and extracting the function identification information and at least one effective area information corresponding to the document at a storage position corresponding to the document;
and forming the file element data based on the function identification information and the at least one effective area information.
15. The document adaptation method according to claim 13, wherein the acquiring the touch command of the target object, and responding to the touch command, extracting the file element data at the storage location corresponding to the document, includes:
acquiring the touch instruction of the target object, responding to the touch instruction, and extracting the function identification information, at least one effective area information and at least one version number corresponding to the at least one effective area information corresponding to the document at a storage position corresponding to the document;
the file element data is formed based on the function identification information, the at least one effective area information, and the at least one version number.
16. The document adaptation method according to any one of claims 13-15, wherein the updating the delta file element data to the corresponding target storage location for use based on the function identification information comprises:
analyzing the incremental file element data to obtain update identification information, at least one update effective area information, at least one update version number corresponding to the at least one update effective area information and at least one update file content information corresponding to the at least one update effective area information in the incremental file element data;
Determining the target storage position corresponding to the function identification information in a local storage;
storing the at least one update validation area information, the at least one update version number, and the at least one update file content information corresponding classification in the target storage location for use.
17. The document adaptation method according to any one of claims 13 to 15, wherein the acquiring the touch command of the target object, in response to the touch command, further comprises, before extracting the file element data at the storage location corresponding to the document:
acquiring initial data of file elements; the file element initial data includes: the function identification information and at least one validation area information of the document;
and storing the file element initial data in a storage position of a corresponding file.
18. A document adaptation method according to any one of claims 13 to 15 wherein the file element data is carried in a request instruction for transmission to a server, the method further comprising:
if the incremental file element data fed back by the server is not received, detecting whether the file is updated for the first time;
Detecting that the file is updated for the first time, and reporting errors to the file.
19. The document adaptation method according to claim 13, wherein the method further comprises, after updating the delta file element data to the corresponding target storage location for use based on the function identification information:
when a document to be displayed is displayed, obtaining the identification information to be displayed and the effective area information to be displayed of the document to be displayed;
and determining a to-be-displayed storage position corresponding to the to-be-displayed document in local storage based on the to-be-displayed identification information, and extracting to-be-displayed document content information corresponding to the to-be-displayed effective region information at the to-be-displayed storage position for display.
20. A document adaptation device, comprising:
a first receiving unit for receiving the replacement identification information of the replacement document;
the determining unit is used for determining target replacement effective area information based on the replacement identification information;
the first receiving unit is further configured to receive replacement document content information, and replace local document content information corresponding to the target replacement effective area information with the replacement document content information; acquiring a replacement version number corresponding to the target replacement effective area information, and configuring the corresponding replacement version number for the target replacement effective area information to obtain replacement local file element data; updating the element data of the replaced local file to a preset file database;
The first receiving unit is further used for receiving a request instruction sent by the client;
the first response unit is used for responding to the request instruction to obtain file element data and function identification information thereof;
the first processing unit is used for determining local file element data corresponding to the function identification information in the preset file database based on the function identification information;
the determining unit is further configured to determine incremental file element data based on the file element data and the local file element data;
and the first sending unit is used for sending the incremental file element data to the client for use by the client.
21. A document adaptation device, comprising:
the second sending unit is used for sending the replacement identification information of the replacement document to the server;
the second sending unit is further configured to send the target replacement effective area information to the server if the target replacement effective area information is not found in the local effective area information;
the second sending unit is further configured to send replacement document content information corresponding to the target replacement effective area information to the server;
The second sending unit is further configured to send a replacement version number corresponding to the target replacement effective area information to the server, so that the server configures the corresponding replacement version number for the target replacement effective area information to obtain replacement local file element data, and the replacement local file element data is updated to a preset file database;
the acquisition unit is used for acquiring a touch instruction of a target object and responding to the touch instruction;
the extraction unit is used for extracting file element data at a storage position corresponding to the file; the file element data includes: the function identification information of the document;
the second sending unit is further configured to send the file element data carried in a request instruction to the server;
the second receiving unit is used for receiving incremental file element data fed back by the server in response to the request instruction; the incremental file element data is obtained based on the file element data and local file element data in the preset file database;
and the storage unit is used for updating the incremental file element data to the corresponding target storage position based on the function identification information so as to be used.
22. A document adaptation apparatus comprising a first memory and a first processor, the first memory storing a computer program executable on the first processor, the first processor implementing the steps of the method of any one of claims 1 to 12 when the program is executed.
23. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a first processor, implements the steps of the method of any of claims 1 to 12.
24. A document adaptation apparatus comprising a second memory and a second processor, the second memory storing a computer program executable on the second processor, the second processor implementing the steps of the method of any one of claims 13 to 19 when the program is executed.
25. A computer readable storage medium having stored thereon a computer program, which when executed by a second processor performs the steps of the method of any of claims 13 to 19.
CN202110722079.9A 2021-06-28 2021-06-28 Wen An adapting method, device and storage medium Active CN113392356B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110722079.9A CN113392356B (en) 2021-06-28 2021-06-28 Wen An adapting method, device and storage medium
PCT/CN2022/094414 WO2023273694A1 (en) 2021-06-28 2022-05-23 Copywriting adaptation method and apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110722079.9A CN113392356B (en) 2021-06-28 2021-06-28 Wen An adapting method, device and storage medium

Publications (2)

Publication Number Publication Date
CN113392356A CN113392356A (en) 2021-09-14
CN113392356B true CN113392356B (en) 2024-04-12

Family

ID=77624344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110722079.9A Active CN113392356B (en) 2021-06-28 2021-06-28 Wen An adapting method, device and storage medium

Country Status (2)

Country Link
CN (1) CN113392356B (en)
WO (1) WO2023273694A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113392356B (en) * 2021-06-28 2024-04-12 北京沃东天骏信息技术有限公司 Wen An adapting method, device and storage medium
CN113849579B (en) * 2021-09-27 2024-06-28 支付宝(杭州)信息技术有限公司 Knowledge graph data processing method and system based on knowledge view
CN115361462B (en) * 2022-08-26 2024-02-23 中国银行股份有限公司 Method and device for updating mobile phone application Cheng Xuwen case

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229647A (en) * 2016-03-25 2017-10-03 阿里巴巴集团控股有限公司 Official documents and correspondence update method and device
CN108984170A (en) * 2017-06-02 2018-12-11 阿里巴巴集团控股有限公司 The multilingual rendering method of the H5 page and device
CN109947512A (en) * 2019-03-18 2019-06-28 北京字节跳动网络技术有限公司 A kind of text adaptation display methods, device, server and storage medium
CN112817655A (en) * 2021-01-29 2021-05-18 北京达佳互联信息技术有限公司 Document information processing method, device, storage medium and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10860346B2 (en) * 2017-08-15 2020-12-08 Sap Se Server-side internationalization framework for web applications
CN111026491B (en) * 2019-12-10 2024-04-26 北京小米移动软件有限公司 Interface display method, device, electronic equipment, server and storage medium
CN113392356B (en) * 2021-06-28 2024-04-12 北京沃东天骏信息技术有限公司 Wen An adapting method, device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229647A (en) * 2016-03-25 2017-10-03 阿里巴巴集团控股有限公司 Official documents and correspondence update method and device
CN108984170A (en) * 2017-06-02 2018-12-11 阿里巴巴集团控股有限公司 The multilingual rendering method of the H5 page and device
CN109947512A (en) * 2019-03-18 2019-06-28 北京字节跳动网络技术有限公司 A kind of text adaptation display methods, device, server and storage medium
CN112817655A (en) * 2021-01-29 2021-05-18 北京达佳互联信息技术有限公司 Document information processing method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2023273694A1 (en) 2023-01-05
CN113392356A (en) 2021-09-14

Similar Documents

Publication Publication Date Title
CN113392356B (en) Wen An adapting method, device and storage medium
US8601059B2 (en) Sharing form training result utilizing a social network
US10642985B2 (en) Method and device for vulnerability scanning
US8942973B2 (en) Content page URL translation
US8095547B2 (en) Method and apparatus for detecting spam user created content
US8468207B1 (en) Detection of chain-letters in user-generated comments for websites
CN101427229B (en) Technique for modifying presentation of information displayed to end users of a computer system
CN108572990B (en) Information pushing method and device
US9830452B2 (en) Scanning device, cloud management device, method and system for checking and killing malicious programs
US20090144612A1 (en) Display of document data
US8799355B2 (en) Client server application manager
CN102622372B (en) Method and device for recommending short message receiving person
CN106951270B (en) Code processing method, system and server
EP2860684A1 (en) Server device, server program, and game program
US20190288962A1 (en) Message providing device, non-transitory computer readable medium storing program, and display control method
CN105704562B (en) Multi-version compatible method and device for network television cloud service platform
US20070180143A1 (en) Translation Web Services For Localizing Resources
US20150234793A1 (en) Font resource management
US20110282978A1 (en) Browser plug-in
CN113939812A (en) Generating queries using natural language input
EP2827273A1 (en) System and method for dynamic generation of anti-virus databases
CN113743082A (en) Data processing method, system, storage medium and electronic equipment
CN111737695A (en) White list optimization method, device, equipment and computer readable storage medium
CN112087473A (en) Document downloading method and device, computer readable storage medium and computer equipment
CN110457527A (en) A kind of XML message comparison method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant