CN112749529A - Method and device for character self-adaption special-shaped edit box - Google Patents

Method and device for character self-adaption special-shaped edit box Download PDF

Info

Publication number
CN112749529A
CN112749529A CN201911038330.9A CN201911038330A CN112749529A CN 112749529 A CN112749529 A CN 112749529A CN 201911038330 A CN201911038330 A CN 201911038330A CN 112749529 A CN112749529 A CN 112749529A
Authority
CN
China
Prior art keywords
text
shaped
edit box
special
character
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
CN201911038330.9A
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.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201911038330.9A priority Critical patent/CN112749529A/en
Publication of CN112749529A publication Critical patent/CN112749529A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the invention provides a method and a device for a character self-adaptive special-shaped edit box. The method for the text adaptive special-shaped edit box comprises the following steps: generating a text editing area of a program; acquiring character contents to be filled; acquiring the type of the special-shaped edit box; generating a special-shaped edit box in the text editing area according to the type of the special-shaped edit box; and filling the text content into the special-shaped editing frame. The embodiment realizes the character content self-adaptive special-shaped edit box, thereby improving the display form diversification of the text program and greatly improving the user experience.

Description

Method and device for character self-adaption special-shaped edit box
Technical Field
The invention relates to the technical field of multimedia broadcast control, in particular to a method for a character self-adaptive special-shaped edit box and a device for the character self-adaptive special-shaped edit box.
Background
With the wider application of the LED display screen, the editing and publishing of the text program is generally supported when the program is published through the cloud. In the prior art, conventional text program playing only supports text program rectangular area playing, but rectangular area playing cannot meet the requirements of customers under certain conditions, and if the text contents in a circular area and a diamond area need to be played, the text contents cannot be played, so that the user experience is not friendly enough.
Disclosure of Invention
Therefore, to overcome the defects and shortcomings in the prior art, embodiments of the present invention provide a method and an apparatus for a text adaptive special-shaped edit box to implement a text content adaptive special-shaped edit box, so as to improve the variety of display forms of text programs and improve the user experience.
On one hand, the method for a text adaptive special-shaped edit box provided by the embodiment of the invention comprises the following steps: generating a text editing area; acquiring character contents to be filled; acquiring the type of the special-shaped edit box; generating a special-shaped edit box in the text editing area according to the type of the special-shaped edit box; and filling the text content into the special-shaped editing frame.
According to the method for the character self-adaptive special-shaped edit box, the character content to be filled is obtained, the special-shaped edit box is generated in the text editing area according to the type of the obtained special-shaped edit box, and then the obtained character content is filled into the special-shaped edit box, so that the character content is adaptive to the special-shaped edit box, the display form diversification of text programs is improved, and the user experience degree is greatly improved. In an embodiment of the present invention, the generating a shaped edit box within the text editing region according to the shaped edit box type includes: acquiring position information and size information of the text editing area; and generating the special-shaped editing frame in the text editing area according to the position information and the size information.
In one embodiment of the invention, the boundary of the special-shaped editing frame is connected with the boundary of the text editing area, and the shape of the special-shaped editing frame is different from that of the text editing area.
In an embodiment of the present invention, the filling the text content into the special-shaped edit box includes: acquiring the font size of the text content; determining character lines of the special-shaped edit box and the number of characters which can be filled in the character lines line by line according to the position information, the dimension information and the font size of the character content of the text edit area; and filling the character content into the special-shaped editing frame according to the character rows and the number of the characters which can be filled in the character rows.
In one embodiment of the invention, the lines of text comprise a first line of text and a second line of text; determining the character line of the special-shaped editing frame line by line according to the position information, the size information and the font size of the character content of the text editing area comprises: determining the upper limit of the first character line according to the position information, the size information and a preset height; determining a lower limit of the first text line according to the upper limit and the font size of the first text line; taking the lower limit of the first line of text as the upper limit of the second line of text; and determining the lower limit of the second character line according to the upper limit of the second character line and the font size.
In an embodiment of the present invention, the determining, line by line, the number of words that can be filled in the word line according to the position information, the size information, and the font size of the word content of the text editing area includes: determining the upper limit width of the first character line according to the upper limit of the first character line and the special-shaped edit box; determining the lower limit width of the first character line according to the lower limit of the first character line and the special-shaped edit box; and determining the number of the characters which can be filled in the first character line according to the upper limit width, the lower limit width and the font size.
On the other hand, an apparatus for a text adaptive special-shaped edit box provided in an embodiment of the present invention includes: the text editing area generating module is used for generating a text editing area; the character content acquisition module is used for acquiring character contents to be filled; the special-shaped edit box type acquisition module is used for acquiring the type of the special-shaped edit box; the special-shaped edit box generation module is used for generating a special-shaped edit box in the text editing area according to the type of the special-shaped edit box; and the character content filling module is used for filling the character content into the special-shaped editing frame.
The device for the self-adaptive special-shaped edit box for the characters is provided with a text editing area generating module, a character content acquiring module, a special-shaped edit box type acquiring module, a special-shaped edit box generating module and a character content filling module, so that the character content to be filled can be acquired, the special-shaped edit box is generated in the text editing area according to the acquired special-shaped edit box type, the acquired character content is filled into the special-shaped edit box, the character content is adaptive to the special-shaped edit box, the display form diversification of text programs is improved, and the user experience degree is greatly improved.
In one embodiment of the present invention, the special-shaped edit box generation module includes: a text editing area information acquiring unit configured to acquire position information and size information of the text editing area; and the special-shaped edit box generating unit is used for generating the special-shaped edit box in the text editing area according to the position information and the size information.
In one embodiment of the invention, the boundary of the special-shaped editing frame is connected with the boundary of the text editing area, and the shape of the special-shaped editing frame is different from that of the text editing area.
In one embodiment of the present invention, the text filling module includes: a font size acquiring unit configured to acquire a font size of the text content; a character line fillable character number determining unit configured to determine, line by line, character lines of the special-shaped edit box and the number of fillable characters of the character line according to the position information, the size information, and the font size of the character content of the text edit area; and the character content filling unit is used for filling the character content into the special-shaped editing frame according to the character rows and the number of the characters which can be filled in the character rows.
In another aspect, an embodiment of the present invention provides a system for a text adaptive special-shaped edit box, including: the processor is connected with the memory and stores a computer program, and when the processor runs the computer program, the processor executes the method for the character self-adaptive special-shaped edit box.
In another aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when executed by a processor, the stored computer program can implement the method for text-adaptive special-shaped edit box described above.
One or more of the above technical solutions may have the following advantages or beneficial effects: the character content to be filled is obtained, the special-shaped edit box is generated in the text edit area according to the type of the obtained special-shaped edit box, and the obtained character content is filled into the special-shaped edit box, so that the character content is adaptive to the special-shaped edit box, the display form diversification of the text program is improved, and the user experience degree is greatly improved. In addition, the number of characters which can be filled in the character lines is determined through the upper limit and the lower limit of the character lines, so that the filling of the special-shaped edit box by the character contents is more accurate, and the program display effect of the special-shaped edit box of the text program is better improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for a text-adaptive special-shaped edit box according to a first embodiment of the present invention.
Fig. 2 is a schematic flow chart of step S40 in fig. 1.
Fig. 3 is a schematic flow chart of step S50 in fig. 1.
FIG. 4 is a schematic diagram of a page of a text adaptive special-shaped edit box.
FIG. 5 is a schematic view of another page of a text adaptive shaped edit box.
Fig. 6 is a schematic diagram of coordinate information of the special-shaped edit box.
Fig. 7 is a schematic structural diagram of an apparatus for a text-adaptive special-shaped edit box according to a second embodiment of the present invention.
Fig. 8 is a schematic structural diagram of the special-shaped edit box generation module in fig. 7.
Figure 9 is a schematic structural diagram of the text filling module in figure 7,
fig. 10 is a schematic structural diagram of a system for a text-adaptive special-shaped edit box according to a third embodiment of the present invention.
Fig. 11 is a schematic structural diagram of a computer-readable storage medium according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
[ first embodiment ] A method for manufacturing a semiconductor device
As shown in fig. 1, the method for adapting a special-shaped edit box to a text provided in the embodiment of the present invention is used to adapt a text content to a special-shaped edit box, so as to improve the variety of display forms of a text program and improve the user experience. The method for the character self-adaptive special-shaped edit box comprises the following steps:
s10, generating a text editing area;
s20, acquiring the character content to be filled;
s30, acquiring the type of the special-shaped edit box;
s40, generating a special-shaped edit box in the text editing area according to the special-shaped edit box type;
s50, filling the text content into the special-shaped edit box.
Wherein, as shown in fig. 2, the step S40 of generating the special-shaped edit box within the text editing area according to the special-shaped edit box type includes:
s41, acquiring the position information and the size information of the text editing area;
and S42, generating the special-shaped editing frame in the text editing area according to the position information and the size information.
As shown in fig. 3, the step S50 of filling the text into the special-shaped edit box includes:
s51, obtaining the font size of the text content;
s52, determining the character lines of the special-shaped edit box and the number of characters which can be filled in the character lines line by line according to the position information, the dimension information and the font size of the character content of the text edit area;
s53, filling the text content into the special-shaped edit box according to the text line and the number of the words which can be filled in the text line.
In a specific implementation manner of this embodiment, a boundary of the special-shaped editing frame is connected to a boundary of the text editing area, and shapes of the special-shaped editing frame and the text editing area are different.
In a specific implementation manner of this embodiment, the type of the special-shaped edit box may be, for example: the special-shaped edit box may also include edit boxes of other shapes, and only some types of special-shaped edit boxes are listed here, which is not limited by the present invention.
The method for the text-adaptive special-shaped edit box provided by the embodiment can be implemented by, for example, web browser software installed on a client. In order to facilitate a clearer understanding of the present embodiment, the following describes in detail the method for adapting a special-shaped text editing box according to the present embodiment by taking the special-shaped editing box type as a diamond editing box as an example with reference to fig. 1, fig. 4, fig. 5, and fig. 6.
Specifically, when an operator performs a text adaptive special-shaped edit box at a client, for example, a browser obtains a page 100 of the text adaptive special-shaped edit box (see fig. 4), the operator clicks a [ text ] button on the page 100 of the text adaptive special-shaped edit box, the client responds to the operation to generate a text edit area 120 on a canvas 110 of the text adaptive special-shaped edit box of the page 100 of the text adaptive special-shaped edit box, and the text edit area 120 is, for example, a rectangle; specifically, for example, an operator inputs text content in the text editing region 120, the client obtains the text content, and the text content may be filled into the text editing region 120, or the text content may not be filled into the text editing region 120, which is not limited by the present invention. The operator selects a diamond edit box as shown in the right area of fig. 4 in the special-shaped edit box selection area 130 of the page 100 of the text adaptive special-shaped edit box, the client responds to the user selection to acquire that the special-shaped edit box type is a diamond edit box, and generates a diamond edit box 140 (shown in fig. 5) in the text edit area 120 according to the special-shaped edit box type, specifically, the client acquires the position information and the size information of the text edit area 120, the position information is the coordinates of the top left vertex of the text edit area 120, the size information is the width and the height of the text edit area 120, generates the diamond edit box 140 according to the coordinates, the width and the height of the top left vertex of the text edit area 120, the boundary of the diamond edit box 140 is connected with the boundary of the text edit area 120, namely, the maximum width and the maximum height of the diamond edit box 140 are equal to the width and the height of the text edit, the border of the diamond-shaped edit box 140 may be red, the border of the text edit area 120 may be yellow, and the text edit area 120 may not display the border, which is not limited in the present disclosure. The text content is filled into the diamond editing box 140, specifically, as shown in fig. 6, the font size of the text content is, for example, fontSize, the preset height is, for example, h from the upper limit of the first row of text to the upper boundary of the text editing area 120, the position coordinate of the text editing area 120, that is, the vertex coordinate of the upper left corner is, for example, (0,0), the width is w, and the height is h 1. First, it is determined that the first text line and the number of characters that can be accommodated by the first text line are, for example, a preset h is 1, the coordinates of the left point a of the upper limit of the first text line on the character editing area 120 are (0, 1), the coordinates of the right point b of the upper limit of the first text line are (W, 1), the coordinates of the point W11 and the point W12 of the upper limit of the first text line on the point diamond editing frame 140 are obtained by the point a and the point b, for example, the coordinates of the point W11 and the point W12 are determined by traversing the points on the straight line in the text editing area 120 where the point a and the point b are located, the coordinates of the point W11 and the point W12 are determined by recognizing the border color pixel of the diamond editing frame 140, the upper limit width of the first text line is obtained from the coordinates of the point W11 and the point W12, the number of characters that can be accommodated are obtained by the upper limit width and the font size, for example, the number of characters are obtained by rounding operation such that the distance between the, judging whether the number of the characters is more than 1, if the number of the characters is less than 1, presetting h as 2, and repeating the steps until the number of the characters is more than or equal to 1; the upper limit of the first text line may be determined by the above steps, for example, the positions where the upper limit of the first text line is located are positions where a (0, h) and b (W, h), the positions where the lower limit of the first text line is located by a (0, h) and font size are c (0, h + font size) and d (W, h + font size), the coordinates of the lower limit position point W21 and W22 of the first text line of the heteromorphic edit box 140 are determined according to c (0, h + font size) and d (W, h + font size), the distance between the coordinates of the point W21 and W22, i.e., the lower limit width of the first text line, is obtained by the coordinates of the point W21 and the point W22, the upper limit width of the first text line and the lower limit width of the second text line are compared, the smaller one of them, e.g., the distance between the point W11 and the point W12, i.e., the upper limit width of the font size of the first text line and the number of the first font size font line may be obtained by comparing the first text line with the first font size, filling the text content into the position of a first text line in a diamond-shaped edit box according to the text quantity; judging whether the special-shaped editing frame 140 is filled, comparing the vertical coordinate h + fontSize of the point c with the height h1 of the text editing area 120, and if the h + fontSize is larger than or equal to h1, stopping filling and displaying, for example, an ellipsis to prompt the user that the filling of the text content is complete; continuously determining a second character line and the number of characters which can be accommodated by the second character line, taking the upper limit of the first character line as the lower limit of the second character line, acquiring the lower limit of the second character line according to the acquisition method of the lower limit of the first character line, acquiring the number of characters which can be accommodated by the second character line according to the number of characters which can be accommodated by the first character line, and filling the character content to the second character line of the diamond-shaped editing frame 140 according to the number of characters; repeating the steps to finish the filling of the character content into the diamond-shaped edit box so as to finish the character self-adaptive special-shaped edit box. In this embodiment, the position of each line of text lines and the number of texts that can be accommodated in each line of text lines may also be determined line by line, and after the determination is completed, all text contents are filled into the diamond-shaped edit box 140.
In summary, in the method for adapting to a special-shaped edit box for characters in this embodiment, the character content to be filled is acquired, the special-shaped edit box is generated in the text editing area according to the acquired type of the special-shaped edit box, and then the acquired character content is filled in the special-shaped edit box, so that the character content is adapted to the special-shaped edit box, and thus, the display form diversification of the text program is improved, and the user experience is greatly improved. In addition, the number of characters which can be filled in the character lines is determined through the upper limit and the lower limit of the character lines, so that the filling of the special-shaped edit box by the character contents is more accurate, and the program display effect of the special-shaped edit box of the text program is better improved.
[ second embodiment ]
As shown in FIG. 7, a second embodiment of the present invention provides an apparatus 200 for text adaptive special-shaped edit box. The apparatus 200 for a text adaptive shaped edit box includes, for example, a text edit area generation module 210, a text content acquisition module 220, a shaped edit box type acquisition module 230, a shaped edit box generation module 240, and a text content fill module 250.
A text editing area generating module 210, configured to generate a text editing area.
A text content obtaining module 220, configured to obtain text content to be filled.
The special-shaped edit box type obtaining module 230 is configured to obtain a special-shaped edit box type.
And a special-shaped edit box generating module 240, configured to generate a special-shaped edit box in the text editing area according to the special-shaped edit box type.
And a text filling module 250, configured to fill the text into the special-shaped edit box.
As shown in fig. 8, the special-shaped edit box generation module 240 includes a text editing region information acquisition unit 241 and a special-shaped edit box generation unit 242.
A text editing region information acquiring unit 241 for acquiring position information and size information of the text editing region.
A special-shaped edit box generating unit 242 configured to generate the special-shaped edit box within the text editing region according to the position information and the size information.
As shown in fig. 9, the text filling module 250 includes a font size obtaining unit 251, a text line fillable text number determining unit 252, and a text filling unit 253.
A font size obtaining unit 251, configured to obtain a font size of the text content.
A character line fillable character number determining unit 252, configured to determine, line by line, character lines of the special-shaped edit box and the number of fillable characters of the character lines according to the position information, the size information, and the font size of the character content of the text edit area.
And a text filling unit 253, configured to fill the text content into the special-shaped edit box according to the text rows and the number of the text that can be filled in the text rows.
In a specific implementation manner of this embodiment, the type of the special-shaped edit box is, for example: a circular edit box, a triangular edit box, a trapezoidal edit box, or a parallelogram edit box.
The specific working process and technical effect between the modules in the apparatus 200 for text adaptive special-shaped edit box in the present embodiment refer to the description of the foregoing first embodiment.
[ third embodiment ]
As shown in FIG. 10, a third embodiment of the present invention provides a system 300 for text adaptive special-shaped edit boxes. The system 300 for text adaptive shaped edit boxes includes, for example, a memory 320 and a processor 310 coupled to the memory 320. The memory 320 may be, for example, a non-volatile memory, on which the computer program 321 is stored. The processor 310 may be, for example, an embedded processor. The processor 310, when running the computer program 321, performs the method of text adaptive shaped edit box in the first embodiment described above.
The specific working process and technical effects of the system 300 for text adaptive special-shaped edit box in the present embodiment refer to the description of the foregoing first embodiment.
[ fourth example ] A
As shown in fig. 11, a fourth embodiment of the present invention provides a computer-readable storage medium 400. The computer-readable storage medium 400 is, for example, a nonvolatile memory, which is, for example: magnetic media (e.g., hard disks, floppy disks, and magnetic tape), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices specially constructed for storing and executing computer-executable instructions (e.g., Read Only Memories (ROMs), Random Access Memories (RAMs), flash memories, etc.). The computer-readable storage medium 400 has stored thereon computer-executable instructions 410. The computer-readable storage medium 400 may execute the computer-executable instructions 410 by one or more processors or processing devices to implement the method of text-adaptive shaped edit boxes in the first embodiment described above.
In addition, it should be understood that the foregoing embodiments are merely exemplary illustrations of the present invention, and the technical solutions of the embodiments can be arbitrarily combined and collocated without conflict between technical features and structural contradictions, which do not violate the purpose of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of one logic function, and an actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, each functional unit/module in the embodiments of the present invention may be integrated into one processing unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated into one unit/module. The integrated units/modules may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units/modules.
The integrated units/modules, which are implemented in the form of software functional units/modules, may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing one or more processors of a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for a text adaptive special-shaped edit box is characterized by comprising the following steps:
generating a text editing area;
acquiring character contents to be filled;
acquiring the type of the special-shaped edit box;
generating a special-shaped edit box in the text editing area according to the type of the special-shaped edit box;
and filling the text content into the special-shaped editing frame.
2. The method of text adaptive shaped edit box of claim 1, wherein said generating a shaped edit box within the text editing area according to the shaped edit box type comprises:
acquiring position information and size information of the text editing area;
and generating the special-shaped editing frame in the text editing area according to the position information and the size information.
3. The method of text adaptive shaped edit box of claim 2, wherein the border of the shaped edit box borders the border of the text editing area and the shaped edit box is shaped differently than the text editing area.
4. The method of claim 3, wherein the populating the text content into the shaped edit box comprises:
acquiring the font size of the text content;
determining character lines of the special-shaped edit box and the number of characters which can be filled in the character lines line by line according to the position information, the dimension information and the font size of the character content of the text edit area;
and filling the character content into the special-shaped editing frame according to the character rows and the number of the characters which can be filled in the character rows.
5. The method of claim 4, wherein the line of text comprises a first line of text and a second line of text; determining the character line of the special-shaped editing frame line by line according to the position information, the size information and the font size of the character content of the text editing area comprises:
determining the upper limit of the first character line according to the position information, the size information and a preset height;
determining a lower limit of the first text line according to the upper limit and the font size of the first text line;
taking the lower limit of the first line of text as the upper limit of the second line of text;
and determining the lower limit of the second character line according to the upper limit of the second character line and the font size.
6. The method of text adaptive shaped edit box of claim 5, wherein said determining a number of text that the text line can fill line by line based on the position information, the size information, and the font size of the text editing region comprises:
determining the upper limit width of the first character line according to the upper limit of the first character line and the special-shaped edit box;
determining the lower limit width of the first character line according to the lower limit of the first character line and the special-shaped edit box;
and determining the number of the characters which can be filled in the first character line according to the upper limit width, the lower limit width and the font size.
7. An apparatus for adapting a special-shaped edit box to a character, comprising:
the text editing area generating module is used for generating a text editing area;
the character content acquisition module is used for acquiring character contents to be filled;
the special-shaped edit box type acquisition module is used for acquiring the type of the special-shaped edit box;
the special-shaped edit box generation module is used for generating a special-shaped edit box in the text editing area according to the type of the special-shaped edit box;
and the character content filling module is used for filling the character content into the special-shaped editing frame.
8. The apparatus for text adaptive shaped edit box of claim 7, wherein the shaped edit box generation module comprises:
a text editing area information acquiring unit configured to acquire position information and size information of the text editing area;
and the special-shaped edit box generating unit is used for generating the special-shaped edit box in the text editing area according to the position information and the size information.
9. The apparatus of a text adaptive shaped edit box of claim 8, wherein a border of the shaped edit box borders a border of the text editing region, and the shaped edit box is shaped differently than the text editing region.
10. The apparatus for text adaptive shaped edit box of claim 9, wherein the text fill module comprises:
a font size acquiring unit configured to acquire a font size of the text content;
a character line fillable character number determining unit configured to determine, line by line, character lines of the special-shaped edit box and the number of fillable characters of the character line according to the position information, the size information, and the font size of the character content of the text edit area;
and the character content filling unit is used for filling the character content into the special-shaped editing frame according to the character rows and the number of the characters which can be filled in the character rows.
CN201911038330.9A 2019-10-29 2019-10-29 Method and device for character self-adaption special-shaped edit box Pending CN112749529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911038330.9A CN112749529A (en) 2019-10-29 2019-10-29 Method and device for character self-adaption special-shaped edit box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911038330.9A CN112749529A (en) 2019-10-29 2019-10-29 Method and device for character self-adaption special-shaped edit box

Publications (1)

Publication Number Publication Date
CN112749529A true CN112749529A (en) 2021-05-04

Family

ID=75640831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911038330.9A Pending CN112749529A (en) 2019-10-29 2019-10-29 Method and device for character self-adaption special-shaped edit box

Country Status (1)

Country Link
CN (1) CN112749529A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0291785A (en) * 1988-09-29 1990-03-30 Canon Inc Character recognizing device
JP2004178010A (en) * 2002-11-22 2004-06-24 Toshiba Corp Document processor, its method, and program
US20050138555A1 (en) * 1999-10-22 2005-06-23 Microsoft Corporation Method and apparatus for text layout across a region
CN101369208A (en) * 2007-08-13 2009-02-18 周钟津 Method for generating browser user input area contents
CN107945248A (en) * 2016-10-13 2018-04-20 北京国双科技有限公司 A kind of bubble diagram word methods of exhibiting and device
CN108304132A (en) * 2018-01-19 2018-07-20 广州视源电子科技股份有限公司 graphic display method, device, equipment and storage medium
CN109669751A (en) * 2018-12-14 2019-04-23 Oppo广东移动通信有限公司 A kind of method for drafting of input frame, device, terminal and computer storage medium
CN109977949A (en) * 2019-03-20 2019-07-05 深圳市华付信息技术有限公司 Text positioning method, device, computer equipment and the storage medium of frame fine tuning
CN109978972A (en) * 2019-03-20 2019-07-05 珠海天燕科技有限公司 A kind of method and device of copy editor in picture

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0291785A (en) * 1988-09-29 1990-03-30 Canon Inc Character recognizing device
US20050138555A1 (en) * 1999-10-22 2005-06-23 Microsoft Corporation Method and apparatus for text layout across a region
JP2004178010A (en) * 2002-11-22 2004-06-24 Toshiba Corp Document processor, its method, and program
CN101369208A (en) * 2007-08-13 2009-02-18 周钟津 Method for generating browser user input area contents
CN107945248A (en) * 2016-10-13 2018-04-20 北京国双科技有限公司 A kind of bubble diagram word methods of exhibiting and device
CN108304132A (en) * 2018-01-19 2018-07-20 广州视源电子科技股份有限公司 graphic display method, device, equipment and storage medium
CN109669751A (en) * 2018-12-14 2019-04-23 Oppo广东移动通信有限公司 A kind of method for drafting of input frame, device, terminal and computer storage medium
CN109977949A (en) * 2019-03-20 2019-07-05 深圳市华付信息技术有限公司 Text positioning method, device, computer equipment and the storage medium of frame fine tuning
CN109978972A (en) * 2019-03-20 2019-07-05 珠海天燕科技有限公司 A kind of method and device of copy editor in picture

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
MICHAEL SCHMIDT AND GERHARD WEBER: "Recognition of Multi-touch Drawn Sketches", 《HUMAN-COMPUTER INTERACTION, PART IV, HCII 2013, LNCS 8007》 *
徐刚: "CAD中多行文本图形处理及软件界面设计", 《中国优秀硕士学位论文全文数据库 工程科技II辑》 *
韩永生;姚峥;: "VC++中标准编辑框控件的扩展", 电脑编程技巧与维护, no. 04 *

Similar Documents

Publication Publication Date Title
US11113836B2 (en) Object detection method, device, apparatus and computer-readable storage medium
CN109978972B (en) Method and device for editing characters in picture
EP3279866A1 (en) Method and apparatus for generating synthetic picture
CN107092643A (en) A kind of barrage rendering intent and device
CN114090149B (en) Interface adjustment method, device, computer equipment and computer readable storage medium
CN108052662B (en) Webpage-based component layout method, device, equipment and storage medium
CN105741334A (en) Heat map providing method and device
US8718368B2 (en) Text flow in and around irregular containers
CN109324796B (en) Interface layout method and device
CN109062885B (en) Method, device and equipment for adjusting layout of text box
CN106569805B (en) Canvas storage method, picture drawing method and equipment
CN106981084B (en) Method and device for drawing contour line
CN109960543B (en) Writing operation processing method and device
CN114827718A (en) Method and device for self-adaptive alignment display of real-time video screen-combining characters in cloud conference
JP5254250B2 (en) Method and system for generating boundaries in the process of rasterizing vector graphics, and method for manufacturing the system
CN112749529A (en) Method and device for character self-adaption special-shaped edit box
US10558900B2 (en) Two-dimensional code processing method and apparatus
CN103543974A (en) Method and system for improving font clarity
CN111782158B (en) Method for generating dot matrix font of code spraying equipment and printing equipment
CN113253959B (en) Front-end screen projection method adaptive to different large screen resolutions
CN106155728B (en) Method and device for detecting fonts of browser supporting canvas
CN104463939A (en) Anti-aliasing method for graphic rendering and system
CN113867862A (en) List page layout method and computing device
US20170098018A1 (en) Information processing method, information processing apparatus, and non-transitory recording medium storing information processing program
CN117215584B (en) UI automatic arrangement method, system, storage medium 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