epub-translator 0.1.1 → 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: 81fb9a83804addbdddeb4bc7972c47e7f477d2f8ea7ca622382ba4060cec69ff
4
- data.tar.gz: 76a1d414ff2e11a571b8e064a698b190023135afb71265bc3e47449c673f10f3
3
+ metadata.gz: dda51759754af637add1dbf2a0400f36ee2f5a8df8ebbf107b06541710867758
4
+ data.tar.gz: 493562c1c80c731441571e25ff23c0b656a57190bc7eb5be3d508fd911cb4c63
5
5
  SHA512:
6
- metadata.gz: ab7d61acb8b94386d781a26438abd13cf8f33f465905223b64b0088763ecdf477eb4ca4c3eb6d2f877a7135215df78cb8a4849f59091d8cc6329b269b74c7fe2
7
- data.tar.gz: bd9c05916f0b91e37c0109c6a3a74fcd8d8f7cd86686f2894a1ac6a056259263d50ac1134d6974599be1a79d9f71bddd642cf3c774c7f8a8f8d401c913af27d5
6
+ metadata.gz: d03df5c068d43c1996d8e92113ebb08796ae94bd9837999f3b2badc999b6bd7c47047ee56b2a603edb9bebbe376bb525cb377dfd95a12997e6981236ac504a0e
7
+ data.tar.gz: 73cecbe9051dc7e4a6a2b5de88d4f55f87cb3e5cb4ef34fe401455bd8445f258315f789a1824f069899395089c8abe1b0621c0160fc67ee6d48d7b1af30de763
data/CHANGELOG.md CHANGED
@@ -1,10 +1,20 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.0] - 2022-07-02
3
+ ## [0.2.2] - 2023-10-19
4
4
 
5
- - Initial release
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
+
9
+ ## [0.2.0] - 2023-03-05
10
+
11
+ - Add ChatGPT translator as experiment
6
12
 
7
13
  ## [0.1.1] - 2023-02-27
8
14
 
9
15
  - Fix crash if epub document does not have `lang` attribute
10
16
  - Skip interlace on nodes if they don't differ
17
+ -
18
+ ## [0.1.0] - 2022-07-02
19
+
20
+ - Initial release
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Epub::Translator
2
2
 
3
- Translate Epub file with machine translation services such as DeepL.
3
+ Translate Epub file with machine translation services such as DeepL and ChatGPT.
4
4
 
5
5
  ## Installation
6
6
 
@@ -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.1.3"
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.1.1"
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.1.1
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-02-27 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.1.3
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.1.3
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.6
161
+ rubygems_version: 3.4.10
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Tools to translate EPUB books