hdtrans 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dictionary.json +4 -4
- package/dist/dicts.hdsnap +2 -2
- package/dist/dicts.txt +1 -1
- package/dist/hdtrans_engine.wasm +0 -0
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.js +2 -2
- package/package.json +1 -1
package/dist/dictionary.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.4.
|
|
2
|
+
"version": "0.4.2+4728299b8005",
|
|
3
3
|
"snapshot": {
|
|
4
4
|
"file": "dicts.hdsnap",
|
|
5
|
-
"sha256": "
|
|
6
|
-
"builtinFingerprint": "
|
|
7
|
-
"dataFingerprint": "
|
|
5
|
+
"sha256": "dd7a71e1be2a17ab1fab0038f235ea6e827c19e337d55cdcc147ec858ca92d89",
|
|
6
|
+
"builtinFingerprint": "864217c34afced53a437accd00f69a3cae1ef1b77fc194d0e82ea4f54fb68128",
|
|
7
|
+
"dataFingerprint": "131cc47c04d0468a1d7616bbfc9f50da55f70ca07f8c1e8238aeeb458f25b089"
|
|
8
8
|
},
|
|
9
9
|
"files": []
|
|
10
10
|
}
|
package/dist/dicts.hdsnap
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/dicts.hdsnap
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 36498776 bytes
|
|
4
|
+
sha256: dd7a71e1be2a17ab1fab0038f235ea6e827c19e337d55cdcc147ec858ca92d89
|
package/dist/dicts.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.2+4728299b8005
|
package/dist/hdtrans_engine.wasm
CHANGED
|
Binary file
|
package/dist/runtime.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export interface TranslationResult {
|
|
|
37
37
|
/** Ehnd-style stage and fired-rule messages, including trailing newlines. Not load diagnostics. */
|
|
38
38
|
logs: string[];
|
|
39
39
|
}
|
|
40
|
-
/** The speech level of the text inside 「」: '
|
|
41
|
-
* ends (간다) in 해체 (갈 거야)
|
|
40
|
+
/** The speech level of the text inside 「」: 'strict' (the default) keeps its plain sentence
|
|
41
|
+
* ends (간다), 'soft' writes them in 해체 (갈 거야). */
|
|
42
42
|
export type Speech = 'soft' | 'strict';
|
|
43
43
|
/** UTF-8 contents of PreFilter*.txt, PostFilter*.txt, SkipLayer*.txt and UserDict*.txt. */
|
|
44
44
|
export type EhndFiles = Readonly<Record<string, string>>;
|
|
@@ -103,7 +103,7 @@ export declare class HdTrans {
|
|
|
103
103
|
json?: boolean;
|
|
104
104
|
speech?: Speech;
|
|
105
105
|
}): string | TranslationResult;
|
|
106
|
-
/** The speech level of later translations; '
|
|
106
|
+
/** The speech level of later translations; 'strict' until set. */
|
|
107
107
|
setSpeech(speech: Speech): void;
|
|
108
108
|
reset(): void;
|
|
109
109
|
setUserDict(entries: readonly UserDictEntry[]): void;
|
package/dist/runtime.js
CHANGED
|
@@ -4,7 +4,7 @@ export class HdTrans {
|
|
|
4
4
|
binding_;
|
|
5
5
|
dictionaryVersion_ = '';
|
|
6
6
|
userDictRaw_ = '';
|
|
7
|
-
speech_ = '
|
|
7
|
+
speech_ = 'strict';
|
|
8
8
|
constructor(binding, version) {
|
|
9
9
|
this.binding_ = binding;
|
|
10
10
|
this.version = version;
|
|
@@ -71,7 +71,7 @@ export class HdTrans {
|
|
|
71
71
|
this.setSpeech(previous);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
/** The speech level of later translations; '
|
|
74
|
+
/** The speech level of later translations; 'strict' until set. */
|
|
75
75
|
setSpeech(speech) {
|
|
76
76
|
const binding = this.binding();
|
|
77
77
|
if (!binding.setSpeech(speech))
|