An information publishing method and device, electronic equipment and computer storage medium

CN122929020APending Publication Date: 2026-10-16BEIJING YOUKU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611131989.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-28
Publication Date
2026-10-16

AI Technical Summary

Technical Problem

[0003]然而,传统的分发机制高度依赖静态素材包或固定坐标布局

Benefits of technology

[0009] According to the information publishing scheme of this disclosure, this embodiment parses the material configuration protocol and extracts constraint fields (describing the relative spatial relationships between multiple layers) of multiple layers to construct a layout constraint set. Based on the target language environment, the text in the text type layer is obtained, and the initial rendering size of the text is measured at a set font size, and added as a new constraint to the layout constraint set. The available layout space of the client device is obtained and added as a global boundary constraint condition to the layout constraint set. Based on satisfying preset solution conditions, the layout constraint set is solved to obtain the final layout parameters of multiple layers, and the information to be published is synthesized and displayed according to the final layout parameters. This disclosure embodiment can automatically calculate the final layout parameters of each layer based on relative spatial relationship constraints, new constraints, and global boundary constraints, so that the final layout can adapt to the text size and the available layout space of the client for adaptive rearrangement, ensuring the correct display of the information to be published, while eliminating the maintenance cost of manually adjusting the coordinate position for each language, and improving the deployment efficiency of global information publishing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122929020A_ABST
    Figure CN122929020A_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide an information publishing method and device, electronic equipment and computer storage medium, the method comprising: parsing a material configuration protocol, extracting constraint fields of multiple layers to construct a layout constraint set, the constraint fields being used to describe the relative spatial relationship of the multiple layers, the multiple layers including a text type layer; based on a target language environment, obtaining a script in the text type layer, measuring an initial rendering size of the script under a set font size, and adding the initial rendering size as a new constraint to the layout constraint set; obtaining an available layout space of a client device, and adding the available layout space as a global boundary limit condition to the layout constraint set; based on a preset solving condition being met, solving the layout constraint set to obtain final layout parameters of the multiple layers, and synthesizing and displaying the information to be published according to the final layout parameters. The maintenance cost of manually adjusting the coordinate position for each language is eliminated, and the deployment efficiency of global information publishing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of information distribution technology, and in particular to an information publishing method, apparatus, electronic device, and computer storage medium. Background Technology

[0002] With the increasing demand for global digital information distribution, there is a widespread need to dynamically display information to be published based on different target language environments.

[0003] However, traditional distribution mechanisms heavily rely on static asset packages or fixed coordinate layouts. In mixed-layout scenarios, due to differences in the initial rendering size of text-type layers, a fixed publishing mechanism may not be able to adapt to changes in text size and available layout space on client devices. Once a spatial conflict occurs, it can easily lead to spatial overlap or content truncation between multiple layers, severely restricting the correct display of the information to be published. Summary of the Invention

[0004] In view of the above, embodiments of this disclosure provide an information publishing method, apparatus, electronic device, and computer storage medium to at least solve or alleviate the above problems.

[0005] According to a first aspect of the present disclosure, an information publishing method is provided, the method comprising: parsing a material configuration protocol, extracting constraint fields of multiple layers to construct a layout constraint set, the constraint fields being used to describe the relative spatial relationship of the multiple layers, the multiple layers including a text type layer; based on a target language environment, obtaining the text in the text type layer, measuring the initial rendering size of the text at a set font size, the initial rendering size being added as a new constraint to the layout constraint set; obtaining the available layout space of a client device, the available layout space being added as a global boundary constraint condition to the layout constraint set; solving the layout constraint set based on satisfying preset solution conditions to obtain the final layout parameters of the multiple layers, and synthesizing and displaying the information to be published based on the final layout parameters.

[0006] According to a second aspect of the present disclosure, an information publishing device is provided, comprising: a protocol parsing module, configured to parse a material configuration protocol, extract constraint fields of multiple layers to construct a layout constraint set, wherein the constraint fields describe the relative spatial relationship of the multiple layers, and the multiple layers include a text type layer; a new constraint module, configured to obtain the text in the text type layer based on a target language environment, measure the initial rendering size of the text at a set font size, and add the initial rendering size as a new constraint to the layout constraint set; a global constraint module, configured to obtain the available layout space of the client device, and add the available layout space as a global boundary constraint condition to the layout constraint set; and a solution and display module, configured to solve the layout constraint set based on satisfying preset solution conditions, obtain the final layout parameters of the multiple layers, and synthesize and display the information to be published based on the final layout parameters.

[0007] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, wherein the executable instruction causes the processor to perform an operation corresponding to the method described in the first aspect.

[0008] According to a fourth aspect of the present disclosure, a computer storage medium is provided that stores a computer program thereon, which, when executed by a processor, implements the method described in the first aspect.

[0009] According to the information publishing scheme of this disclosure, this embodiment parses the material configuration protocol and extracts constraint fields (describing the relative spatial relationships between multiple layers) of multiple layers to construct a layout constraint set. Based on the target language environment, the text in the text type layer is obtained, and the initial rendering size of the text is measured at a set font size, and added as a new constraint to the layout constraint set. The available layout space of the client device is obtained and added as a global boundary constraint condition to the layout constraint set. Based on satisfying preset solution conditions, the layout constraint set is solved to obtain the final layout parameters of multiple layers, and the information to be published is synthesized and displayed according to the final layout parameters. This disclosure embodiment can automatically calculate the final layout parameters of each layer based on relative spatial relationship constraints, new constraints, and global boundary constraints, so that the final layout can adapt to the text size and the available layout space of the client for adaptive rearrangement, ensuring the correct display of the information to be published, while eliminating the maintenance cost of manually adjusting the coordinate position for each language, and improving the deployment efficiency of global information publishing. Attached Figure Description

[0010] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings.

[0011] Figure 1 This is a flowchart of an information publishing method according to an embodiment of the present disclosure; Figure 2 This is a flowchart of an information publishing method according to another embodiment of this disclosure; Figure 3 This is a flowchart illustrating the generation of a material configuration protocol in an information publishing method according to another embodiment of this disclosure; Figure 4 This is a flowchart of an information publishing method according to another embodiment of this disclosure; Figure 5 This is a flowchart of an information publishing method according to another embodiment of this disclosure; Figure 6 This is a schematic diagram of an information publishing device according to another embodiment of the present disclosure; Figure 7 This is a schematic diagram of an electronic device to which this disclosure is applied, according to yet another embodiment. Detailed Implementation

[0012] The present disclosure is described below based on embodiments, but it is not limited to these embodiments. In the detailed description of the present disclosure below, certain specific details are described in detail. Those skilled in the art will fully understand the present disclosure even without these details. To avoid obscuring the substance of the present disclosure, well-known methods, processes, and procedures are not described in detail. Furthermore, the accompanying drawings are not necessarily drawn to scale.

[0013] First, some of the nouns or terms that appear in the description of the embodiments of this disclosure are to be interpreted as follows.

[0014] Programmatic trading: The technological process of enabling real-time bidding, buying and selling, and dynamic display of advertising inventory through digitalization and automation.

[0015] i18n: A multi-language, multi-regional adaptation architecture approach introduced during the software engineering design and development phase.

[0016] SDK: A collection of integrated tools, libraries, and application programming interfaces for software developers.

[0017] Information to be released: A multimedia information display format that combines visual images and localized copy, constructed from text and image layers.

[0018] Internationalization: This refers to the technological evolution process that enables the embodiments of this disclosure to be compatible across regions and multiple languages. It includes not only the dynamic replacement of multilingual text, but also the technical adaptation for different countries and regions, such as text arrangement direction and time zones. It is the foundational engineering for ensuring the correct display of information to be published globally.

[0019] Material Configuration Protocol: Defines a standardized data entity that defines the relative spatial relationships and structural attributes of each layer in the information to be published. Structural attributes refer to the metadata configuration of a layer, excluding spatial layout constraints, used to define its unique identifier, layer type, semantic weight, and other non-spatial dimensions.

[0020] Layout constraint set: This set of constraints comprises the relative spatial relationships between multiple layers, the initial rendering size constraints of multilingual text, and the global boundary constraints of the available layout space. It can be represented by a system of algebraic constraint equations. The system of algebraic constraint equations can represent the relationships that variables (parameters) should satisfy under various constraints.

[0021] Text type layer: A specific graphic layer entity used to carry multilingual text data and perform text rendering, including dynamic text fields, font attributes, and basic geometric attributes. Basic geometric attributes are the actual width and height dimensions, placement coordinates, and geometric boundaries displayed on the canvas after the font size and text content are combined.

[0022] Initial rendering size: The original physical pixel width and height of the text before layout constraint solving and adjustment, under the target language environment and the set font size.

[0023] Available layout space: The maximum area of ​​the canvas allocated to the information to be published, determined by the client device's current screen resolution, window state, or safe rendering area.

[0024] Final layout parameters: The set of physical parameters output after the layout constraint set is converged and solved, which determines the exact geometric state of each layer in the canvas.

[0025] This disclosure provides an information publishing method. As needed, this method is mainly applied to the layout rendering engine of a client device to resolve layer space layout conflicts caused by changes in the physical size of the text in a multilingual environment.

[0026] Specifically, see Figure 1 The method includes: Step 102: Parse the material configuration protocol and extract the constraint fields of multiple layers to construct a layout constraint set. The constraint fields are used to describe the relative spatial relationship of multiple layers, including text type layers.

[0027] As needed, the client in this embodiment of the disclosure receives and parses the media configuration protocol. The media configuration protocol is a structured data file that describes the layout structure of the information to be published, either pushed by a cloud-based protocol distribution center or cached locally. Specifically, the media configuration protocol may be in JSON format.

[0028] By parsing the protocol, constraint fields of multiple layers to be published are extracted. These layers may include a background layer, an image layer, an interactive button layer, and at least one text layer, depending on the requirements. The constraint fields describe the relative spatial relationships between the layers. The extracted constraint fields are then aggregated to construct an initial set of layout constraints. This set can, if needed, form a system of multivariate geometric constraint equations to be solved.

[0029] Relative spatial relationships refer to the relative orientations between layers, such as vertical, horizontal, etc., which are different from fixed absolute position coordinates. This disclosure embodiment describes the relative spatial relationships between multiple layers through constraint fields in the material configuration protocol to construct a layout constraint set, thereby replacing fixed coordinate positioning. This allows for adaptive rearrangement based on the layout constraint set when the text size changes in different languages.

[0030] Step 104: Based on the target language environment, obtain the text in the text type layer, measure the initial rendering size of the text at the set font size, and add the initial rendering size as a new constraint to the layout constraint set.

[0031] Specifically, localized text data can be dynamically retrieved from the text type layer based on the client's current target language environment. The target language environment could be, for example, the language currently set for display on the client. The language in the text type layer can be translated into this language to serve as localized text data. The content of the localized text data may not be entirely identical to the original text content in the text type layer.

[0032] Before the interface is reflowed, the text measurement interface of the text layout engine can be called to measure the initial rendering size of the text at the font size specified by the material configuration protocol, that is, the pixel width and pixel height values ​​occupied by the text string at that font size.

[0033] After the measurement is completed, the obtained initial rendering size is added as a new constraint to the previously constructed set of layout constraints.

[0034] Step 106: Obtain the available layout space of the client device, and add the available layout space as a global boundary constraint to the layout constraint set.

[0035] As needed, the available layout space of the current client device can be obtained in real time through the interface of the embodiments of this disclosure.

[0036] The obtained size of the available layout space is introduced into the layout constraint set as a global boundary constraint. This global boundary constraint is used to restrict the entire set of constraint equations, preventing the coordinates of multiple layers after solution from falling outside the available layout space.

[0037] Step 108: Based on satisfying the preset solution conditions, solve the layout constraint set to obtain the final layout parameters of multiple layers, and synthesize and display the information to be published based on the final layout parameters.

[0038] In one implementation, after adding global boundary constraints and new constraints to the layout constraint set, this embodiment determines whether a preset solution condition is met. Based on the satisfaction of the preset solution condition, this embodiment solves the layout constraint set that incorporates the aforementioned global boundary constraints and new constraints to obtain the final layout parameters for multiple layers.

[0039] The final layout parameters include at least the precise coordinates of each layer on the canvas, the final rendered font size, and the actual width and height in pixels. Based on the calculated final layout parameters, the client drives the renderer to composite the content data of each layer pixel by pixel and display the information to be published.

[0040] The embodiments disclosed herein can calculate the final layout parameters of each layer based on relative spatial relationship constraints, new constraints, and global boundary restrictions. This allows the final layout to adapt to the text size and the available layout space on the client side, ensuring the correct display of the information to be published. At the same time, it eliminates the maintenance cost of manually adjusting the coordinate positions for each language individually, thus improving the deployment efficiency of global information publishing.

[0041] In multilingual information distribution, the initial rendering size of text in a text type layer may increase due to language switching, which may lead to a situation where the available layout space on the client device cannot accommodate the set of layout constraints.

[0042] In some alternative embodiments of this disclosure, multiple layers each carry semantic weights.

[0043] Semantic weights are used to determine the display and rendering priority of each layer. Semantic weights are assigned semantic roles to layers in the backend by operations personnel, and then automatically mapped to numerical values ​​by the system according to preset rules and written into the configuration protocol.

[0044] Step 108 involves solving for the set of layout constraints, including: Since the available layout space cannot satisfy the set of layout constraints, the layout constraint sets of multiple layers are solved according to the order of semantic weights. The semantic weights are used to determine the display rendering priority of each layer.

[0045] In practice, multiple layers are arranged in descending order based on their semantic weights, thereby establishing the rendering priority of each layer when space is insufficient. Layers with higher semantic weights have their corresponding layout constraints preserved as strong constraints during the solution process, ensuring that layers with higher semantic weights are displayed within the available layout space.

[0046] In some optional embodiments of this disclosure, during the process of solving the constraints corresponding to each layer in descending order, if it is detected that the spatial constraint corresponding to a certain current layer cannot be satisfied, one or more of the following adjustment strategies will be executed: Reduce the font size. Specifically, this means decreasing the rendering font size of the current text type layer until its size shrinks to a safe range.

[0047] Increase the maximum number of lines in the text. For example, change the original single-line display to allow double or multi-line wrapping to utilize vertical space to alleviate insufficient horizontal width.

[0048] Truncate the text. When both the font size and line count reach the limit, forcibly append preset characters to the end of the text to cut off the overflowing characters.

[0049] As needed, this embodiment of the disclosure configures semantic weight labels for multiple layers respectively, so that when the available layout space of the client device cannot fully satisfy the set of layout constraints, the display rendering priority of each layer is determined according to the semantic weight, so as to give priority to ensuring the display integrity of the layer with high semantic weight.

[0050] In some optional embodiments of this disclosure, after one or more of the above adjustment strategies have been executed, if the current layer still cannot meet the corresponding layout constraints and the semantic weight of the current layer is less than the preset hiding threshold, the current layer is hidden to release the occupied space.

[0051] Specifically, those skilled in the art can set the preset hiding threshold as needed.

[0052] In practice, by making the layer invisible, the layout space originally occupied by the layer is released, so that the solver can provide enough physical pixels for layers with high semantic weight, ensuring that layers with high semantic weight of the information to be published are displayed.

[0053] In some optional embodiments of this disclosure, certain languages ​​have a right-to-left reading and writing flow. If the conventional left-to-right layout constraints are used, the entire typesetting logic will be disrupted. This disclosure, based on the target language environment's text arrangement direction being right-to-left, mirrors the left-right relationships of each constraint field in the layout constraint set and reverses the text alignment based on these relationships.

[0054] Specifically, to correct this defect before measurement and solution, this embodiment of the disclosure can perform language feature retrieval on the currently acquired target language environment before measuring the initial rendering size of the text at a set font size, in order to obtain the text arrangement direction corresponding to the target language environment. Based on the fact that the text arrangement direction corresponding to the target language environment is from right to left, the mirror inversion operator is automatically activated.

[0055] This operator performs a mirror reversal on each constraint field in the layout constraint set based on left-right relationships. For example, the constraint field that originally states "Layer B is to the right of Layer A" is automatically mapped and rewritten as "Layer B is to the left of Layer A". At the same time, the alignment of the text is reversed, changing the regular left alignment to right alignment.

[0056] After the reversal is completed, the initial rendering size of the reversed text is measured under the set font size, and the measured initial rendering size is added as a new constraint to the layout constraint set of each constraint field based on the left-right relationship to ensure the visual effect of the language with reversed text arrangement during adaptive rendering.

[0057] The implementation of this embodiment is illustrated below through a specific application scenario.

[0058] See Figure 2 The information publishing method provided in this embodiment specifically includes the following steps: Step A10: Parse the material configuration protocol and extract the constraint fields of multiple layers to construct a layout constraint set.

[0059] The constraint field describes the relative spatial relationships between multiple layers, including text layers. Each layer carries a semantic weight, and each layout constraint is assigned a priority weight based on the semantic weight of the corresponding layer.

[0060] Step A20: Obtain the current text arrangement direction based on the target language environment.

[0061] Based on the target language environment and the text arrangement direction being from right to left, the mirror transformation logic is automatically triggered to mirror and reverse the left-right relationships of each constraint field in the layout constraint set. For example, the left-side relative positioning constraint relationship is aligned and mapped with the right-side relative positioning constraint relationship, and the alignment of the text is reversed based on the left-right relationship. After the reversal is completed, the subsequent processing steps are initiated.

[0062] Step A30: For each text type layer, measure the initial rendering size of the text at the set font size, and add the initial rendering size as a new constraint to the layout constraint set.

[0063] Specifically, if the physical size of the layer is greater than or equal to the initial rendering size, the currently set font size remains unchanged; if the current layout constraints cannot directly meet the requirements of the initial rendering size, the font size is introduced as an adjustable variable into the solution space, and the adjustment range of the font size is limited to between the preset minimum and maximum font sizes. Here, the physical size of the layer refers to the physical pixel width and height of the layer on the canvas, which is obtained according to the material configuration protocol; the rendering size refers to the width and height of the pixels rendered by the layer according to the font size.

[0064] Step A40: Obtain the available layout space of the client device, and add the available layout space as a global boundary constraint to the layout constraint set.

[0065] Step A50: Since the available layout space cannot satisfy the set of layout constraints, solve the set of layout constraints for multiple layers according to the order of semantic weights. The semantic weights are used to determine the display rendering priority of each layer.

[0066] Specifically, multiple layers are sorted in descending order according to their semantic weights to establish the processing order. Then, the layout constraints of each layer are solved sequentially according to the descending order of their semantic weights.

[0067] During the solution process, this embodiment extracts the constraint subset associated with the currently traversed layer. The constraint subset specifically includes the relative spatial relationships corresponding to the current layer. If the constraint subset can be satisfied within the currently available space, the physical coordinates of the current layer are calculated, and the space already occupied by the layer is subtracted from the currently available space. The currently available space is the space in the available layout space that is not occupied by other layers. If the layout constraints corresponding to the current layer cannot be satisfied, a local fine-tuning is triggered, specifically by executing one or more of the following adjustment strategies: reducing the set font size to the minimum allowed font size and recalculating the text size, increasing the maximum number of lines in the text, and truncating characters in the text.

[0068] To enable those skilled in the art to more clearly understand the process of solving the layout constraint set of multiple layers in the embodiments of this disclosure, the following detailed explanation is provided in conjunction with a specific application scenario.

[0069] Specifically, each layer Each has a set of independent variables to be solved, including: Physical coordinate variables: This is used to characterize the starting physical pixel position of the layer in the canvas coordinate system; Physical dimension variables: This is used to characterize the width and height of the layer in the canvas coordinate system; Rendering font size variable: This is used to characterize the font size when rendering text-type layers, and its value range is limited to the preset font size adjustment range of the protocol. Inside.

[0070] Assume that the available layout space width obtained by the client device during operation is The height is The preset horizontal spacing between layers is denoted as... The vertical spacing is denoted as .

[0071] Let's take three specific text-type layers as an example: Layer A, Layer B, and Layer C. After parsing the material configuration protocol, the semantic weight of each layer is extracted. Layer A has a semantic weight of 0.9 (e.g., a high-priority layer, like a promotional call to action), Layer B has a semantic weight of 0.8 (e.g., a medium-priority layer, like a main title), and Layer C has a semantic weight of 0.5 (e.g., a low-priority layer, like supplementary descriptive text). Based on these semantic weights, they are sorted in descending order, establishing the following display rendering priority: Layer A... Layer B Layer C.

[0072] The relative spatial relationship constraints between these three layers are as follows: Layer A is located to the left of Layer B; Layer C is located below layers A and B.

[0073] Therefore, the constraint equations in the constructed layout constraint set specifically include the following limiting conditions:

[0074]

[0075]

[0076] Here, the horizontal coordinate x increases from left to right, and the vertical coordinate y increases from top to bottom.

[0077] For any text type layer Let the text content corresponding to it in the target language environment be at a set font size. The initial rendering size width measured below is The height is Then the layer size must meet the following requirements:

[0078]

[0079] Global boundary constraints:

[0080] In solving the layout constraint set, to prevent high-priority layers from excessively occupying available space during individual solving, thus preventing subsequent medium and low-priority layers from being displayed, this embodiment of the disclosure introduces the concept of solving the current layer by incorporating unsolved lower-level layers while minimizing available space usage. It assumes the application uses the minimum allowed font size. Furthermore, when performing line wrapping or truncation based on the maximum number of lines, the minimum width of layer B is... The minimum height of layer C is .

[0081] When there is sufficient available space, the process of solving the layout constraint set includes: Set the available layout space parameters for the client device as follows: width ,high Layer spacing is .

[0082] Layer A sets the initial rendering size of the text under the specified font size in the protocol. ; Layer B sets the initial rendering size of the text under the specified font size in the protocol. The minimum allowed width is ; Layer C sets the initial rendering size of the text under the specified font size in the protocol. The minimum allowed height is .

[0083] The specific solution steps according to the embodiments of this disclosure are as follows: Solve for layer A: Extract the constraint subset associated with layer A. Because layer B is constrained by the canvas boundaries horizontally. Under the premise of ensuring that layer B has a minimum width, it must satisfy the following condition. Relative position constraints between combined layer A and layer B Therefore, the horizontal dimension boundary applied to layer A can be derived as follows:

[0084] Similarly, since layer C is located below layer A and cannot exceed the canvas height, the vertical dimension boundary applied to layer A can be derived as follows:

[0085] Substitute specific numerical values ​​into the constraint subset And set the starting alignment coordinates. The allowable size limit for layer A is:

[0086]

[0087] Due to the initial rendering size of layer A Falling within the allowed range and Within this framework, all constraints are fully satisfied. Therefore, keeping the font size of layer A unchanged, the final layout parameters for layer A are calculated as follows:

[0088] Update available space, deducting the space already occupied by layer A.

[0089] Solving for layer B: Since the parameters of layer A are fixed, the constraint subset of layer B... Automatically import solved constants and Therefore, the horizontal starting point constraint of layer B is transformed into:

[0090] Since layer B cannot extend beyond the right edge of the canvas, its width is limited by:

[0091] Because the width of layer B at the set font size is And satisfy The boundary constraints are met, and the constraints are satisfied. Keeping the font size of layer B unchanged, the final layout parameters for layer B are calculated as follows:

[0092] Update the available space pool, deducting the space already occupied by layer B.

[0093] Solving for layer C: Given that layers A and B are fixed, extract the constraint subset of layer C. Its relative position constraints are transformed into:

[0094] The maximum width and height allowed for layer C in the canvas are limited to:

[0095]

[0096] Because the initial rendering size of the text in layer C is ,satisfy and Due to limitations, no layout shrinkage adjustments are needed. The final calculated layout parameters for layer C are:

[0097] When there is sufficient available space, the process of solving the layout constraint set includes: Adjustments will be made during the solution process when the user switches the client's language environment (e.g., to a language with longer characters such as German) or when the available layout space on the client shrinks due to the screen scaling of the client device.

[0098] Set the available layout space width of the current client device due to split-screen operation. Reduced to ,high Keep The remaining layer parameters and initial render size remain unchanged.

[0099] Solving for layer A: Substitute the new width parameter The allowed size limit for layer A is:

[0100] At this point, the initial rendering size width of layer A is... Larger than the limit size limit The current layout constraints cannot directly meet the requirements of the initial rendering size.

[0101] Reduce the font size of layer A within the allowed font size range. Set font size After reducing the size, remeasure the initial rendering dimensions of the text in layer A, and adjust the width to... .

[0102] because The constraints are satisfied. The final layout parameters for layer A are determined as follows:

[0103] Solving for layer B: Based on the fixed layer A, the starting constraint position and horizontal width limit of layer B are as follows:

[0104]

[0105] The initial width of layer B at the set font size is Greater than the current horizontal limit boundary .

[0106] Reduce the set font size to the minimum size within the preset font size adjustment range. After reducing the font size, the text width was remeasured and reduced to [value missing]. .because However, it still cannot meet the spatial constraints.

[0107] Keeping the minimum font size unchanged, the maximum number of lines displayed for the text is increased (e.g., changing from single-line to allowing double-line wrapping), trading vertical space for horizontal width. After line wrapping, the required rendering width for layer B is remeasured and reduced to... The height was raised to .because The constraints are satisfied.

[0108] The final layout parameters for layer B, calculated in the final calculation, are as follows:

[0109] Solving for layer C: Based on the final layout parameters of layers A and B, extract the constraint subset of layer C. Its relative position constraints are transformed into:

[0110] The vertical height limit for layer C is:

[0111] In the horizontal direction, the maximum width allowed for layer C is limited to:

[0112] Because the initial rendering size of the text in layer C is [width value missing]. Larger than the maximum canvas limit .

[0113] Try reducing the font size and increasing the maximum number of lines. If the minimum width is still greater than [the previous value] after adjustments... Then, a character truncation strategy is applied to the text (such as forcibly adding an ellipsis at the end of the text) to forcibly truncate character entities that exceed the boundary, so that the final rendered width meets the requirement. Restrictions.

[0114] The final layout parameters for layer C, calculated in the final calculation, are as follows:

[0115] If, during the above solution process, you encounter extremely limited physical space (such as canvas width) In scenarios where the size is reduced to a smaller scale, and the adjustment result of a currently traversed layer still cannot meet the constraint boundaries, this embodiment of the disclosure reads the semantic weight of the current layer. When it is detected that its semantic weight is less than a preset hiding threshold (e.g., the preset hiding threshold is 0.3, and the weight of some auxiliary or decorative layers is lower than this value), the layer is marked as hidden, the current layer is directly hidden, and the available space it occupies is released, thereby ensuring the complete display of high semantic weight layers under limited screen conditions.

[0116] Step A60: Output the solution results to obtain the final layout parameters of multiple layers, and synthesize and display the information to be published based on the final layout parameters.

[0117] This embodiment of the disclosure drives the underlying compositing renderer to composite the content data of each layer according to the final layout parameters and displays the information to be published.

[0118] In some optional embodiments of this disclosure, the text is accompanied by a corresponding confidence score. This confidence score is used to characterize the quality of the translated text.

[0119] The preset solution conditions in the aforementioned embodiments include: the confidence score is greater than or equal to the first preset trust threshold.

[0120] If the confidence score is less than the first preset trust threshold, execute any downgrade strategy.

[0121] Specifically, if the confidence score is less than the first preset trust threshold, meaning the preset solution conditions are not met, step 108 is not executed; instead, any degradation strategy is executed.

[0122] The downgrade strategy specifically includes the following options: The text is replaced with a reference language material. After the replacement, the text characters are changed. In this embodiment, the process will return to step 104, measure the initial rendering size of the reference language material at the set font size, and add the initial rendering size as a new constraint to the layout constraint set.

[0123] Load static materials corresponding to the target language environment. As needed, this embodiment of the disclosure may download pre-made full-image static materials corresponding to the target language environment from local cache or the cloud for alternative display.

[0124] Load default static assets. In case of network issues or the absence of static assets corresponding to the target language environment, directly render default static assets that are compatible with all languages.

[0125] As needed, the material configuration protocol of this disclosure configures a corresponding confidence score for each piece of text, and when the confidence score is less than a first preset trust threshold, the corresponding text is marked as pending manual review or requiring manual translation according to the confidence level (see below for specific grading methods). Figure 3 (as shown in the embodiment), and serves as the basis for determining whether the client should execute the downgrade strategy.

[0126] The following example illustrates an exemplary method for obtaining the text and confidence score in the material configuration protocol of this disclosure through a specific application scenario.

[0127] See Figure 3 The specific steps for obtaining the copy and confidence score in the material configuration agreement include the following: Step B10: Obtain the text in the base language for input. At the same time, the component attributes of the text are marked.

[0128] Specifically, component attributes may include promotional calls to action, benefit descriptions, or brand slogans.

[0129] Step B20: Copy the base language Inputting the component attribute information into a large language model generates candidate texts corresponding to the target language environment. .

[0130] Specifically, in generating candidate copy When using this method, include appropriate constraint prompts, such as maintaining a sense of urgency and keeping the character length within 0.8 to 1.5 times that of the base language text.

[0131] Step B30: Analyze the copy in the benchmark language separately. and candidate copywriting Perform feature encoding to generate a baseline semantic vector. and target semantic vector And calculate the baseline semantic vector. With the target semantic vector Cosine similarity between them.

[0132] The formula for calculating cosine similarity is as follows: in, Represents the dot product of vectors. It represents the magnitude of the vector.

[0133] Step B40: Determine the confidence score of the candidate text based on cosine similarity, and set the confidence score to be greater than or equal to the second preset trust threshold. The copy and corresponding confidence scores are saved to the material configuration agreement.

[0134] Specifically, based on a cosine similarity greater than or equal to a first preset trust threshold. If a translation is deemed to have high confidence, this embodiment of the present disclosure determines the cosine similarity as the confidence score and automatically writes the candidate text into the internationalization field of the material configuration protocol.

[0135] Based on a cosine similarity greater than or equal to a second preset trust threshold And less than the first preset trust threshold If the translation is determined to be of medium confidence level, the cosine similarity is used as the confidence score in this embodiment. The candidate text is written into the internationalization field of the material configuration protocol, and the corresponding text is marked as pending manual review, which serves as the basis for determining subsequent processing.

[0136] Based on the cosine similarity being less than the second preset trust threshold If a translation is deemed low-quality, this embodiment triggers a regeneration process for the candidate text. As needed, this embodiment limits the maximum number of retries for the regeneration process to three. This is based on the assumption that the cosine similarity of the regenerated text remains below a second preset trust threshold even after reaching the maximum number of retries. In this embodiment of the disclosure, the corresponding text is marked as requiring manual translation.

[0137] Specifically, this embodiment of the disclosure also specifies that a confidence score greater than or equal to a second preset trust threshold is required. The copywriting undergoes compliance checks, and only copywriting that passes the compliance check, along with its corresponding confidence score, is saved to the material configuration agreement.

[0138] Compliance checks include sensitive word filtering checks and checks against target market regulations. Based on passing the compliance checks, the corresponding candidate text is added to the internationalization field of the content configuration agreement.

[0139] In some optional embodiments of this disclosure, the preset solution conditions include: the performance of the client device meets the computational requirements of the layout constraint set.

[0140] Accordingly, the method also includes: stopping the solution of the layout constraint set based on the fact that the performance of the client device does not meet the calculation requirements of the layout constraint set, and directly loading the default static material.

[0141] An interrupt command can be issued as needed to stop solving the layout constraint set and directly load default static materials to complete the display. This embodiment of the disclosure solves the layout constraint set to improve the smoothness of the device and avoid lag.

[0142] In some optional embodiments of this disclosure, solving for the set of layout constraints includes: Multiple candidate layout parameter schemes were calculated.

[0143] Each candidate layout parameter scheme was scored for visual aesthetics.

[0144] The candidate layout parameter scheme with the highest visual aesthetic score is selected as the final layout parameter.

[0145] Specifically, the visual aesthetic score is calculated in two ways: first, by using an AI model to automatically evaluate and intelligently score; and second, by using an algorithm to perform weighted calculations, and finally selecting the scheme with the highest score as the final layout parameter.

[0146] This embodiment of the disclosure evaluates the visual appeal of multiple candidate layout parameter schemes and uses the candidate layout parameter scheme with the highest visual appeal score as the final layout parameter, thus ensuring the aesthetic requirements of the information to be published.

[0147] In some alternative embodiments of this disclosure, see Figure 4 The method also includes: Step 110: Receive the incremental update protocol and merge the incremental update protocol with the material configuration protocol to update the material configuration protocol.

[0148] Specifically, the client dynamically receives incremental update protocols, which are typically pushed by the operations center based on new requirements. These protocols include at least the translated text data for the new language and the corresponding update path. For example, the incremental update protocol includes: a base version identifier, a target version identifier, and a patch data package that includes the operation type, coverage path, new text, and corresponding confidence scores.

[0149] Operation type refers to the specific modification action instruction (such as adding, replacing, or deleting) executed on the material configuration protocol data node, while overwrite path is the path string used to locate the node to be modified.

[0150] After receiving the data, the patch component in the client performs a differential merging operation in memory without requiring a restart according to this embodiment, merging the incremental update protocol and the media configuration protocol to update the media configuration protocol. The updated media configuration protocol cache will immediately take effect the next time the information publishing method is called, thus extending the media configuration protocol.

[0151] In some alternative embodiments of this disclosure, see Figure 5 The method also includes: Step 112: Collect display tracking data for the information to be published. Display tracking data is used to record user click behavior; and aggregate the data by language dimension to calculate the actual click-through rate of the currently displayed copy for different languages.

[0152] If the actual click-through rate is less than the preset click-through rate threshold, the copy corresponding to the actual click-through rate will be regenerated.

[0153] Specifically, in this embodiment of the disclosure, the display tracking data of the information to be published is continuously collected through the tracking engine, and the display tracking data is uniformly reported to the data analysis backend. For example, the display tracking data includes: target language environment identifier, template identifier, rendering mode identifier, display duration, click behavior, and click area.

[0154] This disclosure embodiment aggregates data by language dimension, classifies and statistically analyzes the reported tracking points, and thus accurately calculates the actual click-through rate of the text currently displayed in a certain language.

[0155] Specifically, the data analysis backend can aggregate display tracking data according to template identifiers, target language environment identifiers, and internationalization version identifiers to calculate the performance metrics of the currently displayed copy. Performance metrics include the actual click-through rate (CTR). The formula for calculating the actual CTR is as follows:

[0156] For example, if the actual click-through rate in a target language environment is less than a preset click-through rate threshold, or if the actual click-through rate is lower than the actual click-through rate of the corresponding benchmark language text and the difference between the two is greater than a preset difference threshold, then this embodiment of the disclosure triggers a translation quality review process.

[0157] Specifically, the backend system can send the text in the current language and its corresponding performance metrics to the semantic translation engine, requesting the regeneration of candidate translation texts. After the regenerated candidate translation texts undergo feature encoding based on semantic vector verification and semantic similarity verification, they are then deployed online in a gray-scale testing manner.

[0158] After a pre-set gray-scale testing period, data significance is determined. If the actual click-through rate (CTR) of the newly generated candidate translated text is better than that of the original text, the candidate translated text is automatically adopted as the official version to replace the original text and update the material configuration agreement; otherwise, the original text version is retained. Data significance refers to using hypothesis testing methods from mathematical statistics to quantitatively analyze the sample data collected during the gray-scale testing period to determine whether the difference in actual click-through rate (CTR) between the new candidate text and the original text is due to a genuine technical effect brought about by improved translation quality, or due to accidental phenomena caused by random sampling errors in network traffic.

[0159] In some alternative embodiments of this disclosure, the material configuration protocol also includes region-adaptive rules.

[0160] The method also includes: Based on the current target region where the client device is located, determine the target color scheme parameters that match the current target region.

[0161] Adjust the rendering color attributes of multiple layers according to the parameters of the target color scheme.

[0162] For example, the Middle East prefers green tones and the Southeast Asian market prefers warm colors. This disclosure embodiment determines the target color scheme parameters that match the current target region, thereby adjusting the rendering color attributes of multiple layers to make the information to be published consistent with the preferences of the current target region.

[0163] In some optional embodiments of this disclosure, the information to be published includes a video media stream and a text overlay rendered independently of the video media stream, with multiple layers including a subtitle layer or a corner mark layer belonging to the text overlay.

[0164] Based on the final layout parameters, synthesize and display the information to be published, including: During the playback of the video media stream, the text overlay is rendered as a transparent overlay and is rendered independently above the video media stream player according to the final layout parameters.

[0165] Corresponding to the above method, this disclosure also provides an information publishing device. See also Figure 6 The information dissemination device includes: The protocol parsing module 61 is used to parse the material configuration protocol and extract the constraint fields of multiple layers to construct a layout constraint set. The constraint fields are used to describe the relative spatial relationship of multiple layers, including text type layers.

[0166] A new constraint module 62 is added, which is used to obtain the text in the text type layer based on the target language environment, measure the initial rendering size of the text at the set font size, and add the initial rendering size as a new constraint to the layout constraint set.

[0167] The global constraint module 63 is used to obtain the available layout space of the client device, and the available layout space is added to the layout constraint set as a global boundary constraint condition.

[0168] The solution display module 64 is used to solve the set of layout constraints based on the preset solution conditions, obtain the final layout parameters of multiple layers, and synthesize and display the information to be published based on the final layout parameters.

[0169] Figure 7 This is a schematic block diagram of an electronic device provided in an embodiment of this disclosure. Specific embodiments of this disclosure do not limit the specific implementation of the electronic device. Figure 7 As shown, the electronic device 700 may include: a processor 702, a communications interface 704, a memory 706, and a communications bus 708. Wherein: The processor 702, communication interface 704, and memory 706 communicate with each other via communication bus 708.

[0170] Communication interface 704 is used to communicate with other electronic devices or servers.

[0171] The processor 702 is used to execute program 710, specifically to execute the relevant steps in any of the aforementioned information publishing method embodiments.

[0172] Specifically, program 710 may include program code that includes computer operation instructions.

[0173] The processor 702 may be a CPU, an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present disclosure. The smart device may include one or more processors of the same type, such as one or more CPUs; or it may include processors of different types, such as one or more CPUs and one or more ASICs.

[0174] Memory 706 is used to store program 710. Memory 706 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0175] Specifically, program 710 can be used to cause processor 702 to execute the methods in any of the foregoing embodiments.

[0176] The specific implementation of each step in program 710 can be found in the corresponding descriptions of the steps and units in any of the foregoing method embodiments, and will not be repeated here. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the devices and modules described above can be referred to the corresponding process descriptions in the foregoing method embodiments, and will not be repeated here.

[0177] This disclosure also provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the methods described in any of the above embodiments.

[0178] It should be understood that the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for the method embodiments, since they are basically similar to the apparatus and the methods described in the embodiments of this disclosure, the description is relatively simple, and relevant parts can be referred to the descriptions of other embodiments.

[0179] It should be understood that the foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0180] It should be understood that the use of a singular form to describe an element or to show only one element in the accompanying drawings does not imply that the number of such element is limited to one. Furthermore, modules or elements described or shown as separate herein may be combined into a single module or element, and modules or elements described or shown as single herein may be broken down into multiple modules or elements.

[0181] It should also be understood that the terminology and expressions used herein are for descriptive purposes only, and one or more embodiments described herein should not be limited to these terms and expressions. The use of these terms and expressions does not exclude any illustrative and descriptive equivalent features (or parts thereof), and it should be recognized that various modifications that may exist should also be included within the scope of the claims. Other modifications, variations, and substitutions may also exist. Accordingly, the claims should be considered to cover all such equivalents.

Claims

1. An information dissemination method, the method comprising: The material configuration protocol is parsed, and constraint fields of multiple layers are extracted to construct a layout constraint set. The constraint fields are used to describe the relative spatial relationship of the multiple layers, including text type layers. Based on the target language environment, the text in the text type layer is obtained, and the initial rendering size of the text is measured at a set font size. The initial rendering size is added to the layout constraint set as a new constraint. Obtain the available layout space of the client device, and add the available layout space as a global boundary constraint to the layout constraint set; Based on the preset solution conditions, the layout constraint set is solved to obtain the final layout parameters of the multiple layers. The information to be published is then synthesized and displayed based on the final layout parameters.

2. The method according to claim 1, wherein, Each of the multiple layers carries a semantic weight; Solving the set of layout constraints includes: Since the available layout space cannot satisfy the set of layout constraints, the layout constraint sets of the multiple layers are solved according to the order of the semantic weights, and the semantic weights are used to determine the display rendering priority of each layer.

3. The method according to claim 2, wherein, The step of solving the layout constraint set of the multiple layers based on the semantic weights includes: If the layout constraints corresponding to the current layer cannot be met, one or more of the following adjustment strategies will be executed: reduce the set font size, increase the maximum number of lines of the text, or truncate the text.

4. The method according to claim 3, wherein, After implementing one or more of the following adjustment strategies, it also includes: Since the current layer cannot meet the corresponding layout constraints and the semantic weight of the current layer is less than the preset hiding threshold, the current layer is hidden to release the occupied space.

5. The method according to claim 1, wherein, The step of measuring the initial rendering size of the text at a set font size also includes: Based on the fact that the text arrangement direction corresponding to the target language environment is from right to left, the left-right relationship of each constraint field in the layout constraint set is mirrored and reversed, and the alignment of the text is reversed based on the left-right relationship.

6. The method according to claim 1, wherein, The copy includes a corresponding confidence score; The confidence score is used to characterize the quality of the translated text; The preset solution conditions include: the confidence score is greater than or equal to the first preset trust threshold; The method further includes: Based on the confidence score being less than the first preset trust threshold, any degradation strategy is executed, including: Replace the text with a reference language material, measure the initial rendering size of the reference language material at a set font size, and add the initial rendering size as a new constraint to the layout constraint set; Load static materials corresponding to the target language environment; Load default static assets.

7. The method according to claim 1, wherein, The preset solution conditions include: the performance of the client device meets the calculation requirements of the layout constraint set; The method further includes: Since the performance of the client device does not meet the calculation requirements of the layout constraint set, the solution to the layout constraint set is stopped, and the default static material is loaded directly.

8. The method according to claim 1, wherein, Solving the set of layout constraints includes: Multiple candidate layout parameter schemes were calculated; Each of the candidate layout parameter schemes is given a visual aesthetic score. The candidate layout parameter scheme with the highest visual aesthetic score is selected as the final layout parameter.

9. The method according to claim 1, wherein, The method further includes: Receive the incremental update protocol and merge the incremental update protocol with the material configuration protocol to update the material configuration protocol.

10. The method according to claim 1, wherein, The method further includes: Collect the display tracking data of the information to be published, and aggregate the data by language dimension to calculate the actual click-through rate of the currently displayed text for different languages. The display tracking data is used to record the user's click behavior. If the actual click-through rate is less than the preset click-through rate threshold, then the copy corresponding to the actual click-through rate will be regenerated.

11. The method according to claim 1, wherein, The material configuration protocol also includes region-adaptive rules; The method further includes: Based on the current target region where the client device is located, determine the target color scheme parameters that match the current target region; Adjust the rendering color attributes of the multiple layers according to the target color scheme parameters.

12. The method according to claim 1, wherein, The information to be published includes a video media stream and a text overlay layer rendered independently of the video media stream. The multiple layers include a subtitle layer or a corner mark layer belonging to the text overlay layer. The process of synthesizing and displaying the information to be published based on the final layout parameters includes: During the playback of the video media stream, the text overlay is rendered independently above the player of the video media stream as a transparent overlay, according to the final layout parameters.

13. An information publishing device, the information publishing device comprising: The protocol parsing module is used to parse the material configuration protocol and extract the constraint fields of multiple layers to construct a layout constraint set. The constraint fields are used to describe the relative spatial relationship of the multiple layers, including text type layers. A new constraint module is added to obtain the text in the text type layer based on the target language environment, measure the initial rendering size of the text at a set font size, and add the initial rendering size as a new constraint to the layout constraint set. The global constraint module is used to obtain the available layout space of the client device, and the available layout space is added to the layout constraint set as a global boundary constraint condition. The solution and display module is used to solve the set of layout constraints based on the preset solution conditions, obtain the final layout parameters of the multiple layers, and synthesize and display the information to be published based on the final layout parameters.

14. An electronic device, comprising: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction that causes the processor to perform an operation corresponding to the method as described in any one of claims 1-12.

15. A computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as described in any one of claims 1-12.