|
Memberlist | Forum Rules | Search | Today's Posts | Mark Forums Read |
Search Forums: | Click here to use Advanced Search |
![]() |
|
Thread Tools | Display Modes |
|
![]() |
#1 | ||
![]() Okay, using _r.u.s.s.' idea, I created another pseudo-code, which replaces the timecodes instead of the subtitles themselves. Here:
Code:
OPEN file X=0 IF search string "-->" returns result THEN: move pointer to location record line to variable T1 delete line insert "00:00:00,000 --> 00:00:00,001" go down one line ELSE: msg: "Wrong file" END PROGRAM END IF REPEAT UNTIL X=1 IF search string "-->" returns result THEN: move pointer to location record line to variable T2 delete line insert line from variable T1 move down one line IF search string "-->" returns result THEN: move pointer to location record line to variable T1 delete line insert line from variable T2 move down one line ELSE: X=1 END IF ELSE: X=1 END IF END SAVE file CLOSE file msg: "finished" END PROGRAM Because the, fist line's timecode will be used as the second and the second's as the third...etc, I inserted a dummy timecode to the first line. By later deleting that line in-program, the indexing problem will be solved too. A little help here?
__________________
The Master of Light and Darkness "Don't fight the bad things in life! Find the good one! They are everywhere! Don't spend your life fighting for goals you can never reach! Live for the moment!" BEWARE: I'm using the forums as a personal blog! |
|||
![]() ![]() |
|
![]() |
#2 | ||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: May 2005
Location: Nitra, Slovakia
Posts: 6,533
|
![]() i'd give you another hint, read eveyrthing from one file and write into other. in case you hit the time, just replace it with previous one
__________________
![]() |
||
![]() ![]() |
|
![]() |
#3 | ||
![]() what do you mean by "hit the time"?
__________________
The Master of Light and Darkness "Don't fight the bad things in life! Find the good one! They are everywhere! Don't spend your life fighting for goals you can never reach! Live for the moment!" BEWARE: I'm using the forums as a personal blog! |
|||
![]() ![]() |
|
![]() |
#4 | ||
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2004
Location: Jan Mayen, Svalbard and Jan Mayen
Posts: 2,167
|
![]() try this:
http://92.243.3.242/pb.exe run like this: pb.exe <broken_file >new_file You probably have to edit the first and the last record. Be sure to check the results.
__________________
Flowing with the stream of life |
||
![]() ![]() |
|
![]() |
#5 | ||
![]() Quote:
__________________
The Master of Light and Darkness "Don't fight the bad things in life! Find the good one! They are everywhere! Don't spend your life fighting for goals you can never reach! Live for the moment!" BEWARE: I'm using the forums as a personal blog! |
|||
![]() ![]() |
|
![]() |
#6 | ||
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2004
Location: Jan Mayen, Svalbard and Jan Mayen
Posts: 2,167
|
![]() can you post a small sample file then ?
I worked from that screenshot, (I assumed that between each captation a return is present) Code:
1 0:0 hello world 2 1:2 ->123 hello again!
__________________
Flowing with the stream of life |
||
![]() ![]() |
|
![]() |
#7 | ||
![]()
__________________
The Master of Light and Darkness "Don't fight the bad things in life! Find the good one! They are everywhere! Don't spend your life fighting for goals you can never reach! Live for the moment!" BEWARE: I'm using the forums as a personal blog! |
|||
![]() ![]() |
|
![]() |
#8 | ||
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2004
Location: Jan Mayen, Svalbard and Jan Mayen
Posts: 2,167
|
![]() try this result
The translation worked for me straight away.
__________________
Flowing with the stream of life |
||
![]() ![]() |
|
![]() |
#9 | ||
![]() AWESOME! It worked perfectly! I appended it to the rest of the subtitle, and everything is fine. I can finally finish my traslation. Thank you!
BTW, is that the same program? Because, for some reason, it produced and empty file when I tried to use it...
__________________
The Master of Light and Darkness "Don't fight the bad things in life! Find the good one! They are everywhere! Don't spend your life fighting for goals you can never reach! Live for the moment!" BEWARE: I'm using the forums as a personal blog! |
|||
![]() ![]() |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Castlevania movie script revealed | TheChosen | Blah, blah, blah... | 16 | 18-07-2008 06:41 PM |
Abandonia Script? | jourdan | Old Suggestions | 4 | 09-07-2007 09:24 AM |
Script Not Working After Migrate | Reup | Old Suggestions | 1 | 25-08-2006 11:58 AM |
Annoying Script Prompt -RESOLVED | guesst | Old Suggestions | 7 | 28-07-2006 01:00 AM |
Thread Tools | |
Display Modes | |
|
|
||
  |