You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lasso sample has been removed as this tool is part of iink sdk since 2.0.X
All sample have been rewrite to Kotlin
Exercise Assessment sample has been enhanced with other type parts and integration of a custom gramar
Copy file name to clipboardExpand all lines: README.md
+25-13Lines changed: 25 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,39 +8,51 @@ This repository comes in addition with further advanced Android examples that de
8
8
9
9
## Installation
10
10
11
-
1. Clone the examples repository `git clone https://github.com/MyScript/iink_sdk-additional-examples-android.git`.
11
+
1. Clone the examples repository `git clone https://github.com/MyScript/iink_sdk-additional-examples-android.git`.
12
12
13
13
2. If you already have a certificate go to next step, else claim to receive the free license to start develop your application by following the first steps of [Getting Started](https://developer.myscript.com/getting-started).
14
14
15
15
3. Copy this certificate to `certificate/src/main/java/com/myscript/certificate/MyCertificate.java`
16
16
17
+
4. Open `java` folder in Android Studio.
18
+
17
19
## Various examples
18
20
19
21
This repository provides you with an additional set of ready-to-use examples based on Android:
20
22
21
-
1. The batch mode sample is an example of how to integrate iink SDK off-screen, without any user interface. It consists in batch processing content, i.e. processing a series of pointer events corresponding to already collected ink strokes and exporting the recognition result. It comes with four pointer events samples that correspond to four different content types "Text", "Math", "Diagram", "Raw Content". Those content types are exported in respectively .txt, LaTeX, svg and JIIX formats. By default, the example is working with the "Text" content type but all you have to do to try another type is modifying the content type in the MainActivity class:
23
+
1. The batch mode sample is an example of how to integrate iink SDK off-screen, without any user interface. It consists in batch processing content, i.e. processing a series of pointer events corresponding to already collected ink strokes and exporting the recognition result. It comes with four pointer events samples that correspond to four different content types "Text", "Math", "Diagram", "Raw Content". When starting the app a dialog will be displayed to choose which type of part you want to proceed. By default those content types are exported in respectively .txt, LaTeX, svg and JIIX formats, but you can choose to export in png by modifying the following line in the MainActivity class:
22
24
23
25
~~~#!java
24
-
// Choose type of content ("Text", "Math", "Diagram", "Raw Content")
25
-
private static String partType = "Text";
26
+
// this is the function where we process exteranl output and export it
27
+
// add true if you want to export in png
28
+
offScreenProcess(typeOfPart[it])
26
29
~~~
27
-
28
-
2. The exercise assessment illustrates the case when you want to use several writing areas each one for a specific purpose (here the example is based on problem solving and score writing) in your application. It is thus using multiple editors, one per writing area, as each one has a different purpose: one of them is dedicated to "Math" content types and the three other ones to "Text" content type.
3. The search example shows how to perform word search on raw digital ink and highlights the result found in the ink. it is based on "Raw Content" Content Type.
34
+
NB: you will retrieve data converted in your device internal storage : Android\data\com.myscript.iink.samples.batchmode\files
35
+
36
+
2. The exercise assessment illustrates the case when you want to use several writing areas each one for a specific purpose in your application. It is thus using multiple editors, one per writing area, as each one has a different purpose:
37
+
- First one is dedicated to "Math" content types
38
+
- Second one is dedicated to "Math" content types but with user defined gramar which is dynamically loaded at start.
39
+
- Third one is dedicated to "Text" content types
40
+
- Fourth one is dedicated to "Diagram" content types
4. The lasso example is illustrating how you can perform recognition of strokes captured with a lasso in the drawing area of your application: It is based on two "Drawing" parts: one for the drawing/writing area and the other one for the lasso capture. In lasso mode, the lassoed strokes are sent as a series of event to a batch recognition of a "Text" part and the result is displayed.
47
+
3. The search example shows how to perform word search on raw digital ink and highlights the result found in the ink. it is based on "Raw Content" Content Type by default but you can change it to "Text Document" by modifying the following line in the MainActivity class:
41
48
49
+
~~~#!java
50
+
// wait for view size initialization before setting part
51
+
editorView!!.post(Runnable() {
52
+
val partType = "Raw Content" // change to "Text Document" if you want to test
0 commit comments