Re: How to divide subtitles (srt) in two lines

2023-06-05 Thread Otto Munters
*What if I make it a conditional Grep?*
Starting with the longest lines and dividing it into two lines. Then in 
increments the shorter sentences. 

I'm trying to make a Find and Replace right now, the finding succeeds, but 
replace does not (with \1\n ) 
Willen jullie nog eens naar deze formule kijken? 
 (?=^.{130})(^\n?.{63})  

Thanks a lot!

Op maandag 5 juni 2023 om 16:43:21 UTC+2 schreef Otto Munters:

> Example output srt file YouTube:
> 1
> 00:00:33,360 --> 00:00:45,060
> Welkom. Leuk om jullie allemaal te zien. We moeten de tijd nemen om
>
> 2
> 00:00:46,560 --> 00:00:52,380
> de regels in te voeren. Net zoals jij ashram-regels hebt, hebben wij 
> regels voor zelfonderzoek.
>
> It should look like this:
> 1
> 00:00:33,360 --> 00:00:45,060
> Welkom. Leuk om jullie allemaal 
> te zien. We moeten de tijd nemen om
>
> 2
> 00:00:46,560 --> 00:00:52,380
> de regels in te voeren. Net zoals jij ashram-
> regels hebt, hebben wij regels voor zelfonderzoek.
>
> Op maandag 5 juni 2023 om 16:37:34 UTC+2 schreef Bruce Van Allen:
>
>> Still not clear to me what you’re trying to do. Do you mean that you want 
>> to break the lines into 50 characters each, regardless of word length? 
>>
>> > I can then repeat this several times with different number of 
>> characters, from many to fewer. 
>>
>> Where are those different numbers coming from? I.e., manually choosing 
>> them as you progress through your text? Based on word boundaries? 
>>
>> Could you show a before and after sample or two? 
>>
>> — Bruce 
>>
>> _bruce__van_allen__santa_cruz_ca_ 
>>
>>
>>
>>
>>
>> > On Jun 5, 2023, at 7:29 AM, Otto Munters  wrote: 
>> > 
>> > I have tried the Hard Wrap feature. It works well if all the sentences 
>> are the same length. But unfortunately that is not the case, the sentences 
>> vary in length between about 30 and 200 words. 
>> > Therefore, I am looking for a way to do a line break after a certain 
>> amount of characters. I can then repeat this several times with different 
>> number of characters, from many to fewer. 
>> > 
>> > Op maandag 5 juni 2023 om 16:01:58 UTC+2 schreef Kaveh Bazargan: 
>> > Nice simple solution, Kevin!! 
>> > 
>> > On Mon, 5 Jun 2023 at 14:54, Kevin Shay  wrote: 
>> > Maybe I'm not understanding what you're trying to do, but it seems like 
>> you could just use the Hard Wrap feature (Text > Hard Wrap...)? Set it to 
>> 50 characters and turn "Paragraph fill" off. 
>> > 
>> > Using a regex will break lines within words, which probably isn't what 
>> you want. 
>> > 
>> > On Mon, Jun 5, 2023 at 9:32 AM Otto Munters  
>> wrote: 
>> > In Find and Replace I can do this search: 
>> > 
>> > ^\n?.{50} 
>> > 
>> > But I can't figure out how to replace the same words followed by a line 
>> break. 
>> > Can anybody help me? 
>> > 
>> > Op zaterdag 3 juni 2023 om 16:46:44 UTC+2 schreef Otto Munters: 
>> > An automatically translated subtitle in YouTube turns two lines in the 
>> original language into one long sentence. How can I turn this back into two 
>> sentences, the top sentence slightly shorter than the sentence below it. Is 
>> there a grep for that? Or how do you do that with text factory? 
>> > 
>> > Example output srt file YouTube: 
>> > 1 
>> > 00:00:33,360 --> 00:00:45,060 
>> > Welkom. Leuk om jullie allemaal te zien. We moeten de tijd nemen om 
>> > 
>> > 2 
>> > 00:00:46,560 --> 00:00:52,380 
>> > de regels in te voeren. Net zoals jij ashram-regels hebt, hebben wij 
>> regels voor zelfonderzoek. 
>> > 
>> > It should look like this: 
>> > 1 
>> > 00:00:33,360 --> 00:00:45,060 
>> > Welkom. Leuk om jullie allemaal 
>> > te zien. We moeten de tijd nemen om 
>> > 
>> > 2 
>> > 00:00:46,560 --> 00:00:52,380 
>> > de regels in te voeren. Net zoals jij ashram- 
>> > regels hebt, hebben wij regels voor zelfonderzoek. 
>> > 
>> > Thanks a lot for your help! 
>> > 
>> > 
>> > -- 
>> > This is the BBEdit Talk public discussion group. If you have a feature 
>> request or need technical support, please email "sup...@barebones.com" 
>> rather than posting here. Follow @bbedit on Twitter: <
>> https://twitter.com/bbedit> 
>> > --- 
>> > You received this message because you are subscribed to the Google 
>> Groups "BBEdit Talk" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an email to bbedit+un...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/bbedit/adbe2498-9b89-4afd-b284-b30ee7debb71n%40googlegroups.com.
>>  
>>
>> > 
>> > -- 
>> > This is the BBEdit Talk public discussion group. If you have a feature 
>> request or need technical support, please email "sup...@barebones.com" 
>> rather than posting here. Follow @bbedit on Twitter: <
>> https://twitter.com/bbedit> 
>> > --- 
>> > You received this message because you are subscribed to the Google 
>> Groups "BBEdit Talk" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an email to bbedit+un...@googlegroups.com. 
>> >

Re: How to divide subtitles (srt) in two lines

2023-06-05 Thread Otto Munters
Example output srt file YouTube:
1
00:00:33,360 --> 00:00:45,060
Welkom. Leuk om jullie allemaal te zien. We moeten de tijd nemen om

2
00:00:46,560 --> 00:00:52,380
de regels in te voeren. Net zoals jij ashram-regels hebt, hebben wij regels 
voor zelfonderzoek.

It should look like this:
1
00:00:33,360 --> 00:00:45,060
Welkom. Leuk om jullie allemaal 
te zien. We moeten de tijd nemen om

2
00:00:46,560 --> 00:00:52,380
de regels in te voeren. Net zoals jij ashram-
regels hebt, hebben wij regels voor zelfonderzoek.

Op maandag 5 juni 2023 om 16:37:34 UTC+2 schreef Bruce Van Allen:

> Still not clear to me what you’re trying to do. Do you mean that you want 
> to break the lines into 50 characters each, regardless of word length?
>
> > I can then repeat this several times with different number of 
> characters, from many to fewer.
>
> Where are those different numbers coming from? I.e., manually choosing 
> them as you progress through your text? Based on word boundaries?
>
> Could you show a before and after sample or two?
>
> — Bruce
>
> _bruce__van_allen__santa_cruz_ca_
>
>
>
>
>
> > On Jun 5, 2023, at 7:29 AM, Otto Munters  wrote:
> > 
> > I have tried the Hard Wrap feature. It works well if all the sentences 
> are the same length. But unfortunately that is not the case, the sentences 
> vary in length between about 30 and 200 words. 
> > Therefore, I am looking for a way to do a line break after a certain 
> amount of characters. I can then repeat this several times with different 
> number of characters, from many to fewer.
> > 
> > Op maandag 5 juni 2023 om 16:01:58 UTC+2 schreef Kaveh Bazargan:
> > Nice simple solution, Kevin!!
> > 
> > On Mon, 5 Jun 2023 at 14:54, Kevin Shay  wrote:
> > Maybe I'm not understanding what you're trying to do, but it seems like 
> you could just use the Hard Wrap feature (Text > Hard Wrap...)? Set it to 
> 50 characters and turn "Paragraph fill" off.
> > 
> > Using a regex will break lines within words, which probably isn't what 
> you want.
> > 
> > On Mon, Jun 5, 2023 at 9:32 AM Otto Munters  wrote:
> > In Find and Replace I can do this search:
> > 
> > ^\n?.{50}
> > 
> > But I can't figure out how to replace the same words followed by a line 
> break.
> > Can anybody help me?
> > 
> > Op zaterdag 3 juni 2023 om 16:46:44 UTC+2 schreef Otto Munters:
> > An automatically translated subtitle in YouTube turns two lines in the 
> original language into one long sentence. How can I turn this back into two 
> sentences, the top sentence slightly shorter than the sentence below it. Is 
> there a grep for that? Or how do you do that with text factory?
> > 
> > Example output srt file YouTube:
> > 1
> > 00:00:33,360 --> 00:00:45,060
> > Welkom. Leuk om jullie allemaal te zien. We moeten de tijd nemen om
> > 
> > 2
> > 00:00:46,560 --> 00:00:52,380
> > de regels in te voeren. Net zoals jij ashram-regels hebt, hebben wij 
> regels voor zelfonderzoek.
> > 
> > It should look like this:
> > 1
> > 00:00:33,360 --> 00:00:45,060
> > Welkom. Leuk om jullie allemaal 
> > te zien. We moeten de tijd nemen om
> > 
> > 2
> > 00:00:46,560 --> 00:00:52,380
> > de regels in te voeren. Net zoals jij ashram-
> > regels hebt, hebben wij regels voor zelfonderzoek.
> > 
> > Thanks a lot for your help!
> > 
> > 
> > -- 
> > This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "sup...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: <
> https://twitter.com/bbedit>
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups "BBEdit Talk" group.
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to bbedit+un...@googlegroups.com.
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/adbe2498-9b89-4afd-b284-b30ee7debb71n%40googlegroups.com
> .
> > 
> > -- 
> > This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "sup...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: <
> https://twitter.com/bbedit>
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups "BBEdit Talk" group.
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to bbedit+un...@googlegroups.com.
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/CAKi-cfs8RFSdBqmacMvOpzakvsOs5D_TJ_rniHcc1mwuLnMryg%40mail.gmail.com
> .
> > 
> > 
> > -- 
> > Kaveh Bazargan PhD
> > Director
> > River Valley Technologies ● Twitter ● LinkedIn ● ORCID ● 
> @kave...@mastodon.social
> > Accelerating the Communication of Research
> > 
> > 
> > -- 
> > This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "sup...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: <
> https://twitter.com/bbedit>
> 

Re: Do Notes sync?

2023-06-05 Thread Rich Siegel
On 5 Jun 2023, at 9:03, Jack Hodgson wrote:

> If I create a Notebook in a directory on my iCloud drive. Then I open that
> Notebook on two different Macs at the same time.

The application won't let you do that; a notebook can be opened only on one 
computer at a time.

However, changes that you make to the notebook in the shared location will be 
available to any computer which opens the notebook from that location.

If you want actual syncing, we make a product that does that. :-)



R.

> If I make an edit to it on
> one Mac, will it automatically propagate to the opened Notebook on the
> other Mac?
>
> (I may have tested this scenario before you have a chance to reply.)
>
> On Sat, Jun 3, 2023 at 10:26 AM Rich Siegel  wrote:
>
>> On 3 Jun 2023, at 10:16, Simdude wrote:
>>
>>> This is probably a really basic question on the Notes feature in Bbedit,
>>> but do they sync between devices? I started using and took some notes on
>> my
>>> desktop. When I went to my laptop, I expected to see the same notes but
>> did
>>> not. Perhaps something in my setup?
>>
>> There is no intrinsic syncing in BBEdit. You can create a Notebook in a
>> synced location (Dropbox, OneDrive, etc); or you can place BBEdit's support
>> folder in a synced location and the default notebook will sync. Otherwise,
>> no. :-)
>>
>> R.
>>
>> --
>> This is the BBEdit Talk public discussion group. If you have a feature
>> request or need technical support, please email "supp...@barebones.com"
>> rather than posting here. Follow @bbedit on Twitter: <
>> https://twitter.com/bbedit>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to bbedit+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/bbedit/9CDED442-40DA-4480-980F-5A98DA92A5C8%40barebones.com
>> .
>>
>
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> 
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/CAOr3_zoeyb8irYTJcFNb04hphBOPO0vSkmb9sb8%2BUuhnbXtjNg%40mail.gmail.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/ACB87083-1757-4AE2-AA5C-627769FD0ED5%40barebones.com.


Re: How to divide subtitles (srt) in two lines

2023-06-05 Thread Bruce Van Allen
Still not clear to me what you’re trying to do. Do you mean that you want to 
break the lines into 50 characters each, regardless of word length?

> I can then repeat this several times with different number of characters, 
> from many to fewer.

Where are those different numbers coming from? I.e., manually choosing them as 
you progress through your text? Based on word boundaries?

Could you show a before and after sample or two?

— Bruce

_bruce__van_allen__santa_cruz_ca_





> On Jun 5, 2023, at 7:29 AM, Otto Munters  wrote:
> 
> I have tried the Hard Wrap feature. It works well if all the sentences are 
> the same length. But unfortunately that is not the case, the sentences vary 
> in length between about 30 and 200 words. 
> Therefore, I am looking for a way to do a line break after a certain amount 
> of characters. I can then repeat this several times with different number of 
> characters, from many to fewer.
> 
> Op maandag 5 juni 2023 om 16:01:58 UTC+2 schreef Kaveh Bazargan:
> Nice simple solution, Kevin!!
> 
> On Mon, 5 Jun 2023 at 14:54, Kevin Shay  wrote:
> Maybe I'm not understanding what you're trying to do, but it seems like you 
> could just use the Hard Wrap feature (Text > Hard Wrap...)? Set it to 50 
> characters and turn "Paragraph fill" off.
> 
> Using a regex will break lines within words, which probably isn't what you 
> want.
> 
> On Mon, Jun 5, 2023 at 9:32 AM Otto Munters  wrote:
> In Find and Replace I can do this search:
> 
> ^\n?.{50}
> 
> But I can't figure out how to replace the same words followed by a line break.
> Can anybody help me?
> 
> Op zaterdag 3 juni 2023 om 16:46:44 UTC+2 schreef Otto Munters:
> An automatically translated subtitle in YouTube turns two lines in the 
> original language into one long sentence. How can I turn this back into two 
> sentences, the top sentence slightly shorter than the sentence below it. Is 
> there a grep for that? Or how do you do that with text factory?
> 
> Example output srt file YouTube:
> 1
> 00:00:33,360 --> 00:00:45,060
> Welkom. Leuk om jullie allemaal te zien. We moeten de tijd nemen om
> 
> 2
> 00:00:46,560 --> 00:00:52,380
> de regels in te voeren. Net zoals jij ashram-regels hebt, hebben wij regels 
> voor zelfonderzoek.
> 
> It should look like this:
> 1
> 00:00:33,360 --> 00:00:45,060
> Welkom. Leuk om jullie allemaal 
> te zien. We moeten de tijd nemen om
> 
> 2
> 00:00:46,560 --> 00:00:52,380
> de regels in te voeren. Net zoals jij ashram-
> regels hebt, hebben wij regels voor zelfonderzoek.
> 
> Thanks a lot for your help!
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "sup...@barebones.com" rather 
> than posting here. Follow @bbedit on Twitter: 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+un...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/adbe2498-9b89-4afd-b284-b30ee7debb71n%40googlegroups.com.
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "sup...@barebones.com" rather 
> than posting here. Follow @bbedit on Twitter: 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+un...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/CAKi-cfs8RFSdBqmacMvOpzakvsOs5D_TJ_rniHcc1mwuLnMryg%40mail.gmail.com.
> 
> 
> -- 
> Kaveh Bazargan PhD
> Director
> River Valley Technologies ● Twitter ● LinkedIn ● ORCID ● 
> @kave...@mastodon.social
> Accelerating the Communication of Research
>   
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/08a6dfeb-fa01-433f-8dcc-f288cf93c4fdn%40googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails 

Re: Do Notes sync?

2023-06-05 Thread Johnny Ragadoo
The term "sync" does not appear in the BBEdit user manual in the context of 
syncing text files. I believe BBEdit probably doesn't support multiuser 
simultaneous access to text files.

Mac apps that support document handoff natively support that, though. For 
instance, you can open an Apple Pages file on multiple systems logged into 
the same iCloud account.

I don't think BBEdit supports that for text files, and I'm pretty sure 
Notebooks count as text files.

It would be nice to be shown wrong, though.

On Monday, June 5, 2023 at 8:32:01 AM UTC-5 Jack Hodgson wrote:

> Hi Rich!
>
> I'm unclear on how this would work?
>
> If I create a Notebook in a directory on my iCloud drive. Then I open that 
> Notebook on two different Macs at the same time. If I make an edit to it on 
> one Mac, will it automatically propagate to the opened Notebook on the 
> other Mac?
>
> (I may have tested this scenario before you have a chance to reply.)
>
> On Sat, Jun 3, 2023 at 10:26 AM Rich Siegel  wrote:
>
>> On 3 Jun 2023, at 10:16, Simdude wrote:
>>
>> > This is probably a really basic question on the Notes feature in Bbedit,
>> > but do they sync between devices? I started using and took some notes 
>> on my
>> > desktop. When I went to my laptop, I expected to see the same notes but 
>> did
>> > not. Perhaps something in my setup?
>>
>> There is no intrinsic syncing in BBEdit. You can create a Notebook in a 
>> synced location (Dropbox, OneDrive, etc); or you can place BBEdit's support 
>> folder in a synced location and the default notebook will sync. Otherwise, 
>> no. :-)
>>
>> R.
>>
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a feature 
>> request or need technical support, please email "sup...@barebones.com" 
>> rather than posting here. Follow @bbedit on Twitter: <
>> https://twitter.com/bbedit>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to bbedit+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/bbedit/9CDED442-40DA-4480-980F-5A98DA92A5C8%40barebones.com
>> .
>>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/9db7e205-1da0-49ea-ac05-7d306040c621n%40googlegroups.com.


Re: How to divide subtitles (srt) in two lines

2023-06-05 Thread Otto Munters
I have tried the Hard Wrap feature. It works well if all the sentences are 
the same length. But unfortunately that is not the case, the sentences vary 
in length between about 30 and 200 words. 
Therefore, I am looking for a way to do a line break after a certain amount 
of characters. I can then repeat this several times with different number 
of characters, from many to fewer.

Op maandag 5 juni 2023 om 16:01:58 UTC+2 schreef Kaveh Bazargan:

> Nice simple solution, Kevin!!
>
> On Mon, 5 Jun 2023 at 14:54, Kevin Shay  wrote:
>
>> Maybe I'm not understanding what you're trying to do, but it seems like 
>> you could just use the Hard Wrap feature (Text > Hard Wrap...)? Set it to 
>> 50 characters and turn "Paragraph fill" off.
>>
>> Using a regex will break lines within words, which probably isn't what 
>> you want.
>>
>> On Mon, Jun 5, 2023 at 9:32 AM Otto Munters  wrote:
>>
>>> In Find and Replace I can do this search:
>>>
>>> ^\n?.{50}
>>>
>>> But I can't figure out how to replace the same words followed by a line 
>>> break.
>>> Can anybody help me?
>>>
>>> Op zaterdag 3 juni 2023 om 16:46:44 UTC+2 schreef Otto Munters:
>>>
 An automatically translated subtitle in YouTube turns two lines in the 
 original language into one long sentence. How can I turn this back into 
 two 
 sentences, the top sentence slightly shorter than the sentence below it. 
 Is 
 there a grep for that? Or how do you do that with text factory?

 Example output srt file YouTube:
 1
 00:00:33,360 --> 00:00:45,060
 Welkom. Leuk om jullie allemaal te zien. We moeten de tijd nemen om

 2
 00:00:46,560 --> 00:00:52,380
 de regels in te voeren. Net zoals jij ashram-regels hebt, hebben wij 
 regels voor zelfonderzoek.

 It should look like this:
 1
 00:00:33,360 --> 00:00:45,060
 Welkom. Leuk om jullie allemaal 
 te zien. We moeten de tijd nemen om

 2
 00:00:46,560 --> 00:00:52,380
 de regels in te voeren. Net zoals jij ashram-
 regels hebt, hebben wij regels voor zelfonderzoek.

 Thanks a lot for your help!

 -- 
>>> This is the BBEdit Talk public discussion group. If you have a feature 
>>> request or need technical support, please email "sup...@barebones.com" 
>>> rather than posting here. Follow @bbedit on Twitter: <
>>> https://twitter.com/bbedit>
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "BBEdit Talk" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to bbedit+un...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/bbedit/adbe2498-9b89-4afd-b284-b30ee7debb71n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a feature 
>> request or need technical support, please email "sup...@barebones.com" 
>> rather than posting here. Follow @bbedit on Twitter: <
>> https://twitter.com/bbedit>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to bbedit+un...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/bbedit/CAKi-cfs8RFSdBqmacMvOpzakvsOs5D_TJ_rniHcc1mwuLnMryg%40mail.gmail.com
>>  
>> 
>> .
>>
>
>
> -- 
> Kaveh Bazargan PhD
> Director
> River Valley Technologies  ● Twitter 
>  ● LinkedIn 
>  ● ORCID 
>  ● @kave...@mastodon.social 
> 
> *Accelerating the Communication of Research*
>
> * 
> 
>   [image: 
> https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/]
>  
> *
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@goo

Re: How to divide subtitles (srt) in two lines

2023-06-05 Thread Kaveh Bazargan
Nice simple solution, Kevin!!

On Mon, 5 Jun 2023 at 14:54, Kevin Shay  wrote:

> Maybe I'm not understanding what you're trying to do, but it seems like
> you could just use the Hard Wrap feature (Text > Hard Wrap...)? Set it to
> 50 characters and turn "Paragraph fill" off.
>
> Using a regex will break lines within words, which probably isn't what you
> want.
>
> On Mon, Jun 5, 2023 at 9:32 AM Otto Munters  wrote:
>
>> In Find and Replace I can do this search:
>>
>> ^\n?.{50}
>>
>> But I can't figure out how to replace the same words followed by a line
>> break.
>> Can anybody help me?
>>
>> Op zaterdag 3 juni 2023 om 16:46:44 UTC+2 schreef Otto Munters:
>>
>>> An automatically translated subtitle in YouTube turns two lines in the
>>> original language into one long sentence. How can I turn this back into two
>>> sentences, the top sentence slightly shorter than the sentence below it. Is
>>> there a grep for that? Or how do you do that with text factory?
>>>
>>> Example output srt file YouTube:
>>> 1
>>> 00:00:33,360 --> 00:00:45,060
>>> Welkom. Leuk om jullie allemaal te zien. We moeten de tijd nemen om
>>>
>>> 2
>>> 00:00:46,560 --> 00:00:52,380
>>> de regels in te voeren. Net zoals jij ashram-regels hebt, hebben wij
>>> regels voor zelfonderzoek.
>>>
>>> It should look like this:
>>> 1
>>> 00:00:33,360 --> 00:00:45,060
>>> Welkom. Leuk om jullie allemaal
>>> te zien. We moeten de tijd nemen om
>>>
>>> 2
>>> 00:00:46,560 --> 00:00:52,380
>>> de regels in te voeren. Net zoals jij ashram-
>>> regels hebt, hebben wij regels voor zelfonderzoek.
>>>
>>> Thanks a lot for your help!
>>>
>>> --
>> This is the BBEdit Talk public discussion group. If you have a feature
>> request or need technical support, please email "supp...@barebones.com"
>> rather than posting here. Follow @bbedit on Twitter: <
>> https://twitter.com/bbedit>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to bbedit+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/bbedit/adbe2498-9b89-4afd-b284-b30ee7debb71n%40googlegroups.com
>> 
>> .
>>
> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or need technical support, please email "supp...@barebones.com"
> rather than posting here. Follow @bbedit on Twitter: <
> https://twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bbedit/CAKi-cfs8RFSdBqmacMvOpzakvsOs5D_TJ_rniHcc1mwuLnMryg%40mail.gmail.com
> 
> .
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  ● Twitter
 ● LinkedIn
 ● ORCID
 ● @kaveh1000@mastodon.social

*Accelerating the Communication of Research*

*

 [image:
https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/]
*

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CAJ2R9pi%2BQ0-Ji_Xh%3DhzUQ%2BQHzkZC7P%3DSL6CKWfb7QP1_AUv6nA%40mail.gmail.com.


Re: How to divide subtitles (srt) in two lines

2023-06-05 Thread Kevin Shay
Maybe I'm not understanding what you're trying to do, but it seems like you
could just use the Hard Wrap feature (Text > Hard Wrap...)? Set it to 50
characters and turn "Paragraph fill" off.

Using a regex will break lines within words, which probably isn't what you
want.

On Mon, Jun 5, 2023 at 9:32 AM Otto Munters  wrote:

> In Find and Replace I can do this search:
>
> ^\n?.{50}
>
> But I can't figure out how to replace the same words followed by a line
> break.
> Can anybody help me?
>
> Op zaterdag 3 juni 2023 om 16:46:44 UTC+2 schreef Otto Munters:
>
>> An automatically translated subtitle in YouTube turns two lines in the
>> original language into one long sentence. How can I turn this back into two
>> sentences, the top sentence slightly shorter than the sentence below it. Is
>> there a grep for that? Or how do you do that with text factory?
>>
>> Example output srt file YouTube:
>> 1
>> 00:00:33,360 --> 00:00:45,060
>> Welkom. Leuk om jullie allemaal te zien. We moeten de tijd nemen om
>>
>> 2
>> 00:00:46,560 --> 00:00:52,380
>> de regels in te voeren. Net zoals jij ashram-regels hebt, hebben wij
>> regels voor zelfonderzoek.
>>
>> It should look like this:
>> 1
>> 00:00:33,360 --> 00:00:45,060
>> Welkom. Leuk om jullie allemaal
>> te zien. We moeten de tijd nemen om
>>
>> 2
>> 00:00:46,560 --> 00:00:52,380
>> de regels in te voeren. Net zoals jij ashram-
>> regels hebt, hebben wij regels voor zelfonderzoek.
>>
>> Thanks a lot for your help!
>>
>> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or need technical support, please email "supp...@barebones.com"
> rather than posting here. Follow @bbedit on Twitter: <
> https://twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bbedit/adbe2498-9b89-4afd-b284-b30ee7debb71n%40googlegroups.com
> 
> .
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CAKi-cfs8RFSdBqmacMvOpzakvsOs5D_TJ_rniHcc1mwuLnMryg%40mail.gmail.com.


Re: How to divide subtitles (srt) in two lines

2023-06-05 Thread Bruce Van Allen
Surrounding a portion of your match expression with parentheses “captures” the 
part of the original text matched by that part of the match expression.

Captured bits of text may then be used in the replacement expression, denoted 
by \1, \2, etc, for each successive set of parens, counting from the left.

So if your whole match expression is as per your question, but enclosed by 
parens:

(^\n?.{50})

then \1 contains a possible newline and 50 characters following it. If you put 
the parens only around .{50}, it would only capture the fifty characters.

So if you put parens as I showed above, then you could use:

find: (^\n?.{50})
replace: \1\n

The replacement here is the captured text plus a newline.

(One wrinkle to watch for is the the dot ‘.’ in that expression matches any 
character EXCEPT newlines.

The BBEdit manual, available under the Help menu as a quick PDF download, has a 
great chapter on this: Searching with Grep.

— Bruce

_bruce__van_allen__santa_cruz_ca_


> On Jun 5, 2023, at 4:24 AM, Otto Munters  wrote:
> 
> In Find and Replace I can do this search:
> 
> ^\n?.{50}
> 
> But I can't figure out how to replace the same words followed by a line break.
> 

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/C1CB9328-D0B5-4716-A582-61FE171FD5C2%40cruzio.com.


Re: How to divide subtitles (srt) in two lines

2023-06-05 Thread Kaveh Bazargan
put what you want to keep in brackets, so e.g.
^\n?(.{50})

Then \1 will remember and replace that.

This  site might help. Try putting in:

start of line followed by at least 50 characters and a space

On Mon, 5 Jun 2023 at 14:32, Otto Munters  wrote:

> In Find and Replace I can do this search:
>
> ^\n?.{50}
>
> But I can't figure out how to replace the same words followed by a line
> break.
> Can anybody help me?
>
> Op zaterdag 3 juni 2023 om 16:46:44 UTC+2 schreef Otto Munters:
>
>> An automatically translated subtitle in YouTube turns two lines in the
>> original language into one long sentence. How can I turn this back into two
>> sentences, the top sentence slightly shorter than the sentence below it. Is
>> there a grep for that? Or how do you do that with text factory?
>>
>> Example output srt file YouTube:
>> 1
>> 00:00:33,360 --> 00:00:45,060
>> Welkom. Leuk om jullie allemaal te zien. We moeten de tijd nemen om
>>
>> 2
>> 00:00:46,560 --> 00:00:52,380
>> de regels in te voeren. Net zoals jij ashram-regels hebt, hebben wij
>> regels voor zelfonderzoek.
>>
>> It should look like this:
>> 1
>> 00:00:33,360 --> 00:00:45,060
>> Welkom. Leuk om jullie allemaal
>> te zien. We moeten de tijd nemen om
>>
>> 2
>> 00:00:46,560 --> 00:00:52,380
>> de regels in te voeren. Net zoals jij ashram-
>> regels hebt, hebben wij regels voor zelfonderzoek.
>>
>> Thanks a lot for your help!
>>
>> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or need technical support, please email "supp...@barebones.com"
> rather than posting here. Follow @bbedit on Twitter: <
> https://twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bbedit/adbe2498-9b89-4afd-b284-b30ee7debb71n%40googlegroups.com
> 
> .
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  ● Twitter
 ● LinkedIn
 ● ORCID
 ● @kaveh1000@mastodon.social

*Accelerating the Communication of Research*

*

 [image:
https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/]
*

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CAJ2R9pibYE6DEr%2BTomN%2B1nnYDHWpi3n8MhpZm%3DbHfGaZTakgJA%40mail.gmail.com.


Re: How to divide subtitles (srt) in two lines

2023-06-05 Thread Otto Munters
In Find and Replace I can do this search:

^\n?.{50}

But I can't figure out how to replace the same words followed by a line 
break.
Can anybody help me?

Op zaterdag 3 juni 2023 om 16:46:44 UTC+2 schreef Otto Munters:

> An automatically translated subtitle in YouTube turns two lines in the 
> original language into one long sentence. How can I turn this back into two 
> sentences, the top sentence slightly shorter than the sentence below it. Is 
> there a grep for that? Or how do you do that with text factory?
>
> Example output srt file YouTube:
> 1
> 00:00:33,360 --> 00:00:45,060
> Welkom. Leuk om jullie allemaal te zien. We moeten de tijd nemen om
>
> 2
> 00:00:46,560 --> 00:00:52,380
> de regels in te voeren. Net zoals jij ashram-regels hebt, hebben wij 
> regels voor zelfonderzoek.
>
> It should look like this:
> 1
> 00:00:33,360 --> 00:00:45,060
> Welkom. Leuk om jullie allemaal 
> te zien. We moeten de tijd nemen om
>
> 2
> 00:00:46,560 --> 00:00:52,380
> de regels in te voeren. Net zoals jij ashram-
> regels hebt, hebben wij regels voor zelfonderzoek.
>
> Thanks a lot for your help!
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/adbe2498-9b89-4afd-b284-b30ee7debb71n%40googlegroups.com.


Re: Do Notes sync?

2023-06-05 Thread Jack Hodgson
Hi Rich!

I'm unclear on how this would work?

If I create a Notebook in a directory on my iCloud drive. Then I open that
Notebook on two different Macs at the same time. If I make an edit to it on
one Mac, will it automatically propagate to the opened Notebook on the
other Mac?

(I may have tested this scenario before you have a chance to reply.)

On Sat, Jun 3, 2023 at 10:26 AM Rich Siegel  wrote:

> On 3 Jun 2023, at 10:16, Simdude wrote:
>
> > This is probably a really basic question on the Notes feature in Bbedit,
> > but do they sync between devices? I started using and took some notes on
> my
> > desktop. When I went to my laptop, I expected to see the same notes but
> did
> > not. Perhaps something in my setup?
>
> There is no intrinsic syncing in BBEdit. You can create a Notebook in a
> synced location (Dropbox, OneDrive, etc); or you can place BBEdit's support
> folder in a synced location and the default notebook will sync. Otherwise,
> no. :-)
>
> R.
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or need technical support, please email "supp...@barebones.com"
> rather than posting here. Follow @bbedit on Twitter: <
> https://twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bbedit/9CDED442-40DA-4480-980F-5A98DA92A5C8%40barebones.com
> .
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CAOr3_zoeyb8irYTJcFNb04hphBOPO0vSkmb9sb8%2BUuhnbXtjNg%40mail.gmail.com.


Re: Extracting lines that don’t contain tabs

2023-06-05 Thread Johnny Ragadoo
Edit->Select all should light up the Copy function.

On Sunday, June 4, 2023 at 7:54:46 AM UTC-5 Francisco A. Hirsch wrote:

> I tried to make a Text Factory. It does extract the lines I want but the 
> options Copy to Clipboard and, more importantly, Copy to new document, are 
> greyed-out.
> Is there a way to automatically save the result?
>
> On Saturday, June 3, 2023 at 8:41:57 AM UTC-3 Francisco Hirsch wrote:
>
>> I have files where nearly all the lines have 2 tabs. 
>> A few lines don’t have tabs. Those are the ones I want to extract. 
>> Help will be appreciated 
>>
>> Francisco 
>> -- 
>> Lic. Francisco Hirsch 
>>
>>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/5af68ac1-bd9f-4e7e-a0cf-46e39bae530bn%40googlegroups.com.