Main.TAPoRwareHTMLConcordance (r1.1 vs. r1.15)
Diffs

 <<O>>  Difference Topic TAPoRwareHTMLConcordance (r1.15 - 30 May 2008 - LianYan)

META TOPICPARENT TAPoRware

Find Text — Concordance

See http://taporware.mcmaster.ca/~taporware/htmlTools/findtext.shtml
Line: 136 to 136

Taporware Rest service uses plain text HTTP protocol so that you can submit your request use either POST or GET method.
Added:
>
>
    • htmlInput -- any HTML text
    • htmlTag -- any valid HTML tag in your submitted HTML text
    • pattern -- Unix styled pattern you want to find in the text
    • context -- value can be 1/2/3/4 which corresponding to Words/Lines/Sentences/Paragraphs respectively
    • contextlength -- number of words/lines/sentences/paragraphs before and after the specified context
    • outFormat -- output format. The values are same as parameter "finddisp" in the CGI interface above
  • See sample interface in http://tapor1-dev.mcmaster.ca/~restserv/html/concordancetool

Known Bugs


 <<O>>  Difference Topic TAPoRwareHTMLConcordance (r1.14 - 30 May 2008 - LianYan)

META TOPICPARENT TAPoRware

Find Text — Concordance

See http://taporware.mcmaster.ca/~taporware/htmlTools/findtext.shtml
Line: 131 to 131

    • contextLength -- length of context
    • outFormat -- values are same as parameter "finddisp" in the CGI interface above
Added:
>
>

REST Service Interface

Taporware Rest service uses plain text HTTP protocol so that you can submit your request use either POST or GET method.


Known Bugs

To Do


 <<O>>  Difference Topic TAPoRwareHTMLConcordance (r1.13 - 15 May 2008 - LianYan)

META TOPICPARENT TAPoRware

Find Text — Concordance

See http://taporware.mcmaster.ca/~taporware/htmlTools/findtext.shtml
Line: 66 to 66

You can add a text field and a button in your web page to get the concordance of the pattern you entered in that page by call TAPoRware cgi script.

Changed:
<
<
>
>

Changed:
<
<
>
>

Changed:
<
<
Pattern:
>
>
Pattern:

Changed:
<
<
>
>

Changed:
<
<
>
>

Changed:
<
<
>
>

Line: 92 to 92

<table style="border: solid gray 1pt"><tr><td>

Changed:
<
<
<form method="post" name="textForm" enctype="multipart/form-data" target="_blank" action="http://taporware.mcmaster.ca/~taporware/cgi-bin/prototype/tfindtext.cgi" onsubmit="document.textForm.texturl.value=document.location.href">
>
>
<form method="post" name="htmlForm" enctype="multipart/form-data" target="_blank" action="http://taporware.mcmaster.ca/~taporware/cgi-bin/prototype/hfindtext.cgi" onsubmit="document.htmlForm.htmlurl.value=document.location.href">

<input type="hidden" name="source" value="url" />

Changed:
<
<
<input type="hidden" name="texturl" />
>
>
<input type="hidden" name="htmlurl" />

<input type="hidden" name="freetext" value="yes"/>

Changed:
<
<
Pattern: <input type="text" name="find_pattern" />
>
>
Pattern: <input type="text" name="find_patt" />

Changed:
<
<
<input type="hidden" name="context" value="Word" />
>
>
<input type="hidden" name="context" value="1" />

Changed:
<
<
<input type="hidden" name="contLength" value="5" />
>
>
<input type="hidden" name="conLeng" value="5" />

Changed:
<
<
<input type="hidden" name="HowToList" value="1" />
>
>
<input type="hidden" name="finddisp" value="1" />

<input type="hidden" name="taporface" value="same" />


 <<O>>  Difference Topic TAPoRwareHTMLConcordance (r1.12 - 18 Jul 2006 - LianYan)

META TOPICPARENT TAPoRware

Find Text — Concordance

See http://taporware.mcmaster.ca/~taporware/htmlTools/findtext.shtml
Line: 120 to 120

Taporware provides web services to any non-benefit organizations. here is the taporware web services infomation:

Changed:
<
<
>
>

  • Service Method: find_Concordance_HTML
  • parameters:
    • htmlInput -- any html string

 <<O>>  Difference Topic TAPoRwareHTMLConcordance (r1.11 - 11 Jul 2006 - LianYan)

META TOPICPARENT TAPoRware

Find Text — Concordance

See http://taporware.mcmaster.ca/~taporware/htmlTools/findtext.shtml
Line: 14 to 14

  • pattern: A sequence of characters used either with regular expression notation or for path name expansion, as a means of selecting various character strings or path names, respectively. Values are matched against patterns to see if they should be included/excluded. In patterns "*" matches any string, "?" matches any single character.
  • context: the text that occurs before and after a piece of text (or a pattern in this case).
Changed:
<
<

History

>
>

Predefined Parameter Values in Tool Bar

  • Source: the page the user is currently in.
  • Element: body or set by site owner
  • Context: words
  • Context length: 5
  • Display format: HTML

Pseudocode


 <<O>>  Difference Topic TAPoRwareHTMLConcordance (r1.10 - 21 Jun 2006 - LianYan)

META TOPICPARENT TAPoRware

Find Text — Concordance

See http://taporware.mcmaster.ca/~taporware/htmlTools/findtext.shtml
Line: 8 to 8

Description

This tool can find text anywhere in an HTML document. The search can be narrowed to specified tags. All results are returned with a concordance of either words, sentences, or lines.
Added:
>
>

Term Definition

  • concordance: Search patterns in their context. This is an analysis that shows search patterns and their context in one line (similiar to KWICs -- acronym for Keyword In Context). The search patterns are in the center of a line, the rest consists of the context before and after the search pattern.
  • pattern: A sequence of characters used either with regular expression notation or for path name expansion, as a means of selecting various character strings or path names, respectively. Values are matched against patterns to see if they should be included/excluded. In patterns "*" matches any string, "?" matches any single character.
  • context: the text that occurs before and after a piece of text (or a pattern in this case).

History

Pseudocode


 <<O>>  Difference Topic TAPoRwareHTMLConcordance (r1.9 - 18 Apr 2006 - LianYan)

META TOPICPARENT TAPoRware

Find Text — Concordance

See http://taporware.mcmaster.ca/~taporware/htmlTools/findtext.shtml

 <<O>>  Difference Topic TAPoRwareHTMLConcordance (r1.8 - 28 Mar 2006 - LianYan)

META TOPICPARENT TAPoRware

Find Text — Concordance

See http://taporware.mcmaster.ca/~taporware/htmlTools/findtext.shtml
Line: 54 to 54

You can add a text field and a button in your web page to get the concordance of the pattern you entered in that page by call TAPoRware cgi script.

Changed:
<
<
>
>

Line: 80 to 80

<table style="border: solid gray 1pt"><tr><td>

Changed:
<
<
<form method="post" name="textForm" enctype="multipart/form-data" action="http://taporware.mcmaster.ca/~taporware/cgi-bin/prototype/tfindtext.cgi" onsubmit="document.textForm.texturl.value=document.location.href">
>
>
<form method="post" name="textForm" enctype="multipart/form-data" target="_blank" action="http://taporware.mcmaster.ca/~taporware/cgi-bin/prototype/tfindtext.cgi" onsubmit="document.textForm.texturl.value=document.location.href">

<input type="hidden" name="source" value="url" />


 <<O>>  Difference Topic TAPoRwareHTMLConcordance (r1.7 - 28 Mar 2006 - LianYan)

META TOPICPARENT TAPoRware

Find Text — Concordance

See http://taporware.mcmaster.ca/~taporware/htmlTools/findtext.shtml
Line: 49 to 49

finddisp 1/2/3 selection 2 Display format which are XML text in HTML/HTML/XML tree in the order of parameter values
taporface   checkbox checked display result in a new window without graphics interface (default) or with taporware interface in the same window
Added:
>
>

Use Find Text -- Concordance TAPoRware Tool in Your Web Page

You can add a text field and a button in your web page to get the concordance of the pattern you entered in that page by call TAPoRware cgi script.

Pattern:

Here is the code that you can cut and paste to your web pages:

<table style="border: solid gray 1pt"><tr><td>

<form method="post" name="textForm" enctype="multipart/form-data" action="http://taporware.mcmaster.ca/~taporware/cgi-bin/prototype/tfindtext.cgi" onsubmit="document.textForm.texturl.value=document.location.href">

<input type="hidden" name="source" value="url" />

<input type="hidden" name="texturl" />

<input type="hidden" name="freetext" value="yes"/>

Pattern: <input type="text" name="find_pattern" />

<input type="hidden" name="context" value="Word" />

<input type="hidden" name="contLength" value="5" />

<input type="hidden" name="HowToList" value="1" />

<input type="hidden" name="taporface" value="same" />

<input type="submit" name="doIt" value="Get Concordance of the Page" />

</form>

</td></tr></table>


Web Service Interface

Taporware provides web services to any non-benefit organizations. here is the taporware web services infomation:


 <<O>>  Difference Topic TAPoRwareHTMLConcordance (r1.6 - 06 Feb 2006 - LianYan)

META TOPICPARENT TAPoRware

Find Text — Concordance

See http://taporware.mcmaster.ca/~taporware/htmlTools/findtext.shtml
Line: 29 to 29

CGI Interface

Changed:
<
<
If you want to use this tool from you web site, here is the CGI Interface:
>
>
If you want to use this tool from your web site, here is the CGI Interface:

(Note: If you want to upload local html text to the tool, you need to use attribute name/value pair: enctype="multipart/form-data" within the form tag)

Line: 46 to 46

find_patt   text   key pattern of the concordance
context 1/2/3 selection Words (1) context type corresponding the values in the parameter value field: Words/Lines/Sentences.
conLeng   text 5 context length corresponding to the selected context
Changed:
<
<
finddisp 1/2/3 selection 2 Display foemat which are XML text in HTML/HTML/XML tree in the order of parameter values
>
>
finddisp 1/2/3 selection 2 Display format which are XML text in HTML/HTML/XML tree in the order of parameter values

taporface   checkbox checked display result in a new window without graphics interface (default) or with taporware interface in the same window

Web Service Interface


 <<O>>  Difference Topic TAPoRwareHTMLConcordance (r1.5 - 20 Dec 2005 - LianYan)

META TOPICPARENT TAPoRware

Find Text — Concordance

See http://taporware.mcmaster.ca/~taporware/htmlTools/findtext.shtml
Line: 51 to 51

Web Service Interface

Added:
>
>
Taporware provides web services to any non-benefit organizations. here is the taporware web services infomation:

  • Endpoint URL: http://strange.mcmaster.ca:9982
  • Service URI: http://strange.mcmaster.ca/~taporware/webservice
  • Service Method: find_Concordance_HTML
  • parameters:
    • htmlInput -- any html string
    • htmlTag -- any html element (tag) name or multple html element name separated by comma
    • pattern -- unix styled pattern or regular expression
    • context -- value can be 1/2/3 which coresponding to Words/Lines/Sentences respectively
    • contextLength -- length of context
    • outFormat -- values are same as parameter "finddisp" in the CGI interface above

Known Bugs

To Do


 <<O>>  Difference Topic TAPoRwareHTMLConcordance (r1.4 - 20 Dec 2005 - LianYan)

META TOPICPARENT TAPoRware

Find Text — Concordance

See http://taporware.mcmaster.ca/~taporware/htmlTools/findtext.shtml
Line: 12 to 12

Pseudocode

Added:
>
>
  • Obtain HTML string by URL or from user's local disk
  • Obtain text contained by user specified tags
  • Find user specified word/pattern along with user specified context -- concordance
  • Generate output of concordance and word lists before and after the user specified word/pattern in the concordance text

Ways of Using

Added:
>
>
  • Enter a valid URL in the URL field or enter a local upload html text
  • Enter a valid html tag or tag list seperated by comma, default is "body"
  • Enter word or pattern in the corresponding text field by check the related radio button
  • Select the context of concordance and the length of context
  • Select output format
  • If you want the results displayed in the same window with taporware interface, uncheck the check box - "Open results in new window"
  • Finally, click the "Submit" button

CGI Interface

Added:
>
>
If you want to use this tool from you web site, here is the CGI Interface: (Note: If you want to upload local html text to the tool, you need to use attribute name/value pair: enctype="multipart/form-data" within the form tag)

Here are the parameters:

Parameter Name Parameter Value Control Type Default Discription
source url/local radio button url Let user select input text (either a url or upload local html text)
htmlurl   text   A Valid URL that the pointed document should be an html text
localFile   file   The path to your local html text file
tagtext   text body Valid html element (tag) name or multple html element name separated by comma
findwhat word/patt radio button word let user to select either word or pattern of the key of the concordance
find_word   text   key word of the concordance
find_patt   text   key pattern of the concordance
context 1/2/3 selection Words (1) context type corresponding the values in the parameter value field: Words/Lines/Sentences.
conLeng   text 5 context length corresponding to the selected context
finddisp 1/2/3 selection 2 Display foemat which are XML text in HTML/HTML/XML tree in the order of parameter values
taporface   checkbox checked display result in a new window without graphics interface (default) or with taporware interface in the same window

Web Service Interface

Known Bugs


 <<O>>  Difference Topic TAPoRwareHTMLConcordance (r1.3 - 15 Oct 2005 - MattPatey)

META TOPICPARENT TAPoRware
Changed:
<
<

List HTML Tags

See http://taporware/~taporware/htmlTools/findtext.shtml
>
>

Find Text — Concordance

See http://taporware.mcmaster.ca/~taporware/htmlTools/findtext.shtml

TOC: No TOC in "Main.TAPoRwareHTMLConcordance"


 <<O>>  Difference Topic TAPoRwareHTMLConcordance (r1.2 - 15 Oct 2005 - MattPatey)

META TOPICPARENT TAPoRware
Added:
>
>

List HTML Tags

See http://taporware/~taporware/htmlTools/findtext.shtml

Description


This tool can find text anywhere in an HTML document. The search can be narrowed to specified tags. All results are returned with a concordance of either words, sentences, or lines.
Added:
>
>

History

Pseudocode

Ways of Using

CGI Interface

Web Service Interface

Known Bugs

To Do


-- MattPatey - 13 Oct 2005

 <<O>>  Difference Topic TAPoRwareHTMLConcordance (r1.1 - 13 Oct 2005 - MattPatey)
Line: 1 to 1
Added:
>
>
META TOPICPARENT TAPoRware
This tool can find text anywhere in an HTML document. The search can be narrowed to specified tags. All results are returned with a concordance of either words, sentences, or lines.

-- MattPatey - 13 Oct 2005


Topic: TAPoRwareHTMLConcordance . { View | Diffs | r1.15 | > | r1.14 | > | r1.13 | More }

Revision r1.1 - 13 Oct 2005 - 20:49 - MattPatey
Revision r1.15 - 30 May 2008 - 18:05 - LianYan