epub-translator 0.2.0 → 0.2.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +11 -1
- data/epub-translator.gemspec +1 -1
- data/lib/epub/translator/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dda51759754af637add1dbf2a0400f36ee2f5a8df8ebbf107b06541710867758
|
|
4
|
+
data.tar.gz: 493562c1c80c731441571e25ff23c0b656a57190bc7eb5be3d508fd911cb4c63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|

|
|
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
|

|
|
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]
|
data/epub-translator.gemspec
CHANGED
|
@@ -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.
|
|
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"
|
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.
|
|
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-
|
|
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.
|
|
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.
|
|
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.
|
|
161
|
+
rubygems_version: 3.4.10
|
|
162
162
|
signing_key:
|
|
163
163
|
specification_version: 4
|
|
164
164
|
summary: Tools to translate EPUB books
|