CN110321529A - Frame character displaying method, device, computer equipment and storage medium - Google Patents

Frame character displaying method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110321529A
CN110321529A CN201910463319.0A CN201910463319A CN110321529A CN 110321529 A CN110321529 A CN 110321529A CN 201910463319 A CN201910463319 A CN 201910463319A CN 110321529 A CN110321529 A CN 110321529A
Authority
CN
China
Prior art keywords
field
text
enterprise
special
data
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.)
Granted
Application number
CN201910463319.0A
Other languages
Chinese (zh)
Other versions
CN110321529B (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910463319.0A priority Critical patent/CN110321529B/en
Publication of CN110321529A publication Critical patent/CN110321529A/en
Application granted granted Critical
Publication of CN110321529B publication Critical patent/CN110321529B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation

Abstract

This application provides a kind of frame character displaying method, device, computer equipment and storage medium based on data visualization, server is by obtaining enterprise's text data;Identify the special field in enterprise's text data with hidden mark;Identify the field type recorded in the corresponding hidden mark of each special field;Rendering data corresponding with each field type is obtained from RN frame;Each special field is rendered according to rendering data;Obtain rendering after each special field field length and field height, and according to the field length of each special field and field height determine each special field required for display frame size;Display frame is generated according to the size of display frame;Each special field is directed into corresponding display frame, to form field display box, so that the data volume of the tediously long occupancy of the text for solving company information is larger, computer disposal slow-footed technical problem when investor being caused to transfer company information by computer.

Description

Frame character displaying method, device, computer equipment and storage medium
Technical field
This application involves data visualization field, in particular to a kind of frame character displaying method, device, computer equipment And storage medium.
Background technique
It is currently that China's millions of people are started an undertaking, in the epoch of masses' innovation, has numerous projects to generate daily, it is incident, It is the investment demand of Most investors, and investor needs adequately to understand the information of enterprise, investor is obtained using computer The company information of enterprise is read to understand enterprise, but the data volume of the tediously long occupancy of text of company information is larger, causes to throw Computer disposal speed is slow when money person transfers company information by computer.
Summary of the invention
The purpose of the application is to provide a kind of frame character displaying method, device, computer equipment and storage medium, it is intended to The data volume for solving the tediously long occupancy of text of company information is larger, calculating when investor being caused to transfer company information by computer The slow technical problem of machine processing speed.
To achieve the above object, the application provides the following technical solutions:
Enterprise's text data is obtained, enterprise's text data is the company information for the textual form that enterprise issues;
Identify the special field in enterprise's text data with hidden mark, the hidden mark is enterprise mark The label in enterprise's text data is infused, the special field enterprise marks in enterprise's text data Field;
Identify that the field type recorded in the corresponding hidden mark of each special field, the field type are institute State the field type that enterprise marks in advance;
Obtain rendering data corresponding with each field type from RN frame, the rendering data be render described in The data of special field, and use the different rendering datas to the special field according to the difference of the field type It is rendered;
Font size, font color and font style are carried out to each special field according to the rendering data Rendering;
The field length and field height of each special field after rendering are obtained, and according to each special field Field length and field height determine the size of display frame required for each special field;
Generate the display frame according to the size of the display frame, the quantity of the display frame with it is each described special The quantity of field is consistent;
Each special field is directed into the corresponding display frame, to form field display box.
Further, described to identify that the step of having the special field of hidden mark in enterprise's text data includes:
Code text corresponding with enterprise's text data is obtained, the code text is to be believed by the enterprise of textual form The company information for the code form being converted to is ceased, the code text includes html base text and css pattern text;
Specified label is found out in the html base text, the specified label is enterprise in enterprise's text The label that the special field is reserved is marked in notebook data, there is record in the css pattern text closes with the specified label The pattern text of connection, the pattern text includes the text of transparency 100% so that the specified label is transparent to obtain institute State hidden mark;
Identify the specified special field marked.
Further, have in identification enterprise's text data and wrapped before the step of special field of hidden mark It includes:
Enterprise's text data of textual form is converted into code text;
Each special field confirmation instruction that the enterprise inputs referring to enterprise's text data is obtained, according to described each Special field confirmation instruction determines each special field in the code text;
It obtains the enterprise and is directed to the field type that each special field is labeled;
Using the corresponding special field of the specified label label in the code text, in the specified label The field type of the special field that record has and is labeled;
The addition pattern text corresponding with the specified label in the css pattern text, and in the pattern text The text codes of middle typing transparency 100%.
Further, the step for identifying the field type recorded in the corresponding hidden mark of each special field Suddenly include:
Each specified label is found out in the code text;
Identify the field type recorded in each specified label.
Further, the step of field length and field height for obtaining each special field after rendering is wrapped It includes:
Transfer preset measurement ruler;
The length in pixels and pixels tall of each special field are measured, and by the measurement ruler with the picture Plain length and pixels tall are respectively as the field length and field height.
Further, described that each special field is directed into the corresponding display frame, it is aobvious to form field Include: after the step of showing frame
The reading instruction of user's input is obtained, the user is the user for checking the company information;
Corresponding enterprise is found according to reading instruction, and is transferred from database corresponding with the enterprise associated Each field display box;
Each field display box is sent to the computer of user, for user's reading.
Further, described that each special field is directed into the corresponding display frame, it is aobvious to form field Include: after the step of showing frame
Identify the corresponding display box code text in code text of each field display box;
Preset repulsion code text is added in each display box code text, the repulsion code text is each Each field display box is carried out when the field display box contacts to repel isolated text.
The application also provides a kind of computer equipment, including memory and processor, is stored with calculating in the memory Machine program, which is characterized in that the processor realizes above-mentioned frame character displaying method when executing the computer program Step.
The application also provides a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that institute State the step of above-mentioned frame character displaying method is realized when computer program is executed by processor.
This application provides a kind of frame character displaying method, device, computer equipment and storage mediums, have with following Beneficial effect:
Server is the enterprise's letter for the textual form that enterprise issues by obtaining enterprise's text data, enterprise's text data Breath;Identify the special field in enterprise's text data with hidden mark, hidden mark is that enterprise marks in enterprise's text data In label, special field is the field that marks in enterprise's text data of enterprise;Identify the corresponding stealthy mark of each special field The field type recorded in note, field type are the field type that enterprise marks in advance;It is obtained and each field from RN frame The corresponding rendering data of type, rendering data are the data for rendering special field, and are used not according to the difference of field type Same rendering data renders special field;Font size, font face are carried out to each special field according to rendering data The rendering of color and font style;The field length and field height of each special field after rendering are obtained, and according to each Field length and the field height of special field determine the size of display frame required for each special field;According to display box The size of frame generates display frame, and the quantity of display frame is consistent with the quantity of each special field;Each special field is directed into In corresponding display frame, to form field display box, so that the data volume of the tediously long occupancy of the text for solving company information is larger, Computer disposal slow-footed technical problem when investor being caused to transfer company information by computer.
Detailed description of the invention
Fig. 1 is the first pass schematic diagram of the frame character displaying method of one embodiment of the application;
Fig. 2 is the second procedure schematic diagram of the frame character displaying method of one embodiment of the application;
Fig. 3 is the first structure block diagram of the frame character display apparatus of one embodiment of the application;
Fig. 4 is the second structural block diagram of the frame character display apparatus of one embodiment of the application;
Fig. 5 is the structural block diagram of the computer equipment of one embodiment of the application.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and advantage for the purpose of the application.
Specific embodiment
It should be appreciated that specific embodiment described herein is only used to explain the application, it is not used to limit the application.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiment is only a part of the embodiment of the application, instead of all the embodiments.Base Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts it is all its His embodiment, shall fall in the protection scope of this application.
The application proposes a kind of server, which executes the frame character displaying method.
It is a kind of first pass schematic diagram for frame character displaying method that the application proposes, wherein wrapping with reference to attached drawing 1 It includes:
S100, obtains enterprise's text data, and enterprise's text data is the company information for the textual form that enterprise issues;
Server obtains enterprise's text data that the staff of enterprise is issued by computer, enterprise's text data tool Body is the text that staff introduces enterprise.
In another embodiment, before step S100, what server reception computer issued logins information, logins letter Breath includes account, and account has enterprise account and user account respectively, and the identity for the person of logining is judged by account type, works as server The account for logining information received is enterprise account, then requesting computer issues enterprise's text data.
In yet another embodiment, after step sloo, after server gets enterprise's text data, by enterprise Text data is converted to code text, and concrete mode is creation html base text and css pattern text, and html is basic Text and css pattern text are associated;It can be seen from the above, enterprise's text data is the company information of textual form, therefore service Device directly affixes in html base text to enterprise's text data duplication, so that server is converted to enterprise's text data Code text realizes that server can carry out css pattern editor to enterprise's text data in this manner.
Further, after server obtains code text, staff is requested to determine special word in enterprise's text data Section, it is to be appreciated that enterprise's text data is shown on the computer of staff, staff is true on enterprise's text data Fixed special field can map in code text, so that server be made to find the word corresponding to special field in code text Section;After server recognizes the special field in code text, hidden mark is set at special field.
S200, identifies the special field in enterprise's text data with hidden mark, and hidden mark is that enterprise marks in enterprise Label in industry text data, special field are the field that enterprise marks in enterprise's text data;
For server after getting enterprise's text data, server identifies hidden mark in html base text, tool Body: hidden mark is text, and the text is completely stealthy by " transparency 100% " institute of css pattern text entry, therefore stealthy Label is display in html base text, and is stealthy in the computer of staff;Server is marked according to stealth Note determines special field in html base text, so that server be made to identify special field.
S300 identifies that the field type recorded in the corresponding hidden mark of each special field, field type are that enterprise is preparatory The field type relevant to special field of mark;
Staff set forth above determines special field, determining mode on enterprise's text data are as follows:
Staff selects passage as special field by computer on enterprise's text data, and special for this Field determines field type;Therefore field type is staff's input for special field of classifying.It can be seen from the above, stealthy mark It is denoted as text, which is the field type of staff's input of enterprise.
Server identifies the field type recorded in the corresponding hidden mark of each special field.
S400, obtains rendering data corresponding with each field type from RN frame, and rendering data is to render special word The data of section, and special field is rendered using different rendering datas according to the difference of field type;
Above-mentioned RN (React Native) frame is the frame of built-in open source rendering data, and rendering data includes font style Rendering, font size rendering, font color rendering, rendering data includes multiple according to the difference of field type, therefore is appreciated that Field type is identical, and the rendering data used is identical.
S500 carries out the wash with watercolours of font size, font color and font style according to rendering data to each special field Dye;
Server renders each special field after getting rendering data, so that server reaches according to field class The effect of the corresponding rendering special field of the difference of type.
S600 obtains the field length and field height of each special field after rendering, and according to each special field Field length and field height determine the size of display frame required for each special field;
Server respectively measures each special field using preset measurement ruler, thus obtain it is each special The field length and field height of field, with according to field length and field height determine each special field required for display The size of frame.
S700 generates display frame, the quantity of the quantity of display frame and each special field according to the size of display frame Unanimously;
After server determines the size of display frame, display frame is generated according to the size of display frame.Above-mentioned display Wire is specially wire frame, can be circle, rectangle etc..
Each special field is directed into corresponding display frame by S800, to form field display box.
After server generates display frame, each special field that rendering finishes is directed into corresponding display frame, To form display box.
Server forms field display box by said frame character displaying method, to make user in reading company information When terminal can be caught to read, also will appreciate that enterprise to reach user's tediously long and complicated company information that need not read.
Specifically for example: when staff's determination special field " 100,000,000 " in enterprise's text data of enterprise, and determining the spy The field type of different field is " annual value of production ", then " annual value of production " and " 100,000,000 " is shown in field display box by server simultaneously, from And realize user understand enterprise company information be that can concentrate on crucial points to understand, avoid tediously long and complicated enterprise of reading Information.
In another embodiment, after step S800, server identifies that each field display box is corresponding in code Display box code text in text;Then, server adds preset repulsion code text in each display box code text, Repelling code text is to carry out repelling isolated text to each field display box when each field display box contacts.
Repel code text by the frame edge setting in field display box, when the frame edge of two field display boxes Both make to be separated by repelling code text when contact, the case where to avoid mutually blocking.
In one embodiment, the step S200 packet of the special field in enterprise's text data with hidden mark is identified It includes:
S201, obtains code text corresponding with enterprise's text data, and code text is the company information by textual form The company information for the code form being converted to, code text include html base text and css pattern text;
It can be seen from the above, server creation html base text and css pattern text, server by enterprise's text data with The form of text is directed into html base text, to obtain code text.
S202 finds out specified label in html base text, specifies label to get the bid in enterprise's text data The label that special field is reserved is infused, record has the pattern text associated with specified label, pattern text in css pattern text It include the text of transparency 100% so as to specify label is transparent to obtain hidden mark;
Specifically, obtaining hidden mark and carrying out stealth to specified label, deposited in html base text with realizing In specified label, and enterprise's text data on the computer for the staff for being shown in enterprise is then not in specified mark Note.It is specific for example that server finds out specified label in html base text: html basis text of the server in code text Special code label is searched in this, which marks special field labeled as enterprise in enterprise's text data, and corresponds to The label being labeled in code text to special field, then, server is searched in css pattern text and special code Corresponding pattern text is marked, above-mentioned pattern text is that the pattern made to special code label adjusts (such as: setting special code Color, size of label etc.), if server finds the pattern text of corresponding special code label in css pattern text, And record has transparency 100% in the pattern text, then regards the special code labeled as hidden mark.
S203 identifies the marked special field of specified label.
After server finds specified label in code text, the specified special field of the specified label is identified, To realize that server identifies special field.
S201 to S203 realizes that server finds spy in the corresponding code text of enterprise's text information through the above steps Different field, therefore server realizes the significant field for the company information for determining that enterprise work personnel think.
Enterprise's text is identified with reference to attached drawing 2 for the second procedure schematic diagram for the frame character displaying method that the application proposes Have before the step of special field S200 of hidden mark in data and includes:
Enterprise's text data of textual form is converted to code text by S210;
Enterprise's text data of textual form is converted to the code text of code form by server, specifically:
Server creates html base text and css pattern text, and html base text and css pattern text are carried out Enterprise's text data of textual form is directed into html base text by association, server, and enterprise's text data is converted in realization For the effect of code text.
S220, each special field for obtaining enterprise referring to the input of enterprise's text data confirms instruction, according to each special word Segment acknowledgement instruction determines each special field in code text;
S230 obtains enterprise and is directed to the field type that each special field is labeled;
It can be seen from the above, the staff of enterprise is by operation computer to confirm special word on enterprise's text data Section, and classify for the special field, specifically: staff operates computer and selects one section of word on enterprise's text data Section, and it is directed to the field input field type in a computer, therefore it is appreciated that step S220 to step S230 is that server exists Each special field and its corresponding field type are determined in code text.
S240 marks corresponding special field using specified label in code text, and record has and quilt in specified label The field type of the special field of label;
Server marks corresponding special field using specified label label in code text.
S250 adds pattern text corresponding with specified label in css pattern text, and typing is saturating in pattern text The text codes of lightness 100%.
Server adds pattern text corresponding with specified label, and the typing in pattern text in css pattern text The text codes of transparency 100%, to realize by specified label stealth, to form hidden mark.
In one embodiment, the step of identifying the field type recorded in the corresponding hidden mark of each special field packet It includes:
S301 finds out each specified label in code text;
S302 identifies the field type recorded in each specified label.
Server finds out each specified label in code text, it can be seen from the above, specified label record has field class Type, therefore server obtains the field type recorded in each specified label, to make to take after finding out each specified label Business device transfers the rendering datas of corresponding number according to the difference of field type in RN frame.
In one embodiment, the step of obtaining the field length and field height of each special field after rendering is wrapped It includes:
S601 transfers preset measurement ruler;
S602 measures the length in pixels and pixels tall of each special field by measurement ruler, and with length in pixels With pixels tall respectively as field length and field height.
Server is measured by length in pixels and pixels tall of the preset measurement ruler to each special field, To obtain the length in pixels and pixels tall of each special field, final server makees the length in pixels and pixels tall For field length and field height.
In one embodiment, each special field is directed into corresponding display frame, to form field display box Include: after step S800
S810 obtains the reading instruction of user's input, and user is the user for checking company information;
S820 finds corresponding enterprise according to reading instruction, and transfer from database it is corresponding with enterprise it is associated respectively A field display box;
Each field display box is sent to the computer of user by S830, for user's reading.
Server obtain computer issue login information, when server get login information account be user's account Number, then request the computer of user to issue reading instruction, then, server obtains reading instruction, and reading instruction includes searching number Search enterprise in the database according to, server by searching for data, above-mentioned database be store all enterprises all fields it is aobvious Show the database of frame;Server according to search data search to corresponding enterprise after, server according to reading instruction transfer and The enterprise corresponds to associated each field display box, and each field display box is finally sent to the computer of user, for Family reading, the final enterprise's text information realized user and need not read tediously long and complicated, it is only necessary to check field display box energy Solution enterprise much of that.
With reference to attached drawing 3, for a kind of first structure block diagram for frame character display apparatus that the application proposes, comprising:
Data capture unit 1, for obtaining enterprise's text data, enterprise's text data is the textual form that enterprise issues Company information;
Server obtains enterprise's text data that the staff of enterprise is issued by computer, enterprise's text data tool Body is the text that staff introduces enterprise.
In another embodiment, what server reception computer issued logins information, and logining information includes account, account There are enterprise account and user account respectively, the identity for the person of logining is judged by account type, when what server received logins letter The account of breath is enterprise account, then requesting computer issues enterprise's text data.
In yet another embodiment, after server gets enterprise's text data, enterprise's text data is converted to Code text, concrete mode are creation html base text and css pattern text, and html base text and css pattern is literary Originally it is associated;It can be seen from the above, enterprise's text data is the company information of textual form, therefore server is directly to enterprise text Notebook data duplication affixes in html base text, so that enterprise's text data is converted to code text by server, passes through this Kind mode realizes that server can carry out css pattern editor to enterprise's text data.
Further, after server obtains code text, staff is requested to determine special word in enterprise's text data Section, it is to be appreciated that enterprise's text data is shown on the computer of staff, staff is true on enterprise's text data Fixed special field can map in code text, so that server be made to find the word corresponding to special field in code text Section;After server recognizes the special field in code text, hidden mark is set at special field.
Field recognition unit 2, has the special field of hidden mark for identification in enterprise's text data, hidden mark is Enterprise marks the label in enterprise's text data, and special field is the field that enterprise marks in enterprise's text data;
For server after getting enterprise's text data, server identifies hidden mark in html base text, tool Body: hidden mark is text, and the text is completely stealthy by " transparency 100% " institute of css pattern text entry, therefore stealthy Label is display in html base text, and is stealthy in the computer of staff;Server is marked according to stealth Note determines special field in html base text, so that server be made to identify special field.
Type identification unit 3, the field type recorded in the corresponding hidden mark of each special field for identification, field class Type is the field type relevant to special field that enterprise marks in advance;
Staff set forth above determines special field, determining mode on enterprise's text data are as follows:
Staff selects passage as special field by computer on enterprise's text data, and special for this Field determines field type;Therefore field type is staff's input for special field of classifying.It can be seen from the above, stealthy mark It is denoted as text, which is the field type of staff's input of enterprise.
Server identifies the field type recorded in the corresponding hidden mark of each special field.
Rendering data acquiring unit 4, for obtaining rendering data corresponding with each field type, rendering from RN frame Data be render special field data, and according to the difference of field type and use different rendering datas to special field into Row rendering;
Above-mentioned RN (React Native) frame is the frame of built-in open source rendering data, and rendering data includes font style Rendering, font size rendering, font color rendering, rendering data includes multiple according to the difference of field type, therefore is appreciated that Field type is identical, and the rendering data used is identical.
Rendering unit 5, for carrying out font size, font color and font to each special field according to rendering data The rendering of pattern;
Server renders each special field after getting rendering data, so that server reaches according to field class The effect of the corresponding rendering special field of the difference of type.
Measuring unit 6, for obtaining the field length and field height of each special field after rendering, and according to each Field length and the field height of special field determine the size of display frame required for each special field;
Server respectively measures each special field using preset measurement ruler, thus obtain it is each special The field length and field height of field, with according to field length and field height determine each special field required for display The size of frame.
Display frame generation unit 7, for according to the size of display frame generate display frame, the quantity of display frame with The quantity of each special field is consistent;
After server determines the size of display frame, display frame is generated according to the size of display frame.Above-mentioned display Wire is specially wire frame, can be circle, rectangle etc..
Field display box generation unit 8, for each special field to be directed into corresponding display frame, to form field Display box.
After server generates display frame, each special field that rendering finishes is directed into corresponding display frame, To form display box.
Server forms field display box by said frame character displaying method, to make user in reading company information When terminal can be caught to read, also will appreciate that enterprise to reach user's tediously long and complicated company information that need not read.
Specifically for example: when staff's determination special field " 100,000,000 " in enterprise's text data of enterprise, and determining the spy The field type of different field is " annual value of production ", then " annual value of production " and " 100,000,000 " is shown in field display box by server simultaneously, from And realize user understand enterprise company information be that can concentrate on crucial points to understand, avoid tediously long and complicated enterprise of reading Information.
In another embodiment, server identifies each field display box corresponding display box generation in code text Code text;Then, server adds preset repulsion code text in each display box code text, and it is each for repelling code text Each field display box is carried out when a field display box contacts to repel isolated text.
Repel code text by the frame edge setting in field display box, when the frame edge of two field display boxes Both make to be separated by repelling code text when contact, the case where to avoid mutually blocking.
In one embodiment, field recognition unit 2 includes:
Code text obtains module, and for obtaining code text corresponding with enterprise's text data, code text is by text The company information for the code form that the company information of this form is converted to, code text include html base text and css sample Formula text;
It can be seen from the above, server creation html base text and css pattern text, server by enterprise's text data with The form of text is directed into html base text, to obtain code text.
Specified label lookup module, for finding out specified label in html base text, specify label for The label that special field is reserved is marked in enterprise's text data, record has associated with specified label in css pattern text Pattern text, pattern text include the text of transparency 100% so as to specify label is transparent to obtain hidden mark;
Specifically, obtaining hidden mark and carrying out stealth to specified label, deposited in html base text with realizing In specified label, and enterprise's text data on the computer for the staff for being shown in enterprise is then not in specified mark Note.It is specific for example that server finds out specified label in html base text: html basis text of the server in code text Special code label is searched in this, which marks special field labeled as enterprise in enterprise's text data, and corresponds to The label being labeled in code text to special field, then, server is searched in css pattern text and special code Corresponding pattern text is marked, above-mentioned pattern text is that the pattern made to special code label adjusts (such as: setting special code Color, size of label etc.), if server finds the pattern text of corresponding special code label in css pattern text, And record has transparency 100% in the pattern text, then regards the special code labeled as hidden mark.
Field identification module goes out the marked special field of specified label for identification.
After server finds specified label in code text, the specified special field of the specified label is identified, To realize that server identifies special field.
Special field is found in the corresponding code text of enterprise's text information by server, therefore server is realized and determined The significant field for the company information that enterprise work personnel think.
With reference to attached drawing 4, the second structural block diagram for the frame character display apparatus of the application proposition includes:
Text conversion units 21, for enterprise's text data of textual form to be converted to code text;
Enterprise's text data of textual form is converted to the code text of code form by server, specifically:
Server creates html base text and css pattern text, and html base text and css pattern text are carried out Enterprise's text data of textual form is directed into html base text by association, server, and enterprise's text data is converted in realization For the effect of code text.
Confirm instruction acquisition unit 22, refers to for obtaining each special field confirmation that enterprise inputs referring to enterprise's text data It enables, to determine each special field in code text according to the confirmation instruction of each special field;
Field type acquiring unit 23 is directed to the field type that each special field is labeled for obtaining enterprise;
It can be seen from the above, the staff of enterprise is by operation computer to confirm special word on enterprise's text data Section, and classify for the special field, specifically: staff operates computer and selects one section of word on enterprise's text data Section, and it is directed to the field input field type in a computer, therefore it is appreciated that server determines each spy in code text Different field and its corresponding field type.
Marking unit 24 is specified in label for marking corresponding special field using specified label in code text The field type of special field that record has and is labeled;
Server marks corresponding special field using specified label label in code text.
Pattern text adding unit 25, for adding pattern text corresponding with specified label in css pattern text, and The text codes of typing transparency 100% in pattern text.
Server adds pattern text corresponding with specified label, and the typing in pattern text in css pattern text The text codes of transparency 100%, to realize by specified label stealth, to form hidden mark.
In one embodiment, type identification unit 3 includes:
Label lookup module, for finding out each specified label in code text;
Field type identification module, the field type recorded in each specified label out for identification.
Server finds out each specified label in code text, it can be seen from the above, specified label record has field class Type, therefore server obtains the field type recorded in each specified label, to make to take after finding out each specified label Business device transfers the rendering datas of corresponding number according to the difference of field type in RN frame.
In one embodiment, measuring unit 6 includes:
Measuring scale transfers module, for transferring preset measurement ruler;
Measurement module, for measuring the length in pixels and pixels tall of each special field by measurement ruler, and with Length in pixels and pixels tall are respectively as field length and field height.
Server is measured by length in pixels and pixels tall of the preset measurement ruler to each special field, To obtain the length in pixels and pixels tall of each special field, final server makees the length in pixels and pixels tall For field length and field height.
In one embodiment, frame character display apparatus further include:
Reading instruction acquisition unit, for obtaining the reading instruction of user's input, user is the user for checking company information;
Display box transfers unit, for finding corresponding enterprise according to reading instruction, and transfers and looks forward to from database Industry corresponds to associated each field display box;
Reading unit, for each field display box to be sent to the computer of user, for user's reading.
Server obtain computer issue login information, when server get login information account be user's account Number, then request the computer of user to issue reading instruction, then, server obtains reading instruction, and reading instruction includes searching number Search enterprise in the database according to, server by searching for data, above-mentioned database be store all enterprises all fields it is aobvious Show the database of frame;Server according to search data search to corresponding enterprise after, server according to reading instruction transfer and The enterprise corresponds to associated each field display box, and each field display box is finally sent to the computer of user, for Family reading, the final enterprise's text information realized user and need not read tediously long and complicated, it is only necessary to check field display box energy Solution enterprise much of that.
Referring to Fig. 5, a kind of computer equipment is also provided in the embodiment of the present application, which can be server, Its internal structure can be as shown in Figure 5.The computer equipment includes processor, the memory, network connected by system bus Interface and database.Wherein, the processor of the Computer Design is for providing calculating and control ability.The computer equipment is deposited Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program And database.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium. The database of the computer equipment is for storing the data such as each field display box, measurement ruler.The net of the computer equipment Network interface is used to communicate with external terminal by network connection.To realize a kind of frame when the computer program is executed by processor Frame character displaying method.
Above-mentioned processor executes a kind of frame character displaying method, comprising:
Enterprise's text data is obtained, enterprise's text data is the company information for the textual form that enterprise issues;
Identify the special field in enterprise's text data with hidden mark, hidden mark is that enterprise marks in enterprise's text Label in data, special field are the field that enterprise marks in enterprise's text data;
Identify that the field type recorded in the corresponding hidden mark of each special field, field type are what enterprise marked in advance Field type;
Rendering data corresponding with each field type is obtained from RN frame, rendering data is the number for rendering special field According to, and special field is rendered using different rendering datas according to the difference of field type;
The rendering of font size, font color and font style is carried out to each special field according to rendering data;
The field length and field height of each special field after rendering are obtained, and according to the field of each special field Length and field height determine the size of display frame required for each special field;
Display frame is generated according to the size of display frame, the quantity of display frame is consistent with the quantity of each special field;
Each special field is directed into corresponding display frame, to form field display box.
In one embodiment, above-mentioned processor executes the special field with hidden mark in identification enterprise's text data The step of include:
Code text corresponding with enterprise's text data is obtained, code text is to be converted by the company information of textual form The company information of the code form arrived, code text include html base text and css pattern text;
Specified label is found out in html base text, specified label is special to mark in enterprise's text data The label that field is reserved, record has the pattern text associated with specified label in css pattern text, and pattern text includes The text of transparency 100% obtains hidden mark so that specified label is transparent;
Identify the marked special field of specified label.
In one embodiment, above-mentioned processor executes the special field with hidden mark in identification enterprise's text data The step of before include:
Enterprise's text data of textual form is converted into code text;
Each special field that enterprise is obtained referring to the input of enterprise's text data confirms instruction, to be confirmed according to each special field Instruction determines each special field in code text;
It obtains enterprise and is directed to the field type that each special field is labeled;
In code text corresponding special field is marked using specified label, record has and is labeled in specified label The field type of special field;
Pattern text corresponding with specified label, and the typing transparency in pattern text are added in css pattern text 100% text codes.
In one embodiment, above-mentioned processor executes the field for identifying and recording in the corresponding hidden mark of each special field The step of type includes:
Each specified label is found out in code text;
Identify the field type recorded in each specified label.
In one embodiment, above-mentioned processor executes the field length and word of each special field after obtaining rendering The step of Duan Gaodu includes:
Transfer preset measurement ruler;
The length in pixels and pixels tall of each special field are measured, and by measurement ruler with length in pixels and pixel Height is respectively as field length and field height.
In one embodiment, each special field is directed into corresponding display frame by above-mentioned processor execution, with shape Include: at after the step of field display box
The reading instruction of user's input is obtained, user is the user for checking company information;
Corresponding enterprise is found according to reading instruction, and transfers associated each field corresponding with enterprise from database Display box;
Each field display box is sent to the computer of user, for user's reading.
In one embodiment, each special field is directed into corresponding display frame by above-mentioned processor execution, with shape Include: at after the step of field display box
Identify the corresponding display box code text in code text of each field display box;
Preset repulsion code text is added in each display box code text, repelling code text is that each field is shown Each field display box is carried out when frame contacts to repel isolated text.
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme.
One embodiment of the application also provides a kind of computer readable storage medium, is stored thereon with computer program, calculates Machine program realizes a kind of the step of frame character displaying method when being executed by processor, specifically:
Enterprise's text data is obtained, enterprise's text data is the company information for the textual form that enterprise issues;
Identify the special field in enterprise's text data with hidden mark, hidden mark is that enterprise marks in enterprise's text Label in data, special field are the field that enterprise marks in enterprise's text data;
Identify that the field type recorded in the corresponding hidden mark of each special field, field type are what enterprise marked in advance Field type;
Rendering data corresponding with each field type is obtained from RN frame, rendering data is the number for rendering special field According to, and special field is rendered using different rendering datas according to the difference of field type;
The rendering of font size, font color and font style is carried out to each special field according to rendering data;
The field length and field height of each special field after rendering are obtained, and according to the field of each special field Length and field height determine the size of display frame required for each special field;
Display frame is generated according to the size of display frame, the quantity of display frame is consistent with the quantity of each special field;
Each special field is directed into corresponding display frame, to form field display box.
In one embodiment, above-mentioned processor executes the special field with hidden mark in identification enterprise's text data The step of include:
Code text corresponding with enterprise's text data is obtained, code text is to be converted by the company information of textual form The company information of the code form arrived, code text include html base text and css pattern text;
Specified label is found out in html base text, specified label is special to mark in enterprise's text data The label that field is reserved, record has the pattern text associated with specified label in css pattern text, and pattern text includes The text of transparency 100% obtains hidden mark so that specified label is transparent;
Identify the marked special field of specified label.
In one embodiment, above-mentioned processor executes the special field with hidden mark in identification enterprise's text data The step of before include:
Enterprise's text data of textual form is converted into code text;
Each special field that enterprise is obtained referring to the input of enterprise's text data confirms instruction, to be confirmed according to each special field Instruction determines each special field in code text;
It obtains enterprise and is directed to the field type that each special field is labeled;
In code text corresponding special field is marked using specified label, record has and is labeled in specified label The field type of special field;
Pattern text corresponding with specified label, and the typing transparency in pattern text are added in css pattern text 100% text codes.
In one embodiment, above-mentioned processor executes the field for identifying and recording in the corresponding hidden mark of each special field The step of type includes:
Each specified label is found out in code text;
Identify the field type recorded in each specified label.
In one embodiment, above-mentioned processor executes the field length and word of each special field after obtaining rendering The step of Duan Gaodu includes:
Transfer preset measurement ruler;
The length in pixels and pixels tall of each special field are measured, and by measurement ruler with length in pixels and pixel Height is respectively as field length and field height.
In one embodiment, each special field is directed into corresponding display frame by above-mentioned processor execution, with shape Include: at after the step of field display box
The reading instruction of user's input is obtained, user is the user for checking company information;
Corresponding enterprise is found according to reading instruction, and transfers associated each field corresponding with enterprise from database Display box;
Each field display box is sent to the computer of user, for user's reading.
In one embodiment, each special field is directed into corresponding display frame by above-mentioned processor execution, with shape Include: at after the step of field display box
Identify the corresponding display box code text in code text of each field display box;
Preset repulsion code text is added in each display box code text, repelling code text is that each field is shown Each field display box is carried out when frame contacts to repel isolated text.
In conclusion server is the textual form that enterprise issues by obtaining enterprise's text data, enterprise's text data Company information;Identify the special field in enterprise's text data with hidden mark, hidden mark is that enterprise marks in enterprise Label in text data, special field are the field that enterprise marks in enterprise's text data;Identify that each special field is corresponding Hidden mark in the field type that records, field type is the field type that enterprise marks in advance;From RN frame obtain with The corresponding rendering data of each field type, rendering data are the data for rendering special field, and according to the difference of field type And special field is rendered using different rendering datas;It is big that font is carried out to each special field according to rendering data The rendering of small, font color and font style;The field length and field height of each special field after rendering are obtained, And according to the field length of each special field and field height determine each special field required for display frame size;Root Display frame is generated according to the size of display frame, the quantity of display frame is consistent with the quantity of each special field;By each special word Section is directed into corresponding display frame, to form field display box, thus the number of the tediously long occupancy of the text for solving company information According to larger, computer disposal slow-footed technical problem when investor being caused to transfer company information by computer of amount.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can store and a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, Any reference used in provided herein and embodiment to memory, storage, database or other media, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM can by diversified forms , such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double speed are according to rate SDRAM (SSRSDRAM), increasing Strong type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, device, article or the method that include a series of elements not only include those elements, and And further include the other elements being not explicitly listed, or further include for this process, device, article or method institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, device of element, article or method.
The foregoing is merely preferred embodiment of the present application, are not intended to limit the scope of the patents of the application, all utilizations Equivalent structure or equivalent flow shift made by present specification and accompanying drawing content is applied directly or indirectly in other correlations Technical field, similarly include in the scope of patent protection of the application.
While there has been shown and described that embodiments herein for the ordinary skill in the art can be with A variety of variations, modification, replacement can be carried out in the case where not departing from the principle and spirit of the application to these embodiments by understanding And modification, scope of the present application are defined by the appended claims and the equivalents thereof.

Claims (10)

1. a kind of frame character displaying method characterized by comprising
Enterprise's text data is obtained, enterprise's text data is the company information for the textual form that enterprise issues;
Identify in enterprise's text data with hidden mark special field, the hidden mark be the enterprise mark in Label in enterprise's text data, the special field are the word that the enterprise marks in enterprise's text data Section;
Identify that the field type recorded in the corresponding hidden mark of each special field, the field type are the enterprise The field type that industry marks in advance;
Rendering data corresponding with each field type is obtained from RN frame, the rendering data is that rendering is described special The data of field, and use the different rendering datas to carry out the special field according to the difference of the field type Rendering;
The wash with watercolours of font size, font color and font style is carried out to each special field according to the rendering data Dye;
The field length and field height of each special field after rendering are obtained, and according to the field of each special field Length and field height determine the size of display frame required for each special field;
The display frame, the quantity of the display frame and each special field are generated according to the size of the display frame Quantity it is consistent;
Each special field is directed into the corresponding display frame, to form field display box.
2. frame character displaying method according to claim 1, which is characterized in that identification enterprise's text data In the step of there is the special field of hidden mark include:
Code text corresponding with enterprise's text data is obtained, the code text is to be turned by the company information of textual form The company information for the code form got in return, the code text include html base text and css pattern text;
Specified label is found out in the html base text, the specified label is enterprise in enterprise's textual data According to the label that the middle mark special field is reserved, there is associated with the specified label record in the css pattern text Pattern text, the pattern text include the text of transparency 100% so that the specified label it is transparent obtain it is described hidden Shape label;
Identify the specified special field marked.
3. frame character displaying method according to claim 2, which is characterized in that identification enterprise's text data In have before the step of special field of hidden mark and include:
Enterprise's text data of textual form is converted into code text;
Each special field confirmation instruction that the enterprise inputs referring to enterprise's text data is obtained, according to described each special Field confirmation instruction determines each special field in the code text;
It obtains the enterprise and is directed to the field type that each special field is labeled;
The corresponding special field is marked using the specified label in the code text, is recorded in the specified label The field type of the special field for having and being labeled;
The addition pattern text corresponding with the specified label in the css pattern text, and recorded in the pattern text Enter the text codes of transparency 100%.
4. frame character displaying method according to claim 3, which is characterized in that each special field pair of identification The step of field type recorded in the hidden mark answered includes:
Each specified label is found out in the code text;
Identify the field type recorded in each specified label.
5. frame character displaying method according to claim 1, which is characterized in that each spy obtained after rendering Very the step of field length and field height of field, includes:
Transfer preset measurement ruler;
The length in pixels and pixels tall of each special field are measured by the measurement ruler, and long with the pixel Degree and pixels tall are respectively as the field length and field height.
6. frame character displaying method according to claim 1, which is characterized in that described to import each special field To in the corresponding display frame, the step of to form field display box after include:
The reading instruction of user's input is obtained, the user is the user for checking the company information;
Corresponding enterprise is found according to reading instruction, and is transferred from database corresponding with the enterprise associated each Field display box;
Each field display box is sent to the computer of user, for user's reading.
7. frame character displaying method according to claim 1, which is characterized in that described to import each special field To in the corresponding display frame, the step of to form field display box after include:
Identify the corresponding display box code text in code text of each field display box;
Preset repulsion code text is added in each display box code text, the repulsion code text is each described Each field display box is carried out when field display box contacts to repel isolated text.
8. a kind of frame character display apparatus characterized by comprising
Data capture unit, for obtaining enterprise's text data, enterprise's text data is the textual form that enterprise issues Company information;
Field recognition unit, for identification with the special field of hidden mark, the stealthy mark in enterprise's text data It is denoted as the enterprise and marks the label in enterprise's text data, the special field is the enterprise in enterprise's text The field marked in notebook data;
Type identification unit, the field type recorded in the corresponding hidden mark of each special field for identification, institute Stating field type is the field type that the enterprise marks in advance;
Rendering data acquiring unit, it is described for obtaining rendering data corresponding with each field type from RN frame Rendering data is the data for rendering the special field, and uses the different renderings according to the difference of the field type Data render the special field;
Rendering unit, for according to the rendering data to each special field carry out font size, font color and The rendering of font style;
Measuring unit, for obtaining the field length and field height of each special field after rendering, and according to described each Field length and the field height of special field determine the size of display frame required for each special field;
Display frame generation unit, for generating the display frame, the display frame according to the size of the display frame Quantity it is consistent with the quantity of each special field;
Field display box generation unit, for each special field to be directed into the corresponding display frame, to be formed Field display box.
9. a kind of computer equipment, including memory and processor, it is stored with computer program in the memory, feature exists In the processor realizes frame text importing side described in any one of claims 1 to 7 when executing the computer program The step of method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of frame character displaying method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201910463319.0A 2019-05-30 2019-05-30 Frame text display method and device, computer equipment and storage medium Active CN110321529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910463319.0A CN110321529B (en) 2019-05-30 2019-05-30 Frame text display method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910463319.0A CN110321529B (en) 2019-05-30 2019-05-30 Frame text display method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110321529A true CN110321529A (en) 2019-10-11
CN110321529B CN110321529B (en) 2023-11-14

Family

ID=68119279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910463319.0A Active CN110321529B (en) 2019-05-30 2019-05-30 Frame text display method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110321529B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110909528A (en) * 2019-11-29 2020-03-24 北京奇艺世纪科技有限公司 Script analysis method, script display method, device and electronic equipment
CN113569531A (en) * 2021-08-13 2021-10-29 北京字节跳动网络技术有限公司 Content typesetting method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090078654A (en) * 2008-01-15 2009-07-20 삼성전자주식회사 Method and apparatus for rendering
US20150032478A1 (en) * 2013-07-24 2015-01-29 Hartford Fire Insurance Company System and method to document and display business requirements for computer data entry
CN109359253A (en) * 2018-08-29 2019-02-19 浙江工业大学 A kind of web front end performance optimization method
CN109614194A (en) * 2018-12-11 2019-04-12 北京微播视界科技有限公司 Display methods, device, equipment and the storage medium of list interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090078654A (en) * 2008-01-15 2009-07-20 삼성전자주식회사 Method and apparatus for rendering
US20150032478A1 (en) * 2013-07-24 2015-01-29 Hartford Fire Insurance Company System and method to document and display business requirements for computer data entry
CN109359253A (en) * 2018-08-29 2019-02-19 浙江工业大学 A kind of web front end performance optimization method
CN109614194A (en) * 2018-12-11 2019-04-12 北京微播视界科技有限公司 Display methods, device, equipment and the storage medium of list interface

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110909528A (en) * 2019-11-29 2020-03-24 北京奇艺世纪科技有限公司 Script analysis method, script display method, device and electronic equipment
CN113569531A (en) * 2021-08-13 2021-10-29 北京字节跳动网络技术有限公司 Content typesetting method and device, computer equipment and storage medium
CN113569531B (en) * 2021-08-13 2023-10-20 北京字节跳动网络技术有限公司 Content typesetting method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110321529B (en) 2023-11-14

Similar Documents

Publication Publication Date Title
US11294968B2 (en) Combining website characteristics in an automatically generated website
CN101253498B (en) Learning facts from semi-structured text
US10528626B2 (en) Document processing
US20070174762A1 (en) Personal web page annotation system
CN109582861A (en) A kind of data-privacy information detecting system
US11631269B1 (en) Document fraud detection
CN108399150A (en) Text handling method, device, computer equipment and storage medium
US20170109442A1 (en) Customizing a website string content specific to an industry
CN108306878A (en) Detection method for phishing site, device, computer equipment and storage medium
CN110321529A (en) Frame character displaying method, device, computer equipment and storage medium
US9665574B1 (en) Automatically scraping and adding contact information
CN115994232B (en) Online multi-version document identity authentication method, system and computer equipment
CN112464629B (en) Form filling method and device
AU2022204425B2 (en) Extracting key value pairs using positional coordinates
CN115422583A (en) Data desensitization method, system, medium and computing device
CN106598983A (en) Information display method and device
CN111931087B (en) Webpage request processing method and device
US20160078285A1 (en) System and Method for Displaying an Object in a Tagged Image
CN108460116A (en) Searching method, device, computer equipment, storage medium and search system
CN105335344B (en) Verification processing method, Cloud Server and the user equipment of electronic business card
US8390836B2 (en) Automatic review of variable imaging jobs
CN110751140A (en) Character batch recognition method and device and computer equipment
CN107016021A (en) Page loading method, client, system and electronic equipment
CN113835704B (en) Layout file generation method, device, equipment and storage medium
AU2013101569A4 (en) Document Processing

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
GR01 Patent grant
GR01 Patent grant