From 1f589c985a0b3fa54adcca16a76192f7adcd9651 Mon Sep 17 00:00:00 2001 From: Nehemiah of Zebulun Date: Mon, 28 Aug 2023 16:54:29 +0200 Subject: [PATCH] Press on --- app/src/main/java/net/mezimmah/wkt9/WKT9.kt | 2 +- app/src/main/res/drawable/alpha.xml | 10 ++++++++++ app/src/main/res/drawable/numeric.xml | 3 ++- app/src/main/res/drawable/shift.xml | 4 ++-- app/src/main/res/layout/current_suggestion.xml | 3 ++- app/src/main/res/layout/suggestion.xml | 3 ++- 6 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 app/src/main/res/drawable/alpha.xml diff --git a/app/src/main/java/net/mezimmah/wkt9/WKT9.kt b/app/src/main/java/net/mezimmah/wkt9/WKT9.kt index add09a2..bda821d 100644 --- a/app/src/main/java/net/mezimmah/wkt9/WKT9.kt +++ b/app/src/main/java/net/mezimmah/wkt9/WKT9.kt @@ -446,7 +446,7 @@ class WKT9: InputMethodService() { try { val transcription = whisper.run(recording!!) - commitText(transcription, cursorPosition, cursorPosition) + commitText(transcription.plus(" "), cursorPosition, cursorPosition) } catch (e: IOException) { Log.d(tag, "A failure occurred in the communication with the speech-to-text server", e) } diff --git a/app/src/main/res/drawable/alpha.xml b/app/src/main/res/drawable/alpha.xml new file mode 100644 index 0000000..eef0cfa --- /dev/null +++ b/app/src/main/res/drawable/alpha.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/numeric.xml b/app/src/main/res/drawable/numeric.xml index a55868d..94f6181 100644 --- a/app/src/main/res/drawable/numeric.xml +++ b/app/src/main/res/drawable/numeric.xml @@ -5,5 +5,6 @@ android:viewportHeight="32"> + android:pathData="m1.48,7.721q1.632,-0.949 3.168,-2.372 1.536,-1.471 2.848,-3.701h1.856V27.695h3.744v3.321H2.44v-3.321h4.288V7.104q-0.352,0.474 -0.864,0.996 -0.48,0.474 -1.088,0.949 -0.576,0.474 -1.216,0.901 -0.64,0.427 -1.248,0.712zM29.72,9.144q0,1.518 -0.416,2.942 -0.384,1.423 -1.056,2.799 -0.64,1.376 -1.472,2.704 -0.832,1.328 -1.696,2.61 -0.48,0.712 -1.12,1.708 -0.64,0.996 -1.216,2.04 -0.576,1.044 -0.96,2.04 -0.384,0.996 -0.384,1.708h9.12v3.321h-12q-0.032,-0.237 -0.032,-0.474 0,-0.285 0,-0.522 0,-1.993 0.448,-3.701 0.448,-1.708 1.152,-3.226 0.704,-1.518 1.568,-2.847 0.896,-1.376 1.76,-2.657 0.704,-1.044 1.344,-2.04 0.672,-0.996 1.152,-1.993 0.512,-0.996 0.8,-2.04 0.32,-1.091 0.32,-2.23 0,-1.281 -0.288,-2.183Q26.488,6.202 26.008,5.633 25.56,5.016 24.952,4.732 24.344,4.447 23.64,4.447q-0.832,0 -1.536,0.332Q21.432,5.111 20.888,5.586 20.376,6.06 19.992,6.535 19.608,6.962 19.416,7.246L18.104,4.494Q18.36,4.067 18.872,3.451 19.384,2.834 20.088,2.312 20.824,1.743 21.72,1.363q0.896,-0.38 1.92,-0.38 3.104,0 4.576,2.135Q29.72,5.206 29.72,9.144Z" + android:strokeWidth="1.21765"/> diff --git a/app/src/main/res/drawable/shift.xml b/app/src/main/res/drawable/shift.xml index eddbf6a..44a171a 100644 --- a/app/src/main/res/drawable/shift.xml +++ b/app/src/main/res/drawable/shift.xml @@ -4,9 +4,9 @@ android:viewportWidth="0.96" android:viewportHeight="0.96"> diff --git a/app/src/main/res/layout/current_suggestion.xml b/app/src/main/res/layout/current_suggestion.xml index 84aea66..e5b8393 100644 --- a/app/src/main/res/layout/current_suggestion.xml +++ b/app/src/main/res/layout/current_suggestion.xml @@ -12,8 +12,9 @@ android:layout_height="wrap_content" android:background="@drawable/yellow_radius" android:textColor="@color/suggestion_text" + android:minWidth="40dp" android:paddingVertical="5dp" android:paddingHorizontal="8dp" android:textSize="20sp" - android:textFontWeight="600" /> + android:textFontWeight="500" /> \ No newline at end of file diff --git a/app/src/main/res/layout/suggestion.xml b/app/src/main/res/layout/suggestion.xml index 0d43019..ad6484d 100644 --- a/app/src/main/res/layout/suggestion.xml +++ b/app/src/main/res/layout/suggestion.xml @@ -12,8 +12,9 @@ android:layout_height="wrap_content" android:background="@drawable/blue_radius" android:textColor="@color/suggestion_text" + android:minWidth="40dp" android:paddingVertical="5dp" android:paddingHorizontal="8dp" android:textSize="20sp" - android:textFontWeight="600" /> + android:textFontWeight="500" /> \ No newline at end of file