Thread View: news.software.readers
4 messages
4 total messages
Started by Scott Marquardt
Wed, 12 May 2004 03:51
[Dialog] Script for indenting paragraph without line breaks?
Author: Scott Marquardt
Date: Wed, 12 May 2004 03:51
Date: Wed, 12 May 2004 03:51
26 lines
2426 bytes
2426 bytes
Just in case it's an obvious, simple thing for those of you with more patience for Pascal than I. I'd like to take a paragraph with no hard line breaks, and indent the thing by an arbitrary number of characters. This is simple enough when line breaks are already there; I generally custom quote using "| " and I get a nice indent that doesn't wrap in evil ways later, on account of the quotation character being there. But what I really like to do is this. If I paste in a couple hundred words, in order to indent them like this I need to whack a tab on the first line, then end/enter/end/enter/end/enter and so forth, till I'm done indenting the whole thing. Oh, for a script that just formats whatever paragraph my insertion point's in! Any ideas? Ultimately, a flyout menu on the special/reformat paragraph menu option would allow for various typical ways of reformatting text -- including some of the cleanup options afforded by some text utilities out there. -- Scott Almost summer! http://snipurl.com/trebuchet
Re: [Dialog] Script for indenting paragraph without line breaks?
Author: Klaus Bosau
Date: Wed, 12 May 2004 18:33
Date: Wed, 12 May 2004 18:33
24 lines
1938 bytes
1938 bytes
Scott Marquardt wrote: > Just in case it's an obvious, simple thing for those of you with more > patience for Pascal than I. > > I'd like to take a paragraph with no hard line breaks, and indent the > thing by an arbitrary number of characters. This is simple enough when > line breaks are already there; I generally custom quote using "| > " and I get a nice indent that doesn't wrap in evil ways later, on > account of the quotation character being there. > > But what I really like to do is this. If I paste in a couple > hundred words, in order to indent them like this I need to whack > a tab on the first line, then end/enter/end/enter/end/enter and > so forth, till I'm done indenting the whole thing. Oh, for > a script that just formats whatever paragraph my insertion > point's in! > > Any ideas? Consider using an external program for composing. Most editors around can do what you want - and more. Klaus
Re: [Dialog] Script for indenting paragraph without line breaks?
Author: Julia Thorne
Date: Wed, 12 May 2004 20:22
Date: Wed, 12 May 2004 20:22
33 lines
2728 bytes
2728 bytes
On Tue, 11 May 2004 22:51:59 -0500, Scott Marquardt wrote: > But what I really like to do is this. If I paste in a couple hundred > words, in order to indent them like this I need to whack a tab on the > first line, then end/enter/end/enter/end/enter and so forth, till I'm done > indenting the whole thing. Oh, for a script that just formats whatever > paragraph my insertion point's in! Yeah... that paragraph above has lines that are too long now, but -Special->ReformatParagraph- takes out the spaces between the ">" quoting character and the beginning of each line, destroying the formatting. I use Dialog more for email than Usenet, and I often need to preserve someone's formatting when replying or forwarding. This problem happens with outlines, ASCII art diagrams, etc. Even replacing the ">+spaces" with something like "> :" at the beginning of each line doesn't help; Special->ReformatParagraph deletes the spaces & tabs between the two quoting chars, giving: ">: But what I really like to do "... > Ultimately, a flyout menu on the special/reformat paragraph menu > option would allow for various typical ways of reformatting text -- > including some of the cleanup options afforded by some text utilities > out there. Yes! Just a menu option to -Indent- the highlighted text would be great. And another option to -Remove- indenting, making the highlighted text left justified. Please, don't anybody suggest that this would be easy if I sent emails in HTML! I won't use MS Outhouse Excuse! ;-)
Re: [Dialog] Script for indenting paragraph without line breaks?
Author: Scott Marquardt
Date: Fri, 14 May 2004 07:03
Date: Fri, 14 May 2004 07:03
106 lines
5858 bytes
5858 bytes
Julia Thorne opined thusly on May 12: > On Tue, 11 May 2004 22:51:59 -0500, Scott Marquardt wrote: > >> But what I really like to do is this. If I paste in a couple hundred >> words, in order to indent them like this I need to whack a tab on the >> first line, then end/enter/end/enter/end/enter and so forth, till I'm done >> indenting the whole thing. Oh, for a script that just formats whatever >> paragraph my insertion point's in! > > Yeah... that paragraph above has lines that are too long now, You know, I'd noticed that it didn't seem to deal with line length right. You're right. Here, I typed this entire paragraph, then went to the first line and typed tab/tab/tab/tab/end/enter/end/enter/etc. Well hang on, I want some filler here. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. Weird! Why on earth wouldn't it wrap the lines after I hit tab, on its own, /before/ I whacked Enter at the end of the lines? When a naturally wrapping paragraph is begun with tabs or autoindented with tabs, the end of the line doesn't naturally wrap! Here's another test: 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 OK, that was a natural wrap. Now this, with one tab: 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 Aaargh! What's that push a couple characters further to the right? Now two tabs: 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 Even further! OK, three: 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 Some crazy stuff. So here, four tabs then the end/enter/end/enter thing: 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1 3 5 7 Weird. Weird because I don't understand it. > but > -Special->ReformatParagraph- takes out the spaces between the ">" > quoting character and the beginning of each line, destroying the > formatting. I use Dialog more for email than Usenet, and I often > need to preserve someone's formatting when replying or forwarding. > This problem happens with outlines, ASCII art diagrams, etc. > > Even replacing the ">+spaces" with something like "> :" at > the beginning of each line doesn't help; Special->ReformatParagraph > deletes the spaces & tabs between the two quoting chars, giving: > > ">: But what I really like to do "... > >> Ultimately, a flyout menu on the special/reformat paragraph menu >> option would allow for various typical ways of reformatting text -- >> including some of the cleanup options afforded by some text utilities >> out there. > > Yes! Just a menu option to -Indent- the highlighted text would > be great. Yes. "Paste as custom quote" lets you indent things, but there needs to be something to take a continuous natural wrapping paragraph and indent it with line breaks at the end of each line. > And another option to -Remove- indenting, making the > highlighted text left justified. Heck, I'd like something that would let me do a side-by-side pair of columns. That, though, is asking way too much, I admit. > Please, don't anybody suggest that this would be easy if I sent > emails in HTML! I won't use MS Outhouse Excuse! ;-) No kidding! -- Scott Almost summer! http://snipurl.com/trebuchet
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads