Page 1 of 1

Hello. I want to add +3 in a list

Posted: Sat Apr 12, 2008 11:40 pm
by eddy.fr
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

Posted: Sun Apr 13, 2008 9:48 am
by ben_josephs
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:
Find what: ^([0-9]+)$
Replace with: \1\i(37)

[X] Regular expression

Replace All
This assumes you are using Posix regular expression syntax:
Configure | Preferences | Editor

[X] Use POSIX regular expression syntax

Posted: Mon Apr 14, 2008 12:01 pm
by eddy.fr
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:
Find what: ^([0-9]+)$
Replace with: \1\i(37)
[X] Regular expression
Replace All
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:
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
Thanks a lot (merci beaucoup)

See you

e<>y

Posted: Mon Apr 14, 2008 12:32 pm
by eddy.fr
ben_josephs wrote:
Find what: ^([0-9]+)$
Replace with: \1\i(9)
[X] Regular expression
Replace All
This assumes you are using Posix regular expression syntax:
Configure | Preferences | Editor
[X] Use POSIX 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

Posted: Mon Apr 14, 2008 12:48 pm
by ben_josephs
Ah! Je m'excuse! My mistake. There shouldn't be a \1 in the replacenent expression. Try this:
Find what: ^[0-9]+$
Replace with: \i(9)

[X] Regular expression

Replace All
where 9 takes the place of the number you want the sequence to start from.

Posted: Mon Apr 14, 2008 1:11 pm
by eddy.fr
ben_josephs wrote:Ah! Je m'excuse! My mistake. There shouldn't be a \1 in the replacenent expression. Try this:
Find what: ^[0-9]+$
Replace with: \i(9)

[X] Regular expression

Replace All
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
.