appydave-tools 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +12 -0
- data/bin/{subtitle_master-old.rb → subtitle_manager-old.rb} +3 -3
- data/bin/{subtitle_master.rb → subtitle_manager.rb} +4 -4
- data/lib/appydave/tools/{subtitle_master → subtitle_manager}/_doc-clean.md +2 -2
- data/lib/appydave/tools/version.rb +1 -1
- data/lib/appydave/tools.rb +2 -2
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +8 -8
- /data/lib/appydave/tools/{subtitle_master → subtitle_manager}/_doc-join.md +0 -0
- /data/lib/appydave/tools/{subtitle_master → subtitle_manager}/_doc-todo.md +0 -0
- /data/lib/appydave/tools/{subtitle_master → subtitle_manager}/clean.rb +0 -0
- /data/lib/appydave/tools/{subtitle_master → subtitle_manager}/join.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17dec612ce270c5ffa25c2173a96b437b85ccd6dfe1e1d2eb913060a4ebc54c1
|
4
|
+
data.tar.gz: 6b280aebe5245dc5c619169aa75638c9be027048736c28f4f8f3baeb33dccc65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 143d0c023e0ffd5dd86086e5f34f434216b7f3ed10c129e6971a9e0144eae3a36f631fc2ffbbd4a1b6ad290fdcb9e1ce5032810b65087bcfbc724799a7812c96
|
7
|
+
data.tar.gz: 9a26010a6d0f7936b094e2f1e5b4391e96d0f8a7bb58f686d6e7ca03100f7eb67da342a92f046499240c127d718bfa08ca41e07c1c3909c3fdd83b47827ecdc2
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
# [0.12.0](https://github.com/appydave/appydave-tools/compare/v0.11.11...v0.12.0) (2024-12-03)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* update cops ([0efed07](https://github.com/appydave/appydave-tools/commit/0efed07376a7fa8d460a3ab03264a82764245ebe))
|
7
|
+
|
8
|
+
|
9
|
+
### Features
|
10
|
+
|
11
|
+
* add srt-join tool ([0576ed4](https://github.com/appydave/appydave-tools/commit/0576ed44f330869760832875126dd1f4c2bfcbd1))
|
12
|
+
|
1
13
|
## [0.11.11](https://github.com/appydave/appydave-tools/compare/v0.11.10...v0.11.11) (2024-11-26)
|
2
14
|
|
3
15
|
|
@@ -67,7 +67,7 @@ class SubtitleMasterCLI
|
|
67
67
|
def parse_options(args, command, extra_options = [])
|
68
68
|
options = { file: nil, output: nil }
|
69
69
|
OptionParser.new do |opts|
|
70
|
-
opts.banner = "Usage:
|
70
|
+
opts.banner = "Usage: subtitle_manager.rb #{command} [options]"
|
71
71
|
|
72
72
|
opts.on('-f', '--file FILE', 'SRT file to process') { |v| options[:file] = v }
|
73
73
|
opts.on('-o', '--output FILE', 'Output file') { |v| options[:output] = v }
|
@@ -99,14 +99,14 @@ class SubtitleMasterCLI
|
|
99
99
|
end
|
100
100
|
|
101
101
|
def print_help
|
102
|
-
puts 'Usage:
|
102
|
+
puts 'Usage: subtitle_manager.rb [command] [options]'
|
103
103
|
puts 'Commands:'
|
104
104
|
puts ' clean Clean and normalize SRT files'
|
105
105
|
puts ' correct Correct common typos and mistranslations in SRT files'
|
106
106
|
puts ' split Split subtitle groups based on word count'
|
107
107
|
puts ' highlight Highlight power words in subtitles'
|
108
108
|
puts ' image_prompts Generate image prompts from subtitle text'
|
109
|
-
puts "Run '
|
109
|
+
puts "Run 'subtitle_manager.rb [command] --help' for more information on a command."
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
@@ -39,7 +39,7 @@ class SubtitleMasterCLI
|
|
39
39
|
|
40
40
|
# Command-specific option parser
|
41
41
|
clean_parser = OptionParser.new do |opts|
|
42
|
-
opts.banner = 'Usage:
|
42
|
+
opts.banner = 'Usage: subtitle_manager.rb clean [options]'
|
43
43
|
|
44
44
|
opts.on('-f', '--file FILE', 'SRT file to process') do |v|
|
45
45
|
options[:file] = v
|
@@ -87,7 +87,7 @@ class SubtitleMasterCLI
|
|
87
87
|
}
|
88
88
|
|
89
89
|
join_parser = OptionParser.new do |opts|
|
90
|
-
opts.banner = 'Usage:
|
90
|
+
opts.banner = 'Usage: subtitle_manager.rb join [options]'
|
91
91
|
|
92
92
|
opts.on('-d', '--directory DIR', 'Directory containing SRT files (default: current directory)') do |v|
|
93
93
|
options[:folder] = v
|
@@ -141,11 +141,11 @@ class SubtitleMasterCLI
|
|
141
141
|
end
|
142
142
|
|
143
143
|
def print_help
|
144
|
-
puts 'Usage:
|
144
|
+
puts 'Usage: subtitle_manager.rb [command] [options]'
|
145
145
|
puts 'Commands:'
|
146
146
|
puts ' clean Clean and normalize SRT files'
|
147
147
|
puts ' join Join multiple SRT files'
|
148
|
-
puts "Run '
|
148
|
+
puts "Run 'subtitle_manager.rb [command] --help' for more information on a command."
|
149
149
|
end
|
150
150
|
end
|
151
151
|
|
@@ -31,10 +31,10 @@ cleaner = SubtitleMaster::Clean.new(srt_content: srt_content_string)
|
|
31
31
|
### Command Line Usage
|
32
32
|
|
33
33
|
```bash
|
34
|
-
./bin/
|
34
|
+
./bin/subtitle_manager.rb clean -f path/to/example.srt -o path/to/example_cleaned.srt
|
35
35
|
|
36
36
|
# Example using alias
|
37
|
-
|
37
|
+
ad_subtitle_manager clean -f transcript/a45-banned-from-midjourney-16-alternatives.srt -o a45-transcript.srt
|
38
38
|
```
|
39
39
|
|
40
40
|
This component reads the SRT file, processes the content to remove tags and normalize lines, and outputs a cleaned and formatted subtitle file that is easier to read and upload to platforms.
|
data/lib/appydave/tools.rb
CHANGED
@@ -50,8 +50,8 @@ require 'appydave/tools/name_manager/project_name'
|
|
50
50
|
|
51
51
|
require 'appydave/tools/prompt_tools/prompt_completion'
|
52
52
|
|
53
|
-
require 'appydave/tools/
|
54
|
-
require 'appydave/tools/
|
53
|
+
require 'appydave/tools/subtitle_manager/clean'
|
54
|
+
require 'appydave/tools/subtitle_manager/join'
|
55
55
|
|
56
56
|
require 'appydave/tools/youtube_automation/gpt_agent'
|
57
57
|
|
data/package-lock.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "appydave-tools",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.13.0",
|
4
4
|
"lockfileVersion": 3,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "appydave-tools",
|
9
|
-
"version": "0.
|
9
|
+
"version": "0.13.0",
|
10
10
|
"devDependencies": {
|
11
11
|
"@klueless-js/semantic-release-rubygem": "github:klueless-js/semantic-release-rubygem",
|
12
12
|
"@semantic-release/changelog": "^6.0.3",
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appydave-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cruwys
|
@@ -163,8 +163,8 @@ files:
|
|
163
163
|
- bin/move_images.rb
|
164
164
|
- bin/prompt_tools.rb
|
165
165
|
- bin/setup
|
166
|
-
- bin/
|
167
|
-
- bin/
|
166
|
+
- bin/subtitle_manager-old.rb
|
167
|
+
- bin/subtitle_manager.rb
|
168
168
|
- bin/youtube_automation.rb
|
169
169
|
- bin/youtube_manager.rb
|
170
170
|
- docs/usage/gpt-context.md
|
@@ -195,11 +195,11 @@ files:
|
|
195
195
|
- lib/appydave/tools/name_manager/project_name.rb
|
196
196
|
- lib/appydave/tools/prompt_tools/_doc.md
|
197
197
|
- lib/appydave/tools/prompt_tools/prompt_completion.rb
|
198
|
-
- lib/appydave/tools/
|
199
|
-
- lib/appydave/tools/
|
200
|
-
- lib/appydave/tools/
|
201
|
-
- lib/appydave/tools/
|
202
|
-
- lib/appydave/tools/
|
198
|
+
- lib/appydave/tools/subtitle_manager/_doc-clean.md
|
199
|
+
- lib/appydave/tools/subtitle_manager/_doc-join.md
|
200
|
+
- lib/appydave/tools/subtitle_manager/_doc-todo.md
|
201
|
+
- lib/appydave/tools/subtitle_manager/clean.rb
|
202
|
+
- lib/appydave/tools/subtitle_manager/join.rb
|
203
203
|
- lib/appydave/tools/types/array_type.rb
|
204
204
|
- lib/appydave/tools/types/base_model.rb
|
205
205
|
- lib/appydave/tools/types/hash_type.rb
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|