Search found 89 matches

by loulesko
2011-04-21 19:10:07
Forum: Nisus Writer Pro Macros
Topic: Convert Hyperlinks to HTML
Replies: 5
Views: 6147

Convert Hyperlinks to HTML

Here's a macro to convert Nisus Hyperlinks to HTML code. I use this as part of a macro that converts a Nisus document to blog friendly text. I thought it might be useful on its own. If you have a word or a section of your Nisus document that is embedded with a hyperlink, this macro will select it an...
by loulesko
2011-04-19 09:28:04
Forum: Nisus Writer Pro Macros
Topic: Insert Double Square Bracket Macro
Replies: 3
Views: 4988

Re: Insert Double Square Bracket Macro

Hi xiamenese Try this. #NisusMacroProperty Name: Double Bracket $value = Read Selection IF $value Menu “Text Color:Red” Type Text "[[$value]]" Menu “Text Color:Remove Text Color Attribute” else $text = "" $sel = TextSelection.active # if you have not reached the end of the text object... if $sel.bou...
by loulesko
2011-04-17 10:07:11
Forum: Nisus Writer Pro Macros
Topic: Substitute selection by a file
Replies: 4
Views: 5393

Re: Substitute selection by a file

What a great macro, I made a few additions. I put in a test if the user cancels the macro exits, otherwise NWP crashes, also I have the insert file open hidden and then close after grabbing the text, and last, I use options "sa" for insert so it matches the style of the document that you are inserti...
by loulesko
2011-04-16 14:44:17
Forum: Nisus Writer Pro Macros
Topic: Insert Double Square Bracket Macro
Replies: 3
Views: 4988

Insert Double Square Bracket Macro

Martin posted a macro that converted inline comments, identified as text between double square brackets [[like this]], to comments in the comments section . This changed my life because I prefer to write notes inline as I write. Here's the post: http://nisus.com/forum/viewtopic.php?f=17&t=3955&p=184...
by loulesko
2011-03-27 14:04:16
Forum: Nisus Writer Pro Macros
Topic: Convert bullet list to HTML unordered list.
Replies: 0
Views: 6118

Convert bullet list to HTML unordered list.

This set of find and replace regex expressions finds multiple bullet lists in a document an converts them to a UL list in HTML. It's part of a macro that I use to convert text to blog friendly HTML formatting for posting. #Convert Bullet Lists to HTML List Find and Replace '•\t.+', '<li>\0</li>', 'E...
by loulesko
2011-03-03 12:29:22
Forum: Nisus Writer Pro
Topic: Bullet List Style Problem
Replies: 4
Views: 2609

Re: Bullet List Style Problem

Sweet. Thanks for being so responsive Martin.

Lou
by loulesko
2011-03-03 11:06:53
Forum: Nisus Writer Pro
Topic: Bullet List Style Problem
Replies: 4
Views: 2609

Re: Bullet List Style Problem

Hi Kino

That's correct. Also if I create a new style within the bullet list style sheet I still get the problem.

thanks
Lou
by loulesko
2011-03-02 19:27:54
Forum: Nisus Writer Pro
Topic: Bullet List Style Problem
Replies: 4
Views: 2609

Bullet List Style Problem

Hey there when I change the bullet list style in the style sheet to use different symbols for different levels NWP doesn't change back to what I want at level one. If I start with a bullet an then hit return and then tab to go to level 2 which is a diamond and then hit return and delete to go to lev...
by loulesko
2010-11-29 22:09:21
Forum: Nisus Writer Pro Macros
Topic: Need some quick help - need a macro for extracting a list
Replies: 5
Views: 5398

Re: Need some quick help - need a macro for extracting a li

It worked fabulously. Exactly what I needed to get me back on schedule. As a thank you I made a donation in Nisus' honor to "Reading is Fundamental", a charity that helps challenged children with literacy. Basically it's investing in the next generation of writers. http://www.rif.org/us/about-rif.ht...
by loulesko
2010-11-29 17:41:05
Forum: Nisus Writer Pro Macros
Topic: Need some quick help - need a macro for extracting a list
Replies: 5
Views: 5398

Re: Need some quick help - need a macro for extracting a li

Martin,

That's it exactly. Except there is no image. Just the text. But your format assumption is dead on.

The images are being added by the publisher once we corral them together, which is what we need the Fig list for.

Thank you so much.

Lou
by loulesko
2010-11-29 15:43:34
Forum: Nisus Writer Pro Macros
Topic: Need some quick help - need a macro for extracting a list
Replies: 5
Views: 5398

Need some quick help - need a macro for extracting a list

Hey all, I've got a book due at the publisher and I've used list style to indicate the illustrations like this: [ 5 Fig 1 ] Caption of image Could one of you macro geniuses help me out with a macro to extract the each Fig and place on a separate document. Like I mentioned I'm using a list style at L...
by loulesko
2010-08-31 09:44:25
Forum: Nisus Writer Pro Macros
Topic: Open a file via Link
Replies: 11
Views: 10720

Re: Open a file via Link

Okay, okay so your code is way more sexy than my code. What, you do this for a living or something? I replaced my macro with what you did, it works much better, not having to enter a name speeds things up considerably.

Thanks for that Martin. Also thanks for the tip.

Lou
by loulesko
2010-08-31 08:26:17
Forum: Nisus Writer Pro Macros
Topic: Open a file via Link
Replies: 11
Views: 10720

Re: Open a file via Link

Here ya go Steve. I still haven't solved the problem of getting the target file to open. If anyone would like to improve on what I've done, please do. I'm not a programmer so there are probably better ways to approach this. all the best Lou #NisusMacroProperty Name: File Link Require Application Ver...
by loulesko
2010-08-09 13:00:29
Forum: Nisus Writer Pro
Topic: Weird paragraph style behavior with TOC
Replies: 15
Views: 5583

Re: Weird paragraph style behavior with TOC

My pleasure Martin. If anyone is interested; a piece I wrote in Nisus Writer for the National Geographic Assignment blog about hackers has been getting a lot of attention since it posted. You can check it out here: http://nationalgeographicassignmentblog.com/2010/08/06/the-hackers-life-my-weekend-at...
by loulesko
2010-08-08 12:57:25
Forum: Nisus Writer Pro
Topic: Weird paragraph style behavior with TOC
Replies: 15
Views: 5583

Re: Weird paragraph style behavior with TOC

Hamid and mrennie - thank you both for the replies and the education. Now that I know how it works I'm even more impressed with NWP.

Lou