hdtrans 0.4.0 → 0.4.1

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.
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.4.0+a6565d5c27a7",
2
+ "version": "0.4.1+a6565d5c27a7",
3
3
  "snapshot": {
4
4
  "file": "dicts.hdsnap",
5
- "sha256": "bd99d61548a79bd71be996474821f48cf7e5bb76238d840315641fdf66269e0d",
5
+ "sha256": "35513c78af988c24a82d0c577d1999c79faee80658a3921b2e7cc8c2d7ae3c96",
6
6
  "builtinFingerprint": "06948f903779f15b25594aa51c75a771a10ae7ba8afc76d479134f91242dabe3",
7
- "dataFingerprint": "72891a1f90f0e1750e18d661a01b5f4fa22d8262bfc17a3a92588408e73f0d9a"
7
+ "dataFingerprint": "81d6749b3f8c9d38ae7708135c2176ffdb5d732426e49e867ba831200a5ba2f3"
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
3
  size: 36473395 bytes
4
- sha256: bd99d61548a79bd71be996474821f48cf7e5bb76238d840315641fdf66269e0d
4
+ sha256: 35513c78af988c24a82d0c577d1999c79faee80658a3921b2e7cc8c2d7ae3c96
package/dist/dicts.txt CHANGED
@@ -1 +1 @@
1
- 0.4.0+a6565d5c27a7
1
+ 0.4.1+a6565d5c27a7
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 「」: 'soft' (the default) writes its plain sentence
41
- * ends (간다) in 해체 (갈 거야), 'strict' keeps them. */
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; 'soft' until set. */
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_ = 'soft';
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; 'soft' until set. */
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))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdtrans",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Japanese to Korean translation with a bundled WebAssembly engine and dictionary",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",