<commit_before>## MeadCo ScriptX Service Client Library

The MeadCo ScriptX Service Client Library brings an emulation of MeadCo's ScriptX Add-on for Internet Explorer on Windows to 
working with [MeadCo ScriptX Services](https://www.meadroid.com/Features/ScriptXServices) in any browser on any device and where-ever the service may be:

* [in the cloud](https://scriptxservices.meadroid.com)
* an on premise server
* web service on a Microsoft Windows PC

In combination with the [MeadCoScriptXJS library](https://github.com/MeadCo/MeadCoScriptXJS) the emulation provides 
significant levels of compatibility with in-browser script written for the Add-on so allowing the same code to run with either the Add-on for Internet Explorer or ScriptX Services depending on the client device. 
It may also be used 'stand-alone' although the code is not very modern due to the requirement to support older versions of Internet Explorer.

The library is used by our extensive set of [samples](https://scriptxprintsamples.meadroid.com). 

## Current Version

1.5.9

## Packages 

### NPM Use

```
npm install scriptxprint-html --save
```

### CDN Use

For the complete library supporting Cloud, On Premise and Windows PC services:

```javascript
<script src="https://cdn.jsdelivr.net/npm/scriptxprint-html@1.5.9/dist/meadco-scriptxservices.min.js"></script>
```

Or, for print only to cloud/on premise services,

```javascript
<script src="https://cdn.jsdelivr.net/npm/scriptxprint-html@1.5.9/dist/meadco-scriptxservicesprint.min.js"></script>
```

#### Distribution packages

Some minimised collections are provided:

| Name | Purpose |
|---|---|
| meadco-scriptxservicesprint.min.js | All core modules print including window.factory emulation. No UI modules are included nor support for licensing for ScriptX Services on Windows PC.  |
| meadco-scriptxservicesprintUI.min.js | As above but includes Page and Print setup UI dialogs.  |
| meadco-scriptxservices.min.js | All modules including window.factory and window.secmgr emulation to support licensing for ScriptX Services on Windows PC. No UI modules are included. |
| meadco-scriptxservicesUI.min.js | As above but includes Page and Print setup UI dialogs.  |
| meadco-scriptxserviceslicensing.min.js | window.secmgr emulation support for licensing for ScriptX Services on Windows PC. |

### Nuget Gallery

[MeadCo ScriptX.Print Services Library](https://www.nuget.org/packages/MeadScriptXPrintHtml/)

## Quick start - ScriptX.Services on Cloud for any browser

1. Link to the required libraries with service connection details
2. Initialise the library
3. Initilise print parameters

The same code will work when the Add-on is present, but the add-on will be used in preference.

A promise polyfill is required if the browser does not support promises (for example Internet Explorer). 
We recommend (and test with) [Promise Polyfill](https://github.com/taylorhakes/promise-polyfill)

```javascript
<!-- MeadCoScriptXJS Library -->
<script src="https://cdn.jsdelivr.net/npm/meadco-scriptxjs@1.5.1/src/meadco-scriptx.min.js"></script>

<!-- ScriptX Services client emulation libraries - depend on jQuery -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.1.1/dist/jquery.min.js"></script>

<script src="https://cdn.jsdelivr.net/npm/scriptxprint-html@1.5.4/dist/meadco-scriptxservicesprint.min.js" <commit_msg>Update referenced version of MeadCoScriptXJS<commit_after>## MeadCo ScriptX Service Client Library

The MeadCo ScriptX Service Client Library brings an emulation of MeadCo's ScriptX Add-on for Internet Explorer on Windows to 
working with [MeadCo ScriptX Services](https://www.meadroid.com/Features/ScriptXServices) in any browser on any device and where-ever the service may be:

* [in the cloud](https://scriptxservices.meadroid.com)
* an on premise server
* web service on a Microsoft Windows PC

In combination with the [MeadCoScriptXJS library](https://github.com/MeadCo/MeadCoScriptXJS) the emulation provides 
significant levels of compatibility with in-browser script written for the Add-on so allowing the same code to run with either the Add-on for Internet Explorer or ScriptX Services depending on the client device. 
It may also be used 'stand-alone' although the code is not very modern due to the requirement to support older versions of Internet Explorer.

The library is used by our extensive set of [samples](https://scriptxprintsamples.meadroid.com). 

## Current Version

1.5.9

## Packages 

### NPM Use

```
npm install scriptxprint-html --save
```

### CDN Use

For the complete library supporting Cloud, On Premise and Windows PC services:

```javascript
<script src="https://cdn.jsdelivr.net/npm/scriptxprint-html@1.5.9/dist/meadco-scriptxservices.min.js"></script>
```

Or, for print only to cloud/on premise services,

```javascript
<script src="https://cdn.jsdelivr.net/npm/scriptxprint-html@1.5.9/dist/meadco-scriptxservicesprint.min.js"></script>
```

#### Distribution packages

Some minimised collections are provided:

| Name | Purpose |
|---|---|
| meadco-scriptxservicesprint.min.js | All core modules print including window.factory emulation. No UI modules are included nor support for licensing for ScriptX Services on Windows PC.  |
| meadco-scriptxservicesprintUI.min.js | As above but includes Page and Print setup UI dialogs.  |
| meadco-scriptxservices.min.js | All modules including window.factory and window.secmgr emulation to support licensing for ScriptX Services on Windows PC. No UI modules are included. |
| meadco-scriptxservicesUI.min.js | As above but includes Page and Print setup UI dialogs.  |
| meadco-scriptxserviceslicensing.min.js | window.secmgr emulation support for licensing for ScriptX Services on Windows PC. |

### Nuget Gallery

[MeadCo ScriptX.Print Services Library](https://www.nuget.org/packages/MeadScriptXPrintHtml/)

## Quick start - ScriptX.Services on Cloud for any browser

1. Link to the required libraries with service connection details
2. Initialise the library
3. Initilise print parameters

The same code will work when the Add-on is present, but the add-on will be used in preference.

A promise polyfill is required if the browser does not support promises (for example Internet Explorer). 
We recommend (and test with) [Promise Polyfill](https://github.com/taylorhakes/promise-polyfill)

```javascript
<!-- MeadCoScriptXJS Library -->
<script src="https://cdn.jsdelivr.net/npm/meadco-scriptxjs@1.7.0/src/meadco-scriptx.min.js"></script>

<!-- ScriptX Services client emulation libraries - depend on jQuery -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.1.1/dist/jquery.min.js"></script>

<script src="https://cdn.jsdelivr.net/npm/scriptxprint-html@1.5.4/dist/meadco-scriptxservicesprint.min.js" 
{'fraction_non_alphanumeric': 0.09808860571936583, 'fraction_numerical': 0.0062231441695065936, 'mean_word_length': 4.67703952901598, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 23, 'https://': 22, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2029396', 'n_tokens_mistral': 2014, 'n_tokens_neox': 1939, 'n_words': 700}