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
* Half hearted attempt to convert to real project.
Fix for counting syllables in words containing erhua that is actually pronounced (ex 婴儿).
* Allow setting HSK threshold for vocabulary list.
* Further refactoring.
* Add verbose vocab feature. Fix issue with settings defaults.
* Add word spacing feature. Make translation hints bigger.
* Add toggle pinyin and translation features. Remove useless toggle story button.
* Improvements to punctuation handling when generating pinyin text.
* Allow hovering pinyin words to see hanzi and definition.
* Add Makefile and userscript header, update docs.
* Housekeeping, clean up build process.
* Make some CSS rules a bit less strict.
* Add changelog.md
* Disable a few local fonts used for testing
Copy file name to clipboardExpand all lines: README.md
+14-5
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ The annotation position can also be set to appear before, after, above or below
46
46
47
47
##### Tone Color
48
48
49
-
Characters can be colored based on the tone of the syllable.
49
+
Characters can be colored based on the tone of the syllable.
50
50
51
51
##### Sandhi
52
52
@@ -69,7 +69,8 @@ You can copy the text of the lesson to clipboard.
69
69
## Interface
70
70
71
71
* ⚙️ — Toggle configuration section visibility.
72
-
* 👀 — Toggle lesson text visibility.
72
+
* 👀 — Toggle pinyin section visibility.
73
+
* 📜 — Toggle translation section visibility.
73
74
* 💬 — Copy lesson text to clipboard.
74
75
* 📚 — Toggle vocabulary section visibility.
75
76
@@ -109,8 +110,16 @@ I wouldn't go that far, but DuChinese is aware of it, had access to the source a
109
110
110
111
### Is There Tracking/Monetization
111
112
112
-
None of the code I wrote does or will do anything like that. There is one small external dependency which is used to provide some functions. I verified that it doesn't do anything sinister, but I also can't control other people. It's unlikely to ever be a problem, but just saying "No" here technically wouldn't be 100% true.
113
+
None of the code I wrote does or will do anything like that.
113
114
114
-
### Oh No I Saw The Word Spy
115
+
##Building
115
116
116
-
Don't worry, this doesn't mean you're being spied on or tracked. The extension uses a third party library (mentioned above) called `xspy` which allows a script to watch what requests occur _only in its own window_. This is only used to collect the lesson content when the main site requests it.
117
+
You will need a recent version of Node and NPM available. Describing how to get to that point is beyond the scope of this document.
118
+
119
+
On a Unix-type system, you can just use the `Makefile`
120
+
121
+
* Running `make` (or `make build-dev`) should generate the development, unminimized version of the userscript in `dist/duchinese-helper.userscript.js`
122
+
123
+
* Running `make build-prod` should create the minimized version of the userscript in `dist/duchinese-helper.min.userscript.js`
124
+
125
+
If you want, you can run `npm` yourself. `npm run compile` or `npm run compile-prod` (for minimized) will generate `dist/bundle.js`. This will need to be manually combined with the userscript header in `assets/userscript_header.txt`
0 commit comments