Re: Custom sequencing

2021-12-07 Thread Arasmus
Nice! I'd ssearched the manual for "sequence" before posting but missed the 
line numbers command. Thanks. 

On Monday, December 6, 2021 at 5:11:48 PM UTC-8 Tom Robinson wrote:

> No need for a spreadsheet, BBEdit has a line numbering command :]
>
> 1. create document with 250 blank lines
> 2. Text > Add/Remove Line Numbers.  Don’t add spaces or justify — we just 
> want a plain number
> 3. Do a Grep search for an entire line:
> ^.*$
> Replace with the example HTML below verbatim, except substitute & for the 
> 3 digits:
> \n\n\n
> 4. profit
>
>
> On 2021-12-07, at 08:57, Arasmus  wrote:
>
> Perhaps the easiest way would be to use a spreadsheet to generate the 
> sequence of numbers from 1-250..paste the numbers into an empty text 
> file..search and replace each of the numbers with the figure code.
>
> On Monday, December 6, 2021 at 7:32:53 AM UTC-8 Maciek Schejbal wrote:
>
>> Hullo BBEdits!
>>
>> I have 250 images to be shown in the slide show. After I copy the paths, 
>> would anybody have a way to automate BBEdit to continue numbering the 
>> following sequence?
>>
>> Many thanks,
>> Maciek
>>
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> etc...
>>
>
>

-- 
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/3a6c3ca0-59a7-4981-84a9-029dc76f09c9n%40googlegroups.com.


Re: Custom sequencing

2021-12-06 Thread Arasmus
Perhaps the easiest way would be to use a spreadsheet to generate the 
sequence of numbers from 1-250..paste the numbers into an empty text 
file..search and replace each of the numbers with the figure code.

On Monday, December 6, 2021 at 7:32:53 AM UTC-8 Maciek Schejbal wrote:

> Hullo BBEdits!
>
> I have 250 images to be shown in the slide show. After I copy the paths, 
> would anybody have a way to automate BBEdit to continue numbering the 
> following sequence?
>
> Many thanks,
> Maciek
>
> 
> 
> 
> 
> 
> 
>
> etc...
>

-- 
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/cc9b7a59-04c7-48ab-a49b-2fecb5e507b6n%40googlegroups.com.


Re: Remove line returns from within a paragraph but not between paragraphs

2021-11-03 Thread Arasmus

And if you are going to need to do it a lot, you can create a text filter 
that strings the three steps together. 
On Wednesday, November 3, 2021 at 5:40:03 AM UTC-7 Roger Moffat wrote:

> When I need to sort something like this I don’t use GREP since I’m not 
> familiar enough with it to get it right with little effort, but you can use 
> the basic Find and Replace
>
> Find
>
> \r \r (there’s a space between them because you said there was a space 
> between the paragraphs. If you just meant there was an empty line, use \r\r)
>
> Replace with
>
> xxx
>
> This preserves the gap between paragraphs as xxx, and now you have a 
> whole bunch of lines ending in a return
>
> Then find
>
> \r
>
> replace with
>
> “ “ (a single space)
>
> Then Find
>
> xxx
>
> Replace with
>
> \r\r
>
> Will separate out all the paragraphs again with a blank line between them. 
> Then in case you’ve ended up with 2 spaces anywhere
>
> Find “two spaces” (means 2 spaces, not the words in quotes)
>
> Replace with “one space” (same as above - a single space, not the two 
> words)
>
> Roger
>
>
>
> On Nov 2, 2021, at 11:04 PM, Gavin Brooks  wrote:
>
> I have a lot of text that has been copied from a PDF, that I need to make 
> into text files for research purposes. When the text copied over, there was 
> a hard line return at the end of every sentences, and a blank space between 
> paragraphs. I need to the lines within the paragraph joined but the 
> paragraphs to remain separate and am looking for a regex to do that:
>
> *For example, the text looks like this:*
>
> *This is the 1st paragraph. *
> *With a few lines that*
> *need connected.*
>
> *This is another paragraph with*
> *a blank line between*
> *it and the previous paragraph.*
>
> *I want it to look like this:*
>
> *This is the 1st paragraph. With a few lines that need connected.*
>
> *This is another paragraph with a blank line between it and the previous 
> paragraph.*
>
> *The best that I have been able to come up with is this:*
>
> ([^\r\n])\R(?=[^\r\n])
>
> *But that will also remove the last character of each line, so I get this:*
>
> *This is the 1st paragraph With a few lines tha need connected.*
>
> *This is another paragraph wit a blank line betwee it and the previous 
> paragraph.*
>
> Any suggestions about how to rewrite the above so that it does not remove 
> the final character?
>
> Gavin
>
>
>
> -- 
> 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/7d23bc98-d5b6-4739-94e8-c08f1efabb28n%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/3cdeeb80-9056-4b44-b05a-c1f3d92d6819n%40googlegroups.com.