epub-translator 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20c951f644e1e29001a122f3a3bfc6ce4fabee4d741a6d5df75e681faad412d6
4
- data.tar.gz: fa5b93baee15dd9a7f40598e97f99baa4000a74e08de05c495c94a8c3d1e617d
3
+ metadata.gz: dda51759754af637add1dbf2a0400f36ee2f5a8df8ebbf107b06541710867758
4
+ data.tar.gz: 493562c1c80c731441571e25ff23c0b656a57190bc7eb5be3d508fd911cb4c63
5
5
  SHA512:
6
- metadata.gz: eaca24fb19dd34489146f8e9209596f9924fb805044497b71730e879a0b703a00f33c5778850bc660a71a3abc34225503045cf4ec4669edd91a5290d9fd1a901
7
- data.tar.gz: 505ff85b630a6d0920a36643169894d8e38ab97a2f0f487b2f879591b28239fc638a89efa36fce785dd29211e0c0e18e1a8321e966264d9f97c2d94a827c7e02
6
+ metadata.gz: d03df5c068d43c1996d8e92113ebb08796ae94bd9837999f3b2badc999b6bd7c47047ee56b2a603edb9bebbe376bb525cb377dfd95a12997e6981236ac504a0e
7
+ data.tar.gz: 73cecbe9051dc7e4a6a2b5de88d4f55f87cb3e5cb4ef34fe401455bd8445f258315f789a1824f069899395089c8abe1b0621c0160fc67ee6d48d7b1af30de763
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.2] - 2023-10-19
4
+
5
+ - Upgrade to Natsukantou 0.2.2
6
+ - Remove newline characters in HandleRubyMarkup, which helps improving translation
7
+ - Fix ChatGPT not able to distinguish content to be translated and our instructions.
8
+
3
9
  ## [0.2.0] - 2023-03-05
4
10
 
5
11
  - Add ChatGPT translator as experiment
data/README.md CHANGED
@@ -22,10 +22,20 @@ It's a wizard that guides you through setting up a translator configuration...
22
22
 
23
23
  ![Wizard](./docs/eg_wizard_config.png)
24
24
 
25
- and then asks you how to translate:
25
+ and then asks you how and what to translate. Enter the language codes (e.g. "en"),
26
+ and select chapters to translate (by default all are selected).
26
27
 
27
28
  ![Wizard](./docs/eg_wizard_translate.png)
28
29
 
30
+ During the process, the wizard will ask you whether you want to save the configuration for later reuse.
31
+ If you choose yes, the config will be saved as `translator_config.rb` file.
32
+
33
+ You will be able to use this config later by using the `-c` flag:
34
+
35
+ $ epub-translator [EPUB_FILE] -c translator_config.rb
36
+
37
+ ## Interlacing
38
+
29
39
  After you have the translated file, you can choose to interlace it against the original by running:
30
40
 
31
41
  $ epub-interlace [EPUB_FILE_1] [EPUB_FILE_2]
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency "epub-maker", "~> 0.1.7"
32
32
  spec.add_dependency "epub-parser", "~> 0.4.6"
33
33
  spec.add_dependency "middleware", "~> 0.1.0"
34
- spec.add_dependency "natsukantou", "~> 0.2.0"
34
+ spec.add_dependency "natsukantou", "~> 0.2.2"
35
35
  spec.add_dependency "tty-prompt", "~> 0.23"
36
36
 
37
37
  spec.add_development_dependency "debug", ">= 1.0.0"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Epub
4
4
  module Translator
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epub-translator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - lulalala
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-05 00:00:00.000000000 Z
11
+ date: 2023-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: epub-maker
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.2.0
61
+ version: 0.2.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.2.0
68
+ version: 0.2.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: tty-prompt
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  requirements: []
161
- rubygems_version: 3.4.7
161
+ rubygems_version: 3.4.10
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Tools to translate EPUB books