CN105302788B - Method and device for editing table - Google Patents
Method and device for editing table Download PDFInfo
- Publication number
- CN105302788B CN105302788B CN201510765147.4A CN201510765147A CN105302788B CN 105302788 B CN105302788 B CN 105302788B CN 201510765147 A CN201510765147 A CN 201510765147A CN 105302788 B CN105302788 B CN 105302788B
- Authority
- CN
- China
- Prior art keywords
- data
- user
- edit
- type language
- content 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.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Document Processing Apparatus (AREA)
Abstract
The embodiment of the present invention provides a kind of method and device for editing table, the method includes:Obtain the first Table edit data expressed with marking type language syntax;The first Table edit data are parsed, table content data and Table data are obtained;The table content data are drawn according to the Table data.Technical scheme of the present invention allows user by observing the table content data showed in a tabular form the problems in the Table edit data that discovery marking type language syntax is expressed in time, and corrects in time, and the user experience is improved.
Description
Technical field
The present invention relates to technical field of data processing more particularly to a kind of method and devices for editing table.
Background technology
With popularizing for marking type language (such as Markdown, LaTex), more and more people start study, using mark
Note type language writes document.Due to the pure text for when using for example Markdown writes document, people being allowed easily to be write using readability
This format is write, and the document write out is easy to share across software, cross-platform, striding equipment, is also convenient for being converted into
The common formats such as HTML, pdf, word, so smooth writing ring can be provided for writer by writing document using Markdown
Border makes it be absorbed in word itself, will not be bothered by text style and typesetting.
However, when using marking type language editor's table, it is desirable that the cell quantity per a line is all identical, and each single
First lattice are required for grammaticalness specification;In addition, (such as increasing the operation of row, column when using marking type language editor's table
Row deletes the operations such as row) it is also very inconvenient, this makes the editor of table become complex, therefore is often carrying out lattice
Find that form analysis mistake just knows that Table edit is problematic when formula is converted, this is bad to the experience of user.
Invention content
The purpose of the present invention is to provide a kind of method and devices for editing table, according to marking type language syntax table
Table data in the Table edit data reached draws table content data.
According to an aspect of the present invention, the present invention provides a kind of method for editing table, the method includes:It obtains
The the first Table edit data expressed with marking type language syntax;The first Table edit data are parsed, table is obtained
Lattice content-data and Table data;The table content data are drawn according to Table data.
Optionally, the processing that the table content data are drawn according to Table data further includes:With editable
Form shows the table content data so that user to table into edlin.
Optionally, the method further includes:The operation instruction of editor's table content data is completed in response to user, it will
The the second Table edit data expressed with marking type language syntax are converted to by the table content data of editor, and described
The display interface refreshing of first Table edit data shows the second Table edit data.
Optionally, the method further includes:It provides for the interaction options to the first Table edit data into edlin;It rings
Operation that should be in user to the interaction options obtains the part that user chooses in the first Table edit data, to described
The part chosen is parsed, and obtains table content data and Table data, and draw institute according to Table data
State table content data.
Optionally, the edit operation that the user carries out table includes following at least one:Increase row, increases row, deletes
Except row, deletes row and change the content of cell.
Optionally, the method further includes:The operation instruction of list data is imported according to user, reads what user specified
The data of the CSV formatted files are converted to the third Table edit number expressed with marking type language syntax by CSV formatted files
According to, and show the third Table edit data.
According to another aspect of the present invention, the present invention also provides a kind of device for editing table, described device includes:
List data acquiring unit, for obtaining the first Table edit data expressed with marking type language syntax;Data resolution unit,
For being parsed to the first Table edit data, table content data and Table data are obtained;List data is painted
Unit processed, for drawing the table content data according to Table data.
Optionally, the list data drawing unit further includes:Data edition unit, for showing institute in the form of editable
State table content data so that user to table into edlin.
Optionally, described device further includes:Date Conversion Unit edits the table content for being completed in response to user
The operation instruction of data is compiled being converted to by the table content data of editor with the second table that marking type language syntax is expressed
Data are collected, and show the second Table edit data in the refreshing of the display interface of the first Table edit data.
Optionally, described device further includes:Interaction options provide unit, for providing for the first Table edit data
Into the interaction options of edlin;Response unit is operated, for operation in response to user to the interaction options, obtains described the
The part that user chooses in one Table edit data parses the part chosen, and obtains table content data and table
Lattice formatted data, and the table content data are drawn according to Table data.
Optionally, the edit operation that user carries out table in the data edition unit includes following at least one:Increase
Add row, increases row, deletes row, deleting row and the content of modification cell.
Optionally, described device further includes:Data import unit, the operation for importing list data according to user refer to
Show, reads the CSV formatted files that user specifies, the data of the CSV formatted files are converted to marking type language syntax table
The third Table edit data reached, and show the third Table edit data.
The embodiment of the present invention provided for editing the method and device of table, by acquisition with marking type language
First Table edit data of grammatical representation are parsed, and table content data and Table data, further, root are obtained
Show table content data in a tabular form according to Table data, user is made to find the table of marking type language syntax expression in time
The problems in lattice editor's data promote user experience.
Description of the drawings
Fig. 1 is the flow diagram for showing method of the exemplary embodiment of the present for editing table;
Fig. 2 is first schematic diagram at the Table edit data displaying interface for showing the specific embodiment of the invention;
Fig. 3 is first schematic diagram at the Table edit interface for showing the specific embodiment of the invention;
Fig. 4 is second schematic diagram at the Table edit interface for showing the specific embodiment of the invention;
Fig. 5 is second schematic diagram at the Table edit data displaying interface for showing the specific embodiment of the invention;
Fig. 6 is the structural schematic diagram for showing device of the exemplary embodiment of the present for editing table.
Specific implementation mode
The basic conception of the present invention is to provide a kind of method being used to edit table and the device for realizing the method.
It is corresponding with the first Table edit data acquisition of marking type language (such as Markdown, LaTex) grammatical representation by parsing
Table data and table content data, and table content data are drawn according to Table data.User passes through sight as a result,
Examine the Table edit data that the table content data showed in a tabular form are capable of discovery marking type language syntax expression in time
The problems in, and correct in time, the user experience is improved.
The method and device for editing table of exemplary embodiment of the present is retouched in detail below in conjunction with the accompanying drawings
It states.
Embodiment one
Fig. 1 is the flow diagram for showing method of the exemplary embodiment of the present for editing table.
Referring to Fig.1, in step S110, the first Table edit data expressed with marking type language syntax are obtained.
Wherein, the first Table edit data here are data of the user with marking type language syntax editor, in the data
Data including stating table format and table content.
Fig. 2 be show the specific embodiment of the invention Table edit data displaying interface the first schematic diagram, show with
The example of first Table edit data of Markdown grammatical representations.As shown in Fig. 2, " operator on duty ", " Monday ", " week
Two " etc. be respectively the column label of table, these column labels are separated with " | "." | --- | --- | --- | --- | " it is that row separates
Symbol." | | Li Qiang | Zhang Ming | Wang Ping | " be the first row data content.
In step S120, the first Table edit data are parsed, obtain table content data and Table data.
Wherein, the Table data in this step may include the size of each cell, the thickness of cell lines
Etc. data, table content data may include the cell quantity (i.e. the columns of table), the line number of table, each unit of every a line
The data such as the particular content in lattice.
In step S130, table content data are drawn according to Table data.
Specifically, according to the Table data (size and cell of such as each cell obtained in step S120
The thickness of lines) and table content data (columns of such as table and the line number of table) establish corresponding table, and in the table
Each cell in fill in corresponding content.At this point, user can observe directly the Table edit number presented in a tabular form
According to, and then judge whether table is that the table that oneself is needed avoids if it is not, can timely be corrected to subsequent lattice
Formula conversion is made troubles.
For example, Table edit button of the user on clicking interface as shown in Figure 2 (press by the third on such as interface tool column
Button) or after pressing scheduled shortcut key (such as Ctrl+J or CMD+J), interface shown in Fig. 2 can jump to interface shown in Fig. 3, Fig. 3 institutes
Show that interface is that the table of user's presentation Table edit data shows form.
The method for editing table that the embodiment of the present invention is provided, by acquisition with marking type language syntax table
The the first Table edit data reached are parsed, and table content data and Table data are obtained, further, according to table
Formatted data shows table content data in a tabular form, and user is made to find the Table edit of marking type language syntax expression in time
The problems in data promote user experience.
Preferably, during the present invention is embodied, the processing of step S130 may also include:The exhibition in the form of editable
The existing table content data so that user to table into edlin.Wherein, the edit operation that user carries out table may include
It is at least one below:Increase row, increases row, deletes row, deleting row and the content of modification cell.Edit operation referred herein
It can be realized by pre-set Edit button or shortcut key.
For example, in interface shown in Fig. 3, it is provided with the button for increasing row and increasing row.User's interface point shown in Fig. 3
It hits after increasing row button, blank line of the display with cell.User is after corresponding cell input content, boundary shown in Fig. 3
Face jumps to interface shown in Fig. 4.
Further, the method for editing table of the embodiment of the present invention may also include:It completes to compile in response to user
The operation instruction of the table content data is collected, will be converted to marking type language syntax table by the table content data of editor
The the second Table edit data reached, and show second table in the refreshing of the display interface of the first Table edit data
Edit data.
Specifically, after the editor of user's completion table content data, completion can be sent out by preset button or shortcut key
It indicates, then foregoing tags type language editor makes this accordingly, the table content that Table data and editor are completed
Data are converted to the second Table edit data expressed with marking type language syntax, and can be according to the first Table edit data of acquisition
The location information of Shi Jilu shows the second Table edit data in the display interface refreshing of the first Table edit data.Certainly, preceding
Stating completion instruction can also send out by other means, for example, if user within a preset period of time not to table into edlin,
Completion instruction can be sent out automatically.
Fig. 4 is returned to, user is after clicking the confirming button in the interface lower right corner shown in Fig. 4, by aforementioned processing by institute in Fig. 4
The table of displaying is converted to the Table edit data with Markdown grammatical representations and is shown, specific as shown in Figure 5.
At this point, since user can directly increase the table showed by pre-set Edit button or shortcut key
Add row, increase row, delete and go, delete the operations such as row and/or modification cell, and edited table is converted to marking type
Second Table edit data of language syntax expression, do not need user and return marking type Language Interface and carry out meeting marking type language
Say the editor of syntax gauge, this makes the editor of table become simple and practicable, improves the editorial efficiency of table.
Optionally, the method for editing table of the embodiment of the present invention may also include:It provides for being compiled to the first table
The interaction options of volume data into edlin;Operation in response to user to the interaction options obtains first Table edit
The part that user chooses in data parses the part chosen, and obtains table content data and Table data,
And the table content data are drawn according to Table data.
Specifically, user can operate interaction options by clicking pre-set button or shortcut key.Detecting user
It after completing operation, is responded to operating accordingly, obtains the part that user chooses in the first Table edit data, and to user
The part chosen is parsed, and obtains table content data and Table data, and according to Table data with table
Form shows table content data.The technical solution (such as first Table edit when the first Table edit data content is more
When the multiple tables of data characterization), allow user to check whether the first Table edit data are accurate, this is further promoted several times
User experience.
Optionally, the method for editing table of the embodiment of the present invention may also include:List data is imported according to user
Operation instruction, read the CSV formatted files specified of user, the data of the CSV formatted files be converted to marking type language
It says the third Table edit data of grammatical representation, and shows the third Table edit data.
It specifically, can be according to user when user needs to import form document outside aforementioned marking type language editor
Operation instruction, import and read the CSV formatted files that user specifies, and the data of the CSV formatted files are converted to mark
The third Table edit data of note type language syntax expression, and show third Table edit data.It is understood that importing
And the file read can also be other form documents, such as can be XLS files.
In addition, after importing and reading corresponding form document, user also can be according to the needs of oneself to the form document
Into edlin.Correspondingly, edited form document can be converted to the Table edit data expressed with marking type language syntax.
By importing form document, and form document is converted to the Table edit data expressed with marking type language syntax, eliminated
The editing process of Table edit data, this further improves the editorial efficiency of table, to use marking type language syntax
The user of editor's table provides great convenience.
Embodiment two
Fig. 6 is the structural schematic diagram for showing device of the exemplary embodiment of the present for editing table.
With reference to Fig. 6, the device for editing table of the embodiment of the present invention can perform embodiment one for editing table
Method.The device for editing table of the embodiment of the present invention may include:List data acquiring unit 610, data parsing are single
Member 620 and list data drawing unit 630.
List data acquiring unit 610 is for obtaining the first Table edit data expressed with marking type language syntax;
Data resolution unit 620 for being parsed to the first Table edit data, obtain table content data and
Table data;
List data drawing unit 630 is used to draw the table content data according to Table data.
The embodiment of the present invention provided for editing the device of table, by acquisition with marking type language syntax table
The the first Table edit data reached are parsed, and table content data and Table data are obtained, further, according to table
Formatted data shows table content data in a tabular form, and user is made to find the Table edit of marking type language syntax expression in time
The problems in data promote user experience.
Optionally, the list data drawing unit 630 may also include:Data edition unit, in the form of editable
Show the table content data so that user to table into edlin.
Optionally, the device for editing table of the embodiment of the present invention may also include:Date Conversion Unit, for responding
The operation instruction of editor's table content data is completed in user, will be converted to by the table content data of editor to mark
Second Table edit data of type language syntax expression, and show in the refreshing of the display interface of the first Table edit data
The second Table edit data.
Optionally, the device for editing table of the embodiment of the present invention may also include:Interaction options provide unit, are used for
It provides for the interaction options to the first Table edit data into edlin;Response unit is operated, is used in response to user to institute
State the operation of interaction options, obtain the part that user chooses in the first Table edit data, to the part chosen into
Row parsing obtains table content data and Table data, and draws the table content number according to Table data
According to.
Optionally, the edit operation that user carries out table in the data edition unit may include following at least one:
Increase row, increases row, deletes row, deleting row and the content of modification cell.
Optionally, the device for editing table of the embodiment of the present invention may also include:Data import unit is used for basis
User imports the operation instruction of list data, the CSV formatted files that user specifies is read, by the data of the CSV formatted files
The third Table edit data expressed with marking type language syntax are converted to, and show the third Table edit data.
It may be noted that according to the needs of implementation, each step described in this application can be split as more multi-step, also may be used
The part operation of two or more steps or step is combined into new step, to achieve the object of the present invention.
It is above-mentioned to be realized in hardware, firmware according to the method for the present invention, or be implemented as being storable in recording medium
Software or computer code in (such as CD ROM, RAM, floppy disk, hard disk or magneto-optic disk), or it is implemented through network download
Original storage in long-range recording medium or nonvolatile machine readable media and the meter that will be stored in local recording medium
Calculation machine code, to which method described here can be stored in using all-purpose computer, application specific processor or may be programmed or special
It is handled with such software in the recording medium of hardware (such as ASIC or FPGA).It is appreciated that computer, processor, micro-
Processor controller or programmable hardware include can store or receive software or computer code storage assembly (for example, RAM,
ROM, flash memory etc.), when the software or computer code are by computer, processor or hardware access and execute, realize herein
The processing method of description.In addition, when all-purpose computer accesses the code for realizing the processing being shown here, the execution of code
All-purpose computer is converted into the special purpose computer for executing the processing being shown here.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (8)
1. a kind of method for editing table, which is characterized in that the method includes:
Obtain the first Table edit data expressed with marking type language syntax;Wherein, the first Table edit data are that user uses
The data of marking type language syntax editor;
The first Table edit data are parsed, table content data and Table data are obtained;
The table content data are drawn according to the Table data;Wherein, showed with editable form described
Table content data so that user to table into edlin;
The operation instruction of editor's table content data is completed in response to user, it will be by the table content data conversion of editor
For the second Table edit data expressed with marking type language syntax, and in the display interface of the first Table edit data
Refreshing shows the second Table edit data.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
It provides for the interaction options to the first Table edit data into edlin;
Operation in response to user to the interaction options obtains the part that user chooses in the first Table edit data,
The part chosen is parsed, obtains table content data and Table data, and according to Table data
Draw the table content data.
3. method according to claim 1 or 2, which is characterized in that the edit operation that the user carries out table includes
It is at least one below:Increase row, increases row, deletes row, deleting row and the content of modification cell.
4. according to the method described in claim 3, it is characterized in that, the method further includes:
The operation instruction of list data is imported according to user, reads the CSV formatted files that user specifies, by CSV formats text
The data of part are converted to the third Table edit data expressed with marking type language syntax, and show the third Table edit
Data.
5. a kind of for editing the device of table, which is characterized in that described device includes:
List data acquiring unit, for obtaining the first Table edit data expressed with marking type language syntax;Wherein, first
Table edit data are data of the user with marking type language syntax editor;
Data resolution unit obtains table content data and table lattice for being parsed to the first Table edit data
Formula data;
List data drawing unit, for drawing the table content data according to the Table data, wherein the table
Lattice data drawing unit further includes:Data edition unit, for showing the table content data with editable form,
So that user to table into edlin;
Date Conversion Unit, the operation instruction for completing editor's table content data in response to user will pass through editor
Table content data be converted to the second Table edit data expressed with marking type language syntax, and in first table
The display interface refreshing of editor's data shows the second Table edit data.
6. device according to claim 5, which is characterized in that described device further includes:
Interaction options provide unit, for providing for the interaction options to the first Table edit data into edlin;
Response unit is operated, for the operation in response to user to the interaction options, obtains the first Table edit data
The part that middle user chooses parses the part chosen, and obtains table content data and Table data, and
The table content data are drawn according to Table data.
7. device according to claim 5, which is characterized in that the volume that user carries out table in the data edition unit
It includes following at least one to collect operation:Increase row, increases row, deletes row, deleting row and the content of modification cell.
8. device according to claim 7, which is characterized in that described device further includes:
Data import unit, the operation instruction for importing list data according to user read the CSV format texts that user specifies
The data of the CSV formatted files are converted to the third Table edit data expressed with marking type language syntax, and opened up by part
The existing third Table edit data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510765147.4A CN105302788B (en) | 2015-11-10 | 2015-11-10 | Method and device for editing table |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510765147.4A CN105302788B (en) | 2015-11-10 | 2015-11-10 | Method and device for editing table |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105302788A CN105302788A (en) | 2016-02-03 |
CN105302788B true CN105302788B (en) | 2018-07-13 |
Family
ID=55200067
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510765147.4A Active CN105302788B (en) | 2015-11-10 | 2015-11-10 | Method and device for editing table |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105302788B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110275707A (en) * | 2019-04-03 | 2019-09-24 | 杭州电子科技大学 | A kind of PLC variable input method of compatible table input and text input |
CN111814443A (en) * | 2020-07-21 | 2020-10-23 | 北京来也网络科技有限公司 | Table generation method and device combining RPA and AI, computing equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101887413A (en) * | 2009-05-14 | 2010-11-17 | 北大方正集团有限公司 | Structure processing method and system of plate type table |
CN104298489A (en) * | 2013-07-16 | 2015-01-21 | 苏州精易会信息技术有限公司 | Form reproduction realization method |
CN104572048A (en) * | 2013-10-18 | 2015-04-29 | 镇江鼎拓科技信息有限公司 | XML-based EXCEL report generation method in JSP environment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9098507B2 (en) * | 2009-12-03 | 2015-08-04 | At&T Intellectual Property I, L.P. | Dynamic content presentation |
-
2015
- 2015-11-10 CN CN201510765147.4A patent/CN105302788B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101887413A (en) * | 2009-05-14 | 2010-11-17 | 北大方正集团有限公司 | Structure processing method and system of plate type table |
CN104298489A (en) * | 2013-07-16 | 2015-01-21 | 苏州精易会信息技术有限公司 | Form reproduction realization method |
CN104572048A (en) * | 2013-10-18 | 2015-04-29 | 镇江鼎拓科技信息有限公司 | XML-based EXCEL report generation method in JSP environment |
Also Published As
Publication number | Publication date |
---|---|
CN105302788A (en) | 2016-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10929449B2 (en) | Generating a structured document guiding view | |
RU2683174C2 (en) | Ink to text representation conversion | |
US9870205B1 (en) | Storing logical units of program code generated using a dynamic programming notebook user interface | |
CN110866383B (en) | Interactive electronic data list generation method and system | |
US10354003B2 (en) | Data filtering based on a cell entry | |
CN109683773B (en) | Corpus labeling method and apparatus | |
US20200272788A1 (en) | Document Reviewer | |
CN104699714A (en) | Method and device for transferring files of book edition format into files of EPUB format | |
JP2022547895A (en) | User-customized automatic document creation method, device and server therefor | |
CN105302788B (en) | Method and device for editing table | |
CN109117463A (en) | Text pinyin marking method, electronic equipment, storage medium | |
CN112101353A (en) | Text information extraction method and device, electronic equipment and storage medium | |
CN106599324B (en) | CAD data capturing method | |
CN102110108B (en) | Method and device for processing galley proof file | |
JP5747698B2 (en) | Requirements management support device | |
JP2007323474A (en) | Ocr system, ocr format parameter preparation method, its program and program recording medium | |
JP5451696B2 (en) | Subtitle adding apparatus, content data, subtitle adding method and program | |
JP2014081905A (en) | Device for providing graphical interface for assisting preparation of logic formula | |
CN106156314B (en) | A kind of data manipulation method and device, data search method and device | |
CN102279858B (en) | Method and device for realizing plurilingual display on electronic display equipment | |
JP4828318B2 (en) | Multiple form integrated printing method, system and program | |
KR102324892B1 (en) | Apparatus and method for annotating document | |
JP2013077084A (en) | Sentence example dictionary generation program and sentence example dictionary generation device | |
CN118333041B (en) | File processing method and device, computer readable storage medium and program product | |
CN118013034A (en) | Medical professional accurate mark corpus construction method and system based on large language model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |