Cboth processing method and device, equipment and medium
By loading copy resource files in current or basic languages on demand, the page loading problem caused by static packaging of multilingual copy is solved, improving loading speed and user experience.
Patent Information
- Application Number
- CN202510449883.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-10
- Publication Date
- 2025-07-11
AI Technical Summary
In the prior art, static packaging of multilingual copywriting results in large file size, affecting the initial loading speed of the page, blocking loading and extending the page response time, resulting in poor user experience.
By responsive to the page display trigger operation, obtain the copy deployment information and the current language, and determine whether the corresponding copy resource file exists locally. If it exists, load the copy resource file in the current language. If it does not exist, load the copy resource file in the basic language to achieve on-demand loading.
Significantly reduce the initial resource volume, improve loading efficiency, avoid blocking loading and extend page response time, and improve user page display experience.
Smart Images

Figure CN120295691A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular, to a copywriting processing method, apparatus, device, and medium. Background Art
[0002] With the globalization development of Internet services, the multi-language function has become a basic requirement for Web applications and mobile applications. In related technologies, multi-language copywriting is implemented in two ways: statically packaging copywriting resources in multiple languages or blocking and waiting for the copywriting resources to be loaded. Static packaging results in a large file size, which affects the initial page loading speed, and blocking loading prolongs the initial page response time, resulting in a poor user experience. Summary of the Invention
[0003] To solve the above technical problems, the present disclosure provides a copywriting processing method, apparatus, device, and medium.
[0004] An embodiment of the present disclosure provides a copywriting processing method, the method including:
[0005] Responding to a page display trigger operation on a target application, obtaining copywriting deployment information and the current language;
[0006] Based on the copywriting deployment information and the current language, determining whether there is a first copywriting resource file corresponding to the current language locally. If so, obtaining the first copywriting resource file and displaying the target page in the current language based on the first copywriting resource file;
[0007] If the first copywriting resource file does not exist locally, obtaining a second copywriting resource file corresponding to the base language and displaying the target page in the base language based on the second copywriting resource file.
[0008] An embodiment of the present disclosure further provides a copywriting processing apparatus, the apparatus including:
[0009] An obtaining module, configured to respond to a page display trigger operation on a target application, and obtain copywriting deployment information and the current language;
[0010] A first display module, configured to determine whether there is a first copywriting resource file corresponding to the current language locally based on the copywriting deployment information and the current language. If so, obtaining the first copywriting resource file and displaying the target page in the current language based on the first copywriting resource file;
[0011] A second display module, configured to, if the first copywriting resource file does not exist locally, obtain a second copywriting resource file corresponding to the base language and display the target page in the base language based on the second copywriting resource file.
[0012] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing executable instructions executable by the processor; the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the document processing method provided by the embodiment of the present disclosure.
[0013] An embodiment of the present disclosure also provides a computer-readable storage medium, which stores a computer program for executing the document processing method provided by the embodiment of the present disclosure.
[0014] The technical solution provided by the embodiment of the present disclosure has the following advantages compared with the prior art: The document processing solution provided by the embodiment of the present disclosure, in response to a page display trigger operation on a target application, obtains document deployment information and the current language; based on the document deployment information and the current language, determines whether there is a first document resource file corresponding to the current language locally, if so, obtains the first document resource file, and displays the target page in the current language based on the first document resource file; if the first document resource file does not exist locally, obtains a second document resource file corresponding to the basic language, and displays the target page in the basic language based on the second document resource file. By adopting the above technical solution, when displaying a page of an application, it can be determined whether there is a corresponding document resource file locally according to the document deployment information and the current language. If so, the page in the current language is displayed based on the document resource file. If not, the page in the basic language is displayed based on the document resource file in the basic language. By loading only the document resources of the current language on demand, the initial resource volume is significantly reduced, the loading efficiency is improved, and when there are no document resources locally, the page is displayed through the document resources in the basic language, avoiding the extension of the initial response time of the page caused by blocked loading, further improving the page loading speed, and thus improving the page display experience effect of users. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In combination with the accompanying drawings and with reference to the following specific embodiments, the above and other features, advantages and aspects of the embodiments of the present disclosure will become more obvious. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the original components and elements are not necessarily drawn to scale.
[0016] Figure 1 It is a flowchart of a document processing method provided by an embodiment of the present disclosure;
[0017] Figure 2 It is a flowchart of another document processing method provided by an embodiment of the present disclosure;
[0018] Figure 3 It is a flowchart of still another document processing method provided by an embodiment of the present disclosure;
[0019] Figure 4 A schematic diagram of a copywriting processing process provided by an embodiment of the present disclosure;
[0020] Figure 5 A schematic structural diagram of a copywriting processing device provided by an embodiment of the present disclosure;
[0021] Figure 6 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. Detailed implementation manners
[0022] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.
[0023] It should be understood that the various steps recorded in the method embodiments of the present disclosure can be executed in different orders and / or executed in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.
[0024] As used herein, the term "including" and its variants are open-ended, that is, "including but not limited to". The term "based on" is "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0025] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence relationship of the functions executed by these devices, modules or units.
[0026] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly stated in the context, it should be understood as "one or more".
[0027] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.
[0028] In the related art, one way of handling multilingual copywriting is the static packaging solution. By means of static packaging, the copywriting resources in all languages are pre-packaged into one or more files. The advantage of this method is simplicity and directness. Each time a page is loaded, the required copywriting resources are also loaded into the memory and can be used directly. The disadvantage is that when multiple languages need to be supported, the volume of the packaged file will be extremely large. Especially in the case of poor mobile network conditions, it will affect the initial loading speed of the page, resulting in an overly long page loading time, which is not conducive to the user experience. Another way is client-side blocking loading. By setting the client to block before rendering the page and waiting for the specific language resources to be loaded, the page flickering problem can be eliminated, but the initial page response time is prolonged. In practice, due to the differences in client device performance and network environment, this solution is not always advisable. Especially in a low-network environment, it may cause unnecessary resource waste and loading jams. In summary, there are many challenges and deficiencies in the related art in dealing with diverse and complex multilingual demand environments. There are still problems such as low resource loading efficiency, overly long loading time, and inflexible multilingual support.
[0029] To solve the above problems, embodiments of the present disclosure provide a copywriting processing method. The method will be introduced below in conjunction with specific embodiments.
[0030] Figure 1 As shown in the flowchart of a copywriting processing method provided by an embodiment of the present disclosure, the method can be executed by a copywriting processing device, where the device can be implemented by software and / or hardware and is generally integrated in an electronic device. As Figure 1 shown, the method includes:
[0031] Step 101, in response to a page display trigger operation on a target application, obtain copywriting deployment information and the current language.
[0032] Among them, the target application can be any program that supports multilingual functions. For example, the target application can be a video application, a reading application, etc., without specific limitation. The page display trigger operation can be an operation to trigger the display of the target page in the target application, and can be a gesture control operation such as clicking, long pressing, double clicking, etc. on the entry control of the target page. The target page can be any page in the target application. For example, the target page can be the first screen page, etc. The copywriting deployment information can be information indicating the specific loading method of multilingual copywriting, used to define how to load different language copywriting. The copywriting deployment information can include relevant information required for loading multilingual copywriting, and the copywriting deployment information can be the metadata (Meta) of the page display. The current language can be the language pre-set by the user in the system or in the target application. For example, if the user is in region A, the current language can be language A. The copywriting processing method of the embodiments of the present disclosure can be executed by the client, and the target application is installed in the client.
[0033] Specifically, after receiving the page display trigger operation for the target application, the copywriting processing device can extract the copywriting deployment information in the page loading template and obtain the current language set by the user. The page loading template can be a file that defines the page layout, structure, and appearance, used to control the presentation and interaction methods of the page. It is a framework file, and this page loading template needs to be applied when the page is loaded. The copywriting deployment information is pre-generated in the page loading template, and the copywriting deployment information can be generated in string form at a position closer to the front of the page loading template.
[0034] Step 102: Based on the copywriting deployment information and the current language, determine whether there is a first copywriting resource file corresponding to the current language locally. If so, obtain the first copywriting resource file and display the target page in the current language based on the first copywriting resource file.
[0035] Among them, the first copywriting resource file can be the copywriting resource file corresponding to the current language in the overall copywriting resource file of the target application. The copywriting in the embodiments of the present disclosure can be the text displayed on the page. The first copywriting resource file includes the specific copywriting of all pages of the target application in the current language. The target page can be the page corresponding to the above page display trigger operation in the target application, without specific limitation. The copywriting deployment information in the embodiments of the present disclosure can include the identification information, copywriting version, and copywriting resource address information of the target application.
[0036] Exemplarily, Figure 2 is a flowchart of another copywriting processing method provided by the embodiments of the present disclosure. As Figure 2 shown, in a feasible implementation manner, determining whether there is a first copywriting resource file corresponding to the current language locally based on the copywriting deployment information and the current language can include the following steps:
[0037] Step 201: Extract the identification information and copywriting version of the target application from the copywriting deployment information.
[0038] Among them, the identification information of the target application can be information representing the target application, used to declare the copywriting distribution space. After the business code of the application is updated, the identification of the application changes. The copywriting version can be the specific version of the copywriting used by the target application. The specific copywriting key version of the set of copywriting keys (key) of the used copywriting can be used as the copywriting version. The set of copywriting keys can be a set of copywriting keys corresponding to the copywriting used on all pages obtained by a key scanner (KeyScanner) during the compilation of the target application. The copywriting key can represent the multi-language copywriting corresponding to the original copywriting in multiple languages. For example, the copywriting key for the original copywriting "How are you?" is a, and a corresponds to "How are you?" in multiple languages; the copywriting key version and the set of copywriting keys are in one-to-one correspondence. If the original copywriting used on the page of the application remains unchanged, the set of copywriting keys remains unchanged, the corresponding copywriting key version remains unchanged, and thus the copywriting version remains unchanged.
[0039] Step 202: Match the current language with multiple file names in the file path combined with the identification information and copywriting version of the local target application, and determine whether the match is successful. If so, execute Step 203; otherwise, execute Step 204.
[0040] Specifically, after the copywriting processing device extracts the identification information and copywriting version of the target application, it can combine the identification information and copywriting version of the target application to obtain a file path, and check whether there is a file corresponding to the current language in this file path. Specifically, when checking, it can match the current language with multiple file names in this file path. If a file name includes the current language, the match is successful, and Step 203 can be executed; if the current language is not included in all file names, the match fails, and Step 204 can be executed. By looking up the local copywriting resource file through the identification information and copywriting version of the application, ignoring the hash value of the copywriting resource file, even if the copywriting is updated, the copywriting resource file can be found when the business code and the original copywriting of the application remain unchanged, effectively improving the hit rate of the local cache.
[0041] Step 203: Determine that there is a first copywriting resource file corresponding to the current language locally, and determine the successfully matched copywriting resource file as the first copywriting resource file.
[0042] If the copywriting processing device determines that a certain local file name includes the current language, the matching is successful, it is determined that there is a first copywriting resource file corresponding to the current language locally, and the copywriting resource file corresponding to the successfully matched file name is determined as the first copywriting resource file. Subsequently, the first copywriting resource file can be obtained, and the target page in the current language can be rendered and displayed based on the first copywriting resource file.
[0043] Step 204: Determine that there is no first copywriting resource file corresponding to the current language locally.
[0044] If none of the file names include the current language, the matching fails, and it is determined that there is no first copywriting resource file corresponding to the current language locally.
[0045] In the above solution, the version of the original copywriting used in the page of the application is characterized by the identifier of the fixed application and the copywriting version, and is added to the copywriting resource file in an unchanging manner during compilation to ensure that the copywriting resource file corresponding to the version of the original copywriting used in each page is unique and accurate. Subsequently, it is possible to check whether there is a copywriting resource file corresponding to the current language locally through the identifier of the application and the copywriting version. In the case where the business code of the application and the original copywriting remain unchanged, even if the copywriting content of a certain language is updated or a certain language is newly added and not updated locally in time, it is possible to hit the copywriting resource file that has not been updated locally, reuse this copywriting resource file, ensure the maximum hit of the local cache, and thereby improve the page loading speed.
[0046] Step 103: If there is no first copywriting resource file locally, obtain the second copywriting resource file corresponding to the base language, and display the target page in the base language based on the second copywriting resource file.
[0047] Among them, the base language can be a preset fallback language. For example, the base language can be Chinese or English. The second copywriting resource file can be the copywriting resource file corresponding to the base language in the overall copywriting resource file of the target application. This second copywriting resource file can be integrated into the page and stored in the local cache following the installation of the target application. When the user does not set a language, the page is rendered using this base language, and when the copywriting resource file in the required language does not exist, the second copywriting resource file in this base language is used to display the page. By establishing a tight binding relationship between the copywriting resource file in the base language and the page, it is ensured that the copywriting resource can be loaded in a timely manner when the page is rendered, eliminating the page flickering problem.
[0048] If the document processing device determines that there is no first document resource file corresponding to the current language locally based on the document deployment information and the current language, it can extract the second document resource file corresponding to the base language from the local, and render and display the target page in the base language based on the second document resource file, avoiding blocking the extension of the initial response time of the page loading, enabling the user to quickly see the page, and enhancing the page loading experience effect.
[0049] In some embodiments, after determining that there is no first document resource file corresponding to the current language locally, the document processing method may further include: determining the first document resource address corresponding to the current language based on the document resource address information in the document deployment information, and obtaining the corresponding first document resource file based on the first document resource address; wherein, after displaying the target page in the base language based on the second document resource file, the method further includes: refreshing and displaying the target page based on the first document resource file to switch from the base language to the current language.
[0050] Among them, the document resource address information may include relevant information about the resource addresses of the multi-language documents of the target application. The document resource address information may include region information, address prefix, and address suffix. The region information may include regions corresponding to all languages supported by the pages of the target application, and the regions for different languages are different; the address prefix and address suffix may be the prefix and suffix of the resource address of the server storing the multi-language documents of the target application in the Content Delivery Network (CDN). The address prefixes for all languages are the same, and the address suffix of one language can be represented by the hash value of the document resource file of that language. The address suffixes of the document resource files for different languages are different. By combining the region information, address prefix, and address suffix, the document resource address of the document resource file for one language can be determined. The first document resource address may be the server address where the first document resource file corresponding to the current language is located, and is used to obtain the first document resource file.
[0051] Specifically, when the copywriting processing device determines that the first copywriting resource file corresponding to the current language does not exist locally, it can asynchronously execute the acquisition of the first copywriting resource file while displaying the target page in the basic language. Specifically, it can extract the region, address prefix, and address suffix combination corresponding to the current language from the copywriting resource address information in the copywriting deployment information to obtain the corresponding first copywriting resource address. For example, the first copywriting resource address can be expressed as "${public_path} / ${lang_tag}.${file_hash}.json", where public_path is the address prefix of the first copywriting resource file, lang_tag can be the region of the current language, and file_hash can be the address suffix of the first copywriting resource file. Access the first copywriting resource address to obtain the first copywriting resource file from the backend, and refresh the target page in the basic language that has been displayed based on the first copywriting resource file, switch the language of the copywriting in the target page from the basic language to the current language, and finally display the target page in the current language without affecting the normal functional operations of the target page during the switching process. At this time, the obtained first copywriting resource file is cached locally for subsequent use.
[0052] In the above solution, when the copywriting resource file corresponding to the current language does not exist locally, the steps of obtaining the copywriting resource file can be asynchronously executed while displaying the page in the basic language, and after obtaining it, refresh and replace it. This not only ensures the page loading and rendering efficiency, but also ensures that the final page display effect is still the language selected by the user, maintaining a high user experience, and storing the copywriting resource file obtained at this time locally for subsequent loading and use.
[0053] The copywriting processing solution provided by the embodiments of the present disclosure, in response to a page display trigger operation on a target application, obtains copywriting deployment information and the current language; based on the copywriting deployment information and the current language, determines whether there is a first copywriting resource file corresponding to the current language locally. If so, obtains the first copywriting resource file and displays the target page in the current language based on the first copywriting resource file; if the first copywriting resource file does not exist locally, obtains a second copywriting resource file corresponding to the base language and displays the target page in the base language based on the second copywriting resource file. By adopting the above technical solution, when displaying a page of an application, it is possible to determine whether there is a corresponding copywriting resource file locally according to the copywriting deployment information and the current language. If so, display the page in the current language based on the copywriting resource file. If not, display the page in the base language based on the copywriting resource file of the base language. By only loading the copywriting resources of the current language as needed, the initial resource volume is significantly reduced, the loading efficiency is improved, and when there are no copywriting resources locally, the page is displayed through the copywriting resources of the base language, avoiding the extension of the page initial response time caused by blocked loading, further improving the page loading speed, and thus improving the page display experience effect of users.
[0054] In some embodiments, before the above step 101, the copywriting deployment information can be processed by the server in the following manner: splitting the overall copywriting resource file into multiple copywriting resource files corresponding to multiple languages during the compilation stage of the target application; determining the copywriting key version of the copywriting key set used for the pages of the target application, and determining the copywriting key version as the copywriting version; generating copywriting deployment information based on the identification information, copywriting version, and copywriting resource address information of the target application, and adding the copywriting deployment information to the page loading template and the application configuration file.
[0055] Among them, the overall copywriting resource file can be a mixed resource file of the corresponding copywritings in multiple languages of the original copywriting used by the pages of the target application. In this overall copywriting resource file, the files are combined and managed in units of the copywriting keys of the original copywriting. The copywriting resource file is a resource file of the specific copywriting in one language of the original copywriting used by the pages of the target application, and is split into independent files in units of languages. The naming formats of the copywriting resource files in different languages are unified. Exemplarily, the copywriting resource file can be named by region plus hash value. The hash values of all the copywriting resource files of one version can be the same. For example, the hash value can be generated based on the Software Configuration Management (SCM) version number. The specific generation method can be to expand the SCM version number into a five-digit spaced string. For example, expanding the SCM version number "1.0.0.9988" to get "00001.00000.00000.09988". Then, after converting this string into an 8-bit unsigned integer array and transcoding, a hexadecimal hash value can be obtained, such as ff0da7ac7b. The application configuration file can be a file that configures the key information of the application. The application configuration file can include information such as the name, version number, icon, startup page, and description of the application.
[0056] Specifically, for the above copywriting deployment information, the server can obtain the overall copywriting resource file during the compilation stage of the target application through a builder, and split the overall copywriting resource file into multiple independent files according to languages to obtain multiple copywriting resource files. Then, for the set of copywriting keys used by the pages of the target application, the copywriting key version of this set of copywriting keys can be generated through a preset rule and determined as the copywriting version. The preset rule can be, for example, sorting this set of copywriting keys and concatenating them into a string, and then taking the hash value of the string as the copywriting key version. Then, combine the identification information, copywriting version, and copywriting resource address information of the target application to obtain the copywriting deployment information. For example, the copywriting deployment information can be expressed as "interfaceMeta{channel:string;keyset_version:string;detail:ResDetail;}", where channel is used to declare the copywriting distribution space, that is, the identification of the target application, keyset_version represents the copywriting version, and detail represents the copywriting resource address information. Then, the copywriting deployment information can be generated into the page loading template and the application configuration file, so as to load the copywriting resource file using this copywriting deployment information through the page loading template when the page is loaded, and cache the copywriting resource file locally using this copywriting deployment information through the application configuration file when the target application is installed.
[0057] Moreover, the server can separately set a pipeline node in the pipeline during the compilation stage of the target application to upload multiple copywriting resource files in multiple languages locally to the server of the content delivery network. Each copywriting resource file is combined with the corresponding hash value and deployed to the corresponding copywriting resource address determined by the region, address prefix, and hash value. The copywriting resource address information can be determined based on the deployed multiple copywriting resource addresses. When the front end is running, the server can pass the copywriting deployment information as a resource loading parameter into the client interface to load the specific copywriting resource file.
[0058] In the above solution, during the compilation of the application, the used copywriting keys will be scanned, and the copywriting resource files in different languages will be packaged as needed to generate copywriting deployment information, which is added to the page loading template and the application configuration file. After the page is published and the business application offline package is updated, the update will be triggered according to the current language and cached on the local disk. When the actual page is opened, the same copywriting loading logic will also be triggered, and it will be determined whether to block and wait for the copywriting to be loaded and the page to be rendered according to the business requirements, significantly reducing the initial resource volume and improving the loading and rendering efficiency.
[0059] Exemplarily, Figure 3 is a schematic flowchart of another copywriting processing method provided by an embodiment of the present disclosure. As Figure 3 shown, the copywriting processing method may further include:
[0060] Step 301, in response to detecting the copywriting update offline package of the target application, extract the updated copywriting deployment information in the application configuration file of the copywriting update offline package.
[0061] Among them, the copywriting update offline package can be used to trigger the dynamic update of the copywriting of the application. It can be an offline package generated when the specific copywriting content of the original copywriting used on the page of the application is updated in one or more languages, the supported languages and / or the copywriting resource addresses where the copywriting resource files are deployed are updated. The copywriting update offline package is generated by the copywriting producer. The copywriting update offline package may include an application configuration file carrying the updated copywriting deployment information. The updated copywriting deployment information may be the copywriting deployment information regenerated after the dynamic update of the copywriting while the original copywriting of the application remains unchanged, and is used to record the updated part. Compared with the above copywriting deployment information, the identifier and copywriting key version of the target application remain unchanged, and the copywriting resource address information changes. The specific changed parts may include the address suffix change caused by the update of the specific copywriting content of the original copywriting used on the page of the application in one or more languages, the region information change caused by the change of the supported languages, and / or the overall change of the copywriting resource address.
[0062] Specifically, when the copywriting producer updates the copywriting content of the original copy used on the page of the target application in a certain language or adds a copywriting in a new language on the copywriting distribution platform, the copywriting distribution platform can regenerate the updated copywriting deployment information and add the updated copywriting deployment information to the application configuration file and then package it into a copywriting update offline package. The naming of the copywriting update offline package can be determined according to the identifier of the target application, the copywriting version, and the regional information to ensure the correct matching and positioning of the copywriting update offline package, and then release the copywriting update offline package. After receiving the copywriting update offline package, the copywriting processing device can check whether the application configuration file in the copywriting offline package includes the updated copywriting deployment information. If it does, it extracts the updated copywriting deployment information to trigger the copywriting update logic.
[0063] Step 302: Update the local copywriting resource file based on the updated copywriting deployment information.
[0064] Specifically, when the copywriting processing device updates the local copywriting resource file according to the updated copywriting deployment information, differential updates can be performed during the specific update, and only the copywriting resource files that do not exist or are different locally are updated.
[0065] In some embodiments, updating the local copywriting resource file based on the updated copywriting deployment information includes: extracting the identifier information of the target application, the copywriting version, and the updated copywriting resource address information from the updated copywriting deployment information; determining the first language for which there are no copywriting resource files locally and the second language for which there are already copywriting resource files locally according to the identifier information of the target application and the copywriting version; for the first language, obtaining the first updated copywriting resource file corresponding to the first language based on the updated copywriting resource address information and storing the first updated copywriting resource file locally; for the second language, if the comparison result between the updated hash value corresponding to the second language and the local hash value of the corresponding local copywriting resource file is different, obtaining the second updated copywriting resource file corresponding to the second language based on the updated copywriting resource address information and replacing the local copywriting resource file of the second language with the second updated copywriting resource file.
[0066] Among them, updating the copywriting resource address information can be the copywriting resource address information after some information related to the copywriting is updated. The first language can be the language in which the copywriting resource file cannot be found locally according to the identification information of the target application program and the copywriting version, that is, the newly added language, and the number of the first languages can be one or more. The second language can be the language in which the copywriting resource file can be found locally according to the identification information of the target application program and the copywriting version, and the number of the second languages can be one or more. The updated hash value can be the hash value corresponding to the updated specific copywriting content of the second language, which can be obtained by extracting the address suffix corresponding to the second language from the updated copywriting resource address information. The local hash value can be the hash value corresponding to the copywriting resource file of the second language locally, which can be obtained by extracting from the file name of the local copywriting resource file. The first updated copywriting resource file can be the copywriting resource file corresponding to the updated first language. The second updated copywriting resource file can be the copywriting resource file corresponding to the second language in which the specific copywriting content of the original copywriting has changed.
[0067] Specifically, when the copywriting processing device updates the local copywriting resource file, it can first, for each language of multiple languages in the updated copywriting deployment information, determine whether there is a corresponding copywriting resource file locally according to the identification information of the target application program, the copywriting version, and the language. If it exists, the language is the first language; if it does not exist, the language is the second language. For the first language, the corresponding copywriting resource address can be directly determined according to the updated copywriting resource address information, and the corresponding first updated copywriting resource file can be obtained by accessing this copywriting resource address and stored locally. For the second language, the updated hash value corresponding to the second language is obtained from the updated copywriting resource address information, and this updated hash value is compared with the local hash value of the second language in the local copywriting resource file. If they are the same, there is no need to update; if they are different, an update is required. The copywriting resource address of the second language can be determined according to the updated copywriting resource address information, and the corresponding second updated copywriting resource file can be obtained by accessing this copywriting resource address, and the local copywriting resource file of the second language with the comparison result of not wanting to update is replaced with this second updated copywriting resource file to complete the dynamic update of the copywriting. By means of the differential update of the copywriting, only the changed parts are updated, reducing unnecessary resource waste, and completing the update of the local copywriting efficiently and at low cost, avoiding the problems of high cost and low efficiency caused by full-scale update.
[0068] Optionally, when the copywriting processing device receives a page display trigger operation for a target application and determines based on the copywriting deployment information and the current language that there is no first copywriting resource file corresponding to the current language locally, it can first check whether the above copywriting update offline package exists. If it exists, it compares the update hash value of the current language in the update copywriting deployment information in the application configuration file of the copywriting offline update package with the hash value in the copywriting deployment information. If they are different, it directly obtains the latest first copywriting resource file of the current language according to the update copywriting deployment information, and displays the updated target page of the current language based on the second copywriting resource file.
[0069] Optionally, the copywriting processing device can clean up expired copywriting resource files or copywriting resource files that have not been used for a period of time according to the set cleaning policy for the local copywriting resource files, so as to avoid waste of resources and occupation of space.
[0070] In the above solution, by fixing the identifier of the application and the copywriting version of each version of the page of the application, it cannot be dynamically updated logically. However, the information in the copywriting resource address information is allowed to change and will not affect the correct rendering of the copywriting. By updating the information in the copywriting resource address information to achieve dynamic update of the copywriting, the copywriting resource address information includes the specific copywriting content in multiple languages of the original copywriting used by the page of the application, the supported languages, and the copywriting resource address where the copywriting resource file is deployed. By dynamically updating this information, it is possible to update the copywriting resources without changing the logical structure. This mechanism ensures that when the identifier of the application and the copywriting version are fixed, only the update of the copywriting resource address information part needs to be checked to obtain the latest copywriting, and the normal rendering of the copywriting is not affected during the update process.
[0071] In the related art, the copywriting content and the code are packaged together, resulting in the need to usually recompile the code, perform an overall replacement, or involve more complex operations each time the copywriting is updated, with poor flexibility. This case supports independent update and flexible management of copywriting resources, and can trigger dynamic update through preset conditions, ensuring that even in a highly variable business environment, users can access the latest copywriting content. This mechanism reduces the complexity of the update and lowers the development and operation and maintenance costs.
[0072] Next, a specific example is used to further illustrate the copywriting processing method of the embodiments of the present disclosure. Exemplarily, Figure 4 is a schematic diagram of a copywriting processing process provided by an embodiment of the present disclosure, as Figure 4As shown in the figure, the text processing process includes a loading process and a resource processing process. The steps marked in bold in these two processes are the same. The loading process may include: after the user enters the page, the page view starts, the page loading template is loaded, it is determined whether to block and wait for text loading. If blocking and waiting, it is determined whether there is a text resource file in the current language locally. For the specific determination process, refer to the resource processing of the client. If so, the text resource file in the current language is obtained, and the page in the current language is rendered using the text resource file in the current language; if not, the page in the basic language is rendered using the text resource file in the basic language, and after the text resource file in the current language is loaded and completed, it is refreshed and the page in the current language is rendered.
[0073] The resource processing may include: when the page is loaded, the text deployment information in the page loading template is used to trigger text loading, the text deployment information is parsed and the current language is obtained, and it is determined whether there is a text resource file in the current language locally according to the identifier of the application program and the text version in the text deployment information. If so, the text resource file in the current language is obtained, and the page in the current language is returned to the front-end loading process for rendering; otherwise, while the page in the basic language is being rendered in the loading process, the client asynchronously fetches the text resource file in the current language. After the fetching is completed, the page in the basic language is refreshed and switched to the page in the current language, and the text resource file in the current language is written into the local cache.
[0074] The client can cache the text resource files in the local disk according to the three-level directory of the application program identifier, text version, and hash value. For example, the three-level directory can be expressed as:
[0075] channel1 /
[0076] ├──keyset1 /
[0077] │├──meta.json
[0078] │├──en.[hash].json
[0079] │└──ar.[hash].json
[0080] └──keyset2 /
[0081] ├──meta.json
[0082] └──en.[hash].json
[0083] channel2 /
[0084] └──keyset3 /
[0085] ├──meta.json
[0086] └──da.[hash].json
[0087] Among them, channel represents the identifier of the application. After the business code of the application is updated, the identifier of the application changes; keyset_version represents the copywriting version. When the specific copywriting content of one or more languages of the original copywriting used on the page of the application changes, this copywriting version changes; locale.[hash] represents the hash value of the specific language. There can be copywriting resource files in multiple languages under the keyset_version directory, but there will be only one copywriting resource file for each language. In addition to the copywriting resource files, a copywriting deployment information currently in use will also be stored under the keyset_version directory, and the file name is fixed as meta.json. The local cached copywriting resource files can control the total disk space through a preset cache eviction policy. The preset eviction policy can be, for example, the Least Recently Used (LRU) policy. The total usage space size configuration is dynamically controlled. For example, it can be configured to store 100 copywriting resource files. When all the copywriting resource files in a certain keyset_version are emptied, this keyset_version directory will be deleted, including the internal copywriting deployment information.
[0088] Resource processing can also include: when there is a copywriting update offline package for the application, use the updated copywriting deployment information in the application configuration file therein to trigger copywriting update. When updating the copywriting, parse the updated copywriting deployment information and perform differential update on the local copywriting resource files. For the specific update process, please refer to the above embodiments (not shown in the figure), and details will not be elaborated here.
[0089] This solution aims to significantly reduce the initial resource volume, improve the loading and rendering efficiency, and thus enhance the user experience by optimizing the resource loading process. By scanning the copywriting keys actually used by the application during compilation and dynamically generating independent resource files for each language, this strategy not only effectively reduces the loading volume but also realizes on-demand loading, significantly improving the resource utilization efficiency and the page loading speed, especially having advantages in the mobile network environment. By establishing a tight binding between the copywriting and the page, it ensures that the correct copywriting resources can be loaded in time when the page is rendered, thus eliminating the page flickering problem. By optimizing the loading strategy of the client, it realizes the parallel loading of the copywriting and the page, and can provide better performance whether in the online or offline mode, bringing a smoother and more consistent usage experience to users. In addition, this solution supports a flexible copywriting dynamic update mechanism, enabling the application to quickly respond to the latest business requirements.
[0090] Through a series of innovations and optimizations of technical means, this solution not only meets the high - standard requirements of modern multilingual applications, but also solves major defects in the existing technology, providing users with a highly advantageous technical implementation solution, with significant improvements in aspects such as response speed, stability, and maintainability.
[0091] Figure 5 It is a schematic structural diagram of a copywriting processing device provided for an embodiment of the present disclosure. This device can be implemented by software and / or hardware and is generally integrated in an electronic device. As Figure 5 shown, the device includes:
[0092] An acquisition module 501, configured to obtain copywriting deployment information and the current language in response to a page display trigger operation for a target application.
[0093] A first display module 502, configured to determine whether there is a first copywriting resource file corresponding to the current language locally based on the copywriting deployment information and the current language. If so, obtain the first copywriting resource file and display the target page in the current language based on the first copywriting resource file.
[0094] A second display module 503, configured to, if the first copywriting resource file does not exist locally, obtain a second copywriting resource file corresponding to the basic language and display the target page in the basic language based on the second copywriting resource file.
[0095] Optionally, the acquisition module 501 is configured to:
[0096] Extract the copywriting deployment information in the page loading template and obtain the current language set by the user.
[0097] Optionally, the first display module 502 is specifically configured to:
[0098] Extract the identification information and copywriting version of the target application in the copywriting deployment information.
[0099] Match the current language with multiple file names under the file path combined with the identification information and copywriting version of the target application locally. If the match is successful, it is determined that there is a first copywriting resource file corresponding to the current language locally, and the successfully matched copywriting resource file is determined as the first copywriting resource file; otherwise, it is determined that there is no first copywriting resource file corresponding to the current language locally.
[0100] Optionally, the device further includes an asynchronous acquisition module, configured to: after determining that there is no first copywriting resource file corresponding to the current language locally,
[0101] Determine the first copy resource address corresponding to the current language based on the copy resource address information in the copy deployment information, and obtain the corresponding first copy resource file based on the first copy resource address;
[0102] Obtain the corresponding first copy resource file based on the first copy resource address;
[0103] Among them, the device further includes a refresh module, which is used for: after displaying the target page in the base language based on the second copy resource file,
[0104] Refresh and display the target page based on the first copy resource file to switch from the base language to the current language.
[0105] Optionally, the copy deployment information is processed by the server in the following manner:
[0106] During the compilation stage of the target application, split the overall copy resource file into multiple copy resource files corresponding to multiple languages;
[0107] Determine the copy key version of the copy key set of the copy used on the page of the target application, and determine the copy key version as the copy version;
[0108] Generate copy deployment information based on the identification information of the target application, the copy version, and the copy resource address information, and add the copy deployment information to the page loading template and the application configuration file.
[0109] Optionally, the device further includes an update module, which is used for:
[0110] In response to detecting the copy update offline package of the target application, extract the updated copy deployment information in the application configuration file of the copy update offline package, and update the local copy resource file based on the updated copy deployment information.
[0111] Optionally, the update module is specifically used for:
[0112] Extract the identification information, copy version, and updated copy resource address information of the target application in the updated copy deployment information;
[0113] Determine the first language for which there is no copy resource file locally and the second language for which there are already copy resource files locally according to the identification information and copy version of the target application;
[0114] For the first language, obtain the first updated copy resource file corresponding to the first language based on the updated copy resource address information, and store the first updated copy resource file locally;
[0115] For the second language, if the comparison result between the updated hash value corresponding to the second language and the local hash value of the corresponding local copywriting resource file is different, obtain the second updated copywriting resource file of the second language based on the updated copywriting resource address information, and replace the local copywriting resource file of the second language with the second updated copywriting resource file.
[0116] The copywriting processing device provided by the embodiments of the present disclosure can execute the copywriting processing method provided by any embodiment of the present disclosure, and has functional modules and beneficial effects corresponding to the execution of the method.
[0117] The embodiments of the present disclosure further provide a computer program product, including a computer program / instructions, and when the computer program / instructions are executed by a processor, the copywriting processing method provided by any embodiment of the present disclosure is implemented.
[0118] Figure 6 It is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
[0119] Specifically refer to the following Figure 6 , which shows a schematic structural diagram of an electronic device 600 suitable for implementing the embodiments of the present disclosure. The electronic device 600 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The shown electronic device is only an example, and should not bring any limitation to the functions and usage scopes of the embodiments of the present disclosure.
[0120] As Figure 6 shown, the electronic device 600 may include a processing device 601 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the programs stored in the read-only memory (ROM) 602 or the programs loaded from the storage device 608 into the random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. The input / output (I / O) interface 605 is also connected to the bus 604.
[0121] Typically, the following devices can be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 can allow the electronic device 600 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 6 the electronic device 600 with various devices is shown, it should be understood that it is not required to implement or include all the shown devices. Instead, more or fewer devices can be implemented or included.
[0122] Specifically, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above functions defined in the document processing method of the embodiment of the present disclosure are executed.
[0123] It should be noted that the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory (EPROM), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable signal medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination of the above.
[0124] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as the HyperText Transfer Protocol (HTTP), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.
[0125] The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist separately and not be assembled into the electronic device.
[0126] The above computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: in response to a page display trigger operation for a target application, obtain copywriting deployment information and the current language; based on the copywriting deployment information and the current language, determine whether there is a first copywriting resource file corresponding to the current language locally. If so, obtain the first copywriting resource file and display the target page in the current language based on the first copywriting resource file; if the first copywriting resource file does not exist locally, obtain a second copywriting resource file corresponding to the base language and display the target page in the base language based on the second copywriting resource file.
[0127] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, execute as a stand-alone software package, execute partially on the user's computer and partially on a remote computer, or execute entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network or a wide area network, or may be connected to an external computer (e.g., by connecting through the Internet using an Internet service provider).
[0128] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.
[0129] The units involved in the embodiments of the present disclosure can be implemented in software or in hardware. In some cases, the name of a unit does not constitute a limitation on the unit itself.
[0130] The functions described above herein can be performed, at least in part, by one or more hardware logic components. By way of example, and without limitation, exemplary types of hardware logic components that may be used include: Field-Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Parts (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), and the like.
[0131] In the context of the present disclosure, a machine-readable medium may be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, a flash memory, an optical fiber, a portable compact disc read-only memory, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0132] It can be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the type, scope of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to users and the authorization of users should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0133] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles applied. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the (but not limited to) technical features having similar functions disclosed in the present disclosure.
[0134] Moreover, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the foregoing description, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.
[0135] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. On the contrary, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A copywriting processing method, characterized in that, including: Upon triggering an operation for page display of a target application, obtain copywriting deployment information and the current language; Based on the copywriting deployment information and the current language, determine whether there is a first copywriting resource file corresponding to the current language locally. If so, obtain the first copywriting resource file and display the target page in the current language based on the first copywriting resource file; If the first copywriting resource file does not exist locally, obtain a second copywriting resource file corresponding to the base language and display the target page in the base language based on the second copywriting resource file.
2. The method according to claim 1, characterized in that, The obtaining of the copywriting deployment information and the current language includes: Extract the copywriting deployment information from the page loading template and obtain the current language set by the user.
3. The method according to claim 1, wherein Based on the copywriting deployment information and the current language, determining whether there is a first copywriting resource file corresponding to the current language locally includes: Extract the identification information and copywriting version of the target application from the copywriting deployment information; Match the current language with multiple file names under the file path combined with the identification information and copywriting version of the target application locally. If the match is successful, determine that there is a first copywriting resource file corresponding to the current language locally and determine the successfully matched copywriting resource file as the first copywriting resource file; otherwise, determine that there is no first copywriting resource file corresponding to the current language locally.
4. The method according to claim 1, wherein After determining that there is no first copywriting resource file corresponding to the current language locally, the method further includes: Determine the first copywriting resource address corresponding to the current language based on the copywriting resource address information in the copywriting deployment information and obtain the corresponding first copywriting resource file based on the first copywriting resource address; Wherein, after displaying the target page in the base language based on the second copywriting resource file, the method further includes: Refresh and display the target page based on the first copywriting resource file to switch from the base language to the current language.
5. The method according to claim 1, characterized in that, The copywriting deployment information is processed by the server in the following manner: During the compilation stage of the target application, split the overall copywriting resource file into multiple copywriting resource files corresponding to multiple languages; Determine the copywriting key version of the copywriting key set used for the page of the target application and determine the copywriting key version as the copywriting version; Generate copywriting deployment information based on the identification information, copywriting version, and copywriting resource address information of the target application and add the copywriting deployment information to the page loading template and the application configuration file.
6. The method according to claim 1, characterized in that, The method further includes: Upon detecting a copywriting update offline package of the target application, extract the updated copywriting deployment information from the application configuration file of the copywriting update offline package and update the local copywriting resource file based on the updated copywriting deployment information.
7. The method according to claim 6, wherein Updating the local copywriting resource file based on the updated copywriting deployment information includes: Extract the identification information, copywriting version, and updated copywriting resource address information of the target application from the updated copywriting deployment information; Determine the first language for which there is no copywriting resource file locally and the second language for which there are existing copywriting resource files locally according to the identification information of the target application and the copywriting version; For the first language, obtain the first updated copywriting resource file corresponding to the first language based on the updated copywriting resource address information, and store the first updated copywriting resource file locally; For the second language, if the comparison result between the updated hash value corresponding to the second language and the local hash value of the corresponding local copywriting resource file is different, obtain the second updated copywriting resource file for the second language based on the updated copywriting resource address information, and replace the local copywriting resource file of the second language with the second updated copywriting resource file.
8. A copywriting processing device, characterized in that, It includes: An acquisition module, configured to acquire copywriting deployment information and the current language in response to a page display trigger operation on a target application; A first display module, configured to determine whether there is a first copywriting resource file corresponding to the current language locally based on the copywriting deployment information and the current language. If so, acquire the first copywriting resource file and display the target page in the current language based on the first copywriting resource file; A second display module, configured to, if the first copywriting resource file does not exist locally, acquire a second copywriting resource file corresponding to the base language and display the target page in the base language based on the second copywriting resource file.
9. An electronic device, characterized in that, The electronic device includes: A processor; A memory for storing executable instructions executable by the processor; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the copywriting processing method described in any one of the above claims 1-7.
10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, and the computer program is used to execute the copywriting processing method described in any one of the above claims 1-7.