subtitle_it 0.7.7

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.
Files changed (69) hide show
  1. data/.autotest +19 -0
  2. data/History.txt +53 -0
  3. data/License.txt +20 -0
  4. data/Manifest.txt +68 -0
  5. data/README.markdown +41 -0
  6. data/README.txt +102 -0
  7. data/Rakefile +4 -0
  8. data/bin/subtitle_it +66 -0
  9. data/config/hoe.rb +73 -0
  10. data/config/requirements.rb +15 -0
  11. data/lib/subtitle_it/bin.rb +132 -0
  12. data/lib/subtitle_it/fixes.rb +12 -0
  13. data/lib/subtitle_it/formats/ass.rb +13 -0
  14. data/lib/subtitle_it/formats/mpl.rb +29 -0
  15. data/lib/subtitle_it/formats/rsb.rb +37 -0
  16. data/lib/subtitle_it/formats/srt.rb +45 -0
  17. data/lib/subtitle_it/formats/sub.rb +49 -0
  18. data/lib/subtitle_it/formats/xml.rb +65 -0
  19. data/lib/subtitle_it/formats/yml.rb +18 -0
  20. data/lib/subtitle_it/generator.rb +15 -0
  21. data/lib/subtitle_it/languages.rb +60 -0
  22. data/lib/subtitle_it/movie.rb +24 -0
  23. data/lib/subtitle_it/movie_hasher.rb +30 -0
  24. data/lib/subtitle_it/platform_endl.rb +9 -0
  25. data/lib/subtitle_it/subdown.rb +107 -0
  26. data/lib/subtitle_it/subline.rb +25 -0
  27. data/lib/subtitle_it/substyle.rb +11 -0
  28. data/lib/subtitle_it/subtime.rb +41 -0
  29. data/lib/subtitle_it/subtitle.rb +76 -0
  30. data/lib/subtitle_it/version.rb +9 -0
  31. data/lib/subtitle_it.rb +22 -0
  32. data/script/console +10 -0
  33. data/script/destroy +14 -0
  34. data/script/generate +14 -0
  35. data/script/txt2html +82 -0
  36. data/setup.rb +1585 -0
  37. data/spec/fixtures/godfather.srt +2487 -0
  38. data/spec/fixtures/huge.ass +22 -0
  39. data/spec/fixtures/movie.xml +28 -0
  40. data/spec/fixtures/movie.yml +163 -0
  41. data/spec/fixtures/pseudo.rsb +6 -0
  42. data/spec/fixtures/pulpfiction.sub +2025 -0
  43. data/spec/fixtures/puplfiction.mpl +12 -0
  44. data/spec/fixtures/sincity.yml +12 -0
  45. data/spec/spec.opts +1 -0
  46. data/spec/spec_helper.rb +71 -0
  47. data/spec/subtitle_it/bin_spec.rb +142 -0
  48. data/spec/subtitle_it/fixes_spec.rb +0 -0
  49. data/spec/subtitle_it/formats/ass_spec.rb +5 -0
  50. data/spec/subtitle_it/formats/mpl_spec.rb +45 -0
  51. data/spec/subtitle_it/formats/rsb_spec.rb +42 -0
  52. data/spec/subtitle_it/formats/srt_spec.rb +57 -0
  53. data/spec/subtitle_it/formats/sub_spec.rb +49 -0
  54. data/spec/subtitle_it/formats/xml_spec.rb +60 -0
  55. data/spec/subtitle_it/formats/yml_spec.rb +20 -0
  56. data/spec/subtitle_it/generator_spec.rb +0 -0
  57. data/spec/subtitle_it/movie_hasher_spec.rb +13 -0
  58. data/spec/subtitle_it/movie_spec.rb +25 -0
  59. data/spec/subtitle_it/subdown_spec.rb +94 -0
  60. data/spec/subtitle_it/subline_spec.rb +30 -0
  61. data/spec/subtitle_it/substyle_spec.rb +1 -0
  62. data/spec/subtitle_it/subtime_spec.rb +73 -0
  63. data/spec/subtitle_it/subtitle_spec.rb +40 -0
  64. data/spec/subtitle_it_spec.rb +11 -0
  65. data/subtitle_it.gemspec +41 -0
  66. data/tasks/deployment.rake +34 -0
  67. data/tasks/environment.rake +7 -0
  68. data/tasks/rspec.rake +21 -0
  69. metadata +152 -0
@@ -0,0 +1,22 @@
1
+ [Script Info]
2
+ ; Script generated by Aegisub
3
+ ; http://www.aegisub.net
4
+ Title: Neon Genesis Evangelion - Episode 26 (neutral Spanish)
5
+ Original Script: RoRo
6
+ Script Updated By: version 2.8.01
7
+ ScriptType: v4.00+
8
+ Collisions: Normal
9
+ PlayResY: 600
10
+ PlayDepth: 0
11
+ Timer: 100,0000
12
+ Video Aspect Ratio: 0
13
+ Video Zoom: 6
14
+ Video Position: 0
15
+
16
+ [V4+ Styles]
17
+ Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
18
+ Style: DefaultVCD, Arial,28,&H00B4FCFC,&H00B4FCFC,&H00000008,&H80000008,-1,0,0,0,100,100,0.00,0.00,1,1.00,2.00,2,30,30,30,0
19
+
20
+ [Events]
21
+ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
22
+ Dialogue: 0,0:00:01.18,0:00:06.85,DefaultVCD, NTP,0000,0000,0000,,{\pos(400,570)}Like an Angel with pity on nobody
@@ -0,0 +1,28 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <tt xml:lang="en" xmlns="http://www.w3.org/2006/04/ttaf1" xmlns:tts="http://www.w3.org/2006/04/ttaf1#styling">
3
+ <head>
4
+ <styling>
5
+ <style id="1" tts:textAlign="right"/>
6
+ <style id="2" tts:color="transparent"/>
7
+ <style id="3" style="2" tts:backgroundColor="white"/>
8
+ <style id="4" style="2 3" tts:fontSize="20"/>
9
+ </styling>
10
+ </head>
11
+ <body>
12
+ <div xml:lang="en">
13
+ <p begin="00:00:00.00" dur="00:00:03.07">I had just joined <span tts:fontFamily="monospaceSansSerif,proportionalSerif,TheOther"tts:fontSize="+2">Macromedia</span> in 1996,</p>
14
+ <p begin="00:00:03.07" dur="00:00:03.35">and we were trying to figure out what to do about the internet.</p>
15
+ <p begin="00:00:06.42" dur="00:00:03.15">And the company was in dire straights at the time.</p>
16
+ <p begin="00:00:09.57" dur="00:00:01.45">We were a CD-ROM authoring company,</p>
17
+ <p begin="00:00:11.42" dur="00:00:02.00">and the CD-ROM business was going away.</p>
18
+ <p begin="00:00:13.57" dur="00:00:02.50">One of the technologies I remember seeing was Flash.</p>
19
+ <p begin="00:00:16.47" dur="00:00:02.00">At the time, it was called <span tts:fontWeight="bold" tts:color="#ccc333">FutureSplash</span>.</p>
20
+ <p begin="00:00:18.50" dur="00:00:01.20">So this is where Flash got its start.</p>
21
+ <p begin="00:00:20.10" dur="00:00:03.00">This is smart sketch running on the <span tts:fontStyle="italic">EU-pin computer</span>,</p>
22
+ <p begin="00:00:23.52" dur="00:00:02.00">which was the first product that FutureWave did.</p>
23
+ <p begin="00:00:25.52" dur="00:00:02.00">So our vision for this product was to</p>
24
+ <p begin="00:00:27.52" dur="00:00:01.10">make drawing on the computer</p>
25
+ <p begin="00:00:29.02" dur="00:00:01.30" style="1">as <span tts:color="#ccc333">easy</span> as drawing on paper.</p>
26
+ </div>
27
+ </body>
28
+ </tt>
@@ -0,0 +1,163 @@
1
+ -- !ruby/object:SubtitleIt::Subtitle
2
+ format: xml
3
+ fps: 23.976
4
+ lines:
5
+ - !ruby/object:SubtitleIt::Subline
6
+ text: I had just joined <span tts:fontSize="+2" tts:fontFamily="monospaceSansSerif,proportionalSerif,TheOther">Macromedia</span> in 1996,
7
+ time_off: !ruby/object:SubtitleIt::Subtime
8
+ hrs: 0
9
+ min: 0
10
+ ms: 700
11
+ sec: 3
12
+ time_on: !ruby/object:SubtitleIt::Subtime
13
+ hrs: 0
14
+ min: 0
15
+ ms: 0
16
+ sec: 0
17
+ - !ruby/object:SubtitleIt::Subline
18
+ text: and we were trying to figure out what to do about the internet.
19
+ time_off: !ruby/object:SubtitleIt::Subtime
20
+ hrs: 0
21
+ min: 0
22
+ ms: 50
23
+ sec: 7
24
+ time_on: !ruby/object:SubtitleIt::Subtime
25
+ hrs: 0
26
+ min: 0
27
+ ms: 700
28
+ sec: 3
29
+ - !ruby/object:SubtitleIt::Subline
30
+ text: And the company was in dire straights at the time.
31
+ time_off: !ruby/object:SubtitleIt::Subtime
32
+ hrs: 0
33
+ min: 0
34
+ ms: 570
35
+ sec: 9
36
+ time_on: !ruby/object:SubtitleIt::Subtime
37
+ hrs: 0
38
+ min: 0
39
+ ms: 420
40
+ sec: 6
41
+ - !ruby/object:SubtitleIt::Subline
42
+ text: We were a CD-ROM authoring company,
43
+ time_off: !ruby/object:SubtitleIt::Subtime
44
+ hrs: 0
45
+ min: 0
46
+ ms: 20
47
+ sec: 11
48
+ time_on: !ruby/object:SubtitleIt::Subtime
49
+ hrs: 0
50
+ min: 0
51
+ ms: 570
52
+ sec: 9
53
+ - !ruby/object:SubtitleIt::Subline
54
+ text: and the CD-ROM business was going away.
55
+ time_off: !ruby/object:SubtitleIt::Subtime
56
+ hrs: 0
57
+ min: 0
58
+ ms: 420
59
+ sec: 13
60
+ time_on: !ruby/object:SubtitleIt::Subtime
61
+ hrs: 0
62
+ min: 0
63
+ ms: 420
64
+ sec: 11
65
+ - !ruby/object:SubtitleIt::Subline
66
+ text: One of the technologies I remember seeing was Flash.
67
+ time_off: !ruby/object:SubtitleIt::Subtime
68
+ hrs: 0
69
+ min: 0
70
+ ms: 70
71
+ sec: 16
72
+ time_on: !ruby/object:SubtitleIt::Subtime
73
+ hrs: 0
74
+ min: 0
75
+ ms: 570
76
+ sec: 13
77
+ - !ruby/object:SubtitleIt::Subline
78
+ text: At the time, it was called <span tts:color="#ccc333" tts:fontWeight="bold">FutureSplash</span>.
79
+ time_off: !ruby/object:SubtitleIt::Subtime
80
+ hrs: 0
81
+ min: 0
82
+ ms: 470
83
+ sec: 18
84
+ time_on: !ruby/object:SubtitleIt::Subtime
85
+ hrs: 0
86
+ min: 0
87
+ ms: 470
88
+ sec: 16
89
+ - !ruby/object:SubtitleIt::Subline
90
+ text: So this is where Flash got its start.
91
+ time_off: !ruby/object:SubtitleIt::Subtime
92
+ hrs: 0
93
+ min: 0
94
+ ms: 700
95
+ sec: 19
96
+ time_on: !ruby/object:SubtitleIt::Subtime
97
+ hrs: 0
98
+ min: 0
99
+ ms: 500
100
+ sec: 18
101
+ - !ruby/object:SubtitleIt::Subline
102
+ text: This is smart sketch running on the <span tts:fontStyle="italic">EU-pin computer</span>,
103
+ time_off: !ruby/object:SubtitleIt::Subtime
104
+ hrs: 0
105
+ min: 0
106
+ ms: 100
107
+ sec: 23
108
+ time_on: !ruby/object:SubtitleIt::Subtime
109
+ hrs: 0
110
+ min: 0
111
+ ms: 100
112
+ sec: 20
113
+ - !ruby/object:SubtitleIt::Subline
114
+ text: which was the first product that FutureWave did.
115
+ time_off: !ruby/object:SubtitleIt::Subtime
116
+ hrs: 0
117
+ min: 0
118
+ ms: 520
119
+ sec: 25
120
+ time_on: !ruby/object:SubtitleIt::Subtime
121
+ hrs: 0
122
+ min: 0
123
+ ms: 520
124
+ sec: 23
125
+ - !ruby/object:SubtitleIt::Subline
126
+ text: So our vision for this product was to
127
+ time_off: !ruby/object:SubtitleIt::Subtime
128
+ hrs: 0
129
+ min: 0
130
+ ms: 520
131
+ sec: 27
132
+ time_on: !ruby/object:SubtitleIt::Subtime
133
+ hrs: 0
134
+ min: 0
135
+ ms: 520
136
+ sec: 25
137
+ - !ruby/object:SubtitleIt::Subline
138
+ text: make drawing on the computer
139
+ time_off: !ruby/object:SubtitleIt::Subtime
140
+ hrs: 0
141
+ min: 0
142
+ ms: 620
143
+ sec: 28
144
+ time_on: !ruby/object:SubtitleIt::Subtime
145
+ hrs: 0
146
+ min: 0
147
+ ms: 520
148
+ sec: 27
149
+ - !ruby/object:SubtitleIt::Subline
150
+ text: as <span tts:color="#ccc333">easy</span> as drawing on paper.
151
+ time_off: !ruby/object:SubtitleIt::Subtime
152
+ hrs: 0
153
+ min: 0
154
+ ms: 500
155
+ sec: 30
156
+ time_on: !ruby/object:SubtitleIt::Subtime
157
+ hrs: 0
158
+ min: 0
159
+ ms: 200
160
+ sec: 29
161
+ raw: !ruby/object:File {}
162
+
163
+ style:
@@ -0,0 +1,6 @@
1
+ - title: sincity
2
+ - authors:
3
+ - version: 1.1
4
+ 00:05:26.500 => 00:05:28.500 == worth killing for...
5
+ 00:06:00.400 => 00:06:03.400 == worth dying for...
6
+ 00:07:00.300 => 00:07:03.300 == worth going to the hell for...