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.
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.4.0+a6565d5c27a7",
2
+ "version": "0.4.2+4728299b8005",
3
3
  "snapshot": {
4
4
  "file": "dicts.hdsnap",
5
- "sha256": "bd99d61548a79bd71be996474821f48cf7e5bb76238d840315641fdf66269e0d",
6
- "builtinFingerprint": "06948f903779f15b25594aa51c75a771a10ae7ba8afc76d479134f91242dabe3",
7
- "dataFingerprint": "72891a1f90f0e1750e18d661a01b5f4fa22d8262bfc17a3a92588408e73f0d9a"
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: 36473395 bytes
4
- sha256: bd99d61548a79bd71be996474821f48cf7e5bb76238d840315641fdf66269e0d
3
+ size: 36498776 bytes
4
+ sha256: dd7a71e1be2a17ab1fab0038f235ea6e827c19e337d55cdcc147ec858ca92d89
package/dist/dicts.txt CHANGED
@@ -1 +1 @@
1
- 0.4.0+a6565d5c27a7
1
+ 0.4.2+4728299b8005
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.2",
4
4
  "description": "Japanese to Korean translation with a bundled WebAssembly engine and dictionary",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",