Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit 0bed477

Browse files
author
steven.roulleau
committed
release: version 5.1.0
1 parent f795337 commit 0bed477

File tree

56 files changed

+501
-399
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+501
-399
lines changed

Diff for: analysis.json

+188-147
Large diffs are not rendered by default.

Diff for: build/docs/analysis.json

+188-147
Large diffs are not rendered by default.

Diff for: build/docs/myscript-text-web.js

+19-3
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ class MyScriptTextWeb extends PolymerElement {
550550
},
551551

552552
/**
553-
* If set to true, lexical knowledge (LK) is added to current LK, false otherwise
553+
* If set to true, lexical knowledge (LK) is not added to current LK, false otherwise
554554
*/
555555
nolktext: {
556556
type: Boolean,
@@ -567,6 +567,15 @@ class MyScriptTextWeb extends PolymerElement {
567567
reflectToAttribute: true
568568
},
569569

570+
/**
571+
* custom lexicon
572+
*/
573+
customlexicon: {
574+
type: Array,
575+
value: [],
576+
reflectToAttribute: true
577+
},
578+
570579
/**
571580
* If set to true, hide the export panel.
572581
*/
@@ -826,7 +835,7 @@ class MyScriptTextWeb extends PolymerElement {
826835
return stylesheet;
827836
}
828837

829-
static _generateTextConfiguration(configuration, language, mimetypes, alwaysconnected, disableguides, disablesmartguide, enablesmartguidefadeout, smartguidefadeoutduration, nolktext, customresources, textinputmode, resultdetail, contenttypes, subsetknowledges, userlkwords, userresources, textcandidatelistsize, wordcandidatelistsize, wordpredictionlistsize, wordcompletionlistsize, charactercandidatelistsize, enableoutoflexicon, discardcasevariations, discardaccentuationvariations, glyphdistortion, enabletagger, spellingdistortion) {
838+
static _generateTextConfiguration(configuration, language, mimetypes, alwaysconnected, disableguides, disablesmartguide, enablesmartguidefadeout, smartguidefadeoutduration, nolktext, customresources, customlexicon, textinputmode, resultdetail, contenttypes, subsetknowledges, userlkwords, userresources, textcandidatelistsize, wordcandidatelistsize, wordpredictionlistsize, wordcompletionlistsize, charactercandidatelistsize, enableoutoflexicon, discardcasevariations, discardaccentuationvariations, glyphdistortion, enabletagger, spellingdistortion) {
830839
// FIXME: find a way to do a proper deep merge
831840
const conf = Object.assign({}, configuration);
832841

@@ -897,6 +906,13 @@ class MyScriptTextWeb extends PolymerElement {
897906

898907
if (customresources) {
899908
conf.recognitionParams.v4.text.configuration.customResources = customresources;
909+
}
910+
911+
if (customlexicon) {
912+
conf.recognitionParams.v4.text.configuration.customLexicon = customlexicon;
913+
}
914+
915+
if (customresources || customlexicon) {
900916
conf.recognitionParams.v4.text.configuration.addLKText = !nolktext;
901917
}
902918

@@ -980,7 +996,7 @@ class MyScriptTextWeb extends PolymerElement {
980996
this.disableconvertcontrol = true;
981997
}
982998

983-
return MyScriptTextWeb._generateTextConfiguration(this.configuration, this.language, this.mimetypes, this.alwaysconnected, this.disableguides, this.disablesmartguide, this.enablesmartguidefadeout, this.smartguidefadeoutduration, this.nolktext, this.customresources, this.textinputmode, this.resultdetail, this.contenttypes, this.subsetknowledges, this.userlkwords, this.userresources, this.textcandidatelistsize, this.wordcandidatelistsize, this.wordpredictionlistsize, this.wordcompletionlistsize, this.charactercandidatelistsize, this.enableoutoflexicon, this.discardcasevariations, this.discardaccentuationvariations, this.glyphdistortion, this.enabletagger, this.spellingdistortion);
999+
return MyScriptTextWeb._generateTextConfiguration(this.configuration, this.language, this.mimetypes, this.alwaysconnected, this.disableguides, this.disablesmartguide, this.enablesmartguidefadeout, this.smartguidefadeoutduration, this.nolktext, this.customresources, this.customlexicon, this.textinputmode, this.resultdetail, this.contenttypes, this.subsetknowledges, this.userlkwords, this.userresources, this.textcandidatelistsize, this.wordcandidatelistsize, this.wordpredictionlistsize, this.wordcompletionlistsize, this.charactercandidatelistsize, this.enableoutoflexicon, this.discardcasevariations, this.discardaccentuationvariations, this.glyphdistortion, this.enabletagger, this.spellingdistortion);
9841000
}
9851001

9861002
_exportChangedListener(event) {

Diff for: build/docs/node_modules/@polymer/app-layout/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/font-roboto/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-a11y-announcer/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-a11y-keys-behavior/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-ajax/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-autogrow-textarea/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-behaviors/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-checked-element-behavior/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-component-page/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-doc-viewer/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-dropdown/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-fit-behavior/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-flex-layout/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-form-element-behavior/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-icon/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-icons/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-icons/util/concat-svg.js

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-iconset-svg/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: build/docs/node_modules/@polymer/iron-input/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)