# Patent

## Title
Enabling selection of an inferred schema part

## Abstract

Systems and/or methods (“tools”) are described that convert or present conversion problems for electronic documents. The tools may convert a generally unstructured electronic document to a generally structured electronic document using non-visual textual and layout information of the unstructured document. The tools can also present possible problems with this or other types of conversion. And the tools can enable a user to alter an electronic document's schema without altering its visual layout.

## Background
BACKGROUND
Currently, electronic documents are often converted from one type of document to another using the pre-converted electronic document's visual information. An Optical Character Recognition (OCR) process, for instance, scans a printed document or rasterizes an electronic copy of a document to gain this visual information. The OCR process then analyzes this visual information to determine the document's text, layout, and data-entry fields, which it uses to build an electronic document of another type.
But OCR and other current conversion processes are limited. They often build converted documents having static, limited functions. They often cannot effectively analyze electronic documents written in an unfamiliar human language. They often do not correctly recognize a document's data-entry fields. And they often do not inform a user about—or enable a user to fix—problems with the converted document.
SUMMARY
Systems and/or methods (“tools”) are described that convert or present conversion problems for electronic documents. The tools may convert a generally unstructured electronic document to a generally structured electronic document using non-visual textual and layout information of the unstructured document. The tools can also present possible problems with this or other types of conversion. And the tools can enable a user to alter an electronic document's schema without altering its visual layout.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 illustrates an exemplary operating environment in which various embodiments can operate.
FIG. 2 illustrates a visual representation of an exemplary pre-converted document.
FIG. 3 is an exemplary process for converting electronic documents using non-visual information.
FIG. 4 illustrates a rendering of an exemplary converted electronic document.
FIG. 5 illustrates a structured schema for the converted electronic document illustrated in FIG. 4.
FIG. 6 is an exemplary process for altering or assigning schemas for electronic documents having visual constructs capable of being governed by different schemas.
FIG. 7 illustrates an exemplary electronic document having two visual constructs.
FIG. 8 illustrates the visual constructs of FIG. 7 with an altered appearance but the same layout.
FIG. 9 is an exemplary process for presenting conversion problems.
FIG. 10 illustrates an exemplary user interface having a conversion problem region and a rendering region.
The same numbers are used throughout the disclosure and figures to reference like components and features.



DETAILED DESCRIPTION
Overview
The following document describes system(s) and/or method(s) (“tools”) capable of converting generally unstructured electronic documents to generally structured electronic documents using non-visual information. The tools may also present problems with this or other conversions, such as in a user interface correlating the problems and visual constructs associated with those problems. The tools may also enable a user to alter a schema of an electronic document's visual construct without altering the visual construct's layout.
Exemplary Operating Environment
Before describing the tools in detail, the following discussion of an exemplary operating environment is provided to assist the reader in understanding where and how the tools may be employed. The description provided below constitutes but one example and is not intended to limit application of the tools to any one particular operating environment.
FIG. 1 illustrates one such operating environment generally at 100 comprising a computer 102 having one or more processors 104 and computer-readable media 106. The processors are capable of accessing and/or executing the computer-readable media. The computer-readable media comprises or has access to a conversion module 108 capable of converting an electronic document having data not linked to a structured schema to an electronic document having data linked to a structured schema. The conversion module can comprise or have access to a translator 110 capable of converting an electronic document file format that has non-visual textual and layout information (e.g., .doc (Microsoft®) OfficeTM WordTM Document), .xls (Microsoft® OfficeTM ExcelTM Document), and .pdf (AdobeTM Portable Document Format)) into a markup language stream of textual and layout information (e.g., WordProcessingML (WordML) or HyperText Markup Language (HTML)).
The computer-readable media can also comprise or have access to an electronic document having data not linked to a structured schema. This electronic document is referred to as the pre-converted electronic document, marked in FIG. 1 at 112. The pre-converted electronic document is generally unstructured, such as by having at least some of its data not mapped to a structured schema, though it may have some data so mapped or structured. For example, a Microsoft® OfficeTM ExcelTM document having an ActiveX control or a WordPerfectTM document having a macro-governed control where the macro is associated with a structured schema are electronic documents that are generally unstructured but have some data mapped to a structured schema.
A converted electronic document is shown in FIG. 1 at 114. This converted electronic document is generally structured, having data mapped to a structured schema. Exemplary conversion processes for converting electronic document 112 to electronic document 114 are described in greater detail below.
Operating environment 100 also comprises a schema alteration module 116 and a problem presentation module 118. Each of these modules can be part of or separate from the conversion module and can operate independently or jointly with modules shown in FIG. 1. The schema alteration module enables a user to add, alter, and/or select between schemas capable of governing a same visual construct that enable different functionality. The problem presentation module presents problems, potential problems, conversions made with a low degree of confidence, and/or known conversion errors to a user.
FIG. 2 illustrates a visual representation of an exemplary pre-converted document 112. The pre-converted document is a WordTM document with fields and regions in which a user may input data. This document is shown with text followed by a colon and a carriage return at 202, text followed by an underline at 204, a set of multiple underlines at 206, two cells of a table at 208, a single cell with text at 210, a table having multiple rows at 212, text with brackets and about ten spaces in the brackets at 214, and multiple brackets preceding text and having no more than one space between pairs of brackets at 216.
Conversion
The following discussion describes exemplary ways in which elements of operating environment 100 may convert electronic documents using non-visual information.
In FIG. 3, an exemplary process 300 is shown illustrated as a series of blocks representing individual operations or acts performed by elements of the operating environment 100 of FIG. 1, such as conversion module 108. This and other processes disclosed herein may be implemented in any suitable hardware, software, firmware, or combination thereof, in the case of software and firmware, these processes represent a set of operations implemented as computer-executable instructions stored in computer-readable media 106 and executable by processor(s) 104.
Block 302 receives non-visual textual and layout information for an electronic document having data not linked to a structured schema, such as pre-converted electronic document 112. The electronic document can be received as a stream of markup language formatting information or otherwise. If the electronic document is received in another file format, optionally block 304 can translate the pre-converted electronic document's file format to a common format. For example, block 304 can receive one of many different types of file formats (e.g., WordML) and convert this format to a common format (e.g., HTML). If the common format is the same as the format received, block 304 does not convert it.
The textual and layout information is non-visual at least because it is not dependent on a rendering or visual representation of the electronic document. Optical character recognition processes, on the other hand, rely on a visual representation (whether printed, rasterized, or the like) to convert documents.
In the illustrated embodiment, conversion module 108 receives the pre-converted electronic document rendered in FIG. 2 as a stream of WordML. The stream of WordML for the text, colon, and space at 202 in FIG. 2 is:
<w:p>

    
    
        <w:r>
        
            <w:t>
            
                Name:
            
            
            </w:t>
        
        
        </w:r>
    
    


</w:p>
Block 306 recognizes one or more fields of the electronic document based on its non-visual textual and layout information. Block 306 may apply various rules to recognize fields using this non-visual information, examples of which are described below.
In the illustrated embodiment conversion module 108 applies seven rules. These rules are herein applied in order, one to seven, though other rules and orders may also be used.
The first rule analyzes non-visual textual and layout information to determine whether or not the electronic document has a short string of text (e.g., one to five characters) followed by a colon and one or more spaces. Here the first rule determines that the above WordML for the text, colon, and space at 202 in FIG. 2 indicates that the electronic document has a short string of text followed by a colon and one or more whitespace characters (spaces, tabs, or line breaks). The layout information of “<w:p>” and “</w:p>” indicates that the text, colon, and space are set off from other text in the electronic document. Based on this information, block 306 recognizes this portion of the electronic document as a single data-entry field.
This and other rules described below can recognize fields independent of the human language in the pre-converted electronic document. Here the word, colon, and space: “Name:” is used to determine a single data-entry field but could instead be of an arbitrary language or meaning. Thus, if the electronic document, instead of “Name: “, has “OΞPTΞ: “ or “:“, block 306 can still recognize a single data-entry field.
Other information can be associated with this recognized field. Here the single data-entry field has accompanying information of “Name: “ or “Name:”. Block 306 can indicate that this single data-entry field should be preceded by this text. Note that this text is an exact copy of the text from the data stream of WordML provided above. If it were instead “OΞPTΞ: “ or “: “, that text would instead be associated with the single data-entry field.
Block 308 infers a structured schema capable of governing a recognized field. It can do so based on the output of block 306, such as with an indication that a single data-entry field has been recognized, as well as with information associated with the recognized field.
Responsive to performing the first rule, conversion module 108 infers the following schema part:
<xsd:element name=“Name” type=“xsd:string”/>
The conversion module also creates related information for this and other rules, which provides information about the rendering (orientation, font type, color, and the like) of the schema part. The related information in eXtensible Stylesheet Language (XSL) for the above schema part is:















<font face=“Arial”>Name:</font>



<span style=“font-family: Arial; width:130px”



class=“xdTextBox”  hideFocus=“1”  title=“”



xd:binding=“my:Name”       tabIndex=“0”



xd:xctname=“plaintext” xd:CtrlId=“CTRL1”>



<xsl:value-of select=“my:Name”/>



</span>










Blocks 306 and 308 may be repeated for each rule. In so doing, a converted electronic document may be built piece-by-piece, with multiple fields or groups of fields mapped to multiple pieces of structured schema. The resulting converted electronic document 114 is rendered in FIG. 4. The converted electronic document is shown after all seven rules have been applied over the data stream of the pre-converted electronic document. The data-entry field generated above is shown at 402. This data-entry field is rendered by applying the above related information (in XSL) on the above XML-based structured schema. Note that data-entry field 402 appears very similar to that of the text 202 for the pre-converted electronic document 112 shown in FIG. 2. Here a WordTM document having a space for a user to write in his or her name has been converted to an electronic document enabling a user to input his or her name into a data-entry field mapped to a structured schema.
The second rule analyzes non-visual textual and layout information to determine whether or not the pre-converted electronic document has any combination of three or more of the follow characters:

    
    
        ( )/—
    
    


If the pre-converted document does, block 306 recognized these characters as a field. In one embodiment, if the total number of characters is three to 59, the conversion module recognizes a text field and if more than 60 characters, a long text (“rich text” or “memo”) field.
Here the second rule recognizes two fields based on the data stream received for pre-converted electronic document 112. The following WordML data stream is received:
<w:p>

    
    
        <w:r>
        
            <w:t>
        
        
    
    


Name——————

    
    
        
        
            </w:t>
        
        
        </w:r>
    
    


</w:p>
The second rule determines that the above WordML for the text and underline shown at 204 in FIG. 2 indicates that the pre-converted electronic document has a combination of between three and 59 underline characters. Based on this information, block 306 recognizes this portion of the electronic document as a single text data-entry field. The conversion module uses this recognized field and information associated with it (e.g., “Name”) to infer the following schema:
<xsd:element name=“Name” type=“xsd:string”/>
The conversion module also generates the following related information in XSL:















<font face=“Arial”>Name</font>



              <span style=“font-



family: Arial; ; width:14em” class=“xdTextBox”



hideFocus=“1”  title=“”  xd:binding=“my:Name”



tabIndex=“0”       xd:xctname=“plaintext”



xd:CtrlId=“CTRL2”>



                <xsl:value-of



select=“my:Name”/>



              </span>










The text data-entry field enabled by the above XML schema and XSL is rendered at 404. Note that text data-entry field 404 appears very similar to that of the text 204 for the pre-converted electronic document.
The second rule analyzes non-visual textual and layout information and finds another combination of characters “( ) / _ “, here the total number being greater than 60. In response the conversion module recognizes a rich text field.
The WordML from which the second rule recognized a rich text field is:












<w:p>


  <w:r>


    <w:t>


                              


                              


                              


                              


                              


                              


                           


    </w:t>


  </w:r>


</w:p>









The second rule determines that the above WordML for the underline shown at 206 in FIG. 2 indicates that the pre-converted electronic document has a combination of at least 60 underline characters. The conversion module uses this recognized field and information associated with it to infer the following schema:















<xsd:element   name=“field1”><xsd:complexType



mixed=“true”>



<xsd:sequence><xsd:any      minOccurs=“0”



maxOccurs=“unbounded”



namespace=“http://www.w3.org/1999/xhtml”



processContents=“lax”/>



</xsd:sequence>



</xsd:complexType>



</xsd:element>










The conversion module also generates the following related information in XSL:















<span  style=“font-family:  Arial;  ;  height:



50px;;width:100%”    class=“xdRichTextBox”



hideFocus=“1”  title=“”  xd:binding=“my:field1”



tabIndex=“0”      xd:xctname=“richtext”



xd:CtrlId=“CTRL3”>



<xsl:copy-of select=“my:field1/node( )”/>



</span>










The rich text data-entry field enabled by the above XML schema and XSL is rendered at 406. This enables a user to enter notes, text, and the like, similar to (or better than) what the user could do by writing on the lines shown at 206 in FIG. 2. By enabling entry of rich text, the user can enter tables, formatted text, and the like, which may not be possible in the pre-converted electronic document.
The third rule analyzes non-visual textual and layout information to determine whether or not the pre-converted electronic document has a table cell that is empty, has four borders, and does not have a dark background. If the pre-converted document does, block 306 recognized this field as a text data-entry field unless it has space for more than one line within the empty field. If so, block 306 recognizes it as a rich text data-entry field. The third rule is also capable of detecting a name for the field based on whether there is text in an adjacent (and thus non-empty) cell.
Here the third rule recognizes a text data-entry field based on data stream received for pre-converted electronic document 112. This rule, like the others, can analyze all of the data stream received, though only the following results in recognition of this field:
<w:tr>

    
    
        <w:tc>
        
            <w:tcPr>
            
                <w:tcW w:w=“1008” w:type=“dxa”/>
            
            
            </w:tcPr>
            <w:p>
            
                <w:r>
                
                    <w:t>
                    Name
                    </w:t>
                
                
                </w:r>
            
            
            </w:p>
        
        
        </w:tc>
        <w:tc>
        
            <w:tcPr>
            
                <w:tcW w:w=“7848” w:type=“dxa”/>
            
            
            </w:tcPr>
            <w:p/>
        
        
        </w:tc>
    
    


</w:tr>
Thus, the third rule determines that the above WordML for the text and cell shown at 208 in FIG. 2 indicates that the pre-converted electronic document has a text data-entry field. The conversion module uses this recognized field and information associated with it to infer the following schema at block 308:

    
    
        <xsd:element name=“Name” type=“xsd:string”/>
    
    


The conversion module also generates the following related information in  XSL:















<tr>



<td      style=“padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-



right:5.4pt;padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-










right:5.4pt;border-top:windowtext
0.5pt



solid;border-left:windowtext
0.5pt



solid;border-bottom:windowtext
0.5pt



solid;border-right:windowtext
0.5pt









solid;border-right:windowtext 0.5pt solid;”>



<div>



<font face=“Arial”>Name</font>



</div>



</td>



<td      style=“padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-



right:5.4pt;padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-










right:5.4pt;border-top:windowtext
0.5pt



solid;border-left:windowtext
0.5pt



solid;border-bottom:windowtext
0.5pt



solid;border-right:windowtext
0.5pt









solid;border-left:windowtext 0.5pt solid;”>



<div>



<span style=“font-family: Arial; ; width:100%”



class=“xdTextBox”  hideFocus=“1”  title=“”



xd:binding=“my:Name”       tabIndex=“0”



xd:xctname=“plaintext” xd:CtrlId=“CTRL4”>



<xsl:value-of select=“my:Name”/>



</span>



</div>



</td>



</tr>










The text data-entry field enabled by the above XML schema and XSL is rendered at 408.
The fourth rule analyzes the information to determine whether or not the pre-converted electronic document has a table cell that has a short piece of text, four borders, and a relatively large number of spaces or two or more lines. If the pre-converted document does, block 306 recognized this field as a text data-entry field with internally-oriented text.
The following data stream in WordML is received:
<w:tr>

    
    
        <w:tc>
        
            <w:tcPr>
            
                <w:tcW w:w=“8856” w:type=“dxa”/>
            
            
            </w:tcPr>
            <w:p>
            
                <w:r>
                
                    <w:t>
                    Name
                    </w:r>
                
                
                </w:r>
            
            
            </w:p>
            <w:p/>
        
        
        </w:tc>
    
    


</w:tr>
Based on this non-visual textual and layout information, the fourth rule determines that the single cell with text (shown at 210 in FIG. 2) indicates that the pre-converted electronic document has a text data-entry field.
The conversion module uses this recognized field and information associated with it to infer the following schema at block 308:
<xsd:element name=“Name” type=“xsd:string”/>
The conversion module also generates the following related information in XSL:















<tr>









<td









style=“padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-



right:5.4pt;padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-










right:5.4pt;border-top:windowtext
  0.5pt



solid;border-left:windowtext
  0.5pt



solid;border-bottom:windowtext
  0.5pt









solid;border-right:windowtext 0.5pt solid;”>



<div>



<font face=“Arial”>Name</font>



</div>



<div>



<font face=“Arial”> </font>



<span style=“; width:100%” class=“xdTextBox”



hideFocus=“1” title=“” xd:binding=“my:Name”



tabIndex=“0”      xd:xctname=“plaintext”



xd:CtrlId=“CTRL5”>



<xsl:value-of select=“my:Name”/>



</span>



</div>



</td>



</tr>










The text data-entry field enabled by the above XML schema and XSL is rendered at 410 in FIG. 4.
The fifth rule analyzes the information to determine whether or not the pre-converted electronic document has two or more rows of fields having a similar or same size, orientation, and content. If the pre-converted document does, block 306 recognizes these fields as a repeating table. Repeating tables may not be enabled in the pre-converted electronic document. Nonetheless, the conversion module may recognize a repeating table, thereby enabling different (and likely superior) functionality to that enabled by the pre-converted electronic document. A repeating table allows a user to insert multiple rows or columns of data into the schema. A user may, for instance, fill in a row, select to dynamically add another row, and fill it in too, and so forth. The fifth rule is one example of block 308 inferring structured schema from non-visual textual and layout information of an electronic document.
The following data stream in WordML is received:
<w: tbl>

    
    
        <w:tr>
        
            <w:tc>
            <w:tcPr>
            <w:tcW w:w=“1771” w:type=“dxa”/>
            </w:tcPr>
            
                <w:p>
                
                    <w:r>
                    <w t>
                    Date
                    </w:t>
                
                
                </w:r>
            
            
        
        
    
    


</w:p>

    
    
        </w:tc>
        <w:tc>
        <w:tcPr>
        <w:tcW w:w=“1771” w:type=“dxa”/>
        </w:tcPr>
        
            <w:p>
            
                <w:r>
                
                    <w:t>
                    Item
                    </w:t>
                
                
                </w:r>
            
            
        
        
    
    


</w:p>

    
    
        </w: tc>
        <w:tc>
        <w:tcPr>
        <w:tcW w:w=“1771” w:type=“dxa”/>
        </w:tcPr>
        
            <w:p>
            
                <w:r>
                
                    <w:t>
                    Quantity
                
                
                </w:t>
            
            
            </w:r>
        
        
    
    


</w:p>

    
    
        </w:tc>
        <w:tc>
        <w:tcPr>
        <w:tcW w:w=“1771” w:type=“dxa”/>
        </w:tcPr>
        
            <w:p>
            
                <w:r>
                
                    <w:t>
                    Price
                    </w:t>
                
                
                </w:r>
            
            
        
        
    
    


</w:p>

    
    
        </w:tc>
        <w: tc>
        <w:tcPr>
        <w:tcW w:w=“1772” w:type=“dxa”/>
        </w:tcPr>
        
            <w:p>
            
                <w:r>
                
                    <w:t>
                    Total Amount
                    21 /w:t>
                
                
                </w:r>
            
            
        
        
    
    


</w:p>

    
    
        </w:tc>
        </w:tr>
        <w:tr>
        <w:tc>
        <w:tcPr>
        <w:tcW w:w=“1771” w:type=“dxa”/>
        </w:tcPr>
        
            <w:p/>
        
        
        </w:tc>
        <w:tc>
        <w:tcPr>
        <w:tcW w:w=“1771” w:type=“dxa”/>
        </w:tcPr>
        
            <w:p/>
        
        
        </w:tc>
        <w:tc>
        <w:tcPr>
        <w:tcW w:w=“1771” w:type=“dxa”/>
        </w:tcPr>
        
            <w:p/>
        
        
        </w:tc>
        <w:tc>
        <w:tcPr>
        <w:tcW w:w=“1771” w:type=“dxa”/>
        </w:tcPr>
        
            <w:p/>
        
        
        </w:tc>
        <w:tc>
        <w:tcPr>
        <w:tcW w:w=“1772” w:type=“dxa”/>
        </w:tcPr>
        
            <w:p/>
        
        
        </w:tc>
    
    


</w:tr>
<w:tr>

    
    
        <w:tc>
        <w:tcPr>
        <w:tcW w:w=“1771” w:type=“dxa”/>
        </w:tcPr>
        
            <w :p/>
        
        
        </w:tc>
        <w:tc>
        <w:tcPr>
        <w:tcW w:w=“1771” w:type=“dxa”/>
        </w:tcPr>
        
            <w:p/>
        
        
        </w:tc>
        <w:tc>
        <w:tcPr>
        <w:tcW w:w=“1771” w:type=“dxa”/>
        </w:tcPr>
        
            <w:p/>
        
        
        </w:tc>
        <w:tc>
        <w:tcPr>
        <w:tcW w:w=“1771” w:type=“dxa”/>
        </w:tcPr>
        
            <w:p/>
        
        
        </w:tc>
        <w:tc>
        <w:tcPr>
        <w:tcW w:w=“1772” w:type=“dxa”/>
        </w:tcPr>
        
            <w:p/>
        
        
        </w:tc>
        </w:tr>
    
    


</w:tbl>
Based on this non-visual textual and layout information, the fifth rule determines that the table with multiple rows (shown at 212 in FIG. 2) indicates that the pre-converted electronic document has a table recognizable as a repeating table. The conversion module uses this recognized repeating table and information associated with it (“Date”, “Item”, and etc.) to infer the following schema at block 308:















<xsd:element name=“group1”>



<xsd:complexType>



<xsd:sequence>



<xsd:element  ref=“my:group2”  minOccurs=“0”



maxOccurs=“unbounded”/>



</xsd:sequence>



</xsd:complexType>



</xsd:element>



<xsd:element name=“group2”>



<xsd:complexType>



<xsd:sequence>



<xsd:element ref=“my:field3” minOccurs=“0”/>



<xsd:element ref=“my:field4” minOccurs=“0”/>



<xsd:element ref=“my:field5” minOccurs=“0”/>



<xsd:element ref=“my:field6” minOccurs=“0”/>



<xsd:element ref=“my:field7” minOccurs=“0”/>



</xsd:sequence>



</xsd:complexType>



</xsd:element>










The conversion module also generates the following related information in XSL:















<table  class=“xdLayout   xdRepeatingTable”



style=“border-right:  none;  table-layout:



fixed; border-top: none; border-left: none;



border-bottom:   none;   border-collapse:



collapse;  word-wrap:  break-word;  border-










top:windowtext    0.5pt
  solid;border-



left:windowtext    0.5pt
  solid;border-



bottom:windowtext    0.5pt
  solid;border-









right:windowtext 0.5pt solid;width: 442.8pt;”



border=“1” xd:CtrlId=“CTRL6”>









<colgroup>



  <col









style=“width:88.55pt”></col>









  <col









style=“width:88.55pt”></col>









  <col









style=“width:88.55pt”></col>









  <col









style=“width:88.55pt”></col>









  <col









style=“width:88.6pt”></col>









</colgroup>



<tbody









class=“xdTableHeader”>









  <tr>



    <td









style=“padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-



right:5.4pt;padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-










right:5.4pt;border-top:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-right:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt









solid;border-right:windowtext 0.5pt solid;”>



  <div>



  <font face=“Arial”>Date</font>



  </div>









    </td>



    <td









style=“padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-



right:5.4pt;padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-










right:5.4pt;border-top:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-right:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt









solid;border-right:windowtext 0.5pt solid;”>



  <div>



  <font face=“Arial”>Item</font>



  </div>









    </td>



    <td









style=“padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-



right:5.4pt;padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-










right:5.4pt;border-top:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-right:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt









solid;border-right:windowtext 0.5pt solid;”>



  <div>



  <font face=“Arial”>Quantity</font>



  </div>









    </td>



    <td









style=“padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-



right:5.4pt;padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-










right:5.4pt;border-top:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-right:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt









solid;border-right:windowtext 0.5pt solid;”>



  <div>



  <font face=“Arial”>Price</font>



  </div>









    </td>



    <td









style=“padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-



right:5.4pt;padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-










right:5.4pt;border-top:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-right:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt









solid;border-left:windowtext 0.5pt solid;”>



  <div>



  <font face=“Arial”>Total Amount</font>



  </div>









    </td>



  </tr>



</tbody>



<tbody









xd:xctname=“repeatingtable”><xsl:for-each



select=“my:group1/my:group2”>









    <tr>



      <td









style=“padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-



right:5.4pt;padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-










right:5.4pt;border-top:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-right:windowtext
      0.5pt



solid;border-top:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt









solid;border-right:windowtext 0.5pt solid;”>



  <div>



  <span  style=“font-family:  Arial;  ;



width:100%”  class=“xdTextBox”  hideFocus=“1”



title=“” xd:binding=“my:field3” tabIndex=“0”



xd:xctname=“plaintext” xd:CtrlId=“CTRL7”>



    <xsl:value-of select=“my:field3”/>



  </span>



  </div>



  </td>









      <td









style=“padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-



right:5.4pt;padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-










right:5.4pt;border-top:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-right:windowtext
      0.5pt



solid;border-top:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt









solid;border-right:windowtext 0.5pt solid;”>



  <div>



  <span  style=“font-family:  Arial;  ;



width:100%”  class=“xdTextBox”  hideFocus=“1”



title=“” xd:binding=“my:field4” tabIndex=“0”



xd:xctname=“plaintext” xd:CtrlId=“CTRL8”>



    <xsl:value-of select=“my:field4”/>



  </span>



  </div>



  </td>









      <td









style=“padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-



right:5.4pt;padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-










right:5.4pt;border-top:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-right:windowtext
      0.5pt



solid;border-top:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt









solid;border-right:windowtext 0.5pt solid;”>



  <div>



  <span  style=“font-family:  Arial;  ;



width:100%”  class=“xdTextBox”  hideFocus=“1”



title=“” xd:binding=“my:field5” tabIndex=“0”



xd:xctname=“plaintext” xd:CtrlId=“CTRL9”>



    <xsl:value-of select=“my:field5”/>



  </span>



  </div>



  </td>









      <td









style=“padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-



right:5.4pt;padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-










right:5.4pt;border-top:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-right:windowtext
      0.5pt



solid;border-top:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt









solid;border-right:windowtext 0.5pt solid;”>



  <div>



  <span  style=“font-family:  Arial;  ;



width:100%”  class=“xdTextBox”  hideFocus=“1”



title=“” xd:binding=“my:field6” tabIndex=“0”



xd:xctname=“plaintext” xd:CtrlId=“CTRL10”>



    <xsl:value-of select=“my:field6”/>



  </span>



  </div>



  </td>









      <td









style=“padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-



right:5.4pt;padding-top:0pt;padding-



left:5.4pt;padding-bottom:0pt;padding-










right:5.4pt;border-top:windowtext
      0.5pt



solid;border-left:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt



solid;border-right:windowtext
      0.5pt



solid;border-top:windowtext
      0.5pt



solid;border-bottom:windowtext
      0.5pt









solid;border-left:windowtext 0.5pt solid;”>



  <div>



  <span  style=“font-family:  Arial;  ;



width:100%”  class=“xdTextBox”  hideFocus=“1”



title=“” xd:binding=“my:field7” tabIndex=“0”



xd:xctname=“plaintext” xd:CtrlId=“CTRL11”>



    <xsl:value-of select=“my:field7”/>



  </span>



  </div>



  </td>









    </tr>



  </xsl:for-









each></tbody>



               </table>










The repeating table enabled by the above XML schema and XSL is rendered at 412 in FIG. 4. Names or titles for rows and columns of a repeating table can also be generated. Column names are shown at 412.
The sixth rule analyzes the information to determine whether or not the pre-converted electronic document has open and close brackets with a space or line between them. If more than one space or a line, the rule recognizes it as a text box. If more than 60 spaces or two lines, it recognizes it as a rich text box. Thus, if the text with brackets shown at 214 had 60 spaces instead of about 10, the sixth rule can recognize it as a rich text box, after which the conversion module can enable a rich text data-entry field similar to that of 406 shown in FIG. 4. If no more than one space resides between the brackets, the sixth rule recognizes it as a check box.
The following WordML is received for the pre-converted electronic document 112:
<w:p>

    
    
        <w:r>
        
            <w:t>
        
        
    
    


Name [ ]

    
    
        
        
            </w:t>
        
        
        </w:r>
    
    


</w:p>
Based on this non-visual textual and layout information, the sixth rule determines that the text with brackets having about ten spaces (shown at 214 in FIG. 2) indicates that the pre-converted electronic document has a textbox field. The conversion module uses this recognized field and related information about it to infer the following schema at block 308:
<xsd:element name=“Name” type=“xsd:string”/>
The conversion module also generates the following related information in XSL:















<font face=“Arial”>Name </font>



            <span   style=“font-



family: Arial;  ; width:8em” class=“xdTextBox”



hideFocus=“1”  title=“”  xd:binding=“my:Name”



tabIndex=“0”     xd:xctname=“plaintext”



xd:CtrlId=“CTRL12”>



           <xsl:value-of



select=“my:Name”/>



          </span>










The textbox field enabled by the above XML schema and XSL is rendered at 414 in FIG. 4.
The sixth rule also finds a group of two checkboxes. The following WordML is received:
<w:p>

    
    
        <w:r>
        
            <w:t>
            
                [ ] Yes
            
            
            </w:t>
        
        
        </w:r>
    
    


<w:p>
<w:p>

    
    
        <w:r>
        
            <w:t>
            
                [ ] No
            
            
            </w:t>
        
        
        </w:r>
    
    


</w:p>
Based on this information, the sixth rule determines that the text with brackets having one space (shown at 216 in FIG. 2) indicates that the pre-converted electronic document has two checkbox fields.
The conversion module uses these recognized fields and related information about them to infer the following schema at block 308:















<xsd:element   name=“Yes”   nillable=“true”



type=“xsd:boolean”/>



<xsd:element   name=“No”   nillable=“true”



type=“xsd:boolean”/>










The conversion module also generates the following related information in XSL:















<div>



<input   style=“font-family:   Arial;   ;



width:auto”   class=“xdBehavior_Boolean”



title=“”  type=“checkbox”  xd:binding=“my:Yes”



tabIndex=“0”      xd:xctname=“checkbox”



xd:CtrlId=“CTRL13”   xd:boundProp=“xd:value”



xd:offValue=“false” xd:onValue=“true”>



<xsl:attribute name=“value”>



<xsl:value-of select=“my:Yes”/>



</xsl:attribute>



<xsl:if test=“my:Yes="true"”>



<xsl:attribute



name=“CHECKED”>CHECKED</xsl:attribute>



</xsl:if>



<font face=“Arial”> Yes</font>



</div>



<div>



<input   style=“font-family:   Arial;   ;



width:auto”    class=“xdBehavior_Boolean”



title=“”  type=“checkbox”  xd:binding=“my:No”



tabIndex=“0”      xd:xctname=“checkbox”



xd:CtrlId=“CTRL14” xd:boundProp=“xd:value”



xd:offValue=“false” xd:onValue=“true”>



<xsl:attribute name=“value”>



<xsl:value-of select=“my:No”/>



</xsl:attribute>



<xsl:if test=“my:No="true"”>



<xsl:attribute



name=“CHECKED”>CHECKED</xsl:attribute>



</xsl:if>



<font face=“Arial”> No</font>



      </div>










The checkbox fields enabled by the above XML schema and XSL are rendered at 416 in FIG. 4. Rules one through six can be applied to many different types of electronic documents, such as Microsoft® OfficeTM WordTM, WordPerfectTM, Microsoft® OfficeTM ExcelTM, and AdobeTM AcrobatTM documents. The tools also comprise rules directed to particular types of electronic documents. In some situations, a particular type of document has non-visual textual and layout information specific to its type. WordTM documents, for instance, have form fields. To recognize these form fields a seventh rule can be applied.
The exemplary seventh rule analyzes non-visual textual and layout information to determine whether or not the pre-converted electronic document has a form field. WordML, for instance, can indicate that a form field is present in the pre-converted electronic document. Based on this indication, block 306 recognizes a text data-entry field. Block 308, similarly to as set forth above, infers a schema and associated information for that field.
Form fields, like many fields in electronic documents, may be very difficult or impossible to recognize visually. A form field in WordTM, for instance, may be represented visually by a blank region without borders or other visual indicators by which an optical recognizer may be unable to recognize the form field.
After one or more pieces of schema and related information are created at block 308, block 310 builds a converted electronic document. It may do so piece-by-piece (i.e., as each new piece of schema is inferred) or at once. For the exemplary pre-converted electronic document 112 described above, conversion module 108 builds a hierarchical, structured schema governing the converted electronic document.
FIG. 5 illustrates this hierarchical, structured schema for the exemplary converted electronic document at 500. The fields rendered in FIG. 4 at 402, 404, 406, 408, 410, 412, 414, and 416 map to schema illustrated at 502, 504, 506, 508, 510, 512, 514, and 516a and 516b, respectively. Note that the structured schema 512 for the repeating table shown at 412 permits an arbitrary number of rows for table 212 of the pre-converted electronic document. The structure of schema 512 is illustrated in part with six nodes subordinate to the repeating table (group 1) node 518. A container node is shown at 520, with five field nodes at 522, 524, 526, 528, and 530. The container node may be repeated an arbitrary number of times along with its subordinate field nodes for a particular instance of the converted electronic document.
Visual Constructs and Governing Schemas
The tools may alter or assign schemas for electronic documents having visual constructs capable of being governed by different schemas. The following discussion describes the tools in the context of operating environment 100, though other environments may be used.
FIG. 6 shows an exemplary process 600 illustrated as a series of blocks representing individual operations or acts performed by elements of the operating environment 100 of FIG. 1, such as schema alteration module 116. The tools may perform this process following block 306, 308, or 310 of FIG. 3. The tools may also perform this process with an electronic document received from an outside source, such as a third-party optical-recognition application. The electronic document received does not have to conform to a particular type or format other than having, or that may be altered to have, a visual construct capable of being governed by different schemas.
Block 602 receives an electronic document having a visual construct capable of being governed by different schemas. This visual construct can be a box, like a data-entry field, a table, like the tables shown in FIGS. 2 and 4, and the like. The electronic document does not have to include a schema governing its visual construct, or may instead be received with one or more schemas capable of governing its visual construct (e.g., by block 308 inferring schema for both a rich text data-entry field and a simple text data-entry field for a box-looking visual construct).
Block 604 presents the visual constructs of the electronic document.
In an illustrated embodiment, an electronic document is received having two visual constructs, each governed by a schema part. Here block 604 renders the visual constructs by transforming their schemas. FIG. 7 illustrates the rendering of an exemplary electronic document 702 having a first visual construct (a table 704) having four rows of four cells and a second visual construct (two small boxes 706).
The schema governing table 704 is non-structural, such that the table has a fixed number of cells. This schema is not capable of permitting a user to dynamically alter the number of cells in the table. This schema is:















<xsd:element name=“myFields”>



   <xsd:complexType>



     <xsd:sequence>



       <xsd:element ref=“my:Total1”



minOccurs=“0”/>



       <xsd:element ref=“my:ItemNo1”



minOccurs=“0”/>



       <xsd:element ref=“my:Price1”



minOccurs=“0”/>



       <xsd:element ref=“my:Quantity1”



minOccurs=“0”/>



       <xsd:element ref=“my:ItemNo2”



minOccurs=“0”/>



       <xsd:element ref=“my:Price2”



minOccurs=“0”/>



       <xsd:element ref=“my:Quantity2”



minOccurs=“0”/>



       <xsd:element ref=“my:Total2”



minOccurs=“0”/>



       <xsd:element ref=“my:ItemNo3”



minOccurs=“0”/>



       <xsd:element ref=“my:Price3”



minOccurs=“0”/>



       <xsd:element ref=“my:Quantity3”



minOccurs=“0”/>



       <xsd:element ref=“my:Total3”



minOccurs=“0”/>



     </xsd:sequence>



     <xsd:anyAttribute processContents=“lax”



namespace=“http://www.w3.org/XML/1998/namespace”/>



   </xsd:complexType>



</xsd:element>










After conversion, the schema is: 
















<xsd:element name=“group1”>



   <xsd:complexType>



    <xsd:sequence>



     <xsd:element ref=“my:group2”



minOccurs=“0” maxOccurs=“unbounded”/>



    </xsd:sequence>



   </xsd:complexType>



  </xsd:element>



  <xsd:element name=“group2”>



   <xsd:complexType>



    <xsd:sequence>



     <xsd:element ref=“my:ItemNo1”



minOccurs=“0”/>



     <xsd:element ref=“my:Price1”



minOccurs=“0”/>



     <xsd:element ref=“my:Quantity1”



minOccurs=“0”/>



     <xsd:element ref=“my:Total1”



minOccurs=“0”/>



    </xsd:sequence>



   </xsd:complexType>



  </xsd:element>










XSL for the repeating table is:













<table class=“xdLayout xdRepeatingTable” style=“BORDER-


RIGHT: medium none; TABLE-LAYOUT: fixed; BORDER-TOP:


medium none; BORDER-LEFT: medium none; WIDTH: 652px;


BORDER-BOTTOM: medium none; BORDER-COLLAPSE:


collapse; WORD-WRAP: break-word” border=“1”


xd:CtrlId=“CTRL13”>









<colgroup>









<col


style=“WIDTH: 163px”></col>



<col


style=“WIDTH: 163px”></col>



<col


style=“WIDTH: 163px”></col>



<col








style=“WIDTH: 163px”></col>




</colgroup>



<tbody








class=“xdTableHeader”>




<tr>









<td>









<div>









<font face=“Verdana” size=“2”>Item No.</font>









</div>









</td>



</td>











<div>



<font face=“Verdana” size=“2”>Price</font>




</div>









</td>



<td>











<div>



<font face=“Verdana” size=“2”>Quantity</font>




</div>









</td>



</td>











<div>



<font face=“Verdana” size=“2”>Total</font>




</div>









</td>









</tr>









</tbody><tbody







vAlign=“top” xd:xctname=“repeatingtable”>









<xsl:for-each







select=“my:group1/my:group2”>









<tr>









<td>









<div>



<font face=“Verdana” size=“2”><span class=“xdTextBox”







hideFocus=“1” title=“” tabIndex=“0” xd:binding=“my:ItemNo1”


xd:CtrlId=“CTRL2” xd:xctname=“PlainText” style=“WIDTH:


100%”>









<xsl:value-of select=“my:ItemNo1”/>









</span>









</font>



</div>









</td>









<td><span class=“xdTextBox” hideFocus=“1” title=“”







tabIndex=“0” xd:binding=“my:Price1” xd:CtrlId=“CTRL3”


xd:xctname=“PlainText” style=“WIDTH: 100%”>









<xsl:value-of select=“my:Price1”/>



</span>









</td>









<td><span class=“xdTextBox” hideFocus=“1” title=“”







tabIndex=“0” xd:binding=“my:Quantity1” xd:CtrlId=“CTRL4”


xd:xctname=“PlainText” style=“WIDTH: 100%”>









<xsl:value-of select=“my:Quantity1”/>



</span>









</td>



<td>









<div>



<font face=“Verdana” size=“2”><span class=“xdTextBox”







hideFocus=“1” title=“” tabIndex=“0” xd:binding=“my:Total1”


xd:CtrlId=“CTRL1” xd:xctname=“PlainText” style=“WIDTH:


100%”>









<xsl:value-of select=“my:Total1”/>









</span>









</font>



</div>









</td>









</tr>









</xsl:for-each>









</tbody>









</table>










The schema governing boxes 706 enables a user to check one, none, or both boxes. This schema can be received from block 308 of FIG. 3. By way of example, these boxes are governed by the same schema as that of the check boxes set forth in FIG. 4 at 416. Their schema is:
<xsd:element name=“Yes” nillable=“true” type=“xsd:boolean”/>
<xsd:element name=“No” nillable=“true” type=“xsd:boolean”/>
Block 606 enables a user to select a schema capable of governing a visual construct. The tools, here schema alteration module 116, enable a user to select either of the visual constructs with a single user action, such as clicking on the table 704 or boxes 706. The tools can present information indicating what functionality the user may select, and thus, the appropriate schema for the visual construct. For the table, the tools indicate that the table can have a fixed number of cells (4×4) or be a repeating table (4 columns and an arbitrary number of rows) (this is not shown). Here the table is fixed based on its current schema, such that selecting the table indicates a choice to make the table repeating.
Boxes 706 may also be selected. They are currently governed by a schema having a functionality permitting none, both, or one of them to be checked. A schema having a different functionality may instead be used, such as one enabling exactly one of the boxes to be selected (e.g., radio button functionality).
Responsive to a user's selection, block 608 alters the schema governing the visual construct. Here the schema alteration module replaces the current schema with another schema enabling different functionality but capable of governing the current visual construct. Thus, responsive to a user selecting table 704, block 608 replaces the current schema with a repeating table schema described as part of process 300 relating to table 412 and its schema 512 of FIGS. 4 and 5. The tools can also replace related information or other code, such as with the XSL also provided above.
Responsive to a user selecting the boxes, block 608 replaces its current schema enabling check boxes with schema enabling radio buttons. Thus, the above schema and associated information is replaced with schema (in XML) of:















<xsd:element name=“field3” type=“xsd:string”/>



Associated information is also replaced (in XSL) with:



<div><input class=“xdBehavior_Boolean” title=“” type=“radio”



xd:binding=“my:field3” xd:boundProp=“xd:value”



xd:onValue=“Yes” tabIndex=“0” xd:xctname=“optionbutton”



xd:CtrlId=“CTRL1” name=“{generate-id(my:field3)}”>









<xsl:attribute










name=“xd:value”>





<xsl:value-of










select=“my:field3”/>





</xsl:attribute>




<xsl:if










test=“my:field3="Yes"”>





<xsl:attribute









name=“CHECKED”>CHECKED</xsl:attribute>









</xsl:if>









</input> Yes</div>









<div><input









class=“xdBehavior_Boolean” title=“” type=“radio”



xd:binding=“my:field3” xd:boundProp=“xd:value”



xd:onValue=“No” tabIndex=“0” xd:xctname=“optionbutton”



xd:CtrlId=“CTRL2” name=“{generate-id(my:field3)}”>









<xsl:attribute









name=“xd:value”>









<xsl:value-of









select=“my:field3”/>









</xsl:attribute>



<xsl:if









test=“my:field3="No"”>









<xsl:attribute









name=“CHECKED”>CHECKED</xsl:attribute>









</xsl:if>



</input> No</div>










In so doing, the tools enable a user to alter an electronic document's functionality while retaining the layout of its visual constructs. There may be (but do not have to be) differences in the visual construct's appearance. Slight changes in appearance are shown in FIG. 8. These slight changes do not change the layout of the visual construct. Both changes indicate to a user additional or different functionality. The repeating table functionality is indicated with a selectable graphic 802. The radio button functionality is indicated by the boxes being altered to look like buttons at 804. This change in appearance is optional; related information may be used that instead retains the exact same appearance for each visual construct.
The tools enable a user to change a schema governing a visual construct from non-structural to structural or vice-versa. The schema governing the table was at first non-structural in that it enabled a fixed number of cells. The new schema governing the table is structural, enabling the table to have repeating cells.
Presenting Conversion Problems
The tools can present conversion problems, such as potential differences, errors, or conversions with a low degree of confidence, to a user. In some cases part of a pre-converted electronic document is difficult for a converter to convert. An ActiveX control in an ExcelTM document or a picture in a WordTM document, for instance, may not properly be converted.
In these cases, a converter, such as conversion module 108, can keep track of conversion problems. The following process receives conversion problems and presents them to a user. This process is described in the context of operating environment 100, though other environments may be used.
FIG. 9 shows an exemplary process 900 illustrated as a series of blocks representing individual operations or acts performed by elements of the operating environment 100 of FIG. 1, such as problem presentation module 118. The tools may perform this process following block 306, 308, or 310 of FIG. 3. The tools may also perform this process based on conversion problems with a conversion performed by a third-party (e.g., an optical-recognition application).
Block 902 receives conversion problems. In one embodiment, conversion problems are recorded by conversion module 108 into a markup-language file, the conversion problems associated with converting an electronic document having data not linked to a structured schema (e.g., pre-conversion electronic document 112 of FIGS. 1 and 2). The converted electronic document (e.g., converted electronic document 114 of FIGS. 1 and 4) comprises data linked to a structured schema but also has a possible conversion problem.
Block 904 presents indicia of one or more conversion problems between a pre-converted electronic document and a converted version of the electronic document. These indicia may be presented associated with a visual construct of the converted electronic document, together in a region of a user interface, with text describing the conversion problem, and with instructions indicating ways in which the problem may be fixed. Block 906 presents a visual representation of at least a portion of the converted electronic document, such as visual constructs associated with the conversion problems.
In an illustrated embodiment, a conversion problem and a representation of a converted electronic document are presented in a user interface. FIG. 10 illustrates an exemplary user interface 1000 having two regions: a conversion problem region 1002 and a rendering region 1004. The conversion problem region presents conversion indicia 1006. The rendering region renders a visual construct 1008 associated with the conversion problem. The conversion problem is caused by a drawing in the pre-converted document. The drawing that caused the illustrated conversion problem is shown at 1010.
Block 908 visually indicates a correlation between the indicia and a visual construct associated with the conversion problem for those indicia. FIG. 10 also illustrates this correlation. Here a user selects (here by mousing over) indicia 1006. In response, block 908 highlights the visual construct for that indicia's conversion problem (highlight shown with graphic 1012). Indicia may inform the user about the conversion problem. Indicium 1006 includes text indicating that the drawing could not be imported.
Block 910 presents instructions indicating one or more actions selectable by a user and capable of eliminating a conversion problem.
CONCLUSION
The above-described systems and methods convert electronic documents, present problems in converting electronic documents, and enable alteration to schemas of electronic documents. These systems and methods may enable significantly improved conversion of electronic documents using non-visual information about the electronic documents. In so doing, these systems and methods may convert documents with fewer errors and generate converted electronic documents having greater functionality. Although the system and method has been described in language specific to structural features and/or methodological acts, it is to be understood that the system and method defined in the appended claims is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as exemplary forms of implementing the claimed system and method.

## Claims

1. A method comprising:
receiving non-visual textual and layout information for an electronic document having data not linked to a structured schema;
recognizing, based on the information, a visual construct of the electronic document;
inferring that the visual construct is capable of being governed by a first schema part or a second schema part, the first schema part and the second schema part enabling different functionality for the visual construct;
building the electronic document;
presenting the visual construct of the electronic document;
enabling selection of the first schema part or the second schema part to provide a selected schema part; and
adding the selected schema part to the electronic document, the selected schema part governing the visual construct.

2. The method of claim 1, wherein the act of adding the selected schema part is effective to replace a non-structural schema part with a structural schema part.

3. The method of claim 1, wherein the act of presenting renders the first schema part, the act of enabling enables selection of the second schema part, and the act of adding replaces the first schema part with the second schema part effective to alter the electronic document's schema but not a layout of the visual construct.

4. The method of claim 1, wherein one of the first and second schemas enables a fixed-cell table and the other enables a repeating table.

5. The method of claim 1, wherein one of the first and second schemas enables check-box fields and the other enables radio-button fields.

6. One or more computer-readable media having computer-readable instructions therein that, when executed by a computer, cause the computer to perform acts comprising
receiving non-visual textual and layout information for an electronic document having data not linked to a structured schema;
recognizing, based on the information, a visual construct of the electronic document;
inferring that the visual construct is capable of being governed by a first schema part or a second schema part, the first schema part and the second schema part enabling different functionality for the visual construct;
building the electronic document;
presenting the visual construct of the electronic document;
enabling selection of the first schema part or the second schema part to provide a selected schema part; and
adding the selected schema part to the electronic document, the selected schema part governing the visual construct.

7. The media of claim 6, wherein the act of adding the selected schema part is effective to replace a non-structural schema part with a structural schema part.

8. The media of claim 6, wherein the act of presenting renders the first schema part, the act of enabling enables selection of the second schema part, and the act of adding replaces the first schema part with the second schema part effective to alter the electronic document's schema but not a layout of the visual construct.

9. The media of claim 6, wherein one of the first and second schemas enables a fixed-cell table and the other enables a repeating table.

10. The media of claim 6, wherein one of the first and second schemas enables check-box fields and the other enables radio-button fields.