CN109491742A - Page tabular rendering method and device - Google Patents

Page tabular rendering method and device Download PDF

Info

Publication number
CN109491742A
CN109491742A CN201811291726.XA CN201811291726A CN109491742A CN 109491742 A CN109491742 A CN 109491742A CN 201811291726 A CN201811291726 A CN 201811291726A CN 109491742 A CN109491742 A CN 109491742A
Authority
CN
China
Prior art keywords
mark
rendering
page
cell
lattice
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
CN201811291726.XA
Other languages
Chinese (zh)
Other versions
CN109491742B (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.)
Tianjin ByteDance Technology Co Ltd
Original Assignee
Tianjin ByteDance 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 Tianjin ByteDance Technology Co Ltd filed Critical Tianjin ByteDance Technology Co Ltd
Priority to CN201811291726.XA priority Critical patent/CN109491742B/en
Publication of CN109491742A publication Critical patent/CN109491742A/en
Application granted granted Critical
Publication of CN109491742B publication Critical patent/CN109491742B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The disclosure proposes a kind of page tabular rendering method and device, and wherein method includes: to obtain page rendering request, includes: the region being selected in the page, and rendering type in page rendering request;It include: at least one cell in region, and/or, text data;If in region including at least one cell, the mark of at least one cell is obtained, the mark of cell includes: line identifier and column mark;According to rendering type, rendering processing is carried out to the corresponding cell of the mark of at least one cell, so as to when choosing the unit lattice in table or table, rendering processing directly is carried out to the text in table or unit lattice, so that the various rendering functions of online collaborative document application can be suitable for table, to improve using the rendering efficiency and rendering effect to document.

Description

Page tabular rendering method and device
Technical field
This disclosure relates to page processing technology field more particularly to a kind of page tabular rendering method and device.
Background technique
Currently, online collaborative document application would generally provide the user with document styles abundant and typesetting function, to text Word or table etc. carry out the functions such as rendering processing, such as overstriking, underscore, title, ordered list, unordered list.Current In online collaborative document application, the text datas such as text are stored in the two-dimensional structure as unit of line identifier and column mark, When user chooses segment word, using directly rendering processing can be carried out to the text chosen.And list data is with plug-in unit Form be inserted into document, the owned line identifier of table and column mark, each cell in table also possess line identifier It is identified with column;When user chooses table, identified using the line identifier and column that only recognize table itself, according to table itself Line identifier and column mark, using being difficult to carry out rendering processing to the text in the cell inside table, so as to cause application Part rendering function is difficult to be suitable for table, reduces using the rendering efficiency and rendering effect to document.
Summary of the invention
The disclosure is intended to solve at least some of the technical problems in related technologies.
For this purpose, first purpose of the disclosure is to propose a kind of page tabular rendering method, for solving the prior art The problem of middle page tabular rendering efficiency difference.
Second purpose of the disclosure is to propose a kind of page tabular rendering device.
The third purpose of the disclosure is to propose a kind of electronic equipment.
4th purpose of the disclosure is to propose a kind of computer readable storage medium.
In order to achieve the above object, disclosure first aspect embodiment proposes a kind of page tabular rendering method, comprising:
Page rendering request is obtained, includes: the region being selected in the page, and rendering class in the page rendering request Type;It include: at least one cell in the region, and/or, text data;
If in the region including at least one cell, the mark of at least one cell, the list are obtained The mark of first lattice includes: line identifier and column mark;
According to the rendering type, rendering processing is carried out to the corresponding cell of the mark of at least one cell.
Further, before the acquisition page rendering request, further includes:
Table insertion request is obtained, includes: the interior of each unit lattice in the table being inserted into the table insertion request Hold;
It is inserted into and is requested according to the table, be that each unit lattice in the table create mark;
According to the mark of each unit lattice in the table, the mark of the table is created;It is wrapped in the mark of the table It includes: line unit value and column key assignments;It include: the line identifier of each unit lattice in the table in the line unit value, in the column key assignments It include: the column mark of each unit lattice in the table;
The mark of each unit lattice in the table, the mark of the table and the table is inserted into the page.
Further, described according to the rendering type, cell corresponding to the mark of at least one cell After carrying out rendering processing, further includes:
According to the mark at least one described cell, the mark of each table in the page is inquired, described in acquisition Selected cell lattice in the table being selected in the page, and selected table;
Selected cell lattice in the table being selected in the page, selected table and rendering type are uploaded To server, so that the server is updated.
Further, the method further include:
If including text data in the region, the corresponding two-dimensional structure of the text data is obtained;The two dimension knot It include: the mark of each text object in the text data in structure;The mark of the text object includes: line identifier and column mark Know;
According to the rendering type, rendering processing is carried out to text data determined by the two-dimensional structure.
Further, it goes in the text data between row using newline as segmentation;
The line identifier of the text object is the mark of paragraph belonging to the text object;
The column of the text object identify, and are the sequence of the text object in the paragraph belonging to the text object Number.
The page tabular rendering method of the embodiment of the present disclosure is wrapped in page rendering request by obtaining page rendering request It includes: the region being selected in the page, and rendering type;It include: at least one cell in region, and/or, text data; If including at least one cell in region, the mark of at least one cell is obtained, the mark of cell includes: line identifier It is identified with column;According to rendering type, rendering processing is carried out to the corresponding cell of the mark of at least one cell, so as to Directly the text in table or unit lattice is carried out at rendering when choosing table perhaps unit lattice in table Reason, so that the various rendering functions of online collaborative document application can be suitable for table, to improve using to document Rendering efficiency and rendering effect.
In order to achieve the above object, disclosure second aspect embodiment proposes a kind of page tabular rendering device, comprising:
Module is obtained, includes: the area being selected in the page in the page rendering request for obtaining page rendering request Domain, and rendering type;It include: at least one cell in the region, and/or, text data;
The acquisition module is also used to when in this region including at least one cell, obtain it is described at least one The mark of cell, the mark of the cell include: line identifier and column mark;
Processing module is rendered, for according to the rendering type, list corresponding to the mark of at least one cell First lattice carry out rendering processing.
Further, the device further include: creation module and insertion module;
The acquisition module is also used to obtain table insertion request, includes: the table being inserted into the table insertion request The content of each unit lattice in lattice;
The creation module is requested for being inserted into according to the table, is that each unit lattice in the table create mark Know;
The creation module is also used to the mark according to each unit lattice in the table, creates the mark of the table; It include: line unit value and column key assignments in the mark of the table;It include: the row of each unit lattice in the table in the line unit value It identifies, includes: the column mark of each unit lattice in the table in the column key assignments;
The insertion module, for by each unit lattice in the mark of the table, the table and the table Mark, is inserted into the page.
Further, the device further include: enquiry module and update module;
The enquiry module, for inquiring each table in the page according to the mark at least one described cell The mark of lattice obtains selected cell lattice in the table being selected in the page, and selected table;
The update module, the table for that will be selected in the page, selected cell in selected table Lattice and rendering type are uploaded onto the server, so that the server is updated.
Further, the acquisition module obtains the textual data when being also used in this region including text data According to corresponding two-dimensional structure;It include: the mark of each text object in the text data in the two-dimensional structure;The text The mark of object includes: line identifier and column mark;
The rendering processing module is also used to according to the rendering type, to textual data determined by the two-dimensional structure According to carrying out rendering processing.
Further, it goes in the text data between row using newline as segmentation;
The line identifier of the text object is the mark of paragraph belonging to the text object;
The column of the text object identify, and are the sequence of the text object in the paragraph belonging to the text object Number.
The page tabular rendering device of the embodiment of the present disclosure is wrapped in page rendering request by obtaining page rendering request It includes: the region being selected in the page, and rendering type;It include: at least one cell in region, and/or, text data; If including at least one cell in region, the mark of at least one cell is obtained, the mark of cell includes: line identifier It is identified with column;According to rendering type, rendering processing is carried out to the corresponding cell of the mark of at least one cell, so as to Directly the text in table or unit lattice is carried out at rendering when choosing table perhaps unit lattice in table Reason, so that the various rendering functions of online collaborative document application can be suitable for table, to improve using to document Rendering efficiency and rendering effect.
In order to achieve the above object, disclosure third aspect embodiment proposes a kind of electronic equipment, comprising: memory, processing Device and storage are on a memory and the computer program that can run on a processor, which is characterized in that processor execution institute Page tabular rendering method as described above is realized when stating program.
To achieve the goals above, disclosure fourth aspect embodiment proposes a kind of computer readable storage medium, On be stored with computer program, which realizes page tabular rendering method as described above when being executed by processor.
The additional aspect of the disclosure and advantage will be set forth in part in the description, and will partially become from the following description It obtains obviously, or recognized by the practice of the disclosure.
Detailed description of the invention
The disclosure is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram for page tabular rendering method that the embodiment of the present disclosure provides;
Fig. 2 is a kind of structural schematic diagram for page tabular rendering device that the embodiment of the present disclosure provides;
Fig. 3 is the structural schematic diagram for another page tabular rendering device that the embodiment of the present disclosure provides;
Fig. 4 is the structural schematic diagram for another page tabular rendering device that the embodiment of the present disclosure provides;
Fig. 5 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present disclosure provides.
Specific embodiment
Embodiment of the disclosure is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the disclosure, and should not be understood as the limitation to the disclosure.
Below with reference to the accompanying drawings the page tabular rendering method and device of the embodiment of the present disclosure are described.
Fig. 1 is a kind of flow diagram for page tabular rendering method that the embodiment of the present disclosure provides.As shown in Figure 1, should Page tabular rendering method the following steps are included:
S101, page rendering request is obtained, includes: the region being selected in the page, and rendering in page rendering request Type;It include: at least one cell in region, and/or, text data.
The executing subject for the page tabular rendering method that the disclosure provides is page tabular rendering device, page tabular rendering Device is specifically as follows online collaborative document application, or sets to be equipped with the hardware such as the terminal device of above-mentioned application, server It is standby.In the present embodiment, page tabular rendering device execute step 101 process be specifically as follows, show document file page, so as to Family is operated on document file page;According to selection operation of the user on document file page, chosen on the acquisition page by user Region;According to clicking operation of the user on document menu, the rendering type of user's selection is obtained, is chosen on getting the page In region and rendering type after, determine get user page rendering request.Wherein, rendering type for example can be to add Slightly, underscore, title, ordered list, unordered list etc..
If including at least one cell in S102, region, the mark of at least one cell, the mark of cell are obtained Knowledge includes: line identifier and column mark.
In the present embodiment, in document file page, the content of each unit lattice in each table and table is not only shown, It is additionally provided with the mark of each table and the mark of each unit lattice, it, can be true so as to when user chooses some cell Determine cell mark and cell belonging to table mark, to carry out rendering processing to the content in cell.It is right It answers, before step 101, the method can be the following steps are included: obtain table insertion request, in table insertion request It include: the content of each unit lattice in the table being inserted into;It is inserted into and is requested according to table, be each unit lattice creation in table Mark;According to the mark of each unit lattice in table, the mark of table is created;It include: line unit value and column key in the mark of table Value;Include: the line identifier of each unit lattice in table in line unit value, includes: the column mark of each unit lattice in table in column key assignments Know;The mark of each unit lattice in table, the mark of table and table is inserted into the page.
In the present embodiment, table is not inserted into document file page in the form of plug-in unit, by the unit in table Lattice are inserted into document file page in the form of multiple regions as region, to choose in table or table in user When unit lattice, the line identifier and column mark of table itself will not can only be got like that the prior art, but can obtain Into table be selected each unit lattice line identifier and column mark, so as to directly to selected each unit lattice into Row rendering processing.
S103, according to rendering type, rendering processing is carried out to the corresponding cell of the mark of at least one cell.
In the present embodiment, page tabular rendering device is specifically in the corresponding cell of the mark of at least one cell Content carry out rendering processing, such as overstriking processing, underscore processing etc. are carried out to the content in cell.
Further, on the basis of the above embodiments, in order to ensure being equipped with each hardware of online collaborative document application The document consistency of equipment, after step 103, the method can be the following steps are included: according at least one cell In mark, the mark of each table in query page obtains quilt in the table being selected in the page, and selected table The cell chosen;It will be on selected cell lattice in the table that be selected in the page, selected table and rendering type Server is passed to, so that the page of the server to identical document is updated, it is ensured that identical document on current document and server Between consistency.
Specifically, page tabular rendering device is according to the mark at least one cell, each table in query page Mark, obtaining the processes of selected cell lattice in the table being selected in the page, and selected table specifically can be with For, for each cell at least one cell, according to the mark of cell, the mark of each table in query page Know, affiliated table is determined as selected table, cell is determined as selected by table belonging to determination unit lattice Selected cell lattice in table;Above-mentioned processing successively is carried out to each cell at least one cell, to obtain Selected cell lattice in the table being selected in document file page, and selected table.
Further, on the basis of the above embodiments, the method can be the following steps are included: if region Zhong Bao Text data is included, then obtains the corresponding two-dimensional structure of text data;It include: each text object in text data in two-dimensional structure Mark;The mark of text object includes: line identifier and column mark;According to rendering type, to text determined by two-dimensional structure Data carry out rendering processing.
In the present embodiment, all text datas in document file page can be determined as an area by page tabular rendering device Domain, and be region setting mark, which is determined as to the mark of all text datas.Wherein, mark for example can be "default".When user chooses part text data, page tabular rendering device is available to the part textual data chosen According to corresponding mark, determine that choose is text data according to the mark, and then obtain each text in selected text data The mark of object;According to the mark of each text object, the selected corresponding two-dimensional structure of text data is determined.
Wherein, it goes in text data between row using newline as segmentation.The line identifier of text object is text object The mark of affiliated paragraph;The column of text object identify, and are the sequence number of text object in the paragraph belonging to text object. Text object refers to each character in text data.
The page tabular rendering method of the embodiment of the present disclosure is wrapped in page rendering request by obtaining page rendering request It includes: the region being selected in the page, and rendering type;It include: at least one cell in region, and/or, text data; If including at least one cell in region, the mark of at least one cell is obtained, the mark of cell includes: line identifier It is identified with column;According to rendering type, rendering processing is carried out to the corresponding cell of the mark of at least one cell, so as to Directly the text in table or unit lattice is carried out at rendering when choosing table perhaps unit lattice in table Reason, so that the various rendering functions of online collaborative document application can be suitable for table, to improve using to document Rendering efficiency and rendering effect.
Fig. 2 is a kind of structural schematic diagram for page tabular rendering device that the embodiment of the present disclosure provides.As shown in Fig. 2, packet It includes: obtaining module 21 and rendering processing module 22.
Wherein, module 21 is obtained, includes: quilt in the page in the page rendering request for obtaining page rendering request The region chosen, and rendering type;It include: at least one cell in the region, and/or, text data;
The acquisition module 21 obtains described at least one when being also used in this region including at least one cell The mark of a cell, the mark of the cell include: line identifier and column mark;
Processing module 22 is rendered, is used for according to the rendering type, it is corresponding to the mark of at least one cell Cell carries out rendering processing.
The page tabular rendering device that the disclosure provides is specifically as follows online collaborative document application, or to be equipped with State the hardware devices such as terminal device, the server of application.In the present embodiment, page tabular rendering device obtains page rendering request Process be specifically as follows, show document file page, so that user operates on document file page;According to user in document file page On selection operation, obtain the region chosen by user on the page;According to clicking operation of the user on document menu, obtains and use After the rendering type of family selection, the region being selected on getting the page and rendering type, the page for getting user is determined Face render request.Wherein, rendering type can be for example overstriking, underscore, title, ordered list, unordered list etc..
In the present embodiment, in document file page, the content of each unit lattice in each table and table is not only shown, It is additionally provided with the mark of each table and the mark of each unit lattice, it, can be true so as to when user chooses some cell Determine cell mark and cell belonging to table mark, to carry out rendering processing to the content in cell.It is right It answers, in conjunction with reference Fig. 3, on the basis of embodiment shown in Fig. 2, the device can also include: creation module 23 and insert Enter module 24.
Wherein, the acquisition module 21, is also used to obtain table insertion request, include: in table insertion request to The content of each unit lattice in the table of insertion;
The creation module 23 is requested for being inserted into according to the table, is each unit lattice creation in the table Mark;
The creation module 23, is also used to the mark according to each unit lattice in the table, creates the mark of the table Know;It include: line unit value and column key assignments in the mark of the table;It include: each unit lattice in the table in the line unit value Line identifier, include: the column mark of each unit lattice in the table in the column key assignments;
The insertion module 24, for by each unit lattice in the mark of the table, the table and the table Mark, be inserted into the page.
In the present embodiment, table is not inserted into document file page in the form of plug-in unit, by the unit in table Lattice are inserted into document file page in the form of multiple regions as region, to choose in table or table in user When unit lattice, the line identifier and column mark of table itself will not can only be got like that the prior art, but can obtain Into table be selected each unit lattice line identifier and column mark, so as to directly to selected each unit lattice into Row rendering processing.
Further, on the basis of the above embodiments, in order to ensure being equipped with each hardware of online collaborative document application The document consistency of equipment, in conjunction with reference Fig. 4, on the basis of Fig. 2 or embodiment illustrated in fig. 3, the device can also be wrapped It includes: enquiry module 25 and update module 26.
The enquiry module 25, for inquiring each in the page according to the mark at least one described cell The mark of table obtains selected cell lattice in the table being selected in the page, and selected table;
The update module 26, table for that will be selected in the page, the list being selected in selected table First lattice and rendering type are uploaded onto the server, so that the server is updated.
Specifically, page tabular rendering device is according to the mark at least one cell, each table in query page Mark, obtaining the processes of selected cell lattice in the table being selected in the page, and selected table specifically can be with For, for each cell at least one cell, according to the mark of cell, the mark of each table in query page Know, affiliated table is determined as selected table, cell is determined as selected by table belonging to determination unit lattice Selected cell lattice in table;Above-mentioned processing successively is carried out to each cell at least one cell, to obtain Selected cell lattice in the table being selected in document file page, and selected table.
Further, on the basis of the above embodiments, the acquisition module 21 is also used in this region include text When notebook data, the corresponding two-dimensional structure of the text data is obtained;It include: each in the text data in the two-dimensional structure The mark of text object;The mark of the text object includes: line identifier and column mark;
The rendering processing module 22, is also used to according to the rendering type, to text determined by the two-dimensional structure Data carry out rendering processing.
In the present embodiment, all text datas in document file page can be determined as an area by page tabular rendering device Domain, and be region setting mark, which is determined as to the mark of all text datas.Wherein, mark for example can be "default".When user chooses part text data, page tabular rendering device is available to the part textual data chosen According to corresponding mark, determine that choose is text data according to the mark, and then obtain each text in selected text data The mark of object;According to the mark of each text object, the selected corresponding two-dimensional structure of text data is determined.
Wherein, it goes in text data between row using newline as segmentation.The line identifier of text object is text object The mark of affiliated paragraph;The column of text object identify, and are the sequence number of text object in the paragraph belonging to text object. Text object refers to each character in text data.
The page tabular rendering device of the embodiment of the present disclosure is wrapped in page rendering request by obtaining page rendering request It includes: the region being selected in the page, and rendering type;It include: at least one cell in region, and/or, text data; If including at least one cell in region, the mark of at least one cell is obtained, the mark of cell includes: line identifier It is identified with column;According to rendering type, rendering processing is carried out to the corresponding cell of the mark of at least one cell, so as to Directly the text in table or unit lattice is carried out at rendering when choosing table perhaps unit lattice in table Reason, so that the various rendering functions of online collaborative document application can be suitable for table, to improve using to document Rendering efficiency and rendering effect.
Below with reference to Fig. 5, it illustrates the structural representations for the electronic equipment 800 for being suitable for being used to realize the embodiment of the present disclosure Figure.Terminal device in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electricity shown in Fig. 5 Sub- equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 5, electronic equipment 800 may include processing unit (such as central processing unit, graphics processor etc.) 801, random access can be loaded into according to the program being stored in read-only memory (ROM) 802 or from storage device 808 Program in memory (RAM) 803 and execute various movements appropriate and processing.In RAM 803, it is also stored with electronic equipment Various programs and data needed for 800 operations.Processing unit 801, ROM 802 and RAM 803 pass through the phase each other of bus 804 Even.Input/output (I/O) interface 805 is also connected to bus 804.
In general, following device can connect to I/O interface 805: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 806 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 807 of dynamic device etc.;Storage device 808 including such as tape, hard disk etc.;And communication device 809.Communication device 809, which can permit electronic equipment 800, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 5 shows tool There is the electronic equipment 800 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 809, or from storage device 808 It is mounted, or is mounted from ROM 802.When the computer program is executed by processing unit 801, the embodiment of the present disclosure is executed Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity When sub- equipment executes, so that the electronic equipment: obtaining page rendering request, include: to be selected in the page in page rendering request Region, and rendering type;It include: at least one cell in region, and/or, text data;If including at least in region One cell, then obtain the mark of at least one cell, and the mark of cell includes: line identifier and column mark;According to wash with watercolours Type is contaminated, rendering processing is carried out to the corresponding cell of the mark of at least one cell.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be complete It executes, partly executed on the user computer on the user computer entirely, being executed as an independent software package, part Part executes on the remote computer or executes on a remote computer or server completely on the user computer.It is relating to And in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or extensively Domain net (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as utilize ISP To be connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions.
The disclosure also provides a kind of computer readable storage medium, is stored thereon with computer program, and the program is processed Device realizes page tabular rendering method as described above when executing.
The disclosure also provides a kind of computer program product, when the instruction processing unit in the computer program product executes When, realize page tabular rendering method as described above.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is contained at least one embodiment or example of the disclosure.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the disclosure, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.

Claims (10)

1. a kind of page tabular rendering method characterized by comprising
Page rendering request is obtained, includes: the region being selected in the page, and rendering type in the page rendering request; It include: at least one cell in the region, and/or, text data;
If in the region including at least one cell, the mark of at least one cell, the cell are obtained Mark include: line identifier and column mark;
According to the rendering type, rendering processing is carried out to the corresponding cell of the mark of at least one cell.
2. the method according to claim 1, wherein before acquisition page rendering request, further includes:
Table insertion request is obtained, includes: the content of each unit lattice in the table being inserted into the table insertion request;
It is inserted into and is requested according to the table, be that each unit lattice in the table create mark;
According to the mark of each unit lattice in the table, the mark of the table is created;It include: row in the mark of the table Key assignments and column key assignments;Include: the line identifier of each unit lattice in the table in the line unit value, includes: in the column key assignments The column mark of each unit lattice in the table;
The mark of each unit lattice in the table, the mark of the table and the table is inserted into the page.
3. method according to claim 1 or 2, which is characterized in that it is described according to the rendering type, to described at least one The corresponding cell of the mark of a cell carries out after rendering processing, further includes:
According to the mark at least one described cell, the mark of each table in the page is inquired, obtains the page In the table that is selected, and selected cell lattice in selected table;
Selected cell lattice in the table being selected in the page, selected table and rendering type are uploaded into clothes Business device, so that the server is updated.
4. the method according to claim 1, wherein further include:
If including text data in the region, the corresponding two-dimensional structure of the text data is obtained;In the two-dimensional structure It include: the mark of each text object in the text data;The mark of the text object includes: line identifier and column mark;
According to the rendering type, rendering processing is carried out to text data determined by the two-dimensional structure.
5. according to the method described in claim 4, it is characterized in that, in the text data go row between using newline as Segmentation;
The line identifier of the text object is the mark of paragraph belonging to the text object;
The column of the text object identify, and are the sequence number of the text object in the paragraph belonging to the text object.
6. a kind of page tabular rendering device characterized by comprising
Module is obtained, includes: the region being selected in the page in the page rendering request for obtaining page rendering request, And rendering type;It include: at least one cell in the region, and/or, text data;
The acquisition module when being also used in this region including at least one cell, obtains at least one described unit The mark of lattice, the mark of the cell include: line identifier and column mark;
Processing module is rendered, for according to the rendering type, cell corresponding to the mark of at least one cell Carry out rendering processing.
7. device according to claim 6, which is characterized in that further include: creation module and insertion module;
The acquisition module is also used to obtain table insertion request, includes: in the table being inserted into the table insertion request The content of each unit lattice;
The creation module is requested for being inserted into according to the table, is that each unit lattice in the table create mark;
The creation module is also used to the mark according to each unit lattice in the table, creates the mark of the table;It is described It include: line unit value and column key assignments in the mark of table;It include: the rower of each unit lattice in the table in the line unit value Know, includes: the column mark of each unit lattice in the table in the column key assignments;
The insertion module, for by the mark of each unit lattice in the mark of the table, the table and the table, It is inserted into the page.
8. device according to claim 6 or 7, which is characterized in that further include: enquiry module and update module;
The enquiry module, for inquiring each table in the page according to the mark at least one described cell Mark obtains selected cell lattice in the table being selected in the page, and selected table;
The update module, table for that will be selected in the page, in selected table selected cell lattice with And rendering type is uploaded onto the server, so that the server is updated.
9. a kind of electronic equipment characterized by comprising
Memory, processor and storage are on a memory and the computer program that can run on a processor, which is characterized in that institute It states when processor executes described program and realizes such as page tabular rendering method as claimed in any one of claims 1 to 5.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor Such as page tabular rendering method as claimed in any one of claims 1 to 5 is realized when execution.
CN201811291726.XA 2018-10-31 2018-10-31 Page table rendering method and device Active CN109491742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811291726.XA CN109491742B (en) 2018-10-31 2018-10-31 Page table rendering method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811291726.XA CN109491742B (en) 2018-10-31 2018-10-31 Page table rendering method and device

Publications (2)

Publication Number Publication Date
CN109491742A true CN109491742A (en) 2019-03-19
CN109491742B CN109491742B (en) 2021-10-22

Family

ID=65693559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811291726.XA Active CN109491742B (en) 2018-10-31 2018-10-31 Page table rendering method and device

Country Status (1)

Country Link
CN (1) CN109491742B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111240793A (en) * 2020-02-13 2020-06-05 北京字节跳动网络技术有限公司 cell pre-rendering method and device, electronic equipment and computer readable medium
CN111290752A (en) * 2019-12-24 2020-06-16 浙江明度智控科技有限公司 Web table frame processing method and device
CN111488149A (en) * 2020-03-11 2020-08-04 平安健康保险股份有限公司 Table rendering method and device based on canvas element and computer equipment
CN111784812A (en) * 2020-06-09 2020-10-16 当家移动绿色互联网技术集团有限公司 Rendering method, rendering device, storage medium and electronic equipment
CN112966481A (en) * 2019-12-13 2021-06-15 北京懿医云科技有限公司 Data table display method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976236A (en) * 2010-09-26 2011-02-16 用友软件股份有限公司 Method and device for importing floating row data through worksheet
CN102841791A (en) * 2012-07-12 2012-12-26 上海高洁信息科技股份有限公司 Method and system for generating online form
CN103186515A (en) * 2011-12-28 2013-07-03 金蝶软件(中国)有限公司 Data calculation method, system and equipment for spreadsheet
CN103853806A (en) * 2013-09-26 2014-06-11 深圳海联讯科技股份有限公司 Method and device for converting table
CN103853845A (en) * 2014-03-24 2014-06-11 南通大学 Dynamic analytic method of complex form
CN103970735A (en) * 2013-01-25 2014-08-06 苏州精易会信息技术有限公司 Row-column highlighting method of target cell in webpage Table
US20150039984A1 (en) * 2013-07-31 2015-02-05 Hitachi, Ltd. Table format multi-dimensional data translation method and device
CN104516867A (en) * 2013-09-30 2015-04-15 北大方正集团有限公司 Table reordering method and table reordering system
CN105474209A (en) * 2013-06-14 2016-04-06 微软技术许可有限责任公司 Managing changes to shared documents
CN106021201A (en) * 2016-05-19 2016-10-12 珠海市魅族科技有限公司 File editing method and device
CN107943777A (en) * 2017-12-14 2018-04-20 北京久蓉科技有限公司 A kind of collaborative editing, cooperative processing method, device, equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976236A (en) * 2010-09-26 2011-02-16 用友软件股份有限公司 Method and device for importing floating row data through worksheet
CN103186515A (en) * 2011-12-28 2013-07-03 金蝶软件(中国)有限公司 Data calculation method, system and equipment for spreadsheet
CN102841791A (en) * 2012-07-12 2012-12-26 上海高洁信息科技股份有限公司 Method and system for generating online form
CN103970735A (en) * 2013-01-25 2014-08-06 苏州精易会信息技术有限公司 Row-column highlighting method of target cell in webpage Table
CN105474209A (en) * 2013-06-14 2016-04-06 微软技术许可有限责任公司 Managing changes to shared documents
US20150039984A1 (en) * 2013-07-31 2015-02-05 Hitachi, Ltd. Table format multi-dimensional data translation method and device
CN103853806A (en) * 2013-09-26 2014-06-11 深圳海联讯科技股份有限公司 Method and device for converting table
CN104516867A (en) * 2013-09-30 2015-04-15 北大方正集团有限公司 Table reordering method and table reordering system
CN103853845A (en) * 2014-03-24 2014-06-11 南通大学 Dynamic analytic method of complex form
CN106021201A (en) * 2016-05-19 2016-10-12 珠海市魅族科技有限公司 File editing method and device
CN107943777A (en) * 2017-12-14 2018-04-20 北京久蓉科技有限公司 A kind of collaborative editing, cooperative processing method, device, equipment and storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112966481A (en) * 2019-12-13 2021-06-15 北京懿医云科技有限公司 Data table display method and device
CN112966481B (en) * 2019-12-13 2023-09-29 北京懿医云科技有限公司 Data form display method and device
CN111290752A (en) * 2019-12-24 2020-06-16 浙江明度智控科技有限公司 Web table frame processing method and device
CN111290752B (en) * 2019-12-24 2024-02-20 明度智云(浙江)科技有限公司 Frame processing method and device for web form
CN111240793A (en) * 2020-02-13 2020-06-05 北京字节跳动网络技术有限公司 cell pre-rendering method and device, electronic equipment and computer readable medium
CN111240793B (en) * 2020-02-13 2024-01-09 抖音视界有限公司 Method, device, electronic equipment and computer readable medium for cell prerendering
CN111488149A (en) * 2020-03-11 2020-08-04 平安健康保险股份有限公司 Table rendering method and device based on canvas element and computer equipment
CN111488149B (en) * 2020-03-11 2023-07-25 平安健康保险股份有限公司 Canvas element-based table rendering method and device and computer equipment
CN111784812A (en) * 2020-06-09 2020-10-16 当家移动绿色互联网技术集团有限公司 Rendering method, rendering device, storage medium and electronic equipment
CN111784812B (en) * 2020-06-09 2024-05-07 北京五一视界数字孪生科技股份有限公司 Rendering method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109491742B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN109491742A (en) Page tabular rendering method and device
CN109634598A (en) A kind of page display method, device, equipment and storage medium
CN109408685A (en) Mind map methods of exhibiting and device
CN110162758A (en) Online document is inserted into information approach and device
CN109460233A (en) Primary interface display update method, device, terminal device and the medium of the page
CN109495791A (en) A kind of adding method, device, electronic equipment and the readable medium of video paster
CN109634490A (en) A kind of list display method, device, equipment and storage medium
CN109408189A (en) Dynamic adjusting method, device, equipment and the medium of client end interface layout
CN109542578A (en) A kind of display methods of list interface, device, equipment and storage medium
CN110213614A (en) The method and apparatus of key frame are extracted from video file
CN109992732A (en) Information sharing method, device, electronic equipment and storage medium
CN106896937A (en) Method and apparatus for being input into information
CN109359281A (en) Dynamic list generation method and device
CN109036397A (en) The method and apparatus of content for rendering
CN109446199A (en) Cell data processing method and device
CN110058854A (en) For generating method, terminal device and the computer-readable medium of application
CN109683728A (en) Group member adding method and device
CN109656653A (en) Mask icon display method and device
CN109992177A (en) User interaction approach, system, electronic equipment and the computer media of electronic equipment
CN110489106A (en) A kind of generation method, device, medium and the electronic equipment of project initial code
CN110135903A (en) Advertisement position ranks method, system, medium and electronic equipment
CN109902245A (en) Interactive information providing method and device
CN109684116B (en) Data sharing method, device, equipment and medium
CN110069186B (en) Method and equipment for displaying operation interface of application
CN109992733A (en) Method, apparatus, electronic equipment and the storage medium that information is shared

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