Search found 400 matches
- 2012-08-15 00:37:19
- Forum: Nisus Writer Pro
- Topic: esreveR
- Replies: 35
- Views: 47930
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...
- 2012-08-14 09:25:47
- Forum: Nisus Writer Pro
- Topic: esreveR
- Replies: 35
- Views: 47930
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...
- 2012-08-02 10:08:12
- Forum: Nisus Writer Pro Macros
- Topic: Dates in Sequence
- Replies: 5
- Views: 11405
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...
- 2012-05-13 04:27:03
- Forum: Nisus Writer Pro
- Topic: How to open all hyperlinks in a document
- Replies: 5
- Views: 11999
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...
- 2011-05-26 09:09:18
- Forum: Nisus Writer Pro Macros
- Topic: Chnage all "st" "nd" etc. to superscript
- Replies: 4
- Views: 10221
Re: Chnage all "st" "nd" etc. to superscript
Ah, that's a typo. Thank you for pointing it out.Groucho wrote:There’s a tiny flaw in line 12.
- 2011-05-25 10:03:42
- Forum: Nisus Writer Pro Macros
- Topic: Chnage all "st" "nd" etc. to superscript
- Replies: 4
- Views: 10221
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…'...
- 2011-05-21 20:48:24
- Forum: Nisus Writer Pro
- Topic: truncated page numbers
- Replies: 29
- Views: 32527
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...
- 2011-05-21 07:24:25
- Forum: Nisus Writer Pro Macros
- Topic: Macro language syntax or bug?
- Replies: 3
- Views: 8731
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...
- 2011-05-20 10:28:03
- Forum: Nisus Writer Pro
- Topic: Downloading v2
- Replies: 15
- Views: 14801
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...
- 2011-05-19 10:31:17
- Forum: Nisus Writer Pro
- Topic: Changing icons in Safari
- Replies: 22
- Views: 26008
Re: Changing icons in Safari
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.phspaelti wrote:Can you post some more specific instructions on what is meant by "completely trash your prior copy of NWP v2"?
- 2011-05-19 09:26:54
- Forum: Nisus Writer Pro Macros
- Topic: Macros don't work
- Replies: 10
- Views: 18266
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 replacednear the end of the macro with
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'
Code: Select all
Menu ':Format:Font Face:Italic'
- 2011-05-04 10:39:30
- Forum: Nisus Writer Pro Macros
- Topic: Problem with Move Next Sentence
- Replies: 10
- Views: 15974
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 ...
- 2011-04-22 17:33:18
- Forum: Nisus Writer Pro Macros
- Topic: Insert Line Break
- Replies: 7
- Views: 13294
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...
- 2011-04-16 06:06:36
- Forum: Nisus Writer Pro
- Topic: code styles supporting linenumbers alternating bg colors?
- Replies: 6
- Views: 7458
Re: code styles supporting linenumbers alternating bg colors
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'.Hamid wrote:As for javascript files,
- 2011-04-12 10:15:13
- Forum: Nisus Writer Pro
- Topic: code styles supporting linenumbers alternating bg colors?
- Replies: 6
- Views: 7458
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...