General questions about using TextPad
Moderators: AmigoJack , bbadmin , helios , MudGuard
eddy.fr
Posts: 5 Joined: Wed Jul 04, 2007 7:23 pm
Location: Le Perreux sur Marne
Contact:
Post
by eddy.fr » Sat Apr 12, 2008 11:40 pm
In subtitles I have this :
37
00:03:53,000 --> 00:03:55,520
<i>Alla fine di queste deliberazioni,</i>
38
00:03:55,560 --> 00:04:00,840
<i>noi abbiamo apprezzato quello che era positivo
ed anche fece piano che molto rimane essere fatto.</i>
39
00:04:14,000 --> 00:04:17,440
El espectáculo,
comprendido en su totalidad,
I must insert 3 subtitles like this :
37
00:03:53,000 --> 00:03:55,520
<i>Alla fine di queste deliberazioni,</i>
38
00:03:55,560 --> 00:04:00,840
<i>noi abbiamo apprezzato quello che era positivo
ed anche fece piano che molto rimane essere fatto.</i>
39
00:04:03,630 --> 00:04:06,906
Lo spettacolo non è
un insieme di immagini,
40
00:04:07,002 --> 00:04:09,558
ma un rapporto sociale
tra le persone,
41
00:04:09,678 --> 00:04:12,570
mediato dalle immagini.
42
00:04:14,000 --> 00:04:17,440
El espectáculo,
comprendido en su totalidad,
etc. to 1040
My problem is after 42, how add +3 to 1040 ?
Thanks in advance if you can help me
Eddy
ben_josephs
Posts: 2464 Joined: Sun Mar 02, 2003 9:22 pm
Post
by ben_josephs » Sun Apr 13, 2008 9:48 am
I don't understand "after 42, how add +3 to 1040 ?" If you mean "how do I get the new and displaced entries numbered in sequence?" you might try something similar to this:
Fi nd what: ^([0-9]+)$
Rep lace with: \1\i(37)
[X ] Regular e xpression
Replace A ll
This assumes you are using Posix regular expression syntax:
C onfigure | P references | Editor
[X ] Use P OSIX regular expression syntax
eddy.fr
Posts: 5 Joined: Wed Jul 04, 2007 7:23 pm
Location: Le Perreux sur Marne
Contact:
Post
by eddy.fr » Mon Apr 14, 2008 12:01 pm
ben_josephs wrote: I don't understand "after 42, how add +3 to 1040 ?"
in french = "jusqu'Ã ". I tryed this english, not the good if I understand you.
But I found the solution, not in TextPad. Subtitles (SRT files) accept any number in the list. Example, the real example:
38
00:03:55,560 --> 00:04:00,840
<i>noi abbiamo apprezzato quello che era positivo
ed anche fece piano che molto rimane essere fatto.</i>
1041
00:04:03,630 --> 00:04:06,906
The spectacle is not a
collection of images,
1042
00:04:07,002 --> 00:04:09,558
but a social relation
among persons,
1043
00:04:09,678 --> 00:04:12,570
mediated by images.
39
00:04:14,000 --> 00:04:17,440
El espectáculo,
comprendido en su totalidad,
I must find a website about SRT files, to confirm my discovery.
ben_josephs wrote: If you mean "how do I get the new and displaced entries numbered in sequence?" you might try something similar to this:
Fi nd what: ^([0-9]+)$
Rep lace with: \1\i(37)
[X ] Regular e xpression
Replace A ll
I go to try now and I will pass again here to tell you if it's ok.
ben_josephs wrote: This assumes you are using Posix regular expression syntax:
C onfigure | P references | Editor
[X ] Use P OSIX regular expression syntax
Thanks a lot (merci beaucoup)
See you
e<>y
eddy.fr
Posts: 5 Joined: Wed Jul 04, 2007 7:23 pm
Location: Le Perreux sur Marne
Contact:
Post
by eddy.fr » Mon Apr 14, 2008 12:32 pm
ben_josephs wrote:
Fi nd what: ^([0-9]+)$
Rep lace with: \1\i(9)
[X ] Regular e xpression
Replace A ll
This assumes you are using Posix regular expression syntax:
C onfigure | P references | Editor
[X ] Use P OSIX regular expression syntax
I tryed, and this is the result :
89
00:01:25,120 --> 00:01:26,240
"La Sociedad del Espectáculo" (1967).
910
00:01:40,920 --> 00:01:45,040
Ya que cada sentimiento particular
es sólo un aspecto parcial de la vida
1011
00:01:45,120 --> 00:01:49,000
y no la vida entera,
1112
00:01:49,080 --> 00:01:55,520
la vida arde para fluir a través
de la diversidad de sentimientos
1213
00:01:55,640 --> 00:02:00,640
y de este modo redescubrirse
en la suma de la diversidad.
1314
00:02:00,680 --> 00:02:07,760
En el amor, persona separada aún existe
pero no tan separada como unida;
How to tell it "You must replace '8' by '9'"
e<>y
ben_josephs
Posts: 2464 Joined: Sun Mar 02, 2003 9:22 pm
Post
by ben_josephs » Mon Apr 14, 2008 12:48 pm
Ah! Je m'excuse! My mistake. There shouldn't be a
\1 in the replacenent expression. Try this:
Fi nd what: ^[0-9]+$
Rep lace with: \i(9)
[X ] Regular e xpression
Replace A ll
where
9 takes the place of the number you want the sequence to start from.
eddy.fr
Posts: 5 Joined: Wed Jul 04, 2007 7:23 pm
Location: Le Perreux sur Marne
Contact:
Post
by eddy.fr » Mon Apr 14, 2008 1:11 pm
ben_josephs wrote: Ah! Je m'excuse! My mistake. There shouldn't be a
\1 in the replacenent expression. Try this:
Fi nd what: ^[0-9]+$
Rep lace with: \i(9)
[X ] Regular e xpression
Replace A ll
where
9 takes the place of the number you want the sequence to start from.
I found it alone... because I tryed a lot of solutions... without understand but...
Thanks again
e<>y
.