WO2015096634A1 - 表格文件显示方法及系统 - Google Patents

表格文件显示方法及系统 Download PDF

Info

Publication number
WO2015096634A1
WO2015096634A1 PCT/CN2014/093817 CN2014093817W WO2015096634A1 WO 2015096634 A1 WO2015096634 A1 WO 2015096634A1 CN 2014093817 W CN2014093817 W CN 2014093817W WO 2015096634 A1 WO2015096634 A1 WO 2015096634A1
Authority
WO
WIPO (PCT)
Prior art keywords
cell
content
area
display
module
Prior art date
Application number
PCT/CN2014/093817
Other languages
English (en)
French (fr)
Inventor
王晖
Original Assignee
北京金山办公软件有限公司
珠海金山办公软件有限公司
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 北京金山办公软件有限公司, 珠海金山办公软件有限公司 filed Critical 北京金山办公软件有限公司
Publication of WO2015096634A1 publication Critical patent/WO2015096634A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data

Definitions

  • the present application relates to the field of device display technologies, and in particular, to a table file display method and system.
  • a form file page processed by the office software can store a plurality of forms, each of which is a separate form area, for example, as shown in FIG. 1, a form file page also stores a student information sheet 001 with a small class. And the student information sheet 002 of the second class. Since the contents of the form file are generally edited in a device having a large-width screen such as a computer, many of the tables stored in many cases are horizontally arranged. In this case, when the form file is opened in a mobile terminal such as a mobile phone, since the screen width of the mobile terminal is small, a plurality of tables arranged in the horizontal direction cannot be displayed in the screen of the mobile terminal. This requires the user to drag the slider or press a specific button to scroll or switch the display content of the screen to help the user see the contents of other parts.
  • the embodiment of the present application discloses a method for displaying a form file, and the method includes:
  • the identified table contents are vertically arranged and displayed.
  • the step of vertically arranging and displaying the identified content of the table includes:
  • a separate table area in which the recognized picture, the converted picture, and the HTML data are converted is vertically arranged and displayed in the web page.
  • the step of vertically arranging and displaying the identified content of the table includes:
  • the identified table contents are converted into table contents supported by the portable file format PDF program, and vertically arranged and displayed in the PDF program.
  • the step of vertically arranging and displaying the identified image, the converted image, and the independent table area converted into HTML data in the webpage includes:
  • the vertically arranged table contents after inserting the blank area are displayed in the web page.
  • the reading the form file, identifying the table content in the form file, the package include:
  • Reading the table file traversing the cells in the table file, and when determining that the content of a cell is not empty, the cell is used as the current cell;
  • the current cell Marking the current cell as a cell in which the content in the independent table area is not empty, traversing to an adjacent cell in a cell adjacent to the current cell that is not empty, the content is not
  • the empty adjacent cells are used as the current cell, and the steps are performed cyclically until the following conditions are met: the contents of each cell adjacent to the current cell and located outside the independent table area are empty;
  • the method further includes:
  • the step of vertically arranging and displaying the recognized picture, the converted picture, and the independent form area converted into HTML data in the webpage includes:
  • a vertically arranged independent table area having the format attributes of the cascading style sheet language is displayed.
  • the step of vertically arranging and displaying the identified image, the converted image, and the independent table area converted into HTML data in the webpage includes:
  • a form file display system comprising: a reading module and a display module,
  • the reading module is configured to read a form file, and identify a form content in the form file, wherein the form content includes an object and a separate form area, wherein the object includes a text box, a picture, and a chart At least one
  • the display module is configured to vertically arrange and display the identified table contents.
  • the display module includes: a conversion submodule and a first display submodule,
  • the conversion submodule is configured to convert the identified independent table area into hypertext markup language HTML data, and convert the identified object that is not a picture into a picture;
  • the first display sub-module is configured to vertically display and display the identified image, the converted image, and the independent table area converted into HTML data in the webpage.
  • the display module includes: a second display submodule, a third display submodule, a fourth display submodule, or a fifth display submodule,
  • the second display sub-module is configured to vertically arrange and display the identified form content in a form file program
  • the third display sub-module is configured to convert the identified table content into a table content supported by a text file program, and vertically arrange and display the text file program;
  • the fourth display sub-module is configured to convert the identified table content into a picture and vertically arrange and display the content
  • the fifth display sub-module is configured to convert the identified table content into a table content supported by the portable file format PDF program, and vertically arrange and display in the PDF program.
  • the first display submodule includes: an insertion submodule and an alignment submodule.
  • the insertion sub-module is configured to vertically arrange the recognized picture, the converted picture, and the independent table area converted into HTML data in a webpage and insert a blank area between adjacent table contents;
  • the arranging sub-module is configured to display the vertically arranged table contents after inserting the blank area in the webpage.
  • the reading module includes: a traversal submodule, an extension submodule, and an identification submodule.
  • the traversing sub-module is configured to read a table file, traverse a cell in the table file, and when the content of a cell is determined to be not empty, the cell is used as a current cell;
  • the extension submodule is configured to mark the current cell as a cell in which the content in the independent table area is not empty, and traverse to a neighboring cell adjacent to the current cell that is not empty. a cell that performs the step by using the adjacent cell whose content is not empty as the current cell until the following condition is met: each cell adjacent to the current cell and located outside the independent table area The content is empty;
  • the identification sub-module is configured to enclose a maximum row, a minimum row, a maximum column, and a minimum column in a row and a column of a plurality of cells in a cell that is marked as a non-empty content in a separate table region
  • the formed table area is identified as a separate table area.
  • the method further includes: an attribute changing module, configured to: after the reading module reads the form file, identify the table content in the form file, and read the format attribute of the identified independent table area, The format attribute of the read is converted to the format attribute of the cascading style sheet language;
  • the first display sub-module is specifically configured to: vertically arrange the identified image, the converted image, and the independent table area converted into HTML data in a webpage and use the format attribute of the cascading style form language as a vertical
  • the vertically arranged independent table area having the format attribute of the cascading style sheet language is displayed to the format attribute of the arranged independent table area.
  • the first display submodule includes: a selection submodule and a vertical submodule,
  • the selecting sub-module is configured to select the identified image, the converted image, and the independent table area converted into HTML data according to the top-to-bottom selection order, and the uppermost layer in the area occupied by the identified at least two table contents When the rows of the cells are the same, the same table contents of the row of the uppermost cell in the occupied area are selected in order from left to right;
  • the vertical sub-module is configured to vertically arrange and display the selected table contents in a webpage in a top-to-bottom order.
  • an embodiment of the present application further provides a storage medium, where the storage medium is used to store an application, and the application is configured to execute any one of the form file display methods described in the present application at runtime. .
  • an embodiment of the present application further provides an application, where the application is used to execute any of the form file display methods described in the present application at runtime.
  • the embodiment of the present application further provides a user equipment, including:
  • processor a memory, a communication interface, and a bus
  • the processor, the memory, and the communication interface are connected by the bus and complete communication with each other;
  • the memory stores executable program code
  • the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory for executing any of the form file display methods described herein at runtime.
  • the table file display method and system provided by the embodiment of the present application can identify the table content in the table file to vertically arrange the independent table area and the object, so that the number of the table contents is simultaneously displayed in the device of the smaller width screen.
  • the application displays more information on the screen at the same time, and the user feels good, and does not require the user to perform manual operations frequently to switch the displayed content. Compared with the prior art, the operation is simple and convenient to use.
  • Figure 1 is a schematic diagram of a separate table area in a form file
  • FIG. 2 is a flowchart of a method for displaying a form file according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of content of a table in a form file provided by an embodiment of the present application.
  • FIG. 4 is a flowchart of identifying an independent table area in another method for displaying a form file according to an embodiment of the present application
  • FIG. 5 is a flowchart of performing vertical alignment and display processing in another form file display method according to an embodiment of the present application
  • FIG. 6 is a schematic diagram of a display interface obtained by using the form file display method of the present application according to an embodiment of the present application;
  • FIG. 7 is a flowchart of another method for displaying a form file according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a form file display system according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a display module in another form file display system according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of another form file display system according to an embodiment of the present application.
  • a method for displaying a form file may include:
  • S100 reading a form file, and identifying a form content in the form file, where the form content includes an object and a separate form area, wherein the object includes at least one of a text box, a picture, and a chart;
  • Form files can be used to input and output, display data, or use algorithms to implement some algorithms, thus becoming a widely used office software.
  • form file software on the market, such as: EXCEL, which is a component of Microsoft OFFICE software, in addition to the table files in the domestic Jinshan WPS.
  • EXCEL which is a component of Microsoft OFFICE software
  • objects such as pictures, text boxes, charts, hyperlinks, symbols, and so on.
  • the cut picture is also a picture
  • the chart can have various forms, such as a column chart, a pie chart, a line chart, an area chart, a scatter chart, and the like.
  • Each object will occupy a certain table area in the form file, and the table area includes at least one cell. It can be understood that each object is independent of each other and can be freely dragged.
  • the content in cell 003 is not empty and the contents of the cell connected to cell 003 are empty, so cell 003 constitutes a separate table area.
  • the table 001 in 3 is composed of a plurality of cells whose contents are not empty, and the contents of the cells outside the table 001 connected to the outermost cells in the table 001 are all empty, so the table 001 constitutes a separate table region.
  • the table 002 in Figure 3 also constitutes a separate table area.
  • Picture 004 in Figure 3 is an independent object.
  • the independent table area includes one or more cells whose contents are not empty, and when the plurality of cells in which the content is not empty is included in the independent table area, the independent table area is the plurality of a table area formed by enclosing the largest row, the smallest row, the largest column, and the smallest column in the row and column of the cell in the non-empty cell, and the outermost cell in the independent table region
  • the content of the cells outside the independent table area is empty.
  • the cell in the independent table area includes a cell whose content is not empty, the content of the cell connected to the independent table area is empty. ;
  • the maximum behavior in the row and column of the cell in the outermost cell in the table 001 is not empty, the minimum behavior is the 8th row, the minimum behavior is the 4th row, and the maximum column is the Column F, the smallest column is column C, and the table area formed by the largest row, the smallest row, the largest column, and the smallest column is also the area covered by the table 001 shown in FIG.
  • the "cell expansion” way is: first traverse from left to right from the first line in the form file page, if there is no cell that is not empty, continue to traverse the second line from left to right, And so on, until the cell whose content is not empty is found, the cell is used as a cell in the independent table area, and it is further determined whether the content of the cell adjacent to the cell is not empty, and the content is not empty.
  • the adjacent cells are used as cells in the independent table area to further determine whether the content of the cell adjacent to the adjacent cell whose content is not empty is not empty, and the cell whose content is not empty is used as the independent table region.
  • the cells in the ... are traversed in such a way that the traversal of the independent table region ends when the contents of the cells outside the independent table region adjacent to the cells in the independent table region are empty.
  • a specific method for identifying the content of the table in the form file is as shown in FIG. 4 , and specifically includes the following steps:
  • the first row is traversed from cell A1, and the contents of the cells in the first row are all empty;
  • cell D4, cell D5, and cell C5 make sure that the contents of cell D4, cell D5, and cell C5 are not empty.
  • the table 1 is taken as an example and will not be described again.
  • step S200 may be any one of the following five scenarios:
  • step S200 includes: step S210 and step S220.
  • the content of the form file in the computer needs to be format converted and converted into HTML data that the mobile terminal can display. Also, since the picture can be displayed on the web page, that is, the HTML page, in order to display the recognized object in the mobile terminal, the object that is not the picture can be converted into a picture.
  • the independent table area that converts the recognized picture, the converted picture, and the HTML data into a vertical page is displayed and displayed vertically in the webpage.
  • the width of the screen of the mobile terminal is small, and the length is long relative to the width, so the vertically arranged display can make full use of the screen length of the mobile terminal, while reducing the content displayed in the horizontal direction, and improving the table content simultaneously displayed on the screen of the mobile terminal. Quantity.
  • the identified picture, the converted picture, and the independent table area converted into HTML data may be selected in a top-to-bottom selection order, where the uppermost cell in the area occupied by the at least two table contents is located When the rows are the same, the same table contents of the row of the topmost cell in the occupied area are selected in order from left to right, and the selected table is selected.
  • the content is vertically arranged and displayed in order from top to bottom.
  • the table contents located at the top in the table file are first arranged at the top, for example, the independent table area 003 shown in FIG. 3, and then the contents of the table below are sequentially arranged.
  • the contents of the table on the left side are arranged first.
  • Table 001 and Table 002 Table 001 is located above Table 002, and finally arranges picture 004.
  • step S220 may include:
  • the vertically arranged table contents after inserting the blank area are displayed in the web page.
  • a blank area can be inserted to make the user easy to distinguish and the display effect is more beautiful.
  • the content of the table shown in FIG. 3 can be processed by the present application to obtain a display effect as shown in FIG. 6 in the mobile terminal.
  • the second step S200 may include: vertically arranging and displaying the identified table contents in a form file program.
  • the third step S200 may include: converting the identified form content into a form content supported by the text file program, and vertically arranging and displaying the text file program.
  • the table content in the form file can be displayed in the text file by converting the identified form content into the form content supported by the text file program.
  • the identified form content For example: Convert the tabular form in Excel to a tabular form supported by Word.
  • the user uses the text file program most, so the identified table contents are vertically arranged and displayed in the text file program, and Meet the needs of users to process the contents of the form through a text file program.
  • Solution 4 Convert the identified content of the table into a picture and arrange it vertically and display.
  • Each of the identified table contents can be converted into a picture, and when the form content is a picture, the conversion can be omitted. After all the table contents are converted into images, you can sort the positions of the images and arrange the images vertically and display them.
  • Solution 5 Convert the identified form content into a form file supported by the portable file format PDF program, and vertically arrange and display in the PDF program.
  • Portable Document Format (PDF) files are widely used, so it is also possible to convert the identified table contents into PDF format and then vertically arrange and display them.
  • the present application does not limit the above five manners.
  • the identified content may be vertically arranged and displayed in other manners.
  • the table file display method provided in this embodiment can identify the table content in the table file to vertically arrange the independent table area and the object, so that the number of the table contents is simultaneously displayed in the device of the smaller width screen.
  • the application displays more information on the screen at the same time, and the user feels good, and does not require the user to perform manual operations frequently to switch the displayed content. Compared with the prior art, the operation is simple and convenient to use.
  • the method may further include:
  • the format attribute of the independent table area may be a font attribute, a border attribute, a fill attribute, an alignment attribute, and the like.
  • the Cascading Style Sheet Language is a markup language for controlling web page styles and allowing style information to be separated from web page content. Use cascading style sheet language styles to control many properties that are only uncontrollable using HTML. The cascading style sheet language determines how the browser will describe the representation of HTML elements.
  • Step S220 may include:
  • the independent table area that converts the recognized picture, the converted picture, and the HTML data into a vertical arrangement in the webpage and uses the format attribute of the cascading style form language as a format attribute of the vertically arranged independent table area.
  • step S110 and step S210 may be various. Step S110 shown in FIG. 7 is performed first. Of course, step S210 may be performed first, or step S110 and step S210 may be performed simultaneously.
  • the embodiment shown in FIG. 7 can read the format attribute of the independent table area, convert it to the format attribute of the cascading style sheet language, and control the display of the vertically arranged independent table area using the converted format attribute.
  • the embodiment shown in Figure 7 can achieve a continuation of the display effect, thereby providing more information in the mobile terminal, and the displayed separate table area is also more aesthetically pleasing.
  • the present application further provides a form file display system.
  • the system may include: a reading module 100 and a display module 200.
  • a reading module 100 configured to read a form file, and identify a form content in the form file, wherein the form content includes an object and a separate form area, wherein the object includes at least at least a text box, a picture, and a chart One type;
  • the independent table area includes one or more cells whose contents are not empty, and when the plurality of cells in which the content is not empty is included in the independent table area, the independent table area is the plurality of a table area formed by enclosing the largest row, the smallest row, the largest column, and the smallest column in the row and column of the cell in the non-empty cell, and the outermost cell in the independent table region
  • the content of the cells outside the independent table area is empty.
  • the cell in the independent table area includes a cell whose content is not empty, the content of the cell connected to the independent table area is empty.
  • the reading module 100 may include: a traversal submodule, an extension submodule, and an identification submodule.
  • the traversing sub-module is configured to read a table file, traverse a cell in the table file, and when the content of a cell is determined to be not empty, the cell is used as a current cell;
  • the extension submodule is configured to mark the current cell as a cell in which the content in the independent table area is not empty, and traverse to a neighboring cell adjacent to the current cell that is not empty. a cell that performs the step by using the adjacent cell whose content is not empty as the current cell until the following condition is met: each cell adjacent to the current cell and located outside the independent table area The content is empty;
  • the identification sub-module is configured to enclose a maximum row, a minimum row, a maximum column, and a minimum column in a row and a column of a plurality of cells in a cell that is marked as a non-empty content in a separate table region
  • the formed table area is identified as a separate table area.
  • the display module 200 is configured to vertically arrange and display the identified table contents.
  • the display module 200 can have at least the following five forms of composition:
  • the display module 200 includes: a conversion submodule 210 and a first display submodule 220.
  • the conversion sub-module 210 is configured to convert the identified independent table area into hypertext markup language HTML data, and convert the identified object that is not a picture into a picture;
  • the first display sub-module 220 is configured to vertically display and display the recognized picture, the converted picture, and the independent table area converted into HTML data in the webpage.
  • the content of the form file in the computer needs to be format converted and converted into HTML data that the mobile terminal can display. Also, since the picture can be displayed in the HTML page, in order to display the recognized object in the mobile terminal, the object that is not the picture can be converted into a picture.
  • the second display module 200 includes: a second display submodule,
  • the second display sub-module is configured to vertically arrange and display the identified form content in a form file program.
  • the third display module 200 includes: a third display submodule,
  • the third display sub-module is configured to convert the identified table content into a table content supported by a text file program, and vertically arrange and display the text file program.
  • the fourth display module 200 includes: a fourth display sub-module, configured to convert the identified table content into a picture and vertically arrange and display;
  • the fifth display module 200 includes: a fifth display submodule, configured to: The contents of the table are converted into the contents of the table supported by the portable file format PDF program, which are vertically arranged and displayed in the PDF program.
  • the width of the screen of the mobile terminal is small, and the length is long relative to the width, so the vertically arranged display can make full use of the screen length of the mobile terminal, while reducing the content displayed in the horizontal direction, and improving the table content simultaneously displayed on the screen of the mobile terminal. Quantity.
  • the first display sub-module 220 may include: a selection sub-module and a vertical sub-module.
  • the selecting sub-module is configured to select the identified image, the converted image, and the independent table area converted into HTML data according to the top-to-bottom selection order, and the uppermost layer in the area occupied by the identified at least two table contents When the rows of the cells are the same, the same table contents of the row of the uppermost cell in the occupied area are selected in order from left to right;
  • the vertical sub-module is configured to vertically arrange and display the selected table contents in a webpage in a top-to-bottom order.
  • the first display submodule 220 may include: an insertion submodule and an alignment submodule.
  • the insertion sub-module is configured to vertically arrange the recognized picture, the converted picture, and the independent table area converted into HTML data in a webpage and insert a blank area between adjacent table contents;
  • the arranging sub-module is configured to display the vertically arranged table contents after inserting the blank area.
  • a blank area can be inserted to make the user easy to distinguish and the display effect is more beautiful.
  • the content of the table shown in FIG. 3 can be processed by the present application to obtain a display effect as shown in FIG. 6 in the mobile terminal.
  • the form file display system provided in this embodiment can identify the table contents in the form file to vertically arrange the independent form areas and the objects, so that the number of simultaneously displayed table contents in the device of the smaller width screen is increased.
  • the application displays more information on the screen at the same time, and the user feels good, and does not require the user to perform manual operations frequently to switch the displayed content. Compared with the prior art, the operation is simple and convenient to use.
  • another form file display system may further include: an attribute change module 300, configured to read at the reading module 100. After taking the form file, identifying the table content in the form file, reading the format attribute of the identified independent form area, and converting the read format attribute into a format attribute of the cascading style form language;
  • the first display sub-module 220 is specifically configured to: vertically arrange the recognized picture, the converted picture, and the independent table area converted into HTML data in a webpage and use the format attribute of the cascading style form language as A format attribute of the vertically arranged independent table areas, which displays the vertically arranged independent table areas having the format attributes of the cascading style sheet language.
  • the embodiment shown in FIG. 10 can read the format attribute of the independent table area, convert it to the format attribute of the cascading style sheet language, and control the display of the vertically arranged independent table area using the converted format attribute.
  • the embodiment shown in Fig. 10 can achieve a continuation of the display effect, thereby providing more information in the mobile terminal, and the displayed independent table area is also more beautiful.
  • the embodiment of the present application further provides a storage medium, which is used to store an application, and the application is used to execute a form file display method provided by an embodiment of the present application at runtime.
  • the method for displaying a form file provided by the embodiment of the present application may include:
  • the identified table contents are vertically arranged and displayed.
  • the step of vertically arranging and displaying the identified content of the table may include:
  • a separate table area in which the recognized picture, the converted picture, and the HTML data are converted is vertically arranged and displayed in the web page.
  • the step of vertically arranging and displaying the identified content of the table may be include:
  • the identified table contents are converted into table contents supported by the portable file format PDF program, and vertically arranged and displayed in the PDF program.
  • the step of vertically arranging and displaying the identified image, the converted image, and the independent table area converted into HTML data in the webpage may include:
  • the vertically arranged table contents after inserting the blank area are displayed in the web page.
  • the reading the form file and identifying the content of the form in the form file may include:
  • Reading the table file traversing the cells in the table file, and when determining that the content of a cell is not empty, the cell is used as the current cell;
  • the current cell Marking the current cell as a cell in which the content in the independent table area is not empty, traversing to an adjacent cell in a cell adjacent to the current cell that is not empty, the content is not
  • the empty adjacent cells are used as the current cell, and the steps are performed cyclically until the following conditions are met: the contents of each cell adjacent to the current cell and located outside the independent table area are empty;
  • the method may further include: after reading the form file and identifying the table content in the form file, the method may further include:
  • the step of vertically arranging and displaying the recognized picture, the converted picture, and the independent form area converted into HTML data in the webpage includes:
  • a separate table area that converts the recognized image, the converted image, and the HTML data into Vertically arranging in the web page and using the format attribute of the cascading style sheet language as a format attribute of the vertically arranged independent table area, displaying the vertically arranged independent table area having the format attribute of the cascading style form language .
  • the step of vertically arranging and displaying the identified image, the converted image, and the independent table area converted into HTML data in the webpage may include:
  • the embodiment of the present application further provides an application program for executing a form file display method provided by an embodiment of the present application at runtime.
  • the method for displaying a form file provided by the embodiment of the present application may include:
  • the identified table contents are vertically arranged and displayed.
  • the step of vertically arranging and displaying the identified content of the table may include:
  • a separate table area in which the recognized picture, the converted picture, and the HTML data are converted is vertically arranged and displayed in the web page.
  • the step of vertically arranging and displaying the identified content of the table may include:
  • the identified table contents are converted into table contents supported by the portable file format PDF program, and vertically arranged and displayed in the PDF program.
  • the step of vertically arranging and displaying the identified image, the converted image, and the independent table area converted into HTML data in the webpage may include:
  • the vertically arranged table contents after inserting the blank area are displayed in the web page.
  • the reading the form file and identifying the content of the form in the form file may include:
  • Reading the table file traversing the cells in the table file, and when determining that the content of a cell is not empty, the cell is used as the current cell;
  • the current cell Marking the current cell as a cell in which the content in the independent table area is not empty, traversing to an adjacent cell in a cell adjacent to the current cell that is not empty, the content is not
  • the empty adjacent cells are used as the current cell, and the steps are performed cyclically until the following conditions are met: the contents of each cell adjacent to the current cell and located outside the independent table area are empty;
  • the method may further include: after reading the form file and identifying the table content in the form file, the method may further include:
  • the step of vertically arranging and displaying the recognized picture, the converted picture, and the independent form area converted into HTML data in the webpage includes:
  • a vertically arranged independent table area having the format attributes of the cascading style sheet language is displayed.
  • the step of vertically arranging and displaying the identified image, the converted image, and the independent table area converted into HTML data in the webpage may include:
  • the embodiment of the present application further provides a user equipment, which may include:
  • processor a memory, a communication interface, and a bus
  • the processor, the memory, and the communication interface are connected by the bus and complete communication with each other;
  • the memory stores executable program code
  • the processor by reading the executable program code stored in the memory, runs a program corresponding to the executable program code for executing a form file display method provided by the embodiment of the present application at runtime.
  • the method for displaying a form file provided by the embodiment of the present application may include:
  • the identified table contents are vertically arranged and displayed.
  • the step of vertically arranging and displaying the identified content of the table may include:
  • a separate table area in which the recognized picture, the converted picture, and the HTML data are converted is vertically arranged and displayed in the web page.
  • the step of vertically arranging and displaying the identified content of the table may include:
  • the identified table contents are converted into table contents supported by the portable file format PDF program, and vertically arranged and displayed in the PDF program.
  • the step of vertically arranging and displaying the identified image, the converted image, and the independent table area converted into HTML data in the webpage may include:
  • the vertically arranged table contents after inserting the blank area are displayed in the web page.
  • the reading the form file and identifying the content of the form in the form file may include:
  • Reading the table file traversing the cells in the table file, and when determining that the content of a cell is not empty, the cell is used as the current cell;
  • the current cell Marking the current cell as a cell in which the content in the independent table area is not empty, traversing to an adjacent cell in a cell adjacent to the current cell that is not empty, the content is not
  • the empty adjacent cells are used as the current cell, and the steps are performed cyclically until the following conditions are met: the contents of each cell adjacent to the current cell and located outside the independent table area are empty;
  • the method may further include: after reading the form file and identifying the table content in the form file, the method may further include:
  • the step of vertically arranging and displaying the recognized picture, the converted picture, and the independent form area converted into HTML data in the webpage includes:
  • a vertically arranged independent table area having the format attributes of the cascading style sheet language is displayed.
  • the step of vertically arranging and displaying the identified image, the converted image, and the independent table area converted into HTML data in the webpage may include:

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例提供的表格文件显示方法及系统,可以识别表格文件中的表格内容将独立表格区域和对象进行竖向排列,使得在较小宽度屏幕的设备中同时显示表格内容数量提高。本申请在屏幕中同时显示的信息较多,用户使用感受良好,也不需要用户频繁的进行手动操作来切换所显示的内容,相对于现有技术而言操作简单,使用方便。

Description

表格文件显示方法及系统
本申请要求于2013年12月23日提交中国专利局、申请号为201310717820.8发明名称为“表格文件显示方法及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及设备显示技术领域,特别是涉及表格文件显示方法及系统。
背景技术
随着科技的发展,移动办公技术也走入了人们的生活。通过移动办公技术,用户可以在移动终端中打开办公软件,了解办公软件中所存储的内容。
办公软件所处理的一张表格文件页面中可以存放有多个表格,每个表格为一个独立表格区域,例如图1所示,一张表格文件页面中同时存放有附小一班的学生信息表001和附小二班的学生信息表002。由于表格文件中的内容一般在计算机等具有较大宽度屏幕的设备中进行编辑,因此很多时候所存放的多个表格是横向排列的。在这种情况下,当在手机等移动终端中打开表格文件时,由于移动终端的屏幕宽度较小,因此横向排列的多个表格无法在移动终端的屏幕中全部显示出来。这就需要用户拖动滑动条或按下特定按键来实现屏幕显示内容的滚动或切换,以帮助用户看到其他部分的内容。
但是这种方式需要用户多次进行手动操作,操作繁琐。同时,虽然可以通过操作看到各个表格,但是移动终端的屏幕中所同时显示出来表格数量较少,导致现有技术下屏幕同时显示的信息较少,也影响了用户的使用感受。当然,其他具有较小宽度屏幕的设备中也具有相同问题。
发明内容
本申请实施例的目的在于提供一种表格文件显示方法及系统,以实现在具有较小宽度屏幕的设备中显示更多表格内容的目的。
为达到上述目的,本申请实施例公开了一种表格文件显示方法,所述方法包括:
读取表格文件,识别所述表格文件中的表格内容,其中,所述表格内容包括对象及独立表格区域,其中,所述对象包括文本框、图片和图表中的至少一种;
将所识别的所述表格内容进行竖向排列并显示。
可选的,所述将所识别的所述表格内容进行竖向排列并显示的步骤,包括:
将所识别的独立表格区域转换为超文本标记语言HTML数据,将所识别的不为图片的对象转换为图片;
将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示。
可选的,所述将所识别的所述表格内容进行竖向排列并显示的步骤,包括:
将所识别的所述表格内容在表格文件程序中进行竖向排列并显示;
或者,将所识别的所述表格内容转换为文本文件程序所支持的表格内容,在文本文件程序中进行竖向排列并显示;
或者,将所识别的所述表格内容转换为图片并进行竖向排列并显示;
或者,将所识别的所述表格内容转换为便携式文件格式PDF程序所支持的表格内容,在PDF程序中进行竖向排列并显示。
可选的,所述将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示的步骤,包括:
将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并在相邻的表格内容之间插入空白区域;
对插入空白区域后的竖向排列的表格内容在所述网页中进行显示。
可选的,所述读取表格文件,识别所述表格文件中的表格内容,包 括:
读取表格文件,遍历所述表格文件中的单元格,当确定一单元格的内容不为空时,将该单元格作为当前单元格;
将所述当前单元格标记为独立表格区域中的内容不为空的单元格,遍历到与所述当前单元格相邻的单元格中内容不为空的相邻单元格,将所述内容不为空的相邻单元格作为当前单元格,循环执行本步骤,直至满足以下条件:与当前单元格相邻的、且位于所述独立表格区域外的各单元格的内容均为空;
将标记为独立表格区域中的内容不为空的单元格中最外围的多个单元格所属的行和列中的最大行、最小行、最大列和最小列包围形成的表格区域识别为独立表格区域。
可选的,在读取表格文件,识别所述表格文件中的表格内容后,所述方法还包括:
读取所识别出的独立表格区域的格式属性,将所读取的格式属性转换为层叠样式表单语言的格式属性;
所述将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示的步骤,包括:
将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并使用所述层叠样式表单语言的格式属性作为竖向排列的独立表格区域的格式属性,对具有所述层叠样式表单语言的格式属性的竖向排列的独立表格区域进行显示。
可选的,所述将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示的步骤,包括:
按照从上至下的选取顺序选取所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域,当所识别的至少两个表格内容所占区域中最上层单元格的所在行相同时,按照从左至右的顺序选取所占区域中最上层单元格的所在行相同的表格内容,将所选取的表格内容按照从上至下的顺序在网页中进行竖向排列并显示。
一种表格文件显示系统,所述系统包括:读取模块和显示模块,
所述读取模块,用于读取表格文件,识别所述表格文件中的表格内容,其中,所述表格内容包括对象及独立表格区域,其中,所述对象包括文本框、图片和图表中的至少一种;
所述显示模块,用于将所识别的所述表格内容进行竖向排列并显示。
可选的,所述显示模块包括:转换子模块和第一显示子模块,
所述转换子模块,用于将所识别的独立表格区域转换为超文本标记语言HTML数据,将所识别的不为图片的对象转换为图片;
所述第一显示子模块,用于将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示。
可选的,所述显示模块包括:第二显示子模块、第三显示子模块、第四显示子模块或第五显示子模块,
所述第二显示子模块,用于将所识别的所述表格内容在表格文件程序中进行竖向排列并显示;
所述第三显示子模块,用于将所识别的所述表格内容转换为文本文件程序所支持的表格内容,在文本文件程序中进行竖向排列并显示;
所述第四显示子模块,用于将所识别的所述表格内容转换为图片并进行竖向排列并显示;
所述第五显示子模块,用于将所识别的所述表格内容转换为便携式文件格式PDF程序所支持的表格内容,在PDF程序中进行竖向排列并显示。
可选的,所述第一显示子模块包括:插入子模块和排列子模块,
所述插入子模块,用于将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并在相邻的表格内容之间插入空白区域;
所述排列子模块,用于对插入空白区域后的竖向排列的表格内容在所述网页中进行显示。
可选的,所述读取模块包括:遍历子模块、扩展子模块和识别子模块,
所述遍历子模块,用于读取表格文件,遍历所述表格文件中的单元格,当确定一单元格的内容不为空时,将该单元格作为当前单元格;
所述扩展子模块,用于将所述当前单元格标记为独立表格区域中的内容不为空的单元格,遍历到与所述当前单元格相邻的单元格中内容不为空的相邻单元格,将所述内容不为空的相邻单元格作为当前单元格,循环执行本步骤,直至满足以下条件:与当前单元格相邻的、且位于所述独立表格区域外的各单元格的内容均为空;
所述识别子模块,用于将标记为独立表格区域中的内容不为空的单元格中最外围的多个单元格所属的行和列中的最大行、最小行、最大列和最小列包围形成的表格区域识别为独立表格区域。
可选的,还包括:属性改变模块,用于在所述读取模块读取表格文件,识别所述表格文件中的表格内容后,读取所识别出的独立表格区域的格式属性,将所读取的格式属性转换为层叠样式表单语言的格式属性;
所述第一显示子模块具体设置为:将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并使用所述层叠样式表单语言的格式属性作为竖向排列的独立表格区域的格式属性,对具有所述层叠样式表单语言的格式属性的竖向排列的独立表格区域进行显示。
可选的,所述第一显示子模块,包括:选取子模块和竖向子模块,
所述选取子模块,用于按照从上至下的选取顺序选取所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域,当所识别的至少两个表格内容所占区域中最上层单元格的所在行相同时,按照从左至右的顺序选取所占区域中最上层单元格的所在行相同的表格内容;
所述竖向子模块,用于将所选取的表格内容按照从上至下的顺序在网页中进行竖向排列并显示。
为达到上述目的,本申请实施例还提供了一种存储介质,其中,该存储介质用于存储应用程序,所述应用程序用于在运行时执行本申请所述的任一种表格文件显示方法。
为达到上述目的,本申请实施例还提供了一种应用程序,其中,该应用程序用于在运行时执行本申请所述的任一种表格文件显示方法。
为达到上述目的,本申请实施例还提供了一种用户设备,包括:
处理器、存储器、通信接口和总线;
所述处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;
所述存储器存储可执行程序代码;
所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于在运行时执行本申请所述的任一种表格文件显示方法。
本申请实施例提供的表格文件显示方法及系统,可以识别表格文件中的表格内容将独立表格区域和对象进行竖向排列,使得在较小宽度屏幕的设备中同时显示表格内容数量提高。本申请在屏幕中同时显示的信息较多,用户使用感受良好,也不需要用户频繁的进行手动操作来切换所显示的内容,相对于现有技术而言操作简单,使用方便。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为表格文件中的独立表格区域示意图;
图2为本申请实施例提供的一种表格文件显示方法的流程图;
图3为本申请实施例提供的表格文件中表格内容的示意图;
图4为本申请实施例提供的另一种表格文件显示方法中识别独立表格区域的流程图;
图5为本申请实施例提供的另一种表格文件显示方法中进行竖向排列和显示处理的流程图;
图6为本申请实施例提供的一种使用本申请的表格文件显示方法进行处理后得到的显示界面示意图;
图7为本申请实施例提供的另一种表格文件显示方法的流程图;
图8为本申请实施例提供的一种表格文件显示系统的结构示意图;
图9为本申请实施例提供的另一种表格文件显示系统中显示模块的结构示意图;
图10为本申请实施例提供的另一种表格文件显示系统的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
如图2所示,本申请实施例提供的一种表格文件显示方法,该方法可以包括:
S100、读取表格文件,识别所述表格文件中的表格内容,其中,所述表格内容包括对象及独立表格区域,其中,所述对象包括文本框、图片和图表中的至少一种;
表格文件可以输入输出、显示数据,也可以利用公式实现一些算法,因此成为了一种被广泛使用的办公软件。市场上的表格文件软件有多种,如:EXCEL,它是微软OFFICE软件中的组件,除此以外还有国产的金山WPS中的表格文件等。一个表格文件中的内容可以有多种,除去最基本的单元格外,还可以存在图片、文本框、图表、超链接、符号等对象。可以理解的是,剪切画也是一种图片,图表可以有多种形式,例如柱形图、饼图、折线图、面积图、散点图等。各对象在表格文件中都将占用一定的表格区域,该表格区域中包括有至少一个单元格。可以理解的是,各对象是彼此独立的,可自由拖动位置。
如图3所示,单元格003中的内容不为空且与单元格003相连接的单元格中的内容均为空,因此单元格003构成一个独立表格区域。相应的,图 3中的表格001由多个内容不为空的单元格组成,且与表格001中最外围单元格相连接的表格001外的单元格中的内容均为空,因此表格001构成一个独立表格区域。相应的,图3中的表格002也构成一个独立表格区域。图3中的图片004为独立的对象。
其中,所述独立表格区域中包括一个或多个内容不为空的单元格,在所述独立表格区域中包括多个内容不为空的单元格时,所述独立表格区域为所述多个内容不为空的单元格中最外围的单元格所属行和列中的最大行、最小行、最大列和最小列包围形成的表格区域,与所述独立表格区域中最外围单元格相连接的所述独立表格区域外的单元格的内容均为空,在所述独立表格区域中包括一个内容不为空的单元格时,与所述独立表格区域的相连接的单元格的内容均为空;
以图3中的表格001为例,表格001中内容不为空的单元格中最外围的单元格所述的行和列中的最大行为第8行,最小行为第4行,最大列为第F列,最小列为第C列,则最大行、最小行、最大列和最小列包围形成的表格区域也即如图3所示的表格001所覆盖的区域。
因此,在实际应用中,可以通过“单元格扩展”来确定独立表格区域中的所有内容不为空的单元格。“单元格扩展”的方式为:首先从表格文件页面中的第1行开始从左到右的遍历,如果没有发现存在内容不为空的单元格,则继续从左到右遍历第2行,以此类推,直至找到内容不为空的单元格,将该单元格作为独立表格区域中的单元格,进一步确定于该单元格相邻的单元格的内容是否不为空,将内容不为空的相邻单元格作为独立表格区域中的单元格,进一步确定与内容不为空的相邻单元格相邻的单元格的内容是否不为空,将内容不为空的单元格作为独立表格区域中的单元格……按照这样的方式遍历下去,直到与独立表格区域中的单元格相邻的独立表格区域外的单元格中的内容均为空时结束对该独立表格区域的遍历。
根据上述原理,本申请实施例提供一种识别表格文件中的表格内容的具体方法如图4所示,具体可以包括以下步骤:
S101、读取表格文件,遍历所述表格文件中的单元格,当确定一单 元格的内容不为空时,将该单元格作为当前单元格;
S102、将所述当前单元格标记为独立表格区域中的内容不为空的单元格,遍历到与所述当前单元格相邻的单元格中内容不为空的相邻单元格,将所述内容不为空的相邻单元格作为当前单元格,循环执行本步骤,直至满足以下条件:与当前单元格相邻的、且位于所述独立表格区域外的各单元格的内容均为空;
S103、将标记为独立表格区域中的内容不为空的单元格中最外围的多个单元格所属的行和列中的最大行、最小行、最大列和最小列包围形成的表格区域识别为独立表格区域。
仍以图3所示表格文件页面中的单元格003和表格001为例进行说明:
从单元格A1开始遍历第1行,第1行中的单元格的内容均为空;
遍历第2行,确定单元格D2的内容不为空,也即单元格003的内容不为空,进一步遍历与单元格D2相连接的单元格的内容,确定均为空,则识别单元格003为一个独立表格区域。
遍历第3行,第3行中的单元格的内容均为空;
遍历第4行,确定单元格C4的内容不为空,将单元格C4作为独立表格区域中的单元格,将单元格C4作为当前单元格,遍历当前单元格的相邻单元格;
确定单元格D4、单元格D5、单元格C5的内容不为空,将单元格D4、单元格D5、单元格C5作为独立表格区域中的单元格,将单元格D4、单元格D5、单元格C5作为当前单元格;
进一步遍历与D4、D5、C5这三个当前单元格相邻的单元格,确定单元格E4、E5、E5、D6、C6的内容不为空,将单元格E4、E5、E5、D6、C6作为独立表格区域中的单元格,将单元格E4、E5、E5、D6、C6作为当前单元格;
进一步遍历E4、E5、E5、D6、C6这五个当前单元格的相邻单元格,确定单元格F4、F5、F6、F7、E7、D7、C7中的内容不为空,将单元格F4、F5、F6、F7、E7、D7、C7作为独立表格区域中的单元格,将单元格F4、F5、F6、F7、E7、D7、C7作为当前单元格;
进一步遍历单元格F4、F5、F6、F7、E7、D7、C7这七个当前单元格的相邻单元格,确定单元格C8、D8、E8、F8中的内容不为空,将单元格C8、D8、E8、F8作为独立表格区域中的单元格,将单元格C8、D8、E8、F8作为当前单元格;
进一步遍历单元格C8、D8、E8、F8这四个当前单元格的相邻单元格,确定这四个当前单元格相邻的、且位于该独立表格区域外的各单元格的内容均为空,该独立表格区域的遍历结束,可以继续遍历剩余的单元格以遍历到其他独立表格区域,如表格002。
对于根据所遍历得到的表格1中的各内容不为空的单元格确定独立表格区域的过程,前述内容中已经以表格1为例进行了说明,不再赘述。
S200、将所识别的所述表格内容进行竖向排列并显示。
具体的,步骤S200的具体执行过程可以为如下五种方案中的任何一种:
方案一、如图5所示,步骤S200包括:步骤S210和步骤S220。
S210、将所识别的独立表格区域转换为超文本标记语言HTML数据,将所识别的不为图片的对象转换为图片;
为了使得计算机中的表格文件内容在移动终端中通过网页呈现出来,需要对表格文件内容进行格式转换,转换为移动终端可以显示的HTML数据。同样,由于图片可以在网页,也即HTML页面中显示,因此为了将识别的对象在移动终端中显示出来,可以将不为图片的对象转换为图片。
S220、将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示。
移动终端的屏幕的宽度较小,而长度相对于宽度较长,因此竖向排列显示可以充分利用移动终端的屏幕长度,同时减少横向显示的内容,提高在移动终端的屏幕中同时显示的表格内容数量。
具体的,可以按照从上至下的选取顺序选取所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域,当所识别的至少两个表格内容所占区域中最上层单元格的所在行相同时,按照从左至右的顺序选取所占区域中最上层单元格的所在行相同的表格内容,将所选取的表格 内容按照从上至下的顺序进行竖向排列并显示。
这样,在竖向排列时,首先在最上方排列表格文件中位于最上方的表格内容,例如图3所示的独立表格区域003,然后依次排列下方的表格内容。当有水平位置相同的两个表格内容时,首先排列左侧的表格内容。例如表格001和表格002,表格001位于表格002上方,最后排列图片004。
在实际应用中,步骤S220可以包括:
将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并在相邻的表格内容之间插入空白区域;
对插入空白区域后的竖向排列的表格内容在所述网页中进行显示。
为了不使竖向排列的表格内容混叠在一起影响用户分辨,可以插入空白区域,以使用户容易进行区分,显示效果也更加美观。具体的,图3所示的表格内容经本申请处理后可在移动终端中得到如图6所示的显示效果。
方案二、步骤S200可以包括:将所识别的所述表格内容在表格文件程序中进行竖向排列并显示。
可以理解的是,随着办公软件在移动终端上的应用,在手机等移动终端上打开表格文件程序(如Excel)、文本文件程序(如Word)等办公软件已成为现实。因此,将原有表格文件中的表格内容仍旧在表格文件程序中进行展示更有利于用户在移动终端中对表格内容的使用。具体的,可以复制所识别的表格内容并在新建立的工作表中进行排列和显示。当然,也可以直接在这些表格内容所在的原工作表中进行排列和显示,本申请不做限定。
方案三、步骤S200可以包括:将所识别的所述表格内容转换为文本文件程序所支持的表格内容,在文本文件程序中进行竖向排列并显示。
由于表格文件程序和文本文件程序之间的兼容性极强,因此将所识别的所述表格内容转换为文本文件程序所支持的表格内容就可以将表格文件中的表格内容在文本文件中进行展示。例如:将Excel中的表格形式转化为Word所支持的表格形式。用户对文本文件程序的使用最多,因此,将所识别的所述表格内容在文本文件程序中进行竖向排列并显示,可以 满足用户通过文本文件程序对表格内容进行处理的需求。
方案四、将所识别的所述表格内容转换为图片并进行竖向排列并显示。
可以将每一个所识别的表格内容均转换为图片,当表格内容为图片时,可以不进行转换。在所有表格内容均转换为图片后,可以对图片的位置进行整理,将各图片进行竖向排列并显示。
方案五、将所识别的所述表格内容转换为便携式文件格式PDF程序所支持的表格内容,在PDF程序中进行竖向排列并显示。
便携式文件格式(PDF,Portable Document Format)文件被人们广泛使用,因此还可以将所识别的表格内容转换为PDF格式,然后进行竖向排列和显示。
当然,本申请并不限定上述五种方式,在实际应用中,还可以使用其他方式对所识别的内容进行竖向排列和显示。
本实施例提供的表格文件显示方法,可以识别表格文件中的表格内容将独立表格区域和对象进行竖向排列,使得在较小宽度屏幕的设备中同时显示表格内容数量提高。本申请在屏幕中同时显示的信息较多,用户使用感受良好,也不需要用户频繁的进行手动操作来切换所显示的内容,相对于现有技术而言操作简单,使用方便。
在图5所示实施例的基础上,如图7所示,本申请实施例提供的另一种表格文件显示方法中,在步骤S100后,该方法还可以包括:
S110、读取所识别出的独立表格区域的格式属性,将所读取的格式属性转换为层叠样式表单语言的格式属性;
具体的,独立表格区域的格式属性可以为字体属性、边框属性、填充属性、对齐属性等。
层叠样式表单语言是用于控制网页样式并允许将样式信息与网页内容分离的一种标记性语言。使用层叠样式表单语言样式可以控制许多仅使用HTML无法控制的属性。层叠样式表单语言决定浏览器将如何描述HTML元素的表现形式。
步骤S220可以包括:
S221、将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并使用所述层叠样式表单语言的格式属性作为竖向排列的独立表格区域的格式属性;
S222、对具有所述层叠样式表单语言的格式属性的竖向排列的独立表格区域进行显示。
其中,步骤S110与步骤S210的执行顺序可以有多种,如图7所示的步骤S110先执行,当然,步骤S210也可以先执行,或者步骤S110与步骤S210同时执行。
图7所示实施例可以读取独立表格区域的格式属性,将其转换为层叠样式表单语言的格式属性,并使用转换得到的格式属性控制竖向排列的独立表格区域的显示。图7所示实施例可以实现显示效果的延续,从而在移动终端中提供更多信息,所显示的独立表格区域也更加美观。
与图2所示实施例相对应,本申请还提供了一种表格文件显示系统,如图8所示,该系统可以包括:读取模块100和显示模块200,
读取模块100,用于读取表格文件,识别所述表格文件中的表格内容,其中,所述表格内容包括对象及独立表格区域,其中,所述对象包括文本框、图片和图表中的至少一种;
其中,所述独立表格区域中包括一个或多个内容不为空的单元格,在所述独立表格区域中包括多个内容不为空的单元格时,所述独立表格区域为所述多个内容不为空的单元格中最外围的单元格所属行和列中的最大行、最小行、最大列和最小列包围形成的表格区域,与所述独立表格区域中最外围单元格相连接的所述独立表格区域外的单元格的内容均为空,在所述独立表格区域中包括一个内容不为空的单元格时,与所述独立表格区域的相连接的单元格的内容均为空。
其中,读取模块100可以包括:遍历子模块、扩展子模块和识别子模块,
所述遍历子模块,用于读取表格文件,遍历所述表格文件中的单元格,当确定一单元格的内容不为空时,将该单元格作为当前单元格;
所述扩展子模块,用于将所述当前单元格标记为独立表格区域中的内容不为空的单元格,遍历到与所述当前单元格相邻的单元格中内容不为空的相邻单元格,将所述内容不为空的相邻单元格作为当前单元格,循环执行本步骤,直至满足以下条件:与当前单元格相邻的、且位于所述独立表格区域外的各单元格的内容均为空;
所述识别子模块,用于将标记为独立表格区域中的内容不为空的单元格中最外围的多个单元格所属的行和列中的最大行、最小行、最大列和最小列包围形成的表格区域识别为独立表格区域。
显示模块200,用于将所识别的所述表格内容进行竖向排列并显示。
具体的,显示模块200可以至少有如下五种组成方式:
方式一、如图9所示,显示模块200包括:转换子模块210和第一显示子模块220,
转换子模块210,用于将所识别的独立表格区域转换为超文本标记语言HTML数据,将所识别的不为图片的对象转换为图片;
第一显示子模块220,用于将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示。
为了使得计算机中的表格文件内容在移动终端中呈现出来,需要对表格文件内容进行格式转换,转换为移动终端可以显示的HTML数据。同样,由于图片可以在HTML页面中显示,因此为了将识别的对象在移动终端中显示出来,可以将不为图片的对象转换为图片。
方式二、显示模块200包括:第二显示子模块,
所述第二显示子模块,用于将所识别的所述表格内容在表格文件程序中进行竖向排列并显示。
方式三、显示模块200包括:第三显示子模块,
所述第三显示子模块,用于将所识别的所述表格内容转换为文本文件程序所支持的表格内容,在文本文件程序中进行竖向排列并显示。
方式四、显示模块200包括:第四显示子模块,用于将所识别的所述表格内容转换为图片并进行竖向排列并显示;
方式五、显示模块200包括:第五显示子模块,用于将所识别的所述 表格内容转换为便携式文件格式PDF程序所支持的表格内容,在PDF程序中进行竖向排列并显示
移动终端的屏幕的宽度较小,而长度相对于宽度较长,因此竖向排列显示可以充分利用移动终端的屏幕长度,同时减少横向显示的内容,提高在移动终端的屏幕中同时显示的表格内容数量。
在本申请其他实施例中,第一显示子模块220可以包括:选取子模块和竖向子模块,
所述选取子模块,用于按照从上至下的选取顺序选取所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域,当所识别的至少两个表格内容所占区域中最上层单元格的所在行相同时,按照从左至右的顺序选取所占区域中最上层单元格的所在行相同的表格内容;
所述竖向子模块,用于将所选取的表格内容按照从上至下的顺序在网页中进行竖向排列并显示。
在本申请其他实施例中,第一显示子模块220可以包括:插入子模块和排列子模块,
所述插入子模块,用于将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并在相邻的表格内容之间插入空白区域;
所述排列子模块,用于对插入空白区域后的竖向排列的表格内容进行显示。
为了不使竖向排列的表格内容混叠在一起影响用户分辨,可以插入空白区域,以使用户容易进行区分,显示效果也更加美观。具体的,图3所示的表格内容经本申请处理后可在移动终端中得到如图6所示的显示效果。
本实施例提供的表格文件显示系统,可以识别表格文件中的表格内容将独立表格区域和对象进行竖向排列,使得在较小宽度屏幕的设备中同时显示表格内容数量提高。本申请在屏幕中同时显示的信息较多,用户使用感受良好,也不需要用户频繁的进行手动操作来切换所显示的内容,相对于现有技术而言操作简单,使用方便。
如图10所示,在图9所示实施例的基础上,本申请实施例提供的另一种表格文件显示系统,还可以包括:属性改变模块300,用于在所述读取模块100读取表格文件,识别所述表格文件中的表格内容后,读取所识别出的独立表格区域的格式属性,将所读取的格式属性转换为层叠样式表单语言的格式属性;
所述第一显示子模块220具体设置为:将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并使用所述层叠样式表单语言的格式属性作为竖向排列的独立表格区域的格式属性,对具有所述层叠样式表单语言的格式属性的竖向排列的独立表格区域进行显示。
图10所示实施例可以读取独立表格区域的格式属性,将其转换为层叠样式表单语言的格式属性,并使用转换得到的格式属性控制竖向排列的独立表格区域的显示。图10所示实施例可以实现显示效果的延续,从而在移动终端中提供更多信息,所显示的独立表格区域也更加美观。
相应的,本申请实施例还提供了一种存储介质,该存储介质用于存储应用程序,所述应用程序用于在运行时执行本申请实施例提供的一种表格文件显示方法。其中,本申请实施例提供的一种表格文件显示方法,可以包括:
读取表格文件,识别所述表格文件中的表格内容,其中,所述表格内容包括对象及独立表格区域,其中,所述对象包括文本框、图片和图表中的至少一种;
将所识别的所述表格内容进行竖向排列并显示。
其中,所述将所识别的所述表格内容进行竖向排列并显示的步骤,可以包括:
将所识别的独立表格区域转换为超文本标记语言HTML数据,将所识别的不为图片的对象转换为图片;
将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示。
其中,所述将所识别的所述表格内容进行竖向排列并显示的步骤,可以 包括:
将所识别的所述表格内容在表格文件程序中进行竖向排列并显示;
或者,将所识别的所述表格内容转换为文本文件程序所支持的表格内容,在文本文件程序中进行竖向排列并显示;
或者,将所识别的所述表格内容转换为图片并进行竖向排列并显示;
或者,将所识别的所述表格内容转换为便携式文件格式PDF程序所支持的表格内容,在PDF程序中进行竖向排列并显示。
其中,所述将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示的步骤,可以包括:
将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并在相邻的表格内容之间插入空白区域;
对插入空白区域后的竖向排列的表格内容在所述网页中进行显示。
其中,所述读取表格文件,识别所述表格文件中的表格内容,可以包括:
读取表格文件,遍历所述表格文件中的单元格,当确定一单元格的内容不为空时,将该单元格作为当前单元格;
将所述当前单元格标记为独立表格区域中的内容不为空的单元格,遍历到与所述当前单元格相邻的单元格中内容不为空的相邻单元格,将所述内容不为空的相邻单元格作为当前单元格,循环执行本步骤,直至满足以下条件:与当前单元格相邻的、且位于所述独立表格区域外的各单元格的内容均为空;
将标记为独立表格区域中的内容不为空的单元格中最外围的多个单元格所属的行和列中的最大行、最小行、最大列和最小列包围形成的表格区域识别为独立表格区域。
其中,在读取表格文件,识别所述表格文件中的表格内容后,所述方法还可以包括:
读取所识别出的独立表格区域的格式属性,将所读取的格式属性转换为层叠样式表单语言的格式属性;
所述将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示的步骤,包括:
将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在 网页中进行竖向排列并使用所述层叠样式表单语言的格式属性作为竖向排列的独立表格区域的格式属性,对具有所述层叠样式表单语言的格式属性的竖向排列的独立表格区域进行显示。
其中,所述将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示的步骤,可以包括:
按照从上至下的选取顺序选取所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域,当所识别的至少两个表格内容所占区域中最上层单元格的所在行相同时,按照从左至右的顺序选取所占区域中最上层单元格的所在行相同的表格内容,将所选取的表格内容按照从上至下的顺序在网页中进行竖向排列并显示。
本申请实施例还提供了一种应用程序,该应用程序用于在运行时执行本申请实施例提供的一种表格文件显示方法。其中,本申请实施例提供的一种表格文件显示方法,可以包括:
读取表格文件,识别所述表格文件中的表格内容,其中,所述表格内容包括对象及独立表格区域,其中,所述对象包括文本框、图片和图表中的至少一种;
将所识别的所述表格内容进行竖向排列并显示。
其中,所述将所识别的所述表格内容进行竖向排列并显示的步骤,可以包括:
将所识别的独立表格区域转换为超文本标记语言HTML数据,将所识别的不为图片的对象转换为图片;
将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示。
其中,所述将所识别的所述表格内容进行竖向排列并显示的步骤,可以包括:
将所识别的所述表格内容在表格文件程序中进行竖向排列并显示;
或者,将所识别的所述表格内容转换为文本文件程序所支持的表格内容,在文本文件程序中进行竖向排列并显示;
或者,将所识别的所述表格内容转换为图片并进行竖向排列并显示;
或者,将所识别的所述表格内容转换为便携式文件格式PDF程序所支持的表格内容,在PDF程序中进行竖向排列并显示。
其中,所述将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示的步骤,可以包括:
将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并在相邻的表格内容之间插入空白区域;
对插入空白区域后的竖向排列的表格内容在所述网页中进行显示。
其中,所述读取表格文件,识别所述表格文件中的表格内容,可以包括:
读取表格文件,遍历所述表格文件中的单元格,当确定一单元格的内容不为空时,将该单元格作为当前单元格;
将所述当前单元格标记为独立表格区域中的内容不为空的单元格,遍历到与所述当前单元格相邻的单元格中内容不为空的相邻单元格,将所述内容不为空的相邻单元格作为当前单元格,循环执行本步骤,直至满足以下条件:与当前单元格相邻的、且位于所述独立表格区域外的各单元格的内容均为空;
将标记为独立表格区域中的内容不为空的单元格中最外围的多个单元格所属的行和列中的最大行、最小行、最大列和最小列包围形成的表格区域识别为独立表格区域。
其中,在读取表格文件,识别所述表格文件中的表格内容后,所述方法还可以包括:
读取所识别出的独立表格区域的格式属性,将所读取的格式属性转换为层叠样式表单语言的格式属性;
所述将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示的步骤,包括:
将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并使用所述层叠样式表单语言的格式属性作为竖向排列的独立表格区域的格式属性,对具有所述层叠样式表单语言的格式属性的竖向排列的独立表格区域进行显示。
其中,所述将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示的步骤,可以包括:
按照从上至下的选取顺序选取所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域,当所识别的至少两个表格内容所占区域中最上层单元格的所在行相同时,按照从左至右的顺序选取所占区域中最上层单元格的所在行相同的表格内容,将所选取的表格内容按照从上至下的顺序在网页中进行竖向排列并显示。
本申请实施例还提供了一种用户设备,可以包括:
处理器、存储器、通信接口和总线;
所述处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;
所述存储器存储可执行程序代码;
所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于在运行时执行本申请实施例提供的一种表格文件显示方法。其中,本申请实施例提供的一种表格文件显示方法,可以包括:
读取表格文件,识别所述表格文件中的表格内容,其中,所述表格内容包括对象及独立表格区域,其中,所述对象包括文本框、图片和图表中的至少一种;
将所识别的所述表格内容进行竖向排列并显示。
其中,所述将所识别的所述表格内容进行竖向排列并显示的步骤,可以包括:
将所识别的独立表格区域转换为超文本标记语言HTML数据,将所识别的不为图片的对象转换为图片;
将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示。
其中,所述将所识别的所述表格内容进行竖向排列并显示的步骤,可以包括:
将所识别的所述表格内容在表格文件程序中进行竖向排列并显示;
或者,将所识别的所述表格内容转换为文本文件程序所支持的表格内容, 在文本文件程序中进行竖向排列并显示;
或者,将所识别的所述表格内容转换为图片并进行竖向排列并显示;
或者,将所识别的所述表格内容转换为便携式文件格式PDF程序所支持的表格内容,在PDF程序中进行竖向排列并显示。
其中,所述将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示的步骤,可以包括:
将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并在相邻的表格内容之间插入空白区域;
对插入空白区域后的竖向排列的表格内容在所述网页中进行显示。
其中,所述读取表格文件,识别所述表格文件中的表格内容,可以包括:
读取表格文件,遍历所述表格文件中的单元格,当确定一单元格的内容不为空时,将该单元格作为当前单元格;
将所述当前单元格标记为独立表格区域中的内容不为空的单元格,遍历到与所述当前单元格相邻的单元格中内容不为空的相邻单元格,将所述内容不为空的相邻单元格作为当前单元格,循环执行本步骤,直至满足以下条件:与当前单元格相邻的、且位于所述独立表格区域外的各单元格的内容均为空;
将标记为独立表格区域中的内容不为空的单元格中最外围的多个单元格所属的行和列中的最大行、最小行、最大列和最小列包围形成的表格区域识别为独立表格区域。
其中,在读取表格文件,识别所述表格文件中的表格内容后,所述方法还可以包括:
读取所识别出的独立表格区域的格式属性,将所读取的格式属性转换为层叠样式表单语言的格式属性;
所述将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示的步骤,包括:
将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并使用所述层叠样式表单语言的格式属性作为竖向排列的独立表格区域的格式属性,对具有所述层叠样式表单语言的格式属性的竖向排列的独立表格区域进行显示。
其中,所述将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示的步骤,可以包括:
按照从上至下的选取顺序选取所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域,当所识别的至少两个表格内容所占区域中最上层单元格的所在行相同时,按照从左至右的顺序选取所占区域中最上层单元格的所在行相同的表格内容,将所选取的表格内容按照从上至下的顺序在网页中进行竖向排列并显示。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。

Claims (17)

  1. 一种表格文件显示方法,其特征在于,所述方法包括:
    读取表格文件,识别所述表格文件中的表格内容,其中,所述表格内容包括对象及独立表格区域,其中,所述对象包括文本框、图片和图表中的至少一种;
    将所识别的所述表格内容进行竖向排列并显示。
  2. 根据权利要求1所述的方法,其特征在于,所述将所识别的所述表格内容进行竖向排列并显示的步骤,包括:
    将所识别的独立表格区域转换为超文本标记语言HTML数据,将所识别的不为图片的对象转换为图片;
    将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示。
  3. 根据权利要求1所述的方法,其特征在于,所述将所识别的所述表格内容进行竖向排列并显示的步骤,包括:
    将所识别的所述表格内容在表格文件程序中进行竖向排列并显示;
    或者,将所识别的所述表格内容转换为文本文件程序所支持的表格内容,在文本文件程序中进行竖向排列并显示;
    或者,将所识别的所述表格内容转换为图片并进行竖向排列并显示;
    或者,将所识别的所述表格内容转换为便携式文件格式PDF程序所支持的表格内容,在PDF程序中进行竖向排列并显示。
  4. 根据权利要求2所述的方法,其特征在于,所述将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示的步骤,包括:
    将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并在相邻的表格内容之间插入空白区域;
    对插入空白区域后的竖向排列的表格内容在所述网页中进行显示。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述读取表格文件,识别所述表格文件中的表格内容的步骤,包括:
    读取表格文件,遍历所述表格文件中的单元格,当确定一单元格的内容 不为空时,将该单元格作为当前单元格;
    将所述当前单元格标记为独立表格区域中的内容不为空的单元格,遍历到与所述当前单元格相邻的单元格中内容不为空的相邻单元格,将所述内容不为空的相邻单元格作为当前单元格,循环执行本步骤,直至满足以下条件:与当前单元格相邻的、且位于所述独立表格区域外的各单元格的内容均为空;
    将标记为独立表格区域中的内容不为空的单元格中最外围的多个单元格所属的行和列中的最大行、最小行、最大列和最小列包围形成的表格区域识别为独立表格区域。
  6. 根据权利要求2所述的方法,其特征在于,在读取表格文件,识别所述表格文件中的表格内容后,还包括:
    读取所识别出的独立表格区域的格式属性,将所读取的格式属性转换为层叠样式表单语言的格式属性;
    所述将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示的步骤,包括:
    将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并使用所述层叠样式表单语言的格式属性作为竖向排列的独立表格区域的格式属性,对具有所述层叠样式表单语言的格式属性的竖向排列的独立表格区域进行显示。
  7. 根据权利要求2所述的方法,其特征在于,所述将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示的步骤,包括:
    按照从上至下的选取顺序选取所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域,当所识别的至少两个表格内容所占区域中最上层单元格的所在行相同时,按照从左至右的顺序选取所占区域中最上层单元格的所在行相同的表格内容,将所选取的表格内容按照从上至下的顺序在网页中进行竖向排列并显示。
  8. 一种表格文件显示系统,其特征在于,所述系统包括:读取模块和显示模块,
    所述读取模块,用于读取表格文件,识别所述表格文件中的表格内容, 其中,所述表格内容包括对象及独立表格区域,其中,所述对象包括文本框、图片和图表中的至少一种;
    所述显示模块,用于将所识别的所述表格内容进行竖向排列并显示。
  9. 根据权利要求8所述的系统,其特征在于,所述显示模块包括:转换子模块和第一显示子模块,
    所述转换子模块,用于将所识别的独立表格区域转换为超文本标记语言HTML数据,将所识别的不为图片的对象转换为图片;
    所述第一显示子模块,用于将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并显示。
  10. 根据权利要求8所述的系统,其特征在于,所述显示模块包括:第二显示子模块、第三显示子模块、第四显示子模块或第五显示子模块,
    所述第二显示子模块,用于将所识别的所述表格内容在表格文件程序中进行竖向排列并显示;
    所述第三显示子模块,用于将所识别的所述表格内容转换为文本文件程序所支持的表格内容,在文本文件程序中进行竖向排列并显示;
    所述第四显示子模块,用于将所识别的所述表格内容转换为图片并进行竖向排列并显示;
    所述第五显示子模块,用于将所识别的所述表格内容转换为便携式文件格式PDF程序所支持的表格内容,在PDF程序中进行竖向排列并显示。
  11. 根据权利要求9所述的系统,其特征在于,所述第一显示子模块包括:插入子模块和排列子模块,
    所述插入子模块,用于将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并在相邻的表格内容之间插入空白区域;
    所述排列子模块,用于对插入空白区域后的竖向排列的表格内容在所述网页中进行显示。
  12. 根据权利要求8至11中任一项所述的系统,其特征在于,所述读取模块包括:遍历子模块、扩展子模块和识别子模块,
    所述遍历子模块,用于读取表格文件,遍历所述表格文件中的单元格, 当确定一单元格的内容不为空时,将该单元格作为当前单元格;
    所述扩展子模块,用于将所述当前单元格标记为独立表格区域中的内容不为空的单元格,遍历到与所述当前单元格相邻的单元格中内容不为空的相邻单元格,将所述内容不为空的相邻单元格作为当前单元格,循环执行本步骤,直至满足以下条件:与当前单元格相邻的、且位于所述独立表格区域外的各单元格的内容均为空;
    所述识别子模块,用于将标记为独立表格区域中的内容不为空的单元格中最外围的多个单元格所属的行和列中的最大行、最小行、最大列和最小列包围形成的表格区域识别为独立表格区域。
  13. 根据权利要求9所述的系统,其特征在于,还包括:属性改变模块,用于在所述读取模块读取表格文件,识别所述表格文件中的表格内容后,读取所识别出的独立表格区域的格式属性,将所读取的格式属性转换为层叠样式表单语言的格式属性;
    所述第一显示子模块具体设置为:将所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域在网页中进行竖向排列并使用所述层叠样式表单语言的格式属性作为竖向排列的独立表格区域的格式属性,对具有所述层叠样式表单语言的格式属性的竖向排列的独立表格区域进行显示。
  14. 根据权利要求9所述的系统,其特征在于,所述第一显示子模块,包括:选取子模块和竖向子模块,
    所述选取子模块,用于按照从上至下的选取顺序选取所识别的图片、转换得到的图片、转换为HTML数据的独立表格区域,当所识别的至少两个表格内容所占区域中最上层单元格的所在行相同时,按照从左至右的顺序选取所占区域中最上层单元格的所在行相同的表格内容;
    所述竖向子模块,用于将所选取的表格内容按照从上至下的顺序在网页中进行竖向排列并显示。
  15. 一种存储介质,其特征在于,所述存储介质用于存储应用程序,所述应用程序用于在运行时执行权利要求1至7中任一项所述的表格文件显示方法。
  16. 一种应用程序,其特征在于,所述应用程序用于在运行时执行 权利要求1至7中任一项所述的表格文件显示方法。
  17. 一种用户设备,其特征在于,包括:
    处理器、存储器、通信接口和总线;
    所述处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;
    所述存储器存储可执行程序代码;
    所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于在运行时执行权利要求1至7中任一项所述的表格文件显示方法。
PCT/CN2014/093817 2013-12-23 2014-12-15 表格文件显示方法及系统 WO2015096634A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310717820.8A CN104731813A (zh) 2013-12-23 2013-12-23 表格文件显示方法及系统
CN201310717820.8 2013-12-23

Publications (1)

Publication Number Publication Date
WO2015096634A1 true WO2015096634A1 (zh) 2015-07-02

Family

ID=53455710

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/093817 WO2015096634A1 (zh) 2013-12-23 2014-12-15 表格文件显示方法及系统

Country Status (2)

Country Link
CN (1) CN104731813A (zh)
WO (1) WO2015096634A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480269A (zh) * 2017-08-17 2017-12-15 网易无尾熊(杭州)科技有限公司 对象展示方法及系统、介质和计算设备
CN109325211A (zh) * 2018-08-07 2019-02-12 信利半导体有限公司 一种excel显示方法
CN109992751A (zh) * 2017-12-29 2019-07-09 珠海金山办公软件有限公司 表格对象的放大显示方法、装置、电子设备及存储介质
CN111259641A (zh) * 2020-01-15 2020-06-09 深圳震有科技股份有限公司 一种excel数据处理方法、终端及存储介质
CN111274781A (zh) * 2020-01-21 2020-06-12 北京三快在线科技有限公司 表格显示方法、装置、存储介质及电子设备
CN111444452A (zh) * 2020-02-21 2020-07-24 广州杰赛科技股份有限公司 网页页面的转换方法、装置及存储介质

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760353B (zh) * 2016-02-02 2018-08-07 锐达互动科技股份有限公司 在白板软件中导入Excel表格且不改变单元格文本格式的方法
CN105760352B (zh) * 2016-02-02 2018-07-20 锐达互动科技股份有限公司 导入选中的Excel表格行列排列方式到白板软件中的方法
CN106709032B (zh) * 2016-12-29 2019-12-20 深圳市华傲数据技术有限公司 抽取电子表格文档中结构化信息的方法及装置
CN107704444B (zh) * 2017-10-11 2021-03-16 远光软件股份有限公司 多栏多列表格的展示方法
CN109992759B (zh) * 2017-12-29 2023-12-01 珠海金山办公软件有限公司 表格对象编辑方法、装置、电子设备及存储介质
CN109992750B (zh) * 2017-12-29 2023-12-01 珠海金山办公软件有限公司 表格对象筛选方法、装置、电子设备及存储介质
CN109164999B (zh) * 2018-08-29 2022-03-08 郑州云海信息技术有限公司 一种表格自适应显示的方法、装置、设备及可读存储介质
CN112596650B (zh) * 2020-12-25 2022-12-20 维沃移动通信有限公司 图表处理方法、装置及电子设备
CN113268686B (zh) * 2021-05-25 2022-08-26 山东卓创资讯股份有限公司 一种信息中表格在app端多种浏览方式的处理方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5798759A (en) * 1996-12-31 1998-08-25 International Business Machines Corporation Method and apparatus for mobile device screen reformatting
CN1336603A (zh) * 2000-07-28 2002-02-20 西门子公司 输出表格的方法及所属的装置
CN1936882A (zh) * 2006-10-13 2007-03-28 北京北大方正电子有限公司 一种分页表格的数据处理方法及系统
CN101118563A (zh) * 2007-09-21 2008-02-06 金蝶软件(中国)有限公司 一种显示电子表格的方法和装置
CN102117269A (zh) * 2010-01-06 2011-07-06 佳能株式会社 对文档进行数字化的装置及方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100481088C (zh) * 2007-06-07 2009-04-22 北京大学 网页资源发布方法和发布系统
CN102457528A (zh) * 2010-10-19 2012-05-16 北京邮电大学 面向手机终端的自适应发布Web内容的方法与系统
CN103389969B (zh) * 2012-05-07 2016-02-24 腾讯科技(深圳)有限公司 一种用于移动终端预览pdf文件的方法、装置和系统
CN103384346B (zh) * 2012-12-28 2016-09-28 深圳海联讯科技股份有限公司 一种ppt文件处理的方法及装置
CN103279455B (zh) * 2013-06-28 2016-06-01 中国农业银行股份有限公司 电子表格的样式处理方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5798759A (en) * 1996-12-31 1998-08-25 International Business Machines Corporation Method and apparatus for mobile device screen reformatting
CN1336603A (zh) * 2000-07-28 2002-02-20 西门子公司 输出表格的方法及所属的装置
CN1936882A (zh) * 2006-10-13 2007-03-28 北京北大方正电子有限公司 一种分页表格的数据处理方法及系统
CN101118563A (zh) * 2007-09-21 2008-02-06 金蝶软件(中国)有限公司 一种显示电子表格的方法和装置
CN102117269A (zh) * 2010-01-06 2011-07-06 佳能株式会社 对文档进行数字化的装置及方法

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480269A (zh) * 2017-08-17 2017-12-15 网易无尾熊(杭州)科技有限公司 对象展示方法及系统、介质和计算设备
CN107480269B (zh) * 2017-08-17 2021-01-22 阿里巴巴(中国)有限公司 对象展示方法及系统、介质和计算设备
CN109992751A (zh) * 2017-12-29 2019-07-09 珠海金山办公软件有限公司 表格对象的放大显示方法、装置、电子设备及存储介质
CN109992751B (zh) * 2017-12-29 2023-12-01 珠海金山办公软件有限公司 表格对象的放大显示方法、装置、电子设备及存储介质
CN109325211A (zh) * 2018-08-07 2019-02-12 信利半导体有限公司 一种excel显示方法
CN111259641A (zh) * 2020-01-15 2020-06-09 深圳震有科技股份有限公司 一种excel数据处理方法、终端及存储介质
CN111259641B (zh) * 2020-01-15 2023-08-11 深圳震有科技股份有限公司 一种excel数据处理方法、终端及存储介质
CN111274781A (zh) * 2020-01-21 2020-06-12 北京三快在线科技有限公司 表格显示方法、装置、存储介质及电子设备
CN111444452A (zh) * 2020-02-21 2020-07-24 广州杰赛科技股份有限公司 网页页面的转换方法、装置及存储介质
CN111444452B (zh) * 2020-02-21 2023-06-23 广州杰赛科技股份有限公司 网页页面的转换方法、装置及存储介质

Also Published As

Publication number Publication date
CN104731813A (zh) 2015-06-24

Similar Documents

Publication Publication Date Title
WO2015096634A1 (zh) 表格文件显示方法及系统
CN105302550B (zh) 将页面转为版式数据流文件的方法及系统
US9785623B2 (en) Identifying a set of related visible content elements in a markup language document
US9111007B2 (en) Adaptive rendering of a webpage on an electronic display device
US9286390B2 (en) Presentation of rich search results in delineated areas
WO2013051218A1 (en) Information processing apparatus, method, and program
US20120210206A1 (en) Resizing an editable area in a web page
EA012487B1 (ru) Способ отображения данных в таблице
WO2015196822A1 (zh) 一种网页适应屏幕排版方法及装置
CN106610831B (zh) 网页截图方法和装置
WO2015078159A1 (zh) 网页显示方法及装置
CN110377285A (zh) 一种生成页面骨架屏的方法、装置及计算机设备
CN104915186B (zh) 一种制作页面的方法和装置
Kuhna et al. Semi-automated magazine layout using content-based image features
CN107562450A (zh) 一种地方志资源跨平台可视化方法
US20070162848A1 (en) Predictive styling
CN105630893A (zh) 一种组图标题的显示方法和装置
CN112416340A (zh) 基于草图的网页生成方法和系统
US20210073458A1 (en) Comic data display system, method, and program
JP2016045896A (ja) 表示制御装置、表示装置、プログラム、記録媒体
KR101368610B1 (ko) 전자책 환경에서 문단을 선택하기 위한 방법 및 시스템
Ciesielska Responsive web design–an explorative analysis from an aesthetic, functional and technical perspective
CN106649387B (zh) 一种显示信息的方法及装置
CN112445474B (zh) 长文本文件名的显示方法、存储介质
CN112328926B (zh) 基于网页的文字段落折叠展开方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14873319

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07.10.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14873319

Country of ref document: EP

Kind code of ref document: A1