CN105302788A - Method and device for editing table - Google Patents

Method and device for editing table Download PDF

Info

Publication number
CN105302788A
CN105302788A CN201510765147.4A CN201510765147A CN105302788A CN 105302788 A CN105302788 A CN 105302788A CN 201510765147 A CN201510765147 A CN 201510765147A CN 105302788 A CN105302788 A CN 105302788A
Authority
CN
China
Prior art keywords
data
user
edit
editing
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.)
Granted
Application number
CN201510765147.4A
Other languages
Chinese (zh)
Other versions
CN105302788B (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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201510765147.4A priority Critical patent/CN105302788B/en
Publication of CN105302788A publication Critical patent/CN105302788A/en
Application granted granted Critical
Publication of CN105302788B publication Critical patent/CN105302788B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention provides a method and device for editing a table. The method comprises the steps of obtaining first table editing data expressed with tab type languages and grammar; conducting analysis on the first table editing data, and obtaining table content data and table format data; drafting the table content data according to the table format data. According to the technical scheme of the method and device for editing the table, by observing the table content data exhibited in the table format, a user is allowed to find problems in the table editing data expressed with the tab type languages and grammar and make correction in time, and user experience is upgraded.

Description

For editing method and the device of form
Technical field
The present invention relates to technical field of data processing, particularly relating to a kind of method for editing form and device.
Background technology
Along with popularizing of marking type language (as Markdown, LaTex etc.), increasing people starts study, usage flag type language compilation document.Due to when using that such as Markdown writes document, the plain text format allowing people to use readability easily to write is write, and the document write out is easy to share across software, cross-platform, striding equipment, also conveniently the common format such as HTML, pdf, word are converted to, so use Markdown to write document can provide smooth authoring environment for writer, make it be absorbed in word itself, can not by text style and typesetting bother.
But, when usage flag type language editor's form, require that the cell quantity of every a line is all identical, and each cell needs grammaticalness specification; In addition, when usage flag type language editor's form to the operation (such as increasing the operations such as row, Delete Row) of row, column also unusual inconvenience, this makes the editor of form become complex, therefore be often find that when carrying out format conversion form analysis mistake just knows that Table edit has problem, this gives the experience of user bad.
Summary of the invention
The object of the present invention is to provide a kind of method for editing form and device, drawing table content data according to the Table data in the Table edit data that marking type language syntax is expressed.
According to an aspect of the present invention, the invention provides a kind of method for editing form, described method comprises: obtain the first Table edit data expressed with marking type language syntax; Described first Table edit data are resolved, obtains table content data and Table data; Described table content data are drawn according to Table data.
Alternatively, described process of drawing described table content data according to Table data also comprises: can represent described table content data by edit format, edit to make user's his-and-hers watches lattice.
Alternatively, described method also comprises: complete the operation instruction of editing described table content data in response to user, table content data through editor are converted to the second Table edit data expressed with marking type language syntax, and represent described second Table edit data in the display interface refreshing of described first Table edit data.
Alternatively, described method also comprises: be provided for the interaction options of editing the first Table edit data; In response to the operation of user to described interaction options, obtain the part that in described first Table edit data, user chooses, the described part chosen is resolved, obtains table content data and Table data, and draw described table content data according to Table data.
Alternatively, described user to the editing operation that form carries out comprise following at least one: increase row, increase the content of row, Delete Row, delete columns and amendment cell.
Alternatively, described method also comprises: the operation instruction importing list data according to user, read the CSV formatted file that user specifies, the data of described CSV formatted file are converted to the 3rd Table edit data expressed with marking type language syntax, and represent described 3rd Table edit data.
According to a further aspect in the invention, the present invention also provides a kind of device for editing form, and described device comprises: list data acquiring unit, for obtaining the first Table edit data expressed with marking type language syntax; Data Analysis unit, for resolving described first Table edit data, obtains table content data and Table data; List data drawing unit, for drawing described table content data according to Table data.
Alternatively, described list data drawing unit also comprises: data edition unit, for can represent described table content data by edit format, edits to make user's his-and-hers watches lattice.
Alternatively, described device also comprises: Date Conversion Unit, for completing the operation instruction of editing described table content data in response to user, table content data through editor are converted to the second Table edit data expressed with marking type language syntax, and represent described second Table edit data in the display interface refreshing of described first Table edit data.
Alternatively, described device also comprises: interaction options providing unit, for being provided for the interaction options of editing the first Table edit data; Operation response unit, for in response to the operation of user to described interaction options, obtain the part that in described first Table edit data, user chooses, the described part chosen is resolved, obtain table content data and Table data, and draw described table content data according to Table data.
Alternatively, in described data edition unit user to the editing operation that form carries out comprise following at least one: increase row, increase the content of row, Delete Row, delete columns and amendment cell.
Alternatively, described device also comprises: data importing unit, for importing the operation instruction of list data according to user, read the CSV formatted file that user specifies, the data of described CSV formatted file are converted to the 3rd Table edit data expressed with marking type language syntax, and represent described 3rd Table edit data.
Method and device for editing form that the embodiment of the present invention provides, by resolving with the first Table edit data of marking type language syntax expression acquisition, obtain table content data and Table data, further, table content data are represented in a tabular form according to Table data, problem in the Table edit data that user's Timeliness coverage marking type language syntax is expressed, promotes Consumer's Experience.
Accompanying drawing explanation
Fig. 1 illustrates that exemplary embodiment of the present is for editing the schematic flow sheet of the method for form;
Fig. 2 is first schematic diagram at the Table edit data display interface that the specific embodiment of the invention is shown;
Fig. 3 is first schematic diagram at the Table edit interface that the specific embodiment of the invention is shown;
Fig. 4 is second schematic diagram at the Table edit interface that the specific embodiment of the invention is shown;
Fig. 5 is second schematic diagram at the Table edit data display interface that the specific embodiment of the invention is shown;
Fig. 6 illustrates that exemplary embodiment of the present is for editing the structural representation of the device of form.
Embodiment
Basic conception of the present invention is, provides a kind of method for editing form and realizes the device of described method.By resolving with the corresponding Table data of the first Table edit data acquisition of marking type language (as Markdown, LaTex etc.) grammatical representation and table content data, and draw table content data according to Table data.Thus, user can problem in the Table edit data expressed of Timeliness coverage marking type language syntax by observing the table content data that represent in a tabular form, and corrects in time, improves Consumer's Experience.
Below in conjunction with accompanying drawing being described in detail for the method and device of editing form exemplary embodiment of the present.
Embodiment one
Fig. 1 illustrates that exemplary embodiment of the present is for editing the schematic flow sheet of the method for form.
With reference to Fig. 1, in step S110, obtain the first Table edit data expressed with marking type language syntax.
Wherein, the first Table edit data are here user's data with marking type language syntax editor, and these data comprise the data of statement table format and table content.
Fig. 2 is first schematic diagram at the Table edit data display interface that the specific embodiment of the invention is shown, it illustrates with the example of the first Table edit data of Markdown grammatical representation.As shown in Figure 2, are respectively the column label of form on " operator on duty ", " Monday ", " Tu. " etc., these column labels are separated with " | "." |---|---|---|---| " be line Separator." || Li Qiang | Zhang Ming | Wang Ping | " be the content of the first row data.
In step S120, the first Table edit data are resolved, obtain table content data and Table data.
Wherein, Table data in this step can comprise the data such as the size of each cell, the thickness of cell lines, and table content data can comprise the data such as the particular content in the cell quantity (i.e. the columns of form) of every a line, the line number of form, each cell.
In step S130, draw table content data according to Table data.
Particularly, set up corresponding form according to the Table data obtained in step S120 (as the size of each cell and the thickness of cell lines) and table content data (as the columns of form and the line number of form), and fill in corresponding content in each cell of this form.Now, user can observe directly the Table edit data presented in a tabular form, and then judges whether form is the form that oneself needs, if not, can correct timely, avoid making troubles to follow-up format conversion.
Such as, user is at the Table edit button (the 3rd button as interface tool hurdle) clicked on interface as shown in Figure 2 or after pressing predetermined shortcut (as Ctrl+J or CMD+J), interface shown in Fig. 2 can jump to interface shown in Fig. 3, and interface shown in Fig. 3 is that the form that user presents Table edit data represents form.
The method for editing form that the embodiment of the present invention provides, by resolving with the first Table edit data of marking type language syntax expression acquisition, obtain table content data and Table data, further, table content data are represented in a tabular form according to Table data, problem in the Table edit data that user's Timeliness coverage marking type language syntax is expressed, promotes Consumer's Experience.
Preferably, in the process that the present invention specifically implements, the process of step S130 also can comprise: can represent described table content data by edit format, edit to make user's his-and-hers watches lattice.Wherein, user to the editing operation that form carries out can comprise following at least one: increase row, increase the content of row, Delete Row, delete columns and amendment cell.Here the editing operation of indication realizes by the Edit button that pre-sets or shortcut.
Such as, in the interface shown in Fig. 3, be provided with the button increasing row and increase row.User, after increase row button is clicked at interface shown in Fig. 3, shows the blank line with cell.User is after corresponding cell input content, and interface shown in Fig. 3 jumps to interface shown in Fig. 4.
Further, also can comprising for the method for editing form of the embodiment of the present invention: complete the operation instruction of editing described table content data in response to user, table content data through editor are converted to the second Table edit data expressed with marking type language syntax, and represent described second Table edit data in the display interface refreshing of described first Table edit data.
Particularly, after user completes the editor of table content data, instruction has been sent by default button or shortcut, then foregoing tags type language editor makes corresponding to this, Table data and the table content data of having edited are converted to the second Table edit data expressed with marking type language syntax, and the second Table edit data can be represented according to the positional information recorded during acquisition first Table edit data in the display interface refreshing of the first Table edit data.Certainly, aforementionedly complete instruction and also can send by other means, such as, if user does not edit form in preset time period, automatically can send instruction.
Return Fig. 4, form demonstrated in Figure 4, after the confirming button clicking the lower right corner, interface shown in Fig. 4, is converted to the Table edit data with Markdown grammatical representation by aforementioned processing and shows, specifically as shown in Figure 5 by user.
Now, due to user directly can carry out increase row to represented form by the Edit button that pre-sets or shortcut, increase row, Delete Row, delete columns and/or revise the operations such as cell, and the form after editor is converted to the second Table edit data expressed with marking type language syntax, do not need user to return editor that marking type Language Interface carries out meeting marking type language syntax specification, this makes the editor of form become simple, improves the editorial efficiency of form.
Alternatively, also can the comprising for the method for editing form of the embodiment of the present invention: be provided for the interaction options that the first Table edit data are edited; In response to the operation of user to described interaction options, obtain the part that in described first Table edit data, user chooses, the described part chosen is resolved, obtains table content data and Table data, and draw described table content data according to Table data.
Particularly, user operates interaction options by click pre-set button or shortcut.After user's complete operation being detected, response is made to corresponding operation, obtain the part that in the first Table edit data, user chooses, and the part that user chooses is resolved, obtain table content data and Table data, and represent table content data in a tabular form according to Table data.This technical scheme is (such as during the first multiple form of Table edit data characterization) when the first Table edit data content is more, and whether the first Table edit data are accurate to allow user to check several times, and this improves Consumer's Experience further.
Alternatively, also can comprising for the method for editing form of the embodiment of the present invention: the operation instruction importing list data according to user, read the CSV formatted file that user specifies, the data of described CSV formatted file are converted to the 3rd Table edit data expressed with marking type language syntax, and represent described 3rd Table edit data.
Particularly, when user needs to import form document outside aforementioned marking type language editor, can according to the operation instruction of user, import and read the CSV formatted file that user specifies, and the data of this CSV formatted file are converted to the 3rd Table edit data expressed with marking type language syntax, and represent the 3rd Table edit data.Being understandable that, importing and the file read also can be other form document, such as, can be XLS file.
In addition, to import and after reading corresponding form document, user also can edit this form document according to the needs of oneself.Correspondingly, the form document after editor 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, eliminate the editing process of Table edit data, this further improves the editorial efficiency of form, for the user of usage flag type language syntax editor form provides great convenience.
Embodiment two
Fig. 6 illustrates that exemplary embodiment of the present is for editing the structural representation of the device of form.
With reference to Fig. 6, the method for editing form that can perform embodiment one for the device editing form of the embodiment of the present invention.Can comprising for the device editing form of the embodiment of the present invention: list data acquiring unit 610, Data Analysis unit 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 Analysis unit 620, for resolving described first Table edit data, obtains table content data and Table data;
List data drawing unit 630 is for drawing described table content data according to Table data.
The device for editing form that the embodiment of the present invention provides, by resolving with the first Table edit data of marking type language syntax expression acquisition, obtain table content data and Table data, further, table content data are represented in a tabular form according to Table data, problem in the Table edit data that user's Timeliness coverage marking type language syntax is expressed, promotes Consumer's Experience.
Alternatively, described list data drawing unit 630 also can comprise: data edition unit, for can represent described table content data by edit format, edits to make user's his-and-hers watches lattice.
Alternatively, also can comprising for the device editing form of the embodiment of the present invention: Date Conversion Unit, for completing the operation instruction of editing described table content data in response to user, table content data through editor are converted to the second Table edit data expressed with marking type language syntax, and represent described second Table edit data in the display interface refreshing of described first Table edit data.
Alternatively, also can comprising for the device editing form of the embodiment of the present invention: interaction options providing unit, for being provided for the interaction options of editing the first Table edit data; Operation response unit, for in response to the operation of user to described interaction options, obtain the part that in described first Table edit data, user chooses, the described part chosen is resolved, obtain table content data and Table data, and draw described table content data according to Table data.
Alternatively, in described data edition unit user to the editing operation that form carries out can comprise following at least one: increase row, increase the content of row, Delete Row, delete columns and amendment cell.
Alternatively, also can comprising for the device editing form of the embodiment of the present invention: data importing unit, for importing the operation instruction of list data according to user, read the CSV formatted file that user specifies, the data of described CSV formatted file are converted to the 3rd Table edit data expressed with marking type language syntax, and represent described 3rd Table edit data.
It may be noted that the needs according to implementing, each step described can be split as more multi-step, also the part operation of two or more step or step can be combined into new step, to realize object of the present invention in the application.
Above-mentioned can at hardware according to method of the present invention, realize in firmware, or be implemented as and can be stored in recording medium (such as CDROM, RAM, floppy disk, hard disk or magneto-optic disk) in software or computer code, or be implemented and will be stored in the computer code in local recording medium by the original storage of web download in remote logging medium or nonvolatile machine readable media, thus method described here can be stored in use multi-purpose computer, such software process on the recording medium of application specific processor or able to programme or specialized hardware (such as ASIC or FPGA).Be appreciated that, computing machine, processor, microprocessor controller or programmable hardware comprise and can store or receive the memory module of software or computer code (such as, RAM, ROM, flash memory etc.), when described software or computer code by computing machine, processor or hardware access and perform time, realize disposal route described here.In addition, when the code for realizing the process shown in this accessed by multi-purpose computer, multi-purpose computer is converted to the special purpose computer for performing the process shown in this by the execution of code.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (12)

1. for editing a method for form, it is characterized in that, described method comprises:
Obtain the first Table edit data expressed with marking type language syntax;
Described first Table edit data are resolved, obtains table content data and Table data;
Described table content data are drawn according to described Table data.
2. method according to claim 1, is characterized in that, described process of drawing described table content data according to described Table data also comprises:
So that described table content data can be represented by edit format, edit to make user's his-and-hers watches lattice.
3. method according to claim 2, is characterized in that, described method also comprises:
The operation instruction of editing described table content data is completed in response to user, table content data through editor are converted to the second Table edit data expressed with marking type language syntax, and represent described second Table edit data in the display interface refreshing of described first Table edit data.
4. the method according to any one of claims 1 to 3, is characterized in that, described method also comprises:
Be provided for the interaction options that the first Table edit data are edited;
In response to the operation of user to described interaction options, obtain the part that in described first Table edit data, user chooses, the described part chosen is resolved, obtains table content data and Table data, and draw described table content data according to Table data.
5. according to the method in claim 2 or 3, it is characterized in that, described user to the editing operation that form carries out comprise following at least one: increase row, increase the content of row, Delete Row, delete columns and amendment cell.
6. method according to claim 5, is characterized in that, described method also comprises:
Import the operation instruction of list data according to user, read the CSV formatted file that user specifies, the data of described CSV formatted file are converted to the 3rd Table edit data expressed with marking type language syntax, and represent described 3rd Table edit data.
7. for editing a device for form, it is characterized in that, described device comprises:
List data acquiring unit, for obtaining the first Table edit data expressed with marking type language syntax;
Data Analysis unit, for resolving described first Table edit data, obtains table content data and Table data;
List data drawing unit, for drawing described table content data according to described Table data.
8. device according to claim 7, is characterized in that, described list data drawing unit also comprises:
Data edition unit, for can represent described table content data by edit format, edits to make user's his-and-hers watches lattice.
9. device according to claim 8, is characterized in that, described device also comprises:
Date Conversion Unit, for completing the operation instruction of editing described table content data in response to user, table content data through editor are converted to the second Table edit data expressed with marking type language syntax, and represent described second Table edit data in the display interface refreshing of described first Table edit data.
10. the device according to any one of claim 6 ~ 9, is characterized in that, described device also comprises:
Interaction options providing unit, for being provided for the interaction options of editing the first Table edit data;
Operation response unit, for in response to the operation of user to described interaction options, obtain the part that in described first Table edit data, user chooses, the described part chosen is resolved, obtain table content data and Table data, and draw described table content data according to Table data.
11. devices according to claim 8 or claim 9, is characterized in that, in described data edition unit user to the editing operation that form carries out comprise following at least one: increase row, increase the content of row, Delete Row, delete columns and amendment cell.
12. devices according to claim 11, is characterized in that, described device also comprises:
Data importing unit, for importing the operation instruction of list data according to user, read the CSV formatted file that user specifies, the data of described CSV formatted file are converted to the 3rd Table edit data expressed with marking type language syntax, and represent described 3rd Table edit data.
CN201510765147.4A 2015-11-10 2015-11-10 Method and device for editing table Active CN105302788B (en)

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 true CN105302788A (en) 2016-02-03
CN105302788B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
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 (4)

* Cited by examiner, † Cited by third party
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
US20150278319A1 (en) * 2009-12-03 2015-10-01 At&T Intellectual Property I, L.P. Dynamic content presentation

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
US20150278319A1 (en) * 2009-12-03 2015-10-01 At&T Intellectual Property I, L.P. Dynamic content presentation
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

Cited By (2)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN105302788B (en) 2018-07-13

Similar Documents

Publication Publication Date Title
CN109948134B (en) Report automatic generation method, system, electronic equipment and storage medium
CN110058856B (en) Page configuration method and device
CN106610774B (en) Webpage table editing method and device
US8739025B2 (en) Systems and methods for navigating to errors in an XBRL document using metadata
CN102799573A (en) Method and system for annotating webpage
CN109683773B (en) Corpus labeling method and apparatus
EP3444725A1 (en) Man-machine interaction method and device therefor
CN104699714A (en) Method and device for transferring files of book edition format into files of EPUB format
CN110555073A (en) data processing method and device, electronic equipment and storage medium
CN103777858A (en) Textbox displaying method and device
CN103631590A (en) Method for editing automated testing script
CN106294480A (en) File format conversion method and device and test question importing system
CN106970758B (en) Electronic document operation processing method and device and electronic equipment
CN105302788A (en) Method and device for editing table
CN113518187B (en) Video editing method and device
CN103678263A (en) Graphical interface display method and system for incidence relations among document chapters
CN102982148A (en) Positioning method and device
CN105718434A (en) Natural language formula editing method and system
US20160299880A1 (en) Method and device for updating web page
CN111967274A (en) Label conversion processing method and device, electronic equipment and readable storage medium
CN116128448A (en) Design data processing method and device for FPGA engineering project and electronic equipment
CN115964991A (en) Document editing method, device, equipment and medium
CN112559318A (en) Test case generation method and device, electronic equipment and storage medium
CN103942036A (en) Webpage content editing method and device
CN114594945A (en) Method, device, system, equipment and medium for generating advanced popup selection frame

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