CN116541274A - Translation abnormality determination method and device and electronic equipment - Google Patents

Translation abnormality determination method and device and electronic equipment Download PDF

Info

Publication number
CN116541274A
CN116541274A CN202310411946.6A CN202310411946A CN116541274A CN 116541274 A CN116541274 A CN 116541274A CN 202310411946 A CN202310411946 A CN 202310411946A CN 116541274 A CN116541274 A CN 116541274A
Authority
CN
China
Prior art keywords
component
view
document content
target
view component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310411946.6A
Other languages
Chinese (zh)
Inventor
马坤乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Alibaba Overseas Internet Industry Co ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202310411946.6A priority Critical patent/CN116541274A/en
Publication of CN116541274A publication Critical patent/CN116541274A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Machine Translation (AREA)

Abstract

The embodiment of the application provides a method and a device for determining translation abnormality and electronic equipment. The method comprises the following steps: receiving a determination request for the content of the document with abnormal translation in the target page; inquiring a view component in the target page, and acquiring component information in the view component; determining whether the target document content configured in the view component is visible according to the component information; at least partially invisible target document content is determined as translating abnormal document content.

Description

Translation abnormality determination method and device and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and a device for determining translation abnormality and electronic equipment.
Background
In a multi-language website, the document content in the page is typically translated into document content in a different language, and the document content in the different language is displayed on the multi-language website. The meaning of the text content in different languages is the same, and the language used by the text content is different. When translating document contents into document contents in different languages, there are two translation methods, such as machine translation and manual translation, in which abnormal translation may occur. Such as: when the document content is translated into the document content in a certain language, a certain piece of text in the document content is less submitted for one piece.
In the related art, in order to check whether a translation abnormality occurs during the translation process, the current checking method is: and manually checking whether translation abnormality occurs in the text content of a certain language, such as manually checking whether a certain text in the text content of the certain language is less submitted for one section.
The efficiency of the above approach is low and translation anomalies may not be recognized. For example, for a large website with hundreds of thousands of sub-pages, when people check whether translation abnormality occurs in the content of a document in a certain language one by one, the time required for the translation is long, and the efficiency is low; if the tester is not very proficient with this language, it may not be possible to identify whether a translation exception has occurred in the content of the case of this language.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining translation abnormality and electronic equipment.
According to a first aspect of embodiments of the present application, there is provided a method for determining translation exception, the method including:
receiving a determination request for the content of the document with abnormal translation in the target page;
inquiring a view component in the target page, and acquiring component information in the view component;
determining whether the target document content configured in the view component is visible according to the component information;
at least partially invisible target document content is determined as translating abnormal document content.
Optionally, the component information includes attributes of the view component;
the determining whether the document content configured in the view component is visible according to the component information comprises:
if the attribute in the component information is hidden, it is determined that the target document content configured in the view component is not visible.
Optionally, the component information further includes a position of the view component in the target page, and a layer where the view component is located; the method further comprises the steps of:
if the attribute in the component information is visible, further determining whether the position of the view component overlaps with the positions of other view components;
if there is an overlap and the layers of the view components are below the layers of other components or at the same layer, it is determined that the target document content configured in the view components is at least partially invisible.
Optionally, the method further comprises:
determining a region range of the at least partially invisible target document content in the target page;
and labeling the region range in the target page or the screenshot of the target page.
Optionally, when querying the view component in the target page, the method further includes:
acquiring the component type of the view component, and drawing a texture image of the target text content configured in the view component by adopting an image drawing mode corresponding to the component type;
and merging texture images corresponding to the view component into a screenshot of the target page based on the position of the view component in the target page and the layer of the view component.
Optionally, when the target page is a target page based on an android operating system, the view component includes an android native component or a non-android native component.
Optionally, when the view component is an android native component and the component type is a video component, the drawing the texture image of the target document content configured in the view component by adopting an image drawing mode corresponding to the component type includes:
based on snapshot technology, a snapshot image of target document content configured in the video component is obtained and populated to a texture image.
Optionally, when the view component is a non-android native component and the component type is a mobile application development framework component, the drawing the texture image of the target document content configured in the view component by adopting an image drawing mode corresponding to the component type includes:
a texture image of target document content configured in a mobile application development framework component is rendered using a rendering engine provided by the mobile application development framework.
According to a second aspect of embodiments of the present application, there is provided a device for determining translation abnormality, the device including:
the receiving unit is used for receiving a determination request for the content of the document with abnormal translation in the target page;
the query unit queries view components in the target page and acquires component information in the view components;
an identification unit that determines whether the contents of the target document configured in the view component are visible according to the component information;
and a determining unit that determines at least a part of the invisible target document content as the document content of the translation abnormality.
Optionally, the component information includes attributes of the view component;
the identifying unit further includes determining that the target document content configured in the view component is not visible if the attribute in the component information is hidden.
Optionally, the component information further includes a position of the view component in the target page, and a layer where the view component is located; the identifying unit further includes further determining whether there is an overlap of the position of the view component with the positions of other view components if the attribute in the component information is visible; if there is an overlap and the layers of the view components are below the layers of other components or at the same layer, it is determined that the target document content configured in the view components is at least partially invisible.
Optionally, the apparatus further includes:
the display unit is used for determining the area range of the at least partially invisible target document content in the target page; and labeling the region range in the target page or the screenshot of the target page.
Optionally, the query unit further includes obtaining a component type of the view component;
the apparatus further comprises:
a drawing unit for drawing a texture image of the target document content configured in the view component by adopting an image drawing mode corresponding to the component type; and merging texture images corresponding to the view component into a screenshot of the target page based on the position of the view component in the target page and the layer of the view component.
In an exemplary embodiment, when the target page is a target page based on an android operating system, the view component includes an android native component or a non-android native component.
Optionally, when the view component is an android native component and the component type is a video component, the drawing unit draws a texture image of the target document content configured in the view component by adopting an image drawing mode corresponding to the component type, and further includes:
based on snapshot technology, a snapshot image of target document content configured in the video component is obtained and populated to a texture image.
When the view component is a non-android native component and the component type is a mobile application development framework component, the drawing unit adopts an image drawing mode corresponding to the component type to draw a texture image of target document content configured in the view component, and further comprises:
a texture image of target document content configured in a mobile application development framework component is rendered using a rendering engine provided by the mobile application development framework.
According to a third aspect of embodiments of the present application, there is provided a cloud device, including:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor;
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the cloud device executes the method for determining any translation exception.
According to a fourth aspect of embodiments of the present application, there is provided an electronic device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to determine any of the translation exceptions described above.
According to a fifth aspect of embodiments of the present application, there is provided a computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the method of determining any of the translation anomalies described above.
According to the embodiment of the application, a determination scheme of translation abnormality is provided, and the visibility of each target document content configured in the view component is judged through the component information of the view component, so that the document content of the translation abnormality in the target page is rapidly determined.
Drawings
FIG. 1 is a schematic diagram of page translation provided by an embodiment of the present application;
FIG. 2 is a flow chart of a method for determining translation anomalies provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of labeling translation exceptions provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of screenshot capture and document capture provided by an embodiment of the present application;
FIG. 5 is a hardware configuration diagram of a determination device for translation exception according to an embodiment of the present application;
FIG. 6 is a module of a determination device of translation exception provided in an embodiment of the present application;
fig. 7 is a schematic diagram of a cloud device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The terminology used in the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first message may also be referred to as a second message, and similarly, a second message may also be referred to as a first message, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
User information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to herein are both user-authorized or fully authorized information and data by parties, and the collection, use and processing of relevant data requires compliance with relevant laws and regulations and standards of the relevant country and region, and is provided with corresponding operation portals for user selection of authorization or denial.
As previously described, in a multi-lingual website, the text content in a page may typically be translated into text content in different languages and the text content in different languages displayed on the multi-lingual website. The meaning of the text content in different languages is the same, and the language used by the text content is different. Taking the schematic diagram of the page translation shown in fig. 1 as an example, the left side is the original document content in the first language (chinese shown in fig. 1) before translation, and the right side is the document content in the second language (english shown in fig. 1) after translation.
When translating document contents into document contents in different languages, there are two translation methods, such as machine translation and manual translation, in which abnormal translation may occur. Such as: when the document content is translated into the document content in a certain language, a certain piece of text in the document content is less submitted for one piece.
The reasons for such few translations may be varied, for example, because the document content in the page is obscured, resulting in no translations for the obscured document content; for another example, there may be hidden document content in the page, resulting in no translation for the document content that is not displayed.
In the related art, in order to check whether a translation abnormality occurs during the translation process, the current checking method is: and manually checking whether translation abnormality occurs in the text content of a certain language, such as manually checking whether a certain text in the text content of the certain language is less submitted for one section.
The efficiency of the above approach is low and translation anomalies may not be recognized. For example, for a large website with hundreds of thousands of sub-pages, when people check whether translation abnormality occurs in the content of a document in a certain language one by one, the time required for the translation is long, and the efficiency is low; if the tester is not very proficient with this language or is unfamiliar with the layout of the page, it may not be possible to identify whether a translation exception has occurred in the document content of this language.
In view of the above problems, the present application aims to provide a determination scheme of translation abnormality, which determines the visibility of each target document content configured in a view component according to the component information of the view component, so as to quickly determine the document content of the translation abnormality in the target page.
An embodiment of a method for determining translation anomalies provided in the present application is described below with reference to fig. 2, where the method includes:
step 210: a determination request for translation exception document content in a target page is received.
After finding that the translation of the target page displayed on the client is abnormal, a user browsing the target page can initiate the determination request; accordingly, the server side can further respond to the determination request after receiving the determination request sent by the client side, and provide the target document content for determining the translation abnormality in the target page for the user.
In this embodiment, the client may refer to a client device on hardware, such as a desktop computer, a laptop computer, a tablet computer, a smart phone, a handheld computer, a personal digital assistant ("PDA"), or any other wired or wireless processor driven device. The client may also refer to an application client on software, such as an electronic wallet APP, an instant messaging APP, and the like. The client may also be a soft and hard combined client, such as a smart phone with an electronic wallet APP installed.
The server may include a server corresponding to a client displaying the target page, for example, a server cluster, or a cloud server that provides services for a website or Application (Application) where the target page is located.
In this embodiment, the cloud server includes a cloud server built based on a cloud computing technology. By utilizing resources (such as computing resources, storage resources, etc.) conferred by cloud computing technology, a determination service for translation anomalies in a target page can be provided more quickly and at lower cost.
Step 220: and querying a view component in the target page, and acquiring component information in the view component.
In practical applications, since there are a plurality of different mobile operating systems, pages can be divided into pages based on the respective mobile operating systems based on the mobile operating systems. For example, android (Android) operating system based target pages, IOS operating system based target pages, and the like.
In an exemplary embodiment, when the target page is a target page based on an android operating system, the View component (View) may include an android Native (Native) component or a non-android Native component.
After receiving the determination request, the server can traverse and inquire view components in the target page, determine which view components on the target page belong to android native components and which view components belong to non-android native components;
further, aiming at the android native component and the non-android native component respectively, component information in the view component is acquired by adopting corresponding technology stack technology.
The following is a description of the contents of the document acquisition section shown in fig. 4. In fig. 4, android Native components are exemplified by Native components, and non-android Native components are exemplified by mobile application development framework (Flutter) components and H5 (HTML 5, hypertext 5.0) components.
Here, flutter and H5 are both cross-platform page development technologies, except that android native components are developed using Java or Kotlen, flutter components are developed using Dart language, and H5 is developed based on Web technology.
In practical application, the Flutter and H5 components can be embedded into the Android frame, so that functions of an Android page are expanded, and page contents are enriched.
Since Text is a component used for displaying Text content in the android Native component, for Native components, the server can issue an instruction for acquiring component information to the client, whereas the Native component on the client acquires component information of all Text components (Text) and reports the component information to the server.
For the Flutter component, the server side can issue an instruction for acquiring component information to the client side, and then the client side acquires Element (Element) information of all text types under the Flutter component through an interaction engine (such as WidgetBinding) for Flutter; the element information is used as component information of the router component and is reported to the server by the client.
For the H5 component, the server side can issue an instruction for acquiring component information to the client side, and then the H5 component on the client side injects JS (JavaScript) script into the H5 container, so that all document object model Node (DOM Node) information for displaying the text under the H5 is acquired; the node information of the document object model is taken as the component information of the H5 component and is reported to the server by the client.
Step 230: based on the component information, it is determined whether the target document content configured in the view component is visible.
After acquiring the component information of each view component in the target page, the server may determine whether the target document content configured in the view component is visible based on the component information.
In an exemplary embodiment, the component information may include attributes of the view component;
the determining whether the document content configured in the view component is visible according to the component information comprises:
if the attribute in the component information is hidden, it is determined that the target document content configured in the view component is not visible.
In practical applications, the view component may provide an option for characterizing the properties of visibility, through which a developer may set whether the content of the document in the view component is visible during the development phase; if set to invisible, then the text content in the view component will be hidden when the target page is opened.
Of course, when certain conditions are met, the attribute can be automatically triggered to be modified to be visible; the conditions may also be set by the developer during the development phase. For example, when the browsing duration reaches the preset duration, the invisible text content is originally hidden in the view component in the target page and displayed because the attribute changes from invisible to visible.
It should be noted that, the modification of the attribute may be performed on the client side displaying the target page, without issuing an instruction from the server side; of course, the issuing of instructions by the server to modify properties of view components is not precluded.
In an exemplary embodiment, the component information further includes a location of the view component in the target page, and a layer in which the view component is located; the method may further comprise:
if the attribute in the component information is visible, further determining whether the position of the view component overlaps with the positions of other view components;
if there is an overlap and the layers of the view components are below the layers of other components or at the same layer, it is determined that the target document content configured in the view components is at least partially invisible.
In practical applications, even if the attribute representation of a view component is visible, the document content in that view component may still be invisible. For example, the document content in the view component is obscured by other page content. Further, the shielding can be divided into full shielding or partial shielding, so that the content of the shielded document can be completely invisible or partially invisible; i.e., if there is an overlap and the layers of the view components are below the layers of other components or at the same layer, it may be determined that the target document content configured in the view components is at least partially invisible.
In this regard, upon determining that the attribute in the component information is visible, it may be further determined whether there is an overlap of the location of the view component with the locations of other view components.
The location may refer to the area coverage that the view component occupies in the target page, and when the area coverage of two view components overlap, it is necessary to further determine which view component is the party that is occluded. Specifically, in the development of a page, a page may be provided with a plurality of layers, and the layers are overlapped from bottom to top according to a hierarchical order to form a final page.
In the superposition process, the page content in the lower layer can be blocked by the page content in the upper layer; conversely, the page contents in the upper layer are not obscured by the page contents in the lower layer.
Based on this principle, when it is determined that there is an overlap between a view component and other view components, it is also necessary to determine the layer relationship between the view component and other components; if the layers of the view component are below the layers of other components or at the same layer, it may be determined that the target document content disposed in the view component is obscured, i.e., the target document content disposed in the view component is at least partially not visible.
Step 240: at least partially invisible target document content is determined as translating abnormal document content.
By the embodiment, the visibility of the target document content configured in the view component is judged based on the component information of the view component, so that the target document content at least partially invisible in the target page can be rapidly determined as the document content with abnormal translation.
In the method, the position of the abnormal translation document content can be accurately positioned after the abnormal translation document content is determined, and the abnormal translation document content is fed back to the user browsing the target page in a visual mode.
In an exemplary embodiment, the method further comprises:
determining a region range of the at least partially invisible target document content in the target page;
and labeling the region range in the target page or the screenshot of the target page.
In the following, in conjunction with the schematic diagram of labeling translation exceptions shown in fig. 3, when translating chinese document content in a page into document content in other languages, if the document content 31 is blocked by other page content 32, the document content 31 will not be translated, thereby becoming the document content of translation exceptions in the page.
Through the foregoing embodiments of the present application, it is possible to find the document content 31 that is not translated, locate the region scope of the document content 31, and further mark the located region scope 33 in the page or the screenshot of the page.
In fig. 3, in order to highlight the marked area 33, a black area is used, and in practical application, any other marking method may be used, for example, a transparent dotted line frame is used to mark the area.
Wherein the region scope may be determined according to the position of the view component corresponding to the at least partially invisible target text content. In general, the location may be constituted by boundary coordinates of an area covered or occupied by the view component in the target page. Taking a rectangular view component as an example, the boundary coordinates may refer to coordinates of four vertices of the rectangle, and by connecting the coordinates of the four vertices, the area range of the view component may be determined.
In practical application, the boundary coordinates may be recorded according to a certain rule, and still taking a rectangular view component as an example, the recording rule may be (upper left vertex coordinates, lower left vertex coordinates, upper right vertex coordinates), so that the correct region range can still be restored without additionally recording the connection relationship of the coordinates, and thus, the data volume required to be recorded can be reduced.
In this embodiment, if the region range is marked in the screenshot of the target page, the screenshot of the target page needs to be acquired first.
In the related art, the process of capturing a target page generally requires applying for the authority of global screen recording, acquiring screen content in a video recording manner, and then capturing a frame of picture in the recorded video as a capture.
However, since the screen recording is not easy to obtain, many users do not open the authority of the global screen recording based on the consideration of their own private data, so that the region range cannot be marked in the screenshot of the target page, and the position of the text content with abnormal translation cannot be intuitively fed back to the user in a visual mode.
Aiming at the problem, the application also provides a scheme for acquiring the screenshot of the target page without applying the authority of global screen recording, which is specifically as follows:
when querying the view component in the target page, the method further comprises the following steps:
acquiring the component type of the view component, and drawing a texture image of the target text content configured in the view component by adopting an image drawing mode corresponding to the component type;
and merging texture images corresponding to the view component into a screenshot of the target page based on the position of the view component in the target page and the layer of the view component.
In this embodiment, the screenshot is the same as the screenshot of the previous document, and it needs to determine which view components on the target page belong to android native components and which view components belong to non-android native components;
further, respectively aiming at the android native component and the non-android native component, the texture images of the target text content in the view component are drawn by adopting the image drawing modes provided by the corresponding technology stack technologies.
The following describes the contents of the screenshot capturing section shown in fig. 4. In FIG. 4, android native components are exemplified by video components, and non-android native components are exemplified by Fluter and H5 components.
In an exemplary embodiment, when the view component is an android native component and the component type is a video component, the drawing, by using an image drawing manner corresponding to the component type, of a texture image of a target document content configured in the view component may include:
based on snapshot technology, a snapshot image of target document content configured in the video component is obtained and populated to a texture image.
The Snapshot technology (snappshot) is a mirror image or instant copy of data at a certain moment, and the obtained Snapshot can be used as a copy of the data and as the data restored to the Snapshot moment when the data is abnormal.
Here, the video content in the video component is snapshot by using a snapshot technique to obtain a snapshot image containing the target document content, and the snapshot image is filled into the texture image to be used as the texture image.
In addition, for other android native components, such as the Text component (Text) described above, the texture image of the target Text content in the Text component may be drawn directly using the android native drawing function.
In an exemplary embodiment, when the view component is a non-android native component and the component type is a mobile application development framework (Flutter) component, the drawing the texture image of the target document content configured in the view component by using an image drawing manner corresponding to the component type includes:
a rendering engine (router engine) provided by a mobile application development framework is employed to render texture images of target document content configured in the mobile application development framework component.
For the Flutter component, a Flutter engine provided by using Flutter technology can draw a texture image of the target text content in the Flutter component.
In addition, for other non-android native components, such as the H5 component, texture images of target text content in the text component may be drawn using the android native drawing functionality.
After texture images corresponding to all view components in a target page are drawn, the texture images can be summarized, and the texture images corresponding to the view components are combined into a screenshot of the target page based on the position of the view components in the target page and the layer where the view components are located.
The merging process may refer to the aforementioned embodiment of determining whether the content of the target document configured in the view component is visible. E.g., view components that are not visible to the attribute, the corresponding texture image is deleted; for another example, these texture images are superimposed together according to the position and layer of the view image; for overlapping view components, it may be determined from the layers which texture image is above and which texture image is below.
After the screenshot of the target page is merged, the region range of at least part of invisible target document content in the target page, which is determined before, is marked in the screenshot, so that the position of document content with abnormal translation in the target page is visually displayed.
Corresponding to the embodiment of the method for determining the translation abnormality, the application also provides an embodiment of a device for determining the translation abnormality. The embodiment of the device can be implemented by software, or can be implemented by hardware or a combination of hardware and software. Taking a software implementation as an example, the device in a logic sense is formed by reading a corresponding computer program in a nonvolatile memory into a memory by a processor of a device where the device is located. In terms of hardware, as shown in fig. 5, a hardware structure diagram of a device where the determination device of the translation exception is located is shown in fig. 5, and in addition to the processor, the network interface, the memory and the nonvolatile memory shown in fig. 5, the device where the device is located in the embodiment generally includes other hardware according to the determination actual function of the translation exception, which is not described herein again.
Referring to fig. 6, a block diagram of a determination apparatus for translation exception according to an embodiment of the present application corresponds to the embodiment shown in fig. 2, and the apparatus includes:
a receiving unit 610 that receives a determination request for the content of the document in which the translation is abnormal in the target page;
a query unit 620, configured to query view components in the target page, and obtain component information in the view components;
an identification unit 630 for determining whether the contents of the target document configured in the view component are visible according to the component information;
the determining unit 640 determines at least partially invisible target document content as document content of the translation abnormality.
In an exemplary embodiment, the component information includes attributes of the view component;
the identifying unit 630 further includes determining that the target document content configured in the view component is not visible if the attribute in the component information is hidden.
In an exemplary embodiment, the component information further includes a location of the view component in the target page, and a layer in which the view component is located; the identifying unit 630 further includes further determining whether there is an overlap between the position of the view component and the positions of other view components if the attribute in the component information is visible; if there is an overlap and the layers of the view components are below the layers of other components or at the same layer, it is determined that the target document content configured in the view components is at least partially invisible.
In an exemplary embodiment, the apparatus further comprises:
the display unit is used for determining the area range of the at least partially invisible target document content in the target page; and labeling the region range in the target page or the screenshot of the target page.
In an exemplary embodiment, the querying element 620 further includes obtaining a component type of the view component;
the apparatus further comprises:
a drawing unit for drawing a texture image of the target document content configured in the view component by adopting an image drawing mode corresponding to the component type; and merging texture images corresponding to the view component into a screenshot of the target page based on the position of the view component in the target page and the layer of the view component.
In an exemplary embodiment, when the target page is a target page based on an android operating system, the view component includes an android native component or a non-android native component.
In an exemplary embodiment, when the view component is an android native component and the component type is a video component, the drawing unit draws a texture image of the target document content configured in the view component by adopting an image drawing manner corresponding to the component type, and further includes:
based on snapshot technology, a snapshot image of target document content configured in the video component is obtained and populated to a texture image.
When the view component is a non-android native component and the component type is a mobile application development framework component, the drawing unit adopts an image drawing mode corresponding to the component type to draw a texture image of target document content configured in the view component, and further comprises:
a texture image of target document content configured in a mobile application development framework component is rendered using a rendering engine provided by the mobile application development framework.
In an exemplary embodiment, the device is applied to a cloud server, and the cloud server comprises a cloud server built based on cloud computing technology.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or a combination of any of these devices.
The implementation process of the functions and roles of each unit in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present application. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Fig. 6 above describes an internal functional module and a schematic of a determination device of translation abnormality, and the substantial execution subject thereof may be an electronic device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform an embodiment of the method of determining any of the translation exceptions described above.
In the above embodiment of the electronic device, it should be understood that the processor may be a processing unit (english: central Processing Unit, abbreviated as CPU), or may be another general purpose processor, a digital signal processor (english: digital Signal Processor, abbreviated as DSP), an application specific integrated circuit (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc., and the aforementioned memory may be a read-only memory (ROM), a random access memory (random access memory, RAM), a flash memory, a hard disk, or a solid state disk. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution.
In addition, the application further provides a computer readable storage medium, and instructions in the computer readable storage medium, when executed by a processor of an electronic device, can enable the electronic device to execute an embodiment of the method for determining any translation abnormality.
As shown in fig. 7, according to another cloud device in the present application, the method may include:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor;
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the cloud device executes the method for determining any translation exception.
All embodiments in the application are described in a progressive manner, and identical and similar parts of all embodiments are mutually referred, so that each embodiment mainly describes differences from other embodiments. In particular, for the electronic device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (11)

1. A method of determining translation anomalies, the method comprising:
receiving a determination request for the content of the document with abnormal translation in the target page;
inquiring a view component in the target page, and acquiring component information in the view component;
determining whether the target document content configured in the view component is visible according to the component information;
at least partially invisible target document content is determined as translating abnormal document content.
2. The method of claim 1, the component information comprising attributes of view components;
the determining whether the document content configured in the view component is visible according to the component information comprises:
if the attribute in the component information is hidden, it is determined that the target document content configured in the view component is not visible.
3. The method of claim 2, the component information further comprising a location of the view component in the target page and a layer in which the view component is located; the method further comprises the steps of:
if the attribute in the component information is visible, further determining whether the position of the view component overlaps with the positions of other view components;
if there is an overlap and the layers of the view components are below the layers of other components or at the same layer, it is determined that the target document content configured in the view components is at least partially invisible.
4. The method of claim 1, the method further comprising:
determining a region range of the at least partially invisible target document content in the target page;
and labeling the region range in the target page or the screenshot of the target page.
5. The method of claim 4, when querying view components in the target page, further comprising:
acquiring the component type of the view component, and drawing a texture image of the target text content configured in the view component by adopting an image drawing mode corresponding to the component type;
and merging texture images corresponding to the view component into a screenshot of the target page based on the position of the view component in the target page and the layer of the view component.
6. The method of claim 5, wherein when the target page is a target page based on an android operating system, the view component comprises an android native component or a non-android native component.
7. The method of claim 6, wherein when the view component is an android native component and the component type is a video component, the drawing a texture image of target document content configured in the view component in an image drawing manner corresponding to the component type comprises:
based on snapshot technology, a snapshot image of target document content configured in the video component is obtained and populated to a texture image.
8. The method of claim 6, when the view component is a non-android native component and the component type is a mobile application development framework component, the drawing a texture image of target document content configured in the view component in an image drawing manner corresponding to the component type, comprising:
a texture image of target document content configured in a mobile application development framework component is rendered using a rendering engine provided by the mobile application development framework.
9. A cloud device, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to cause the cloud device to perform the method of any of the preceding claims 1-8.
10. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any of the preceding claims 1-8.
11. A computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the method of any of claims 1-8.
CN202310411946.6A 2023-04-13 2023-04-13 Translation abnormality determination method and device and electronic equipment Pending CN116541274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310411946.6A CN116541274A (en) 2023-04-13 2023-04-13 Translation abnormality determination method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310411946.6A CN116541274A (en) 2023-04-13 2023-04-13 Translation abnormality determination method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116541274A true CN116541274A (en) 2023-08-04

Family

ID=87446128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310411946.6A Pending CN116541274A (en) 2023-04-13 2023-04-13 Translation abnormality determination method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116541274A (en)

Similar Documents

Publication Publication Date Title
US9141332B2 (en) Masking sensitive information in a screen sharing session
US11120213B2 (en) Intelligent verification of presentation of a user interface
US20200293178A1 (en) An electronic device and method for multi-view browsing in an augmented reality environment
CN111107422B (en) Image processing method and device, electronic equipment and computer readable storage medium
US20180267946A1 (en) Techniques and systems for storing and protecting signatures and images in electronic documents
US11556605B2 (en) Search method, device and storage medium
US8671389B1 (en) Web application resource manager on the web and localizable components
US10235712B1 (en) Generating product image maps
WO2020118485A1 (en) Method of Detecting User Interface Layout Issues for Web Applications
CN111651113B (en) Page display method, device, equipment and storage medium
JP2021530070A (en) Methods for sharing personal information, devices, terminal equipment and storage media
CN110489312A (en) Data correlation method and device for control trigger data acquisition
CN106648571B (en) Method and device for calibrating application interface
CN112947969A (en) Page off-screen rendering method, device, equipment and readable medium
CN113657361A (en) Page abnormity detection method and device and electronic equipment
CN111124564A (en) Method and device for displaying user interface
CN110365776B (en) Picture batch downloading method and device, electronic equipment and storage medium
CN111159045A (en) Compatibility problem detection method, device and storage medium
CN109213668B (en) Operation recording method and device and terminal
CN117093386B (en) Page screenshot method, device, computer equipment and storage medium
CN110781427A (en) Method, device, equipment and storage medium for calculating first screen time
EP4022481B1 (en) Protecting user privacy in user interface data collection for native applications
CN108958855B (en) Page jump method, device and system
US20230298073A1 (en) Media processing techniques for enhancing content
CN116541274A (en) Translation abnormality determination method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20240201

Address after: Room 303, 3rd Floor, Building 5, No. 699 Wangshang Road, Changhe Street, Binjiang District, Hangzhou City, Zhejiang Province, 310052

Applicant after: Hangzhou Alibaba Overseas Internet Industry Co.,Ltd.

Country or region after: China

Address before: Room 554, 5 / F, building 3, 969 Wenyi West Road, Wuchang Street, Yuhang District, Hangzhou City, Zhejiang Province

Applicant before: Alibaba (China) Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right