Start a new topic
General questions
Hello, MyScriptJS Team!
I would like to inquire if there is a way to personalize the editor such that I can save certain strokes and have them point to a certain word.
For example, I would like to draw a square and that should give me the word "dog".
My true use case is I would like to write acronyms but have the full word returned to me by the editor.
Would this be possible?Thank you in advance and I look forward to your reply!
Dear Viktor,thank you for contacting us and your question.If I understand well, the purpose of your application is that you write an acronym and want to return a "full word" instead?First, as our solution uses lexicons and language patterns it is usually not good at recognizing acronyms.We then recommend you create a lexicon that contains the acronyms you want to recognize, and upload it on our Cloud dashboard:https://developer.myscript.com/docs/interactive-ink/1.3/web/advanced/build-custom-resources/#lexiconhttps://developer.myscript.com/docs/interactive-ink/1.3/web/advanced/custom-recognition/#attaching-resourcesIn order to use it with MyScriptJS, you can refer to the "Custom pre-loaded resource text" sample:-https://myscript.github.io/MyScriptJS/examples/v4/custom_resources_text.html-https://github.com/MyScript/MyScriptJS/blob/master/examples/v4/custom_resources_text.htmlYour acronyms should then be recognized.
When one is recognized, in your application, you can proceed as follows:-You clear the editor: https://myscript.github.io/MyScriptJS/docs/class/src/Editor.js~Editor.html#instance-method-clear-You import the word you want to display instead:https://myscript.github.io/MyScriptJS/docs/class/src/Editor.js~Editor.html#instance-method-import_https://myscript.github.io/MyScriptJS/examples/v4/import_content.htmlhttps://github.com/MyScript/MyScriptJS/blob/master/examples/v4/import_content.htmlLet us know if this helps.Best regards,Olivier
Dear Viktor,
this cannot be implemented for shapes.
Indeed, this would imply you use the "Diagram" mode, and Text cannot be imported in a Diagram part.
Best regards,
Olivier
Thank you for the quick response, Olivier!
Your reply covers my case for acronyms so thank you so much for that!
I was just also wondering would this be possible with shapes or figures?
For example, if I were to draw a star, I would like to get the word "hello" back.
Viktor Dela Cruz
Hello, MyScriptJS Team!
I would like to inquire if there is a way to personalize the editor such that I can save certain strokes and have them point to a certain word.
For example, I would like to draw a square and that should give me the word "dog".
My true use case is I would like to write acronyms but have the full word returned to me by the editor.
Would this be possible?
Thank you in advance and I look forward to your reply!
Dear Viktor,
thank you for contacting us and your question.
If I understand well, the purpose of your application is that you write an acronym and want to return a "full word" instead?
First, as our solution uses lexicons and language patterns it is usually not good at recognizing acronyms.
We then recommend you create a lexicon that contains the acronyms you want to recognize, and upload it on our Cloud dashboard:
https://developer.myscript.com/docs/interactive-ink/1.3/web/advanced/build-custom-resources/#lexicon
https://developer.myscript.com/docs/interactive-ink/1.3/web/advanced/custom-recognition/#attaching-resources
In order to use it with MyScriptJS, you can refer to the "Custom pre-loaded resource text" sample:
-https://myscript.github.io/MyScriptJS/examples/v4/custom_resources_text.html
-https://github.com/MyScript/MyScriptJS/blob/master/examples/v4/custom_resources_text.html
Your acronyms should then be recognized.
When one is recognized, in your application, you can proceed as follows:
-You clear the editor: https://myscript.github.io/MyScriptJS/docs/class/src/Editor.js~Editor.html#instance-method-clear
-You import the word you want to display instead:
https://myscript.github.io/MyScriptJS/docs/class/src/Editor.js~Editor.html#instance-method-import_
https://myscript.github.io/MyScriptJS/examples/v4/import_content.html
https://github.com/MyScript/MyScriptJS/blob/master/examples/v4/import_content.html
Let us know if this helps.
Best regards,
Olivier
- Oldest First
- Popular
- Newest First
Sorted by Newest FirstOlivier @MyScript
Dear Viktor,
this cannot be implemented for shapes.
Indeed, this would imply you use the "Diagram" mode, and Text cannot be imported in a Diagram part.
Best regards,
Olivier
Viktor Dela Cruz
Thank you for the quick response, Olivier!
Your reply covers my case for acronyms so thank you so much for that!
I was just also wondering would this be possible with shapes or figures?
For example, if I were to draw a star, I would like to get the word "hello" back.
Olivier @MyScript
Dear Viktor,
thank you for contacting us and your question.
If I understand well, the purpose of your application is that you write an acronym and want to return a "full word" instead?
First, as our solution uses lexicons and language patterns it is usually not good at recognizing acronyms.
We then recommend you create a lexicon that contains the acronyms you want to recognize, and upload it on our Cloud dashboard:
https://developer.myscript.com/docs/interactive-ink/1.3/web/advanced/build-custom-resources/#lexicon
https://developer.myscript.com/docs/interactive-ink/1.3/web/advanced/custom-recognition/#attaching-resources
In order to use it with MyScriptJS, you can refer to the "Custom pre-loaded resource text" sample:
-https://myscript.github.io/MyScriptJS/examples/v4/custom_resources_text.html
-https://github.com/MyScript/MyScriptJS/blob/master/examples/v4/custom_resources_text.html
Your acronyms should then be recognized.
When one is recognized, in your application, you can proceed as follows:
-You clear the editor: https://myscript.github.io/MyScriptJS/docs/class/src/Editor.js~Editor.html#instance-method-clear
-You import the word you want to display instead:
https://myscript.github.io/MyScriptJS/docs/class/src/Editor.js~Editor.html#instance-method-import_
https://myscript.github.io/MyScriptJS/examples/v4/import_content.html
https://github.com/MyScript/MyScriptJS/blob/master/examples/v4/import_content.html
Let us know if this helps.
Best regards,
Olivier