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 <y2k...@gmail.com> 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 <ottom...@gmail.com> 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
>>>  
>>> <https://groups.google.com/d/msgid/bbedit/adbe2498-9b89-4afd-b284-b30ee7debb71n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> -- 
>> 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
>>  
>> <https://groups.google.com/d/msgid/bbedit/CAKi-cfs8RFSdBqmacMvOpzakvsOs5D_TJ_rniHcc1mwuLnMryg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Kaveh Bazargan PhD
> Director
> River Valley Technologies <http://rivervalley.io> ● Twitter 
> <https://twitter.com/rivervalley1000> ● LinkedIn 
> <https://www.linkedin.com/in/bazargankaveh/> ● ORCID 
> <https://orcid.org/0000-0002-1414-9098> ● @kave...@mastodon.social 
> <https://mastodon.social/@kaveh1000>
> *Accelerating the Communication of Research*
>
> * 
> <https://www.linkedin.com/posts/bazargankaveh_ismte-innovation-award-recipient-kaveh-bazargan-activity-7039348552526921728-XAEB/?utm_source=share&utm_medium=member_desktop>
>   [image: 
> https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/]
>  
> <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: <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/08a6dfeb-fa01-433f-8dcc-f288cf93c4fdn%40googlegroups.com.

Reply via email to