Font resource processing method and device, terminal equipment and medium
By automatically processing font resource modification points on terminal devices and building and merging difference reports, the problem of low efficiency in manual merging of font resources is solved, and efficient and accurate font resource merging and verification is achieved.
Patent Information
- Application Number
- CN202211031827.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-26
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2042-08-26
AI Technical Summary
In existing font resource processing, manual modification point comparison, merging, and verification are inefficient and prone to errors, leading to invalid merging problems.
Through automated processing on the terminal device, font modification data is obtained to construct an initial difference report, which is then merged and compared with the original report to generate a total difference report. Verification is also performed to eliminate misspellings and omissions, and an invalid character interception mechanism is added.
It improves the efficiency and accuracy of font resource merging, reduces manual processing costs, and ensures the quality of merging.
Smart Images

Figure CN115328890B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, and particularly relates to a font resource processing method and device, a terminal equipment and a computer readable storage medium. BACKGROUND
[0002] The font table used by the existing sports watch has millions of cells, and before and after the font is updated and modified, the modification points in the font need to be merged to realize the corresponding functions based on the merged data.
[0003] However, the modification points before and after the font resource is updated are currently compared and merged in an artificial manner, and the merged results are verified. This manner is inefficient and prone to errors, such as invalid merging caused by invalid strings. Therefore, the existing font resource processing manner has problems of low data merging efficiency and low data merging quality. SUMMARY
[0004] The main purpose of the present application is to provide a font resource processing method and device, a terminal equipment and a computer readable storage medium, which aims to realize accurate and efficient font resource merging processing.
[0005] To achieve the above purpose, the present application provides a font resource processing method, which comprises the following steps:
[0006] Obtain font modification data of a font resource, and construct a plurality of initial difference reports according to the font modification data;
[0007] Merge the plurality of initial difference reports to obtain a latest font resource report, and compare the latest font resource report with an original report before the font resource is updated to obtain a total difference report;
[0008] Compare the total difference report with the initial difference report to obtain a verification result of font data merging, and perform data evaluation on the merged font resource based on the verification result.
[0009] Optionally, the verification result of font data merging comprises a plurality of verification result display pages, and the step of comparing the total difference report with the initial difference report to obtain a verification result of font data merging comprises:
[0010] Comparing the total difference report with the initial difference report to obtain the plurality of verification result display pages.
[0011] Optionally, the plurality of check result display pages comprises a first check result display page, a second check result display page and a third check result display page, and the step of comparing the total difference report with the initial difference report to obtain the plurality of check result display pages comprises:
[0012] comparing the total difference report with the initial difference report to obtain first modification data in the total difference report and not in the initial difference report, and second modification data not in the total difference report and in the initial difference report;
[0013] extracting modification data with a merging mark from the second modification data as third modification data;
[0014] constructing the first check result display page according to the first modification data, constructing the second check result display page according to the second modification data, and constructing the third check result display page according to the third modification data.
[0015] Optionally, before the step of constructing a plurality of initial difference reports according to a plurality of font library modification data, the method further comprises:
[0016] obtaining modification data to be merged in each of the initial difference reports, and marking the modification data;
[0017] The step of merging a plurality of initial difference reports to obtain a latest font library resource report comprises:
[0018] merging the marked modification data in each of the initial difference reports to obtain a latest font library resource report.
[0019] Optionally, after the step of obtaining font library modification data of font library resources, the method further comprises:
[0020] determining whether the font library modification data contains invalid characters;
[0021] If yes, intercepting the invalid characters, and generating an interception reminder notification based on the invalid characters.
[0022] Optionally, before the step of obtaining font library modification data of font library resources, the method further comprises:
[0023] obtaining first font library data before the preset font library resource is updated and second font library data after the preset font library resource is updated;
[0024] The step of obtaining font library modification data of font library resources comprises:
[0025] comparing the first font library data with the second font library data to obtain font library modification data.
[0026] Optionally, before the step of comparing the latest font resource report with the original report before the font resource update to obtain a total difference report, the method further comprises:
[0027] backing up the original report before the font resource update;
[0028] The step of comparing the latest font resource report with the original report before the font resource update to obtain a total difference report comprises:
[0029] comparing the latest font resource report with the backed-up original report to obtain a total difference report.
[0030] To achieve the above object, the present application further provides a font resource processing device, which comprises:
[0031] a construction module, configured to acquire font modification data of a font resource and construct a plurality of initial difference reports according to the font modification data;
[0032] a merging module, configured to merge the plurality of initial difference reports to obtain a latest font resource report, and compare the latest font resource report with an original report before the font resource update to obtain a total difference report;
[0033] a verification module, configured to compare the total difference report with the initial difference reports to obtain a verification result of font data merging, and perform data evaluation on the merged font resource based on the verification result.
[0034] To achieve the above object, the present application further provides a terminal device, which comprises a memory, a processor and a font resource processing program stored in the memory and executable on the processor, and the font resource processing program, when executed by the processor, implements the steps of the font resource processing method as described above.
[0035] In addition, to achieve the above object, the present application further provides a computer readable storage medium, which stores a font resource processing program, and the font resource processing program, when executed by a processor, implements the steps of the font resource processing method as described above.
[0036] To achieve the above object, the present application further provides a computer program product, which comprises a computer program, and the computer program, when executed by a processor, implements the steps of the font resource processing method as described above.
[0037] The present invention provides a font resource processing method, apparatus, terminal device, computer-readable storage medium and computer program product, which obtain font modification data of font resources and construct multiple initial difference reports based on the font modification data; merge the multiple initial difference reports to obtain the latest font resource report, and compare the latest font resource report with the original report before the font resource is updated to obtain a total difference report; compare the total difference report with the initial difference report to obtain a verification result of the font data merging, so as to perform data evaluation on the merged font resource based on the verification result.
[0038] Compared to the existing manual merging of font resources, the present invention allows backend technicians to automatically compare, merge, and verify font resources using a terminal device. This improves the efficiency of font resource merging. Furthermore, the present invention incorporates a verification mechanism for merging font resources, eliminating problems such as mismatches and omissions, and improving the accuracy of font resource merging. Furthermore, this reduces manual processing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of the hardware operating environment involved in an embodiment of the present invention;
[0040] Figure 2 This is a schematic diagram of a first flow chart of an embodiment of a method for processing character library resources according to the present invention;
[0041] Figure 3 This is a second flow chart of an embodiment of the method for processing character resources according to the present invention;
[0042] Figure 4 FIG. 1 is a schematic diagram of functional modules of an embodiment of a font resource processing device according to the present invention.
[0043] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0045] like Figure 1 As shown, Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0046] The terminal device of the embodiment of the present invention can be a wearable device such as a watch, a bracelet and a ring, or it can be a locator, a mobile phone, a tablet computer, a server and a network device. The terminal device in this embodiment can be used to implement operations such as font resource comparison, merging and verification.
[0047] As shown in Figure 1 The terminal device can include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection communication between the components. The user interface 1003 can include a display screen (Display), an input unit such as a keyboard (Keyboard), and an optional user interface 1003 can also include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 can be a high-speed RAM memory, or a stable memory (non-volatile memory) such as a disk memory. The memory 1005 can also be an independent storage device from the aforementioned processor 1001.
[0048] Those skilled in the art can understand that Figure 1 The device structure shown in the figure does not constitute a limitation on the font resource processing device, and can include more or fewer components than the figure, or combine certain components, or different component arrangements.
[0049] As shown in Figure 1 The memory 1005 as a computer storage medium can include operations, network communication modules, user interface modules, and font resource processing programs. The operation is a program that manages and controls the hardware and software resources of the device, supports the running of the font resource processing program and other software or programs. In Figure 1 In the device shown in the figure, the user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used for establishing a communication connection with the server; and the processor 1001 can be used to call the font resource processing program stored in the memory 1005 and perform the following operations:
[0050] Obtain font modification data of the font resource, and construct a plurality of initial difference reports according to the font modification data;
[0051] Merge the plurality of initial difference reports to obtain a latest font resource report, and compare the latest font resource report with an original report before the font resource is updated to obtain a total difference report;
[0052] Compare the total difference report with the initial difference report to obtain a verification result of the font data merging, and perform data evaluation on the merged font resource based on the verification result.
[0053] Further, the verification result of the font data merging includes a plurality of verification result display pages, and the processor 1001 can be used to call the font resource processing program stored in the memory 1005 and perform the following operations:
[0054] The total difference report is compared with the initial difference report to obtain a plurality of check result display pages.
[0055] Further, the plurality of check result display pages include a first check result display page, a second check result display page, and a third check result display page. The processor 1001 can be configured to invoke the font resource processing program stored in the memory 1005 and perform the following operations:
[0056] The total difference report is compared with the initial difference report to obtain first modified data in the total difference report and not in the initial difference report, and second modified data not in the total difference report and in the initial difference report.
[0057] The modified data with the merging mark from the second modified data is extracted as third modified data.
[0058] The first check result display page is constructed according to the first modified data, the second check result display page is constructed according to the second modified data, and the third check result display page is constructed according to the third modified data.
[0059] Further, before the step of merging the initial difference reports to obtain the latest font resource report, the processor 1001 can be configured to invoke the font resource processing program stored in the memory 1005 and perform the following operations:
[0060] The modified data to be merged in each initial difference report is obtained, and the modified data is marked.
[0061] The processor 1001 can be configured to invoke the font resource processing program stored in the memory 1005 and perform the following operations:
[0062] The marked modified data in each initial difference report is merged to obtain the latest font resource report.
[0063] Further, after the step of obtaining the font resource modification data of the font library, the processor 1001 can be configured to invoke the font resource processing program stored in the memory 1005 and perform the following operations:
[0064] It is judged whether the font modification data has invalid characters.
[0065] If yes, the invalid characters are intercepted, and an interception reminder notification is generated based on the invalid characters.
[0066] Further, before the step of obtaining the font resource modification data of the font library, the processor 1001 can be configured to invoke the font resource processing program stored in the memory 1005 and perform the following operations:
[0067] obtaining first font data before a preset font resource is updated and second font data after the font resource is updated;
[0068] The processor 1001 can be configured to invoke the font resource processing program stored in the memory 1005 and perform the following operations:
[0069] comparing the first font data with the second font data to obtain font modification data.
[0070] Further, before the step of comparing the latest font resource report with the original report before the font resource is updated to obtain a total difference report, the processor 1001 can be configured to invoke the font resource processing program stored in the memory 1005 and perform the following operations:
[0071] backing up the original report before the font resource is updated;
[0072] The processor 1001 can be configured to invoke the font resource processing program stored in the memory 1005 and perform the following operations:
[0073] comparing the latest font resource report with the backed-up original report to obtain a total difference report.
[0074] Referring to Figure 2 , Figure 2 The flowchart of the first embodiment of the font resource processing method of the present application.
[0075] The embodiments of the font resource processing method provided by the present application need to be explained. Although the logical order is shown in the flowchart, in some cases, the steps shown or described herein can be performed in a different order.
[0076] It is considered that for terminal devices, especially wearable devices such as smart watches, after the font resource is updated, the font data before and after the update needs to be merged, and then the corresponding functions are realized based on the merged data. However, the way of comparing, merging and checking the font data by manual method greatly reduces the data merging accuracy and is low in efficiency. In view of the above problems, in the present application, an integrated method of automatically comparing, merging and checking font resources is provided, which aims to improve the merging quality and efficiency of font resources and reduce the labor cost.
[0077] Specifically, the font resource processing method in the present embodiment includes the following steps:
[0078] Step S10, obtaining font modification data of the font resource, and constructing a plurality of initial difference reports according to the font modification data;
[0079] It should be noted that in the present embodiment, there can be multiple modification points in the font library resource in the wearable device before and after the font library resource is updated and modified. The background technical personnel can use the terminal device to automatically compare, merge and check the modification points in the font library resource.
[0080] At this time, the terminal device can obtain font library modification data of the font library resource according to the multiple modification points before and after the font library resource is modified, and on this basis, as shown in the following formula, an initial difference report 1, an initial difference report 2, …, and an initial difference report n can be constructed according to the font library modification data. Figure 3
[0081] Step S20, merging the multiple initial difference reports to obtain a latest font library resource report, and comparing the latest font library resource report with an original report before the font library resource is updated to obtain a total difference report;
[0082] After the terminal device obtains the multiple initial difference reports, the multiple initial difference reports are batch-merged to obtain a latest font library resource report (i.e., the merged file in the following formula), and then the latest font library resource report is compared with an original report before the font library resource is updated, and a total difference report (i.e., the total difference report in the following formula) is obtained, wherein the original report before the font library resource is updated contains all font library resource data before the font library is updated. Figure 3 Figure 3
[0083] In an embodiment, after the terminal device obtains the multiple initial difference reports, before the multiple initial difference reports are batch-merged, the multiple initial difference reports obtained can be pre-collected under a preset SVN (Subversion, an open source version control system) folder, and then the multiple initial difference reports under the SVN folder are batch-merged to obtain a latest font library resource report.
[0084] Step S30, comparing the total difference report with the initial difference report to obtain a verification result of font library data merging, and performing data evaluation on the merged font library resource based on the verification result.
[0085] After the terminal device obtains the total difference report, the total difference report is further compared with the initial difference report obtained above to complete verification of the font library resource merging, and a corresponding verification result is obtained, so that the background technical personnel can directly judge whether there are problems such as wrong merging, missing merging and conflict merging in this font library resource merging according to the verification result.
[0086] In the embodiment, the terminal device can obtain the font library modification data of the font library resource according to multiple modification points before and after modification of the font library resource, and on this basis, multiple initial difference reports are constructed according to the modification data. Further, the multiple initial difference reports are batch-merged to obtain a latest font library resource report, and then the latest font library resource report is compared with the original report before updating of the font library resource, and a total difference report is obtained. Finally, the total difference report is compared with the initial difference report obtained above to obtain a verification result of font library merging.
[0087] Compared with the manual font library resource merging manner in the prior art, in the present application, the background technician can automatically perform font library resource comparison, merging and verification by using the terminal device. Therefore, the present application improves the font library resource merging efficiency, and at the same time, the present application increases the font library resource merging and verification mechanism, eliminates the problems of wrong merging and missing merging, and improves the font library resource merging accuracy. On this basis, the manual processing cost is also reduced.
[0088] Further, based on the first embodiment of the font library resource processing of the present application, a second embodiment of the font library resource processing of the present application is proposed.
[0089] In the embodiment, the step S30 of "comparing the total difference report with the initial difference report to obtain a verification result of font library data merging" can include:
[0090] The step S301 of comparing the total difference report with the initial difference report to obtain the multiple verification result display pages.
[0091] It should be noted that in the embodiment, in order to enable the background technician to check whether the font library resource merging is wrong in time, the terminal device can display the verification results in the form of pages in the front end.
[0092] Specifically, for example, the terminal device can compare the obtained total difference report with the initial difference report to verify the font library resource merging result and obtain multiple verification result display pages, wherein the multiple verification result display pages are used to display different verification results.
[0093] Further, the step S301 can include:
[0094] The step S3011 of comparing the total difference report with the initial difference report to obtain first modification data in the total difference report and not in the initial difference report, and second modification data not in the total difference report and in the initial difference report.
[0095] The step S3012 of extracting modification data containing a merging mark from the second modification data as third modification data.
[0096] Step S3013, constructing the first check result display page according to the first modification data, constructing the second check result display page according to the second modification data, and constructing the third check result display page according to the third modification data.
[0097] It should be noted that, in the embodiment, the check result display page includes but is not limited to the first check result display page, the second check result display page, and the third check result display page, wherein each check result display page is used to display different check results.
[0098] The terminal device compares the total difference report obtained with the initial difference report, and three comparison results can be obtained:
[0099] 1) the first modification data in the total difference report but not in the initial difference report; 2) the second modification data not in the total difference report but in the initial difference report; and 3) extracting the modification data with a merging mark from the second modification data as the third modification data. Further, the first modification data, the second modification data, and the third modification data are respectively put into different check result display pages to obtain the corresponding first check result display page, the second check result display page, and the third check result display page.
[0100] It should be noted that, if the first check result display page is not empty, it means that there is a font resource mismatching situation; if the third check result display page is not empty, it means that there is a font resource conflict merging or missing merging situation. The second check result display page is used to store all modification points of the font resource missing merging, conflict merging, and mismatching, so as to facilitate the technical personnel to check and locate.
[0101] On this basis, the background technical personnel can directly obtain the problems in the font resource merging from the above-mentioned first check result display page, the second check result display page, and the third check result display page, so as to improve the font resource merging quality.
[0102] Further, before the step S20 of “constructing a plurality of initial difference reports according to a plurality of font modification data”, the method further includes:
[0103] Step S40, obtaining the modification data to be merged in each initial difference report, and marking the modification data;
[0104] Correspondingly, the above-mentioned “constructing a plurality of initial difference reports according to a plurality of font modification data” can include:
[0105] Step S201, merging the marked modification data in each initial difference report to obtain a latest font resource report.
[0106] After the terminal device acquires the initial difference report, all the modification points in the difference report are included, but the modification points that do not need to be merged are included in all the modification points. In the embodiment, whether the modification data needs to be merged can be determined by the technician according to the function corresponding to each modification point. For the modification data that needs to be merged, the modification data can be marked in advance before merging.
[0107] Further, when the terminal device merges the initial difference report, only the marked modification data is merged, and the latest font library resource report is obtained.
[0108] In the embodiment, when the terminal device merges the initial difference report, only the marked modification data is merged. The terminal device compares the obtained total difference report with the initial difference report to obtain first modification data in the total difference report and not in the initial difference report, second modification data not in the total difference report and in the initial difference report, and third modification data extracted from the second modification data and having a merging mark. Further, the first modification data, the second modification data and the third modification data are respectively put into different check result display pages to obtain corresponding first check result display page, second check result display page and third check result display page.
[0109] In the present application, after merging the font library resources, the merging result can be further checked, and the checking result can be displayed in the form of a page. Therefore, the present application can automatically compare and merge the font library resources, improve the efficiency of merging the font library resources, and check the merging result to eliminate the problems of wrong merging and missing merging, and improve the accuracy of merging the font library resources.
[0110] Further, based on the first embodiment and the second embodiment of the font library resource processing of the present application, a third embodiment of the font library resource processing of the present application is proposed.
[0111] In the embodiment, after the above step S10, "obtaining font library modification data of the font library resource", the method can further include:
[0112] Step S50, judging whether the font library modification data has invalid strings;
[0113] Step S60, if yes, intercepting the invalid characters, and generating an interception reminder notification based on the invalid characters.
[0114] After the terminal device obtains the font modification data of the font resource, since the font modification data may contain invalid strings, in order to avoid invalid merging of font resources caused by invalid strings, the terminal device needs to pre-determine whether there are invalid characters in the font modification data. If it is determined that there is indeed an invalid string in the font modification data, the invalid string will be intercepted, and at the same time, an interception reminder notification containing specific interception content will be generated.
[0115] Furthermore, before the above step S10 of "obtaining font modification data of font resources", the method further includes:
[0116] Step S70, obtaining the first font data before the font resource is updated and the second font data after the update;
[0117] The above step S10, "obtaining font modification data of font resources", may include:
[0118] Step S102: Compare the first character library data with the second character library data to obtain character library modification data.
[0119] like Figure 3 As shown, the terminal device needs to pre-acquire the first font data before the font resource is updated and the second font data after the update, and then match the first font data before the update and the second font data after the update one by one to obtain the font modification data.
[0120] Furthermore, before the above step S20 of "comparing the latest font resource report with the original report before the font resource update to obtain a total difference report", the following steps may also be included:
[0121] Step S80, backing up the original report before the font resource is updated;
[0122] The above step S20, "comparing the latest font resource report with the original report before the font resource update to obtain a total difference report", may include:
[0123] Step S201 : Compare the latest font resource report with the backed-up original report to obtain a total difference report.
[0124] Before comparing the latest font resource report with the original report before the font resource is updated, the terminal device needs to back up the original report in advance and then compare the backed up original report (i.e. Figure 3 Compare the backup file in ) with the latest font resource report to get a total difference report.
[0125] In this embodiment, upon determining that the font modification data does contain an invalid string, the terminal device intercepts the invalid string. Therefore, the present invention adds an invalid string interception mechanism to identify invalid named strings in advance, avoiding invalid font resource merging caused by invalid strings, and achieving efficient and accurate font resource merging.
[0126] In addition, the embodiment of the present invention also provides a font resource processing device, referring to Figure 4 , the character library resource processing device includes:
[0127] A construction module 10 is configured to obtain font modification data of a font resource and construct a plurality of initial difference reports based on the font modification data;
[0128] A merging module 20 is configured to merge the multiple initial difference reports to obtain a latest font resource report, and compare the latest font resource report with the original report before the font resource update to obtain a total difference report;
[0129] The verification module 30 is configured to compare the total difference report with the initial difference report to obtain a verification result of the font data merger, and to perform data evaluation on the merged font resources based on the verification result.
[0130] Furthermore, the verification result of the font data merger includes: multiple verification result display pages, and the verification module 30 includes:
[0131] The first comparison unit is configured to compare the total difference report with the initial difference report to obtain the multiple verification result display pages.
[0132] Furthermore, the multiple verification result display pages include: a first verification result display page, a second verification result display page, and a third verification result display page, and the comparison unit includes:
[0133] a comparing subunit, configured to compare the total difference report with the initial difference report to obtain first modified data that is in the total difference report but not in the initial difference report, and second modified data that is not in the total difference report but in the initial difference report;
[0134] an extraction subunit, configured to extract modified data having a merge mark from the second modified data as third modified data;
[0135] The page construction subunit is used to construct the first verification result display page according to the first modification data, construct the second verification result display page according to the second modification data, and construct the third verification result display page according to the third modification data.
[0136] Further, the font resource processing apparatus further comprises:
[0137] A marking module is configured to acquire modification data to be merged in each initial difference report and mark the modification data.
[0138] The merging module comprises:
[0139] A merging unit is configured to merge the marked modification data in each initial difference report to obtain a latest font resource report.
[0140] Further, the font resource processing apparatus further comprises:
[0141] A judging module is configured to judge whether invalid characters exist in the font modification data.
[0142] An intercepting module is configured to intercept the invalid characters and generate an intercepting prompt notification based on the invalid characters if the invalid characters exist.
[0143] Further, the font resource processing apparatus further comprises:
[0144] A font data acquisition module is configured to acquire first font data before the preset font resource is updated and second font data after the font resource is updated.
[0145] The constructing module 10 comprises:
[0146] A second comparing unit is configured to compare the first font data with the second font data to obtain font modification data.
[0147] Further, the font resource processing apparatus further comprises:
[0148] A backup module is configured to backup an original report before the font resource is updated.
[0149] The merging module 20 comprises:
[0150] A third comparing unit is configured to compare the latest font resource report with the backup original report to obtain a total difference report.
[0151] The specific implementation of the font resource processing system of the present application is basically the same as the above-mentioned font resource processing method, and will not be repeated here.
[0152] In addition, the present application also provides a computer readable storage medium, wherein the storage medium stores a font resource processing program, and the font resource processing program is executed by a processor to realize the steps of the font resource processing method.
[0153] The character library resource processing device and the computer readable storage medium each embodiment of the present application can refer to each embodiment of the character library resource processing method of the present application, and details are not repeated here.
[0154] It should be noted that in this document, the terms "comprise", "comprising", or any other variant thereof are intended to cover a non-exclusive inclusion, such that processes, methods, articles, or systems that comprise a list of elements do not include only those elements recited, but also other elements not expressly listed or inherent to such processes, methods, articles, or systems. Without more limitations, an element defined by the sentence "comprising a" does not exclude the presence of additional identical elements in the process, method, article, or system including the element.
[0155] The above-mentioned embodiment numbers of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.
[0156] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be realized by software and necessary general hardware platform, of course, they can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of software products, and the computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a plurality of instructions for making a terminal device (which can be a wearable device, a locator, a smart phone and a tablet computer, etc.) execute the method described in each embodiment of the present application.
[0157] The above is only the preferred embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation made by using the content of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for processing font resources, characterized in that: The character library resource processing method includes: Obtaining font modification data of a font resource, determining whether the font modification data contains invalid characters; if so, intercepting the invalid characters, generating an interception reminder notification based on the invalid characters, and constructing a plurality of initial difference reports based on the font modification data; Obtaining the modified data to be merged in each initial difference report and marking the modified data; Merging the marked modified data in each of the initial difference reports to obtain a latest font resource report, and comparing the latest font resource report with the original report before the font resource update to obtain a total difference report; Comparing the total difference report with the initial difference report to obtain first modified data that is in the total difference report but not in the initial difference report, and second modified data that is not in the total difference report but in the initial difference report; extracting modified data with a merge mark from the second modified data as third modified data; The first verification result display page is constructed according to the first modification data, the second verification result display page is constructed according to the second modification data, and the third verification result display page is constructed according to the third modification data, so as to perform data evaluation on the merged font resources based on the first verification result display page, the second verification result display page and the third verification result display page.
2. The method for processing font resources according to claim 1, wherein: Before the step of obtaining the font modification data of the font resource, the method further includes: Acquire the first font data before the font resource is updated and the second font data after the update; The step of obtaining font modification data of the font resource includes: The first character library data is compared with the second character library data to obtain character library modification data.
3. The method for processing character resources according to claim 1, wherein: Before the step of comparing the latest font resource report with the original report before the font resource update to obtain a total difference report, the method further includes: Backing up the original report before the font resource is updated; The step of comparing the latest font resource report with the original report before the font resource update to obtain a total difference report includes: The latest font resource report is compared with the backed-up original report to obtain a total difference report.
4. A font resource processing device, characterized in that: The character library resource processing device includes: a construction module, configured to obtain font modification data of a font resource, determine whether the font modification data contains invalid characters; if so, intercept the invalid characters, generate an interception reminder notification based on the invalid characters, and construct multiple initial difference reports based on the font modification data; obtain modification data to be merged in each initial difference report, and mark the modification data; a merging module, configured to merge the modified data marked in each of the initial difference reports to obtain a latest font resource report, and compare the latest font resource report with the original report before the font resource update to obtain a total difference report; A verification module is used to compare the total difference report with the initial difference report to obtain first modified data that is in the total difference report and not in the initial difference report, and second modified data that is not in the total difference report and is in the initial difference report; extract modified data with a merge mark from the second modified data as third modified data; construct the first verification result display page according to the first modification data, construct the second verification result display page according to the second modification data, and construct the third verification result display page according to the third modification data, so as to perform data evaluation on the merged font resources based on the first verification result display page, the second verification result display page and the third verification result display page.
5. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a basic font resource processing program stored in the memory and executable on the processor. When the font resource processing program is executed by the processor, the steps of the font resource processing method according to any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a font resource processing program, which, when executed by a processor, implements the steps of the font resource processing method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Risk program file identification method and device, computing equipment and medium
CN110443034A