Search found 400 matches

by Kino
2012-08-15 00:37:19
Forum: Nisus Writer Pro
Topic: esreveR
Replies: 35
Views: 17613

Re: esreveR

Concerning “Format:Paragraph” I had to make some small changes (German system and program language) and additions (Right to left Direction; Align justified) so that it comes out perfect. Yeah, I made a mistake in the macro above: 'Align Right' should have been 'Right to Left Direction'. And, as you...
by Kino
2012-08-14 09:25:47
Forum: Nisus Writer Pro
Topic: esreveR
Replies: 35
Views: 17613

Re: esreveR

Select some text portion(s), for examaple, one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen twenty and run the following macro: $R2L = Text.newWithCodepoint 0x202E # RIGHT-TO-LEFT OVERRIDE $POP = Text.newWithCodepoint 0x202C...
by Kino
2012-08-02 10:08:12
Forum: Nisus Writer Pro Macros
Topic: Dates in Sequence
Replies: 5
Views: 5613

Re: Dates in Sequence

A few years ago, I posted a macro for a similar purpose at http://www.nisus.com/forum/viewtopic.php?p=16135#p16135 that I modified now so that, hopefully, it meets your needs. Require Pro Version 1.3 $indexToDayName = $indexToMonthName = Hash.new $i = $j = 1 while $i < 8 $indexToDayName{$i%7} = Date...
by Kino
2012-05-13 04:27:03
Forum: Nisus Writer Pro
Topic: How to open all hyperlinks in a document
Replies: 5
Views: 7424

Re: How to open all hyperlinks in a document

I think the following macro will do the job. Whether links will be opened in new tabs or in new windows depends on your preferences settings in the browser. ## Open All Links in the Current Document # Links will be opened by the default web browser $doc = Document.active if $doc == undefined exit 'N...
by Kino
2011-05-26 09:09:18
Forum: Nisus Writer Pro Macros
Topic: Chnage all "st" "nd" etc. to superscript
Replies: 4
Views: 5336

Re: Chnage all "st" "nd" etc. to superscript

Groucho wrote:There’s a tiny flaw in line 12.
Ah, that's a typo. Thank you for pointing it out.
by Kino
2011-05-25 10:03:42
Forum: Nisus Writer Pro Macros
Topic: Chnage all "st" "nd" etc. to superscript
Replies: 4
Views: 5336

Re: Chnage all "st" "nd" etc. to superscript

Does this work for you? Require Pro Version 2.0 define Command SuperscriptOn $sp = ':Format:Baseline:Superscript' $check = Menu State $sp while $check != 1 Menu $sp $check = Menu State $sp end end $numFound = Find All '(?<=[0-9])(?:st|nd|rd|th)\b', 'E-i' if ! $numFound exit 'Nothing found, exiting…'...
by Kino
2011-05-21 20:48:24
Forum: Nisus Writer Pro
Topic: truncated page numbers
Replies: 29
Views: 11711

Re: truncated page numbers

Odd that I don't see this phenomenon in the User's Guide (produced, of course, in Nisus Writer Pro 2.0). Did we not put the number far enough out to the edge to trigger the phenomenon? Here are a NWP document and a pdf affected by the problem (too large to post here): http://www2.odn.ne.jp/alt-quin...
by Kino
2011-05-21 07:24:25
Forum: Nisus Writer Pro Macros
Topic: Macro language syntax or bug?
Replies: 3
Views: 4670

Re: Macro language syntax or bug?

Today I was experimenting with macros in NW 2.0. I thought I remembered that one should be able to write something like this: $docname = Document.displayName That has never worked. I should note also that the manual contains the following: Document.selectedFloatingContent but this also gave me an e...
by Kino
2011-05-20 10:28:03
Forum: Nisus Writer Pro
Topic: Downloading v2
Replies: 15
Views: 5892

Re: Downloading v2

I cannot find any way of changing the name (or the name of v2) so that both versions can sit on my HD. Why don't you create a folder, for example, '/Application/Older Version/' and put NWP 1.4.1 in it? Then, you can put NWP 2.0 in '/Application/' and it will not overwrite NWP 1.4.1. I'm not very su...
by Kino
2011-05-19 10:31:17
Forum: Nisus Writer Pro
Topic: Changing icons in Safari
Replies: 22
Views: 8920

Re: Changing icons in Safari

phspaelti wrote:Can you post some more specific instructions on what is meant by "completely trash your prior copy of NWP v2"?
Rebuild LaunchServices database, using a GUI utility like Onyx if you are not familiar with CUI, and relaunch Mail, Safari, and other affected apps if any.
by Kino
2011-05-19 09:26:54
Forum: Nisus Writer Pro Macros
Topic: Macros don't work
Replies: 10
Views: 8789

Re: Macros don't work

Dear Windsor,

The macro will not work properly in NWP 2.0 due to a change in menu command paths. Here is a fixed version. I just replaced

Code: Select all

Menu ':Format:Italic'
near the end of the macro with

Code: Select all

Menu ':Format:Font Face:Italic'
CompleteWordList_20110520_nwm.zip
(5.65 KiB) Downloaded 470 times
by Kino
2011-05-04 10:39:30
Forum: Nisus Writer Pro Macros
Topic: Problem with Move Next Sentence
Replies: 10
Views: 8119

Re: Problem with Move Next Sentence

BTW Any way to get an English localization? Try Language Switcher. http://www.tj-hd.co.uk/en-gb/languageswitcher/ . Kino -- Please have a look at: - Help our kids! http://mscr2011.jugem.jp/?eid=3 http://mscr2011.jugem.jp/?eid=4 The followings are helpful in understanding the situation: - Fukushima ...
by Kino
2011-04-22 17:33:18
Forum: Nisus Writer Pro Macros
Topic: Insert Line Break
Replies: 7
Views: 6931

Re: Insert Line Break

Immediately before inserting the line break I want to make sure that the text is not bold or italic Not very clear to me but, if you want to prevent manually applied bold or italic attribute of the preceding text from affecting the text following the soft return, the macro below will do the job. Me...
by Kino
2011-04-16 06:06:36
Forum: Nisus Writer Pro
Topic: code styles supporting linenumbers alternating bg colors?
Replies: 6
Views: 3046

Re: code styles supporting linenumbers alternating bg colors

Hamid wrote:As for javascript files,
You can make the macro colourize code in other languages such as JavaScript just by changing the file extension of 'script.pl' (line 10) so that it becomes, for example, 'script.js'.
by Kino
2011-04-12 10:15:13
Forum: Nisus Writer Pro
Topic: code styles supporting linenumbers alternating bg colors?
Replies: 6
Views: 3046

Re: code styles supporting linenumbers alternating bg colors

Do you see Perl scripts colourized in Quick Look? If so, try the macro below with some Perl code selected. $fontName = 'Courier' $fontSize = 10 $sel = TextSelection.active if ! $sel.length exit 'Nothing selected, exiting…' end $script = $sel.substring $scriptPath = File.temporaryPathWithName 'script...