Skip to content

Commit 2f8bcb9

Browse files
committed
Merge branch 'rerewrite'
2 parents 50ebf2e + ad3cfeb commit 2f8bcb9

73 files changed

Lines changed: 130067 additions & 1751 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 115 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,101 @@
33

44
## [Unreleased]
55

6+
7+
## [v0.9.2] Fixes and unit testing (2022-01-21)
8+
9+
### Dependencies
10+
11+
- Update stroke input data to [Conway Stroke Data v1.3.0]
12+
(some Extension B dialectal terms)
13+
- Updated Material Components to v1.5.0
14+
15+
### Behaviour
16+
17+
- Moved loading of Stroke Data from `onCreateInputView` to `onCreate`
18+
(fixes unnecessary reloading when screen is rotated during input)
19+
- Fixed API level 31+ fullscreen not working
20+
after rotate whilst keyboard showing
21+
- Fixed enter key display text not updating properly
22+
- Wrapped duration debug logs with `if (BuildConfig.DEBUG)`
23+
24+
### Code improvement
25+
26+
- Added unit testing for Mappy, Stringy, and Valuey
27+
28+
29+
## [v0.9.1] Bigger keys and behavioural tweaks (2022-01-17)
30+
31+
### Dependencies
32+
33+
- Updated stroke input data to [Conway Stroke Data v1.2.1]
34+
(成語動畫廊, HK place names, non-BMP characters in 通用规范汉字表, etc.)
35+
36+
### Behaviour
37+
38+
- Fixed swipe space bar for SYMBOLS_3 keyboard
39+
- Fixed unnecessary overdraw for candidate buttons
40+
- Increased (stroke sequence) prefix match candidate count
41+
- Removed restriction on phrase completion candidate count
42+
- Made backspace clear candidates in Termux and similar apps
43+
- Added fallback alert when openInBrowser fails
44+
- Added fallback alert when WebView fails
45+
46+
### Appearance
47+
48+
- Made candidate order dialog style consistent with overall style
49+
- Fixed initial focus on EditText for API 28+
50+
- Increased candidate button height and font size
51+
- Increased keyboard key heights
52+
- Increased keyboard height max fraction to 0.5
53+
- Increased key preview vertical margin
54+
- Improved About listings order/layout
55+
56+
### Code improvement
57+
58+
- Changed regex prefix removal to literal prefix removal where possible
59+
60+
61+
## [v0.9.0] Phrases complete (2022-01-11)
62+
63+
### Dependencies
64+
65+
- Updated stroke input data to [Conway Stroke Data v1.0.1]
66+
(officially completes the stroke/phrase data set)
67+
- Updated keyboard font to [Stroke Input Font v2.0.1]
68+
(name change; adds glyphs for tone markers etc.)
69+
70+
### Layout
71+
72+
- Rearranged placement of symbol keys
73+
- Improved Main Activity layout order
74+
- Added tone marker symbols keyboard
75+
- Added tortoise shell bracket keys (`U+3014` and `U+3015`)
76+
- Added Mainlandia quotation mark keys (`U+2018`, `U+2019`, `U+201C`, `U+201D`)
77+
- Added (non-fullwidth) middle dot key (`U+00B7`)
78+
- Added tone letter keys (`U+02E5` to `U+02E9`)
79+
- Removed useless key `U+`
80+
81+
### Main Activity
82+
83+
- Added stroke sequence examples to Help
84+
- Made minor improvements to About
85+
- Added numbering to Main Activity instructions for clarity
86+
- Added Privacy Policy button to Main Activity
87+
88+
### Gradle
89+
90+
- Migrated from aaptOptions to androidResources
91+
- Bumped Android Gradle Plugin to 7.0.4
92+
- Bumped targetSdkVersion to 31
93+
94+
95+
## [v0.8.0] Beta-ready (2021-11-29)
96+
97+
- Actually implemented stroke input and candidates
98+
(only the phrase set is incomplete)
99+
- Refactored `InputContainer` god-class into four separate classes
100+
(`InputContainer`, `StrokeSequenceBar`, `CandidatesView`, `KeyboardView`)
6101
- Updated keyboard font to [Stroke Input Keyboard v1.8.1]
7102
(adds right-handed magnifying glass)
8103
- Changed search magnifying glass to right-handed
@@ -185,7 +280,15 @@ the actual functionality has not been implemented yet.
185280

186281

187282
[Unreleased]:
188-
https://github.com/stroke-input/stroke-input-android/compare/v0.7.5...HEAD
283+
https://github.com/stroke-input/stroke-input-android/compare/v0.9.2...HEAD
284+
[v0.9.2]:
285+
https://github.com/stroke-input/stroke-input-android/compare/v0.9.1...v0.9.2
286+
[v0.9.1]:
287+
https://github.com/stroke-input/stroke-input-android/compare/v0.9.0...v0.9.1
288+
[v0.9.0]:
289+
https://github.com/stroke-input/stroke-input-android/compare/v0.8.0...v0.9.0
290+
[v0.8.0]:
291+
https://github.com/stroke-input/stroke-input-android/compare/v0.7.5...v0.8.0
189292
[v0.7.5]:
190293
https://github.com/stroke-input/stroke-input-android/compare/v0.7.4...v0.7.5
191294
[v0.7.4]:
@@ -225,6 +328,17 @@ the actual functionality has not been implemented yet.
225328
[v0.1.0]:
226329
https://github.com/stroke-input/stroke-input-android/releases/tag/v0.1.0
227330

331+
[Conway Stroke Data v1.3.0]:
332+
https://github.com/stroke-input/stroke-input-data/releases/tag/v1.3.0
333+
[Conway Stroke Data v1.2.1]:
334+
https://github.com/stroke-input/stroke-input-data/releases/tag/v1.2.1
335+
[Conway Stroke Data v1.0.1]:
336+
https://github.com/stroke-input/stroke-input-data/releases/tag/v1.0.1
337+
338+
[Stroke Input Font v2.0.1]:
339+
https://github.com/stroke-input/stroke-input-font/releases/tag/v2.0.1
340+
[Stroke Input Keyboard v1.9.0]:
341+
https://github.com/stroke-input/stroke-input-font/releases/tag/v1.9.0
228342
[Stroke Input Keyboard v1.8.1]:
229343
https://github.com/stroke-input/stroke-input-font/releases/tag/v1.8.1
230344
[Stroke Input Keyboard v1.7.0]:

README.md

Lines changed: 41 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,57 @@
1-
# stroke-input-android
1+
# Stroke Input Method (Chinese keyboard) for Android
22

3-
An attempt at making an Android custom keyboard
4-
for the Stroke Input Method (筆畫輸入法) in Chinese.
5-
6-
I do not expect this to be completed any time soon.
7-
Eventually the plan is to utilise the "yawnoc" stroke data set
8-
that I am currently compiling in [stroke-input-data].
3+
A minimalist keyboard for Chinese-language enthusiasts
4+
who want to use the stroke input method (筆畫輸入法).
95

106

117
## License
128

13-
This repository is licensed under GPL-3.0-only, see [LICENSE].
9+
**Copyright 2021–2022 Conway** <br>
10+
Licensed under the GNU General Public License v3.0 (GPL-3.0-only). <br>
11+
This is free software with NO WARRANTY etc. etc., see [LICENSE]. <br>
1412

15-
For detailed copyright information, see [app/src/main/assets/about.html].
13+
For detailed copyright information in relation to dependencies,
14+
see [app/src/main/assets/about.html].
1615

1716

1817
## Assets
1918

20-
Asset HTML files are compiled by running
21-
[Conway-Markdown (CMD)] whilst in the root directory of this repository.
19+
### `*.cmd` (CMD)
20+
21+
These are [Conway-Markdown (CMD)] files,
22+
used to compile the HTML files by running Conway-Markdown
23+
whilst in the root directory of this repository.
24+
25+
### `*.html` (HTML)
26+
27+
These are the actual About and Help files that get served in the app.
28+
29+
### `*.inc` (Inclusions)
30+
31+
These are files containing common [Conway-Markdown (CMD)]
32+
for inclusion in the CMD files.
33+
34+
### `*.txt` (Text)
35+
36+
These are data files used by the input method.
37+
Taken from Conway Stroke Data ([CC-BY-4.0] / [Public Domain]),
38+
see <<https://github.com/stroke-input/stroke-input-data>>.
39+
40+
### `StrokeInputFont.ttf`
41+
42+
This is the font used for the keyboard.
43+
Taken from Stroke Input Font ([GPL-3.0-only]),
44+
see <<https://github.com/stroke-input/stroke-input-font>>.
45+
46+
### `webview.css`
47+
48+
This is the stylesheet for the HTML files that get served in the app.
2249

2350

2451
[LICENSE]: LICENSE
25-
[stroke-input-data]: https://github.com/stroke-input/stroke-input-data
52+
[GPL-3.0-only]: https://www.gnu.org/licenses/
53+
[CC-BY-4.0]: https://creativecommons.org/licenses/by/4.0/
54+
[Public Domain]: https://creativecommons.org/publicdomain/zero/1.0/
2655
[app/src/main/assets/about.html]:
2756
https://htmlpreview.github.io/?https://github.com/stroke-input/stroke-input-android/blob/master/app/src/main/assets/about.html
2857
[Conway-Markdown (CMD)]:

0 commit comments

Comments
 (0)