From 140d836e9cd54fb67b969fd82ef7ed19ba574d40 Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Sat, 26 Apr 2014 15:11:58 +0200 Subject: Imported Upstream version 2.3.1 --- .../webhelp/docs/content/ch01.html | 61 +++ .../webhelp/docs/content/ch02.html | 32 ++ .../webhelp/docs/content/ch02s01.html | 117 +++++ .../webhelp/docs/content/ch02s02.html | 102 ++++ .../webhelp/docs/content/ch02s03.html | 36 ++ .../webhelp/docs/content/ch02s04.html | 42 ++ .../webhelp/docs/content/ch03.html | 37 ++ .../webhelp/docs/content/ch03s01.html | 62 +++ .../webhelp/docs/content/ch03s02.html | 124 +++++ .../webhelp/docs/content/index.html | 71 +++ .../docs/content/search/htmlFileInfoList.js | 10 + .../webhelp/docs/content/search/htmlFileList.js | 11 + .../webhelp/docs/content/search/index-1.js | 224 +++++++++ .../webhelp/docs/content/search/index-2.js | 223 +++++++++ .../webhelp/docs/content/search/index-3.js | 221 +++++++++ .../webhelp/docs/content/search/nwSearchFnt.js | 513 +++++++++++++++++++++ .../docs/content/search/stemmers/en_stemmer.js | 187 ++++++++ 17 files changed, 2073 insertions(+) create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch01.html create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02.html create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s01.html create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s02.html create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s03.html create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s04.html create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch03.html create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch03s01.html create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch03s02.html create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/index.html create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/htmlFileInfoList.js create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/htmlFileList.js create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/index-1.js create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/index-2.js create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/index-3.js create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/nwSearchFnt.js create mode 100644 src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/stemmers/en_stemmer.js (limited to 'src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content') diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch01.html b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch01.html new file mode 100644 index 0000000..7edbb53 --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch01.html @@ -0,0 +1,61 @@ + + + + +Chapter 1. Introduction

Chapter 1. Introduction

Abstract

Overview of the package.

A common requirement for technical publications groups is to produce a Web-based help + format that includes a table of contents pane, a search feature, and an index similar to what + you get from the Microsoft HTML Help (.chm) format or Eclipse help. If the content is help for + a Web application that is not exposed to the Internet or requires that the user be logged in, + then it is impossible to use services like Google to add search. +

Features

  • Full text search.

    • Stemming support for English, French, and German. Stemming support can be added + for other languages by implementing a stemmer.

    • Support for Chinese, Japanese, and Korean using code from the Lucene search + engine.

    • Search highlighting shows where the searched for term appears in the results. + Use the H button to toggle the highlighting off and on. +

    • Search results can include brief descriptions of the target.

  • Table of contents pane with collapsible toc tree.

  • Auto-synchronization of content pane and TOC.

  • TOC and search pane implemented without the use of a frameset.

  • An Ant build.xml file to generate output. You can use this + build file by importing it into your own or use it as a model for integrating this + output format into your own build system.

+

Possible future enhancements

  • Move webhelp-specific parameters and gentext strings into base DocBook stylesheets. +

  • Use tabindex attributes to control the tab + order in the output. The Contents and Search tabs should be first and second, then the + search box and button, then the table of contents items, and so on.

  • Add "Expand all" and "Collapse all" buttons to the table of contents.

  • Add other search options:

    • Add an option to use Lucene for server-side searches with table of contents + state persisted on the server.

    • Add a simple form that uses a Google site:my.domain.com based search.

  • Sort search results based on relevance

  • Support wild card characters in the search query.

  • Parameterize width of the TOC pane OR make the TOC pane resizeable by the + user.

  • Automate search results summary text:

    • Automatically use the first non-heading content as the summary in the search + results.

    • Automatically limit the size of the search description to something 140 + characters.

  • Support boolean operators in search.

  • Parameterize list of files to exclude from indexing. Currently it's hard coded that + we don't index index.html and ix01.html (the + legal notice and index topics). It should be smarter and automatically not index the + index file even if it's not named ix01.html.

  • Improve performance by moving the table of contents div out of each page and into a + separate JavaScript file which then adds it to the page.

  • Add to the indexer the ability to specify a list of files or file patterns not to + index. Currently it does not index index.html or + ix01.html, which is generally appropriate, but it should be up to + the user to decide.

  • Add an index tab populated by a separate JavaScript file. Include a param/property + that allows the content creator to disable the index.

  • Add functionality to the build.xml file so that when a property + is set, the build generates a pdf version of the document and includes a link to it from + the header.

  • Add breadcrumbs so the user will know what topics he's been to.

  • Consider using more advanced Lucene indexers for Chinese and Japanese than the + CJKAnalyzer

diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02.html b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02.html new file mode 100644 index 0000000..d7f7def --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02.html @@ -0,0 +1,32 @@ + + + + +Chapter 2. Using the package

Chapter 2. Using the package

The following sections describe how to install and + use the package on Windows.

diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s01.html b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s01.html new file mode 100644 index 0000000..0b7c930 --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s01.html @@ -0,0 +1,117 @@ + + + + +Generating webhelp output

Generating webhelp output

Abstract

Installation instructions

Procedure 2.1. To install the package on Windows

Note

The examples in this procedure assume a Windows installation, + but the process is the same in other environments, + mutatis mutandis.

  1. If necessary, install Java 1.6 or + higher.

    1. Confirm that Java is installed and in your + PATH by typing the following at a command prompt: +

      java -version

      Note

      To build the indexer, you must have the JDK.

  2. If necessary, install Apache Ant 1.6.5 + or higher.

    1. Unzip the Ant binary distribution to a convenient location + on your system. For example: c:\Program + Files.

    2. Set the environment variable ANT_HOME to + the top-level Ant directory. For example: c:\Program + Files\apache-ant-1.7.1.

      Tip

      See How To Manage + Environment Variables in Windows XP for information + on setting environment variables.

    3. Add the Ant bin directory to your + PATH. For example: c:\Program + Files\apache-ant-1.7.1\bin

    4. Confirm that Ant is installed by typing the following at a + command prompt:

      ant -version

      Note

      If you see a message about the file + tools.jar being missing, you can safely + ignore it.

  3. Download Saxon + 6.5.x and unzip the distribution to a convenient location on your file system. + You will use the path to saxon.jar in Step 4 below.

    Note

    The build.xml has only been tested with Saxon 6.5, though + it could be adapted to work with other XSLT processors. However, when you generate + output, the Saxon jar must not be in your + CLASSPATH.

  4. In a text editor, edit the + build.properties file in the webhelp directory + and make the changes indicated by the comments:

    # The path (relative to the build.xml file) to your input document.
    +# To use your own input document, create a build.xml file of your own
    +# and import this build.xml.
    +input-xml=docsrc/readme.xml
    +
    +# The directory in which to put the output files. 
    +# This directory is created if it does not exist.
    +output-dir=docs
    +
    +# If you are using a customization layer that imports webhelp.xsl, use
    +# this property to point to it. 
    +stylesheet-path=${ant.file.dir}/xsl/webhelp.xsl
    +
    +# If your document has image directories that need to be copied
    +# to the output directory, you can list patterns here. 
    +# See the Ant documentation for fileset for documentation
    +# on patterns.
    +#input-images-dirs=images/**,figures/**,graphics/**
    +
    +# By default, the ant script assumes your images are stored
    +# in the same directory as the input-xml. If you store your
    +# image directories in another directory, specify it here.
    +# and uncomment this line.
    +#input-images-basedir=/path/to/image/location
    +
    +# Modify this so that it points to your copy of the Saxon 6.5 jar.
    +xslt-processor-classpath=/usr/share/java/saxon-6.5.5.jar
    +
    +# For non-ns version only, this validates the document 
    +# against a dtd.
    +validate-against-dtd=true
    +
    +# Set this to false if you don't need a search tab.
    +webhelp.include.search.tab=true
    +
    +# indexer-language is used to tell the search indexer which language
    +# the docbook is written.  This will be used to identify the correct
    +# stemmer, and punctuations that differs from language to language.
    +# see the documentation for details. en=English, fr=French, de=German,
    +# zh=Chinese, ja=Japanese etc.  
    +webhelp.indexer.language=en
  5. Test the package by running the command ant webhelp + -Doutput-dir=test-ouput at the command line in the webhelp directory. It should + generate a copy of this documentation in the doc + directory. Type start test-output\index.html to open the output in a + browser. Once you have confirmed that the process worked, you can delete the test-output directory.

    Important

    The Saxon 6.5 jar should not be in your + CLASSPATH when you generate the webhelp output. If you have any + problems, try running ant with an empty CLASSPATH.

  6. To process your own document, simply refer to this package + from another build.xml in arbitrary location on + your system:

    1. Create a new build.xml file that + defines the name of your source file, the desired output + directory, and imports the build.xml from + this package. For example:

      <project>
      +  <property name="input-xml" value="path-to/yourfile.xml"/>
      +  <property name="input-images-dirs" value="images/** figures/** graphics/**"/>
      +  <property name="output-dir" value="path-to/desired-output-dir"/>
      +  <import file="path-to/docbook-webhelp/build.xml"/>
      +</project>
    2. From the directory containing your newly created + build.xml file, type ant + webhelp to build your document.

      Important

      The Saxon 6.5 jar should not be in your + CLASSPATH when you generate the webhelp output. If you have any + problems, try running ant with an empty CLASSPATH.

diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s02.html b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s02.html new file mode 100644 index 0000000..091e67c --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s02.html @@ -0,0 +1,102 @@ + + + + +Using and customizing the output

Using and customizing the output

To deep link to a topic inside the help set, simply link directly + to the page. This help system uses no frameset, so nothing further is + necessary.

Tip

See Chunking into + multiple HTML files in Bob Stayton's DocBook XSL: The + Complete Guide for information on controlling output file + names and which files are chunked in DocBook.

When you perform a search, the results can include brief + summaries. These are populated in one of two ways:

  • By adding role="summary" to a + para or phrase in the + chapter or section.

  • By adding an abstract to the + chapterinfo or sectioninfo + element.

To customize the look and feel of the help, study the following + css files:

  • docs/common/css/positioning.css: This + handles the Positioning of DIVs in appropriate positions. For + example, it causes the leftnavigation div to appear + on the left, the header on top, and so on. Use this if you need to + change the relative positions or need to change the width/height + etc.

  • docs/common/jquery/theme-redmond/jquery-ui-1.8.2.custom.css: + This is the theming part which adds colors and stuff. This is a + default theme comes with jqueryui unchanged. You + can get any theme based your interest from this. (Themes are on + right navigation bar.) Then replace the css theme folder + (theme-redmond) with it, and change the xsl to point to the new + css.

  • docs/common/jquery/treeview/jquery.treeview.css: + This styles the toc Tree. Generally, you don't have to edit this + file.

Recommended Apache configurations

If you are serving a long document from an Apache web server, we + recommend you make the following additions or changes to your + httpd.conf or .htaccess + file. TODO: Explain what each thing + does.

AddDefaultCharSet UTF-8 # 1
+  
+      # 480 weeks
+      <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"> # 2
+      Header set Cache-Control "max-age=290304000, public"
+      </FilesMatch>
+      
+      # 2 DAYS
+      <FilesMatch "\.(xml|txt)$">
+      Header set Cache-Control "max-age=172800, public, must-revalidate"
+      </FilesMatch>
+      
+      # 2 HOURS
+      <FilesMatch "\.(html|htm)$">
+      Header set Cache-Control "max-age=7200, must-revalidate"
+      </FilesMatch>
+      
+      # compress text, html, javascript, css, xml:
+      AddOutputFilterByType DEFLATE text/plain # 3
+      AddOutputFilterByType DEFLATE text/html
+      AddOutputFilterByType DEFLATE text/xml
+      AddOutputFilterByType DEFLATE text/css
+      AddOutputFilterByType DEFLATE application/xml
+      AddOutputFilterByType DEFLATE application/xhtml+xml
+      AddOutputFilterByType DEFLATE application/rss+xml
+      AddOutputFilterByType DEFLATE application/javascript
+      AddOutputFilterByType DEFLATE application/x-javascript
+      
+      # Or, compress certain file types by extension:
+      <Files *.html> 
+      SetOutputFilter DEFLATE
+      </Files>
+      

1

See Odd + characters in HTML output in Bob Stayton's book + DocBook XSL: The Complete Guide for more + information about this setting.

2

These lines and those that follow cause the browser to + cache various resources such as bitmaps and JavaScript files. + Note that caching JavaScript files could cause your users to + have stale search indexes if you update your document since the + search index is stored in JavaScript files.

3

These lines cause the the server to compress html, css, + and JavaScript files and the brower to uncompress them to + improve download performance.

diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s03.html b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s03.html new file mode 100644 index 0000000..4e0efde --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s03.html @@ -0,0 +1,36 @@ + + + + +Building the indexer

Building the indexer

To build the indexer, you must have installed the + JDK version 1.5 or higher and set the ANT_HOME + environment variable. Run ant build-indexer to recompile + nw-cms.jar

diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s04.html b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s04.html new file mode 100644 index 0000000..d3ba7e8 --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch02s04.html @@ -0,0 +1,42 @@ + + + + +Adding support for other (non-CJKV) languages

Adding support for other (non-CJKV) languages

To support stemming for a language, the search mechanism requires + a stemmer implemented in both Java and JavaScript. The Java version is + used by the indexer and the JavaScript verison is used to stem the + user's input on the search form. Currently the search mechanism supports + stemming for English and German. In addition, Java stemmers are included + for the following languages. Therefore, to support these languages, you + only need to implement the stemmer in JavaScript and add it to the + template. If you do undertake this task, please consider contributing + the JavaScript version back to this project and to Martin + Porter's project.

  • Danish

  • Dutch

  • Finnish

  • Hungarian

  • Italian

  • Norwegian

  • Portuguese

  • Romanian

  • Russian

  • Spanish

  • Swedish

  • Turkish

diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch03.html b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch03.html new file mode 100644 index 0000000..0e608fd --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch03.html @@ -0,0 +1,37 @@ + + + + +Chapter 3. Developer Docs

Chapter 3. Developer Docs

This chapter provides an overview of how webhelp is implemented.

The table of contents and search panes are implemented as divs and + rendered as if they were the left pane in a frameset. As a result, the + page must save the state of the table of contents and the search in + cookies when you navigate away from a page. When you load a new page, the + page reads these cookies and restores the state of the table of contents + tree and search. The result is that the help system behaves exactly as if + it were a frameset.

diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch03s01.html b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch03s01.html new file mode 100644 index 0000000..f41f801 --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch03s01.html @@ -0,0 +1,62 @@ + + + + +Design

Design

An overview of webhelp page structure.

DocBook WebHelp page structure is fully built on css-based design + abandoning frameset structure. Overall page structure can be divided in to three main sections +

  • Header: Header is a separate Div which include company logo, + navigation button(prev, next etc.), page title and heading of parent topic.

  • Content: This includes the content of the documentation. The processing of this part is + done by + DocBook XSL Chunking customization. Few further css-styling applied from + positioning.css. +

  • Left Navigation: This includes the table of contents and search tab. This + is customized using jquery-ui styling.

    • Tabbed Navigation: The navigation pane is organized in to two tabs. + Contents tab, and Search tab. Tabbed output is achieved using + JQuery Tabs plugin. +

    • Table of Contents (TOC) tree: When building the chunked html from the + docbook file, Table of Contents is generated as an Unordered List (a list + made from <ul> <li> tags). When page loads in the browser, + we apply styling to it to achieve the nice look that you see. Styling for TOC + tree is done by a JQuery UI plugin called + + TreeView. We can generate the tree easily by following javascript code: + +

      +//Generate the tree
      +$("#tree").treeview({
      +collapsed: true,
      +animated: "medium",
      +control: "#sidetreecontrol",
      +persist: "cookie"
      +});
      +

      +

    • Search Tab: This includes the search feature.

+

diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch03s02.html b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch03s02.html new file mode 100644 index 0000000..c4ba872 --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/ch03s02.html @@ -0,0 +1,124 @@ + + + + +Search

Search

Overview design of Search mechanism.

+ The searching is a fully client-side implementation of querying texts for + content searching, and no server is involved. That means when a user enters a query, + it is processed by JavaScript inside the browser, and displays the matching results by + comparing the query with a generated 'index', which too reside in the client-side web browser. + + Mainly the search mechanism has two parts. +

  • Indexing: First we need to traverse the content in the docs/content folder and index + the words in it. This is done by nw-cms.jar. You can invoke it by + ant index command from the root of webhelp of directory. You can recompile it + again and build the jar file by ant build-indexer. Indexer has some extensive + support for such as stemming of words. Indexer has extensive support for English, German, + French languages. By extensive support, what I meant is that those texts are stemmed + first, to get the root word and then indexes them. For CJK (Chinese, Japanese, Korean) + languages, it uses bi-gram tokenizing to break up the words. (CJK languages does not have + spaces between words.) +

    + When we run ant index, it generates five output files: +

    • htmlFileList.js - This contains an array named fl which stores details + all the files indexed by the indexer. +

    • htmlFileInfoList.js - This includes some meta data about the indexed files in an array + named fil. It includes details about file name, file (html) title, a summary + of the content.Format would look like, + fil["4"]= "ch03.html@@@Developer Docs@@@This chapter provides an overview of how webhelp is implemented."; +

    • index-*.js (Three index files) - These three files actually stores the index of the content. + Index is added to an array named w.

    + +

  • + Querying: Query processing happens totally in client side. Following JavaScript files handles them. +

    • nwSearchFnt.js - This handles the user query and returns the search results. It does query + word tokenizing, drop unnecessary punctuations and common words, do stemming if docbook language + supports it, etc.

    • {$indexer-language-code}_stemmer.js - This includes the stemming library. + nwSearchFnt.js file calls stemmer method in this file for stemming. + ex: var stem = stemmer(foobar); +

    +

+

New Stemmers

Adding new Stemmers is very simple.

Currently, only English, French, and German stemmers are integrated in to WebHelp. But the code is + extensible such that you can add new stemmers easily by few steps.

What you need: +

  • You'll need two versions of the stemmer; One written in JavaScript, and another in Java. But fortunately, + Snowball contains Java stemmers for number of popular languages, and are already included with the package. + You can see the full list in Adding support for other (non-CJKV) languages. + If your language is listed there, + Then you have to find javascript version of the stemmer. Generally, new stemmers are getting added in to + Snowball Stemmers in other languages location. + If javascript stemmer for your language is available, then download it. Else, you can write a new stemmer in + JavaScript using SnowBall algorithm fairly easily. Algorithms are at + Snowball. +

  • Then, name the JS stemmer exactly like this: {$language-code}_stemmer.js. For example, + for Italian(it), name it as, it_stemmer.js. Then, copy it to the + docbook-webhelp/template/content/search/stemmers/ folder. (I assumed + docbook-webhelp is the root folder for webhelp.) +

    Note

    Make sure you changed the webhelp.indexer.language property in build.properties + to your language. +

    + +

  • Now two easy changes needed for the indexer.

    • Open docbook-webhelp/indexer/src/com/nexwave/nquindexer/IndexerTask.java in + a text editor and add your language code to the supportedLanguages String Array.

      Example 3.1. Add new language to supportedLanguages array

      + change the Array from, +

      +private String[] supportedLanguages= {"en", "de", "fr", "cn", "ja", "ko"}; 
      +    //currently extended support available for
      +    // English, German, French and CJK (Chinese, Japanese, Korean) languages only.
      +

      + To,

      +private String[] supportedLanguages= {"en", "de", "fr", "cn", "ja", "ko", "it"}; 
      +  //currently extended support available for
      +  // English, German, French, CJK (Chinese, Japanese, Korean), and Italian languages only.
      +                    

    • + Now, open docbook-webhelp/indexer/src/com/nexwave/nquindexer/SaxHTMLIndex.java and + add the following line to the code where it initializes the Stemmer (Search for + SnowballStemmer stemmer;). Then add code to initialize the stemmer Object in your language. + It's self understandable. See the example. The class names are at: + docbook-webhelp/indexer/src/com/nexwave/stemmer/snowball/ext/. +

      Example 3.2. initialize correct stemmer based on the webhelp.indexer.language specified

      +      SnowballStemmer stemmer;
      +      if(indexerLanguage.equalsIgnoreCase("en")){
      +           stemmer = new EnglishStemmer();
      +      } else if (indexerLanguage.equalsIgnoreCase("de")){
      +          stemmer= new GermanStemmer();
      +      } else if (indexerLanguage.equalsIgnoreCase("fr")){
      +          stemmer= new FrenchStemmer();
      +      }
      +else if (indexerLanguage.equalsIgnoreCase("it")){ //If language code is "it" (Italian)
      +          stemmer= new italianStemmer();  //Initialize the stemmer to italianStemmer object.
      +      }       
      +      else {
      +          stemmer = null;
      +      }
      +

+

That's all. Now run ant build-indexer to compile and build the java code. + Then, run ant webhelp to generate the output from your docbook file. + For any questions, contact us or email to the docbook mailing list + . +

diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/index.html b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/index.html new file mode 100644 index 0000000..54ae642 --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/index.html @@ -0,0 +1,71 @@ + + + + +README: Web-based Help from DocBook XML

README: Web-based Help from DocBook XML

Kasun Gajasinghe

Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation files + (the Software), to deal in the Software without + restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to + do so, subject to the following conditions:

  • The above copyright notice and this permission notice shall + be included in all copies or substantial portions of the + Software.

  • Except as contained in this notice, the names of individuals + credited with contribution to this software shall not be used in + advertising or otherwise to promote the sale, use or other + dealings in this Software without prior written authorization from + the individuals in question.

  • Any stylesheet derived from this Software that is publicly + distributed will be identified with a different name and the + version strings in any derived Software will be changed so that no + possibility of confusion between the derived package and this + Software will exist.

Warranty: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL DAVID CRAMER, KASUN GAJASINGHE, OR ANY OTHER CONTRIBUTOR BE LIABLE FOR + ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

This package is maintained by Kasun Gajasinghe, and David Cramer, .

This package also includes the following software written and + copyrighted by others:

  • Files in template/common/jquery are + copyrighted by JQuery + under the MIT License. The file + jquery.cookie.js Copyright (c) 2006 Klaus + Hartl under the MIT license.

  • Some files in the template/content/search and indexer directories were originally + part of N. Quaine's htmlsearch DITA plugin. The htmlsearch DITA + plugin is available from the files + page of the DITA-users yahoogroup. The htmlsearch plugin + was released under a BSD-style license. See + indexer/license.txt for details.

  • Stemmers from the Snowball + project released under a BSD license.

  • Code from the Apache + Lucene search engine provides support for tokenizing + Chinese, Japanese, and Korean content released under the Apache + 2.0 license.

+ Webhelp for DocBook was developed as a Google Summer of Code project. +

August 2010


diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/htmlFileInfoList.js b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/htmlFileInfoList.js new file mode 100644 index 0000000..4517cb8 --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/htmlFileInfoList.js @@ -0,0 +1,10 @@ +fil = new Array(); +fil["0"]= "ch01.html@@@Chapter 1. Introduction@@@Overview of the package."; +fil["1"]= "ch02.html@@@Chapter 2. Using the package@@@The following sections describe how to install and use the package on Windows."; +fil["2"]= "ch02s01.html@@@Generating webhelp output@@@Installation instructions"; +fil["3"]= "ch02s02.html@@@Using and customizing the output@@@null"; +fil["4"]= "ch02s03.html@@@Building the indexer@@@To build the indexer, you must have installed the JDK version 1.5 or higher and set the ANT_HOME environment variable. Run ant build-indexer to recompile nw-cms.jar"; +fil["5"]= "ch02s04.html@@@Adding support for other (non-CJKV) languages@@@null"; +fil["6"]= "ch03.html@@@Chapter 3. Developer Docs@@@This chapter provides an overview of how webhelp is implemented."; +fil["7"]= "ch03s01.html@@@Design@@@An overview of webhelp page structure."; +fil["8"]= "ch03s02.html@@@Search@@@Adding new Stemmers is very simple."; diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/htmlFileList.js b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/htmlFileList.js new file mode 100644 index 0000000..c09eccf --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/htmlFileList.js @@ -0,0 +1,11 @@ +//List of files which are indexed. +fl = new Array(); +fl["0"]= "ch01.html"; +fl["1"]= "ch02.html"; +fl["2"]= "ch02s01.html"; +fl["3"]= "ch02s02.html"; +fl["4"]= "ch02s03.html"; +fl["5"]= "ch02s04.html"; +fl["6"]= "ch03.html"; +fl["7"]= "ch03s01.html"; +fl["8"]= "ch03s02.html"; diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/index-1.js b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/index-1.js new file mode 100644 index 0000000..8af5f1e --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/index-1.js @@ -0,0 +1,224 @@ +var indexerLanguage="en"; +//Auto generated index for searching. +w["-"]="8"; +w["-doutput-dir"]="2"; +w["-version"]="2"; +w["1"]="0,2,4,8"; +w["140"]="0"; +w["172800"]="3"; +w["2"]="1,2,3,8"; +w["290304000"]="3"; +w["3"]="6,8"; +w["4"]="2,8"; +w["480"]="3"; +w["5"]="2,4"; +w["6"]="2"; +w["7"]="2"; +w["7200"]="3"; +w["8"]="3"; +w["_stemmer"]="8"; +w["abandon"]="7"; +w["abil"]="0"; +w["abstract"]="0,2,3"; +w["achiev"]="7"; +w["actual"]="8"; +w["ad"]="0,1,3,5,8"; +w["adapt"]="2"; +w["add"]="0,2,3,5,8"; +w["adddefaultcharset"]="3"; +w["addit"]="3,5"; +w["addoutputfilterbytyp"]="3"; +w["advanc"]="0"; +w["again"]="8"; +w["against"]="2"; +w["algorithm"]="8"; +w["all"]="0,8"; +w["allow"]="0"; +w["alreadi"]="8"; +w["and"]="0,1,2,3,4,5,6,7,8"; +w["ani"]="2,3,8"; +w["anim"]="7"; +w["anoth"]="2,8"; +w["ant"]="0,2,4,8"; +w["ant_hom"]="2,4"; +w["apach"]="1,2,3"; +w["apache-ant-1"]="2"; +w["appear"]="0,3"; +w["appli"]="7"; +w["applic"]="0,3"; +w["appropri"]="0,3"; +w["arbitrari"]="2"; +w["array"]="8"; +w["assum"]="2,8"; +w["attribut"]="0"; +w["auto-synchron"]="0"; +w["autom"]="0"; +w["automat"]="0"; +w["avail"]="8"; +w["away"]="6"; +w["back"]="5"; +w["bar"]="3"; +w["base"]="0,3,8"; +w["be"]="2"; +w["been"]="0,2"; +w["behav"]="6"; +w["below"]="2"; +w["between"]="8"; +w["bi-gram"]="8"; +w["bin"]="2"; +w["binari"]="2"; +w["bitmap"]="3"; +w["bob"]="3"; +w["book"]="3"; +w["boolean"]="0"; +w["both"]="5"; +w["box"]="0"; +w["breadcrumb"]="0"; +w["break"]="8"; +w["brief"]="0,3"; +w["brower"]="3"; +w["browser"]="2,3,7,8"; +w["build"]="0,1,2,4,7,8"; +w["build-index"]="4,8"; +w["built"]="7"; +w["but"]="0,2,8"; +w["button"]="0,7"; +w["c"]="2"; +w["cach"]="3"; +w["cache-control"]="3"; +w["call"]="7,8"; +w["can"]="0,2,3,7,8"; +w["card"]="0"; +w["caus"]="3"; +w["certain"]="3"; +w["ch03"]="8"; +w["chang"]="2,3,8"; +w["chapter"]="0,1,3,6,8"; +w["chapterinfo"]="3"; +w["charact"]="0,3"; +w["chines"]="0,2,8"; +w["chm"]="0"; +w["chunk"]="3,7"; +w["cjk"]="8"; +w["cjkanalyz"]="0"; +w["class"]="8"; +w["classpath"]="2"; +w["client"]="8"; +w["client-sid"]="8"; +w["cn"]="8"; +w["code"]="0,7,8"; +w["collaps"]="0,7"; +w["color"]="3"; +w["come"]="3"; +w["command"]="2,8"; +w["comment"]="2"; +w["common"]="0,3,8"; +w["compani"]="7"; +w["compar"]="8"; +w["compil"]="8"; +w["complet"]="3"; +w["compress"]="3"; +w["conf"]="3"; +w["configur"]="1,3"; +w["confirm"]="2"; +w["consid"]="0,5"; +w["contact"]="8"; +w["contain"]="2,8"; +w["content"]="0,1,6,7,8"; +w["contribut"]="5"; +w["control"]="0,3,7"; +w["conveni"]="2"; +w["cooki"]="6,7"; +w["copi"]="2,8"; +w["correct"]="2,8"; +w["could"]="2,3"; +w["creat"]="2"; +w["creator"]="0"; +w["css"]="3,7"; +w["css-base"]="7"; +w["css-style"]="7"; +w["current"]="0,5,8"; +w["custom"]="1,2,3,7"; +w["danish"]="5"; +w["data"]="8"; +w["day"]="3"; +w["decid"]="0"; +w["deep"]="3"; +w["default"]="2,3"; +w["defin"]="2"; +w["deflat"]="3"; +w["delet"]="2"; +w["describ"]="1"; +w["descript"]="0"; +w["design"]="6,7,8"; +w["desir"]="2"; +w["desired-output-dir"]="2"; +w["detail"]="2,8"; +w["develop"]="6"; +w["differ"]="2"; +w["dir"]="2"; +w["direct"]="3"; +w["directori"]="2,8"; +w["disabl"]="0"; +w["display"]="8"; +w["distribut"]="2"; +w["div"]="0,3,6,7"; +w["divid"]="7"; +w["do"]="5,8"; +w["doc"]="2,3,6,8"; +w["docbook"]="0,2,3,7,8"; +w["docbook-apps@list"]="8"; +w["docbook-webhelp"]="2,8"; +w["docs@@@"]="8"; +w["docsrc"]="2"; +w["document"]="0,2,3,7"; +w["doe"]="0,2,3,8"; +w["domain"]="0"; +w["don"]="0,2,3"; +w["done"]="7,8"; +w["download"]="2,3,8"; +w["drop"]="8"; +w["dtd"]="2"; +w["dutch"]="5"; +w["each"]="0,3"; +w["easi"]="8"; +w["easili"]="7,8"; +w["eclips"]="0"; +w["edit"]="2,3"; +w["editor"]="2,8"; +w["element"]="3"; +w["els"]="8"; +w["email"]="8"; +w["empti"]="2"; +w["engin"]="0"; +w["english"]="0,2,5,8"; +w["englishstemm"]="8"; +w["enhanc"]="0"; +w["enter"]="8"; +w["environ"]="2,4"; +w["equalsignorecas"]="8"; +w["etc"]="2,3,7,8"; +w["even"]="0"; +w["ex"]="8"; +w["exact"]="6,8"; +w["exampl"]="2,3,8"; +w["exclud"]="0"; +w["exist"]="2"; +w["expand"]="0"; +w["explain"]="3"; +w["expos"]="0"; +w["ext"]="8"; +w["extend"]="8"; +w["extens"]="3,8"; +w["fair"]="8"; +w["fals"]="2"; +w["featur"]="0,7"; +w["feel"]="3"; +w["few"]="7,8"; +w["figur"]="2"; +w["fil"]="8"; +w["file"]="0,2,3,7,8"; +w["fileset"]="2"; +w["filesmatch"]="3"; +w["find"]="8"; + diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/index-2.js b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/index-2.js new file mode 100644 index 0000000..ebab219 --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/index-2.js @@ -0,0 +1,223 @@ +//Auto generated index for searching. +w["finnish"]="5"; +w["first"]="0,8"; +w["five"]="8"; +w["fl"]="8"; +w["flv"]="3"; +w["folder"]="3,8"; +w["follow"]="1,2,3,5,7,8"; +w["foobar"]="8"; +w["form"]="0,5"; +w["format"]="0,8"; +w["fortun"]="8"; +w["fr"]="2,8"; +w["frameset"]="0,3,6,7"; +w["french"]="0,2,8"; +w["frenchstemm"]="8"; +w["full"]="0,8"; +w["fulli"]="7,8"; +w["function"]="0"; +w["further"]="3,7"; +w["futur"]="0"; +w["general"]="0,3,8"; +w["generat"]="0,1,2,7,8"; +w["gentext"]="0"; +w["german"]="0,2,5,8"; +w["germanstemm"]="8"; +w["get"]="0,3,8"; +w["gif"]="3"; +w["googl"]="0"; +w["graphic"]="2"; +w["group"]="0"; +w["guid"]="3"; +w["h"]="0"; +w["handl"]="3,8"; +w["happen"]="8"; +w["hard"]="0"; +w["has"]="2,8"; +w["have"]="2,3,4,8"; +w["he"]="0"; +w["head"]="7"; +w["header"]="0,3,7"; +w["height"]="3"; +w["help"]="0,3,6"; +w["here"]="2"; +w["higher"]="2,4"; +w["highlight"]="0"; +w["hour"]="3"; +w["howev"]="2"; +w["htaccess"]="3"; +w["htm"]="3"; +w["html"]="0,2,3,7,8"; +w["html@@@develop"]="8"; +w["htmlfileinfolist"]="8"; +w["htmlfilelist"]="8"; +w["httpd"]="3"; +w["hungarian"]="5"; +w["ico"]="3"; +w["identifi"]="2"; +w["if"]="0,2,3,5,6,8"; +w["ignor"]="2"; +w["imag"]="2"; +w["implement"]="0,5,6,8"; +w["import"]="0,2"; +w["imposs"]="0"; +w["improv"]="0,3"; +w["includ"]="0,2,3,5,7,8"; +w["index"]="0,1,2,3,4,5,8"; +w["index-"]="8"; +w["indexer-languag"]="2"; +w["indexer-language-cod"]="8"; +w["indexerlanguag"]="8"; +w["indexertask"]="8"; +w["indic"]="2"; +w["inform"]="2,3"; +w["initi"]="8"; +w["input"]="2,5"; +w["input-images-basedir"]="2"; +w["input-images-dir"]="2"; +w["input-xml"]="2"; +w["insid"]="3,8"; +w["instal"]="1,2,4"; +w["instruct"]="2"; +w["integr"]="0,8"; +w["interest"]="3"; +w["internet"]="0"; +w["into"]="0,3"; +w["introduct"]="0"; +w["invok"]="8"; +w["involv"]="8"; +w["it_stemm"]="8"; +w["italian"]="5,8"; +w["italianstemm"]="8"; +w["item"]="0"; +w["ix01"]="0"; +w["ja"]="2,8"; +w["japanes"]="0,2,8"; +w["jar"]="2,4,8"; +w["java"]="2,5,8"; +w["javascript"]="0,3,5,7,8"; +w["jdk"]="2,4"; +w["jpeg"]="3"; +w["jpg"]="3"; +w["jqueri"]="3,7"; +w["jquery-ui"]="7"; +w["jquery-ui-1"]="3"; +w["jqueryui"]="3"; +w["js"]="3,8"; +w["know"]="0"; +w["ko"]="8"; +w["korean"]="0,8"; +w["languag"]="0,1,2,5,8"; +w["language-cod"]="8"; +w["layer"]="2"; +w["left"]="3,6,7"; +w["leftnavig"]="3"; +w["legal"]="0"; +w["li"]="7"; +w["librari"]="8"; +w["like"]="0,8"; +w["limit"]="0"; +w["line"]="2,3,8"; +w["link"]="0,3"; +w["list"]="0,2,7,8"; +w["ll"]="8"; +w["load"]="6,7"; +w["locat"]="2,8"; +w["log"]="0"; +w["logo"]="7"; +w["long"]="3"; +w["look"]="3,7,8"; +w["lucen"]="0"; +w["made"]="7"; +w["mail"]="8"; +w["main"]="7,8"; +w["make"]="0,2,3,8"; +w["manag"]="2"; +w["martin"]="5"; +w["match"]="8"; +w["max-ag"]="3"; +w["mean"]="8"; +w["meant"]="8"; +w["mechan"]="5,8"; +w["medium"]="7"; +w["messag"]="2"; +w["meta"]="8"; +w["method"]="8"; +w["microsoft"]="0"; +w["miss"]="2"; +w["model"]="0"; +w["modifi"]="2"; +w["more"]="0,3"; +w["move"]="0"; +w["multipl"]="3"; +w["must"]="2,4,6"; +w["must-revalid"]="3"; +w["mutandi"]="2"; +w["mutati"]="2"; +w["my"]="0"; +w["name"]="0,2,3,8"; +w["navig"]="3,6,7"; +w["necessari"]="2,3"; +w["need"]="2,3,5,8"; +w["new"]="2,3,6,8"; +w["newli"]="2"; +w["next"]="7"; +w["nexwav"]="8"; +w["nice"]="7"; +w["no"]="3,8"; +w["non-cjkv"]="1,5,8"; +w["non-head"]="0"; +w["non-n"]="2"; +w["norwegian"]="5"; +w["not"]="0,2,8"; +w["note"]="2,3,8"; +w["noth"]="3"; +w["notic"]="0"; +w["now"]="8"; +w["nquindex"]="8"; +w["null"]="8"; +w["number"]="8"; +w["nw-cms"]="4,8"; +w["nwsearchfnt"]="8"; +w["oasis-open"]="8"; +w["object"]="8"; +w["odd"]="3"; +w["off"]="0"; +w["onc"]="2"; +w["one"]="3,8"; +w["onli"]="2,5,8"; +w["open"]="2,8"; +w["oper"]="0"; +w["option"]="0"; +w["order"]="0"; +w["org"]="8"; +w["organ"]="7"; +w["other"]="0,1,2,5,8"; +w["out"]="0"; +w["output"]="0,1,2,3,7,8"; +w["output-dir"]="2"; +w["overal"]="7"; +w["overview"]="0,6,7,8"; +w["own"]="0,2"; +w["packag"]="0,1,2,8"; +w["page"]="0,3,6,7"; +w["pane"]="0,6,7"; +w["para"]="3"; +w["param"]="0"; +w["paramet"]="0"; +w["parameter"]="0"; +w["parent"]="7"; +w["part"]="3,7,8"; +w["path"]="2"; +w["path-"]="2"; +w["pattern"]="0,2"; +w["pdf"]="0,3"; +w["perform"]="0,3"; +w["persist"]="0,7"; +w["phrase"]="3"; +w["plain"]="3"; +w["pleas"]="5"; +w["plugin"]="7"; +w["png"]="3"; + diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/index-3.js b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/index-3.js new file mode 100644 index 0000000..b71ffe6 --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/index-3.js @@ -0,0 +1,221 @@ +//Auto generated index for searching. +w["point"]="2,3"; +w["popul"]="0,3"; +w["popular"]="8"; +w["porter"]="5"; +w["portugues"]="5"; +w["posit"]="3,7"; +w["possibl"]="0"; +w["prev"]="7"; +w["privat"]="8"; +w["problem"]="2"; +w["procedur"]="2"; +w["process"]="2,7,8"; +w["processor"]="2"; +w["produc"]="0"; +w["program"]="2"; +w["project"]="2,5"; +w["prompt"]="2"; +w["properti"]="0,2,8"; +w["provid"]="6,8"; +w["public"]="0,3"; +w["punctuat"]="2,8"; +w["put"]="2"; +w["queri"]="0,8"; +w["question"]="8"; +w["read"]="6"; +w["readm"]="2"; +w["recommend"]="1,3"; +w["recompil"]="4,8"; +w["refer"]="2"; +w["relat"]="2,3"; +w["relev"]="0"; +w["render"]="6"; +w["replac"]="3"; +w["requir"]="0,5"; +w["resid"]="8"; +w["resiz"]="0"; +w["resourc"]="3"; +w["restor"]="6"; +w["result"]="0,3,6,8"; +w["return"]="8"; +w["right"]="3"; +w["role"]="3"; +w["romanian"]="5"; +w["root"]="8"; +w["rss"]="3"; +w["run"]="2,4,8"; +w["russian"]="5"; +w["s"]="0,3,5,8"; +w["safe"]="2"; +w["same"]="2"; +w["save"]="6"; +w["saxhtmlindex"]="8"; +w["saxon"]="2"; +w["saxon-6"]="2"; +w["script"]="2"; +w["search"]="0,2,3,5,6,7,8"; +w["second"]="0"; +w["section"]="1,3,7"; +w["sectioninfo"]="3"; +w["see"]="2,3,7,8"; +w["self"]="8"; +w["separ"]="0,7"; +w["serv"]="3"; +w["server"]="0,3,8"; +w["server-sid"]="0"; +w["servic"]="0"; +w["set"]="0,2,3,4"; +w["setoutputfilt"]="3"; +w["share"]="2"; +w["should"]="0,2"; +w["show"]="0"; +w["side"]="8"; +w["sidetreecontrol"]="7"; +w["similar"]="0"; +w["simpl"]="0,8"; +w["simpli"]="2,3"; +w["sinc"]="3"; +w["site"]="0"; +w["size"]="0"; +w["smarter"]="0"; +w["snowbal"]="8"; +w["snowballstemm"]="8"; +w["so"]="0,2,3"; +w["some"]="8"; +w["someth"]="0"; +w["sort"]="0"; +w["sourc"]="2"; +w["space"]="8"; +w["spanish"]="5"; +w["specifi"]="0,2,8"; +w["src"]="8"; +w["stale"]="3"; +w["start"]="2"; +w["state"]="0,6"; +w["stayton"]="3"; +w["stem"]="0,5,8"; +w["stemmer"]="0,2,5,6,8"; +w["step"]="2,8"; +w["store"]="2,3,8"; +w["string"]="0,8"; +w["structur"]="7"; +w["studi"]="3"; +w["stuff"]="3"; +w["style"]="3,7"; +w["stylesheet"]="0"; +w["stylesheet-path"]="2"; +w["such"]="3,8"; +w["summari"]="0,3,8"; +w["support"]="0,1,5,8"; +w["supportedlanguag"]="8"; +w["sure"]="8"; +w["swedish"]="5"; +w["swf"]="3"; +w["system"]="0,2,3,6"; +w["t"]="0,2,3"; +w["tab"]="0,2,7"; +w["tabindex"]="0"; +w["tabl"]="0,6,7"; +w["tag"]="7"; +w["target"]="0"; +w["task"]="5"; +w["technic"]="0"; +w["tell"]="2"; +w["templat"]="5,8"; +w["term"]="0"; +w["test"]="2"; +w["test-ouput"]="2"; +w["test-output"]="2"; +w["text"]="0,2,3,8"; +w["than"]="0"; +w["them"]="3,8"; +w["theme"]="3"; +w["theme-redmond"]="3"; +w["then"]="0,3,8"; +w["there"]="8"; +w["therefor"]="5"; +w["these"]="3,5,6,8"; +w["they"]="6"; +w["thing"]="3"; +w["those"]="3,8"; +w["though"]="2"; +w["three"]="7,8"; +w["tip"]="2,3"; +w["titl"]="7,8"; +w["toc"]="0,3,7"; +w["todo"]="3"; +w["toggl"]="0"; +w["token"]="8"; +w["too"]="8"; +w["tool"]="2"; +w["top"]="3"; +w["top-level"]="2"; +w["topic"]="0,3,7"; +w["total"]="8"; +w["travers"]="8"; +w["tree"]="0,3,6,7"; +w["treeview"]="3,7"; +w["tri"]="2"; +w["true"]="2,7"; +w["turkish"]="5"; +w["two"]="3,7,8"; +w["txt"]="3"; +w["type"]="2,3"; +w["ui"]="7"; +w["ul"]="7"; +w["unchang"]="3"; +w["uncom"]="2"; +w["uncompress"]="3"; +w["understand"]="8"; +w["undertak"]="5"; +w["unnecessari"]="8"; +w["unord"]="7"; +w["unzip"]="2"; +w["up"]="0,2,3,4,5,7,8"; +w["updat"]="3"; +w["us"]="8"; +w["use"]="0,1,2,3,5,7,8"; +w["user"]="0,3,5,8"; +w["usr"]="2"; +w["utf-8"]="3"; +w["valid"]="2"; +w["validate-against-dtd"]="2"; +w["valu"]="2"; +w["var"]="8"; +w["variabl"]="2,4"; +w["various"]="3"; +w["veri"]="8"; +w["verison"]="5"; +w["version"]="0,2,4,5,8"; +w["w"]="8"; +w["way"]="3"; +w["we"]="0,3,7,8"; +w["web"]="0,3,8"; +w["web-bas"]="0"; +w["webhelp"]="1,2,6,7,8"; +w["webhelp-specif"]="0"; +w["week"]="3"; +w["were"]="6"; +w["which"]="0,2,3,7,8"; +w["width"]="0,3"; +w["wild"]="0"; +w["window"]="1,2"; +w["without"]="0"; +w["word"]="8"; +w["work"]="2"; +w["would"]="8"; +w["write"]="8"; +w["written"]="2,8"; +w["x"]="2"; +w["x-javascript"]="3"; +w["xhtml"]="3"; +w["xml"]="0,2,3"; +w["xp"]="2"; +w["xsl"]="2,3,7"; +w["xslt"]="2"; +w["xslt-processor-classpath"]="2"; +w["you"]="0,2,3,4,5,6,7,8"; +w["your"]="0,2,3,8"; +w["yourfil"]="2"; + diff --git a/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/nwSearchFnt.js b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/nwSearchFnt.js new file mode 100644 index 0000000..0111559 --- /dev/null +++ b/src/engine/SCons/Tool/docbook/docbook-xsl-1.76.1/webhelp/docs/content/search/nwSearchFnt.js @@ -0,0 +1,513 @@ +/*---------------------------------------------------------------------------- + * JavaScript for webhelp search + *---------------------------------------------------------------------------- + This file is part of the webhelpsearch plugin for DocBook WebHelp + Copyright (c) 2007-2008 NexWave Solutions All Rights Reserved. + www.nexwave.biz Nadege Quaine + http://kasunbg.blogspot.com/ Kasun Gajasinghe + */ + +//string initialization +var htmlfileList = "htmlFileList.js"; +var htmlfileinfoList = "htmlFileInfoList.js"; +var useCJKTokenizing = false; + +/* Cette fonction verifie la validite de la recherche entrre par l utilisateur */ +function Verifie(ditaSearch_Form) { + + // Check browser compatibitily + if (navigator.userAgent.indexOf("Konquerer") > -1) { + + alert(txt_browser_not_supported); + return; + } + + + var expressionInput = document.ditaSearch_Form.textToSearch.value; + //Set a cookie to store the searched keywords + $.cookie('textToSearch', expressionInput); + + + if (expressionInput.length < 1) { + + // expression is invalid + alert(txt_enter_at_least_1_char); + // reactive la fenetre de search (utile car cadres) + document.ditaSearch_Form.textToSearch.focus(); + } + else { + + // Effectuer la recherche + Effectuer_recherche(expressionInput); + + // reactive la fenetre de search (utile car cadres) + document.ditaSearch_Form.textToSearch.focus(); + } +} + +var stemQueryMap = new Array(); // A hashtable which maps stems to query words + +/* This function parses the search expression, loads the indices and displays the results*/ +function Effectuer_recherche(expressionInput) { + + /* Display a waiting message */ + //DisplayWaitingMessage(); + + /*data initialisation*/ + var searchFor = ""; // expression en lowercase et sans les caracte res speciaux + //w = new Object(); // hashtable, key=word, value = list of the index of the html files + scriptLetterTab = new Scriptfirstchar(); // Array containing the first letter of each word to look for + var wordsList = new Array(); // Array with the words to look for + var finalWordsList = new Array(); // Array with the words to look for after removing spaces + var linkTab = new Array(); + var fileAndWordList = new Array(); + var txt_wordsnotfound = ""; + + + /*nqu: expressionInput, la recherche est lower cased, plus remplacement des char speciaux*/ + searchFor = expressionInput.toLowerCase().replace(/<\//g, "_st_").replace(/\$_/g, "_di_").replace(/\.|%2C|%3B|%21|%3A|@|\/|\*/g, " ").replace(/(%20)+/g, " ").replace(/_st_/g, "= 0; i--) { + if (fileAndWordList[i] != undefined) { + linkTab.push("

" + txt_results_for + " " + "" + fileAndWordList[i][0].motslisteDisplay + "" + "

"); + + linkTab.push(""); + } + } + } + + var results = ""; + if (linkTab.length > 0) { + /*writeln ("

" + txt_results_for + " " + "" + cleanwordsList + "" + "
"+"

");*/ + results = "

"; + //write("