Search found 400 matches
- 2017-09-10 10:18:53
- Forum: Nisus Writer Pro Macros
- Topic: Compare Documents macro: suggestion to preload Find dialog
- Replies: 2
- Views: 11030
Re: Compare Documents macro: suggestion to preload Find dia
Thank you very much for the excellent suggestion. Yes, it would be hard to find all changed texts when the target document is large. To make the task easier, using the attribute sensitive search would be a nice idea. However, personally, I’d like to use the Find panel for something else. So I wrote ...
- 2017-04-27 02:44:58
- Forum: Nisus Writer Pro
- Topic: Making and index of first lines?
- Replies: 3
- Views: 8808
Re: Making and index of first lines?
I just had an idea. Macro is not necessary. Switch to the Style sheet and add a TOC level to the paragraph style for normal text. First portion of every paragraph in that style will show up in the Navigator.editor10 wrote:I seem to remember something like this long ago in Nisus.
- 2017-04-26 12:36:43
- Forum: Nisus Writer Pro
- Topic: Making and index of first lines?
- Replies: 3
- Views: 8808
Re: Making and index of first lines?
How about adding bookmark to all the first lines of paragraph? The macro below will do the job. ### Bookmark First Lines ### Require Pro Version '2.1' $prefix = @S'_' /* • $prefix above defined will make it easier to distinguish bookmarks added by this macro from other bookmarks. • If your document ...
- 2017-04-26 11:22:22
- Forum: Nisus Writer Pro
- Topic: hyphenation fails when importing from Pages 4.1
- Replies: 1
- Views: 5541
Re: hyphenation fails when importing from Pages 4.1
When I import it by "select all" and "copy" in Pages 4.1, then "paste" in Nisus, everything imports and the words will hyphenate properly. As I’m not using Pages, I may be wrong. But, from your description above quoted, I tend to think the issue to be a pseudo-problem....
- 2017-04-05 08:56:06
- Forum: Nisus Writer Pro Macros
- Topic: Save as PDF macro
- Replies: 1
- Views: 9144
Re: Save as PDF macro
$outputDir=$doc.filePath.filePathByRemovingLastComponent & '/' Save as PDF $outputDir As Save As PDF command is not clever enough, you have to give it a full path of the pdf to be generated. Something like this would work. $doc = Document.active $docPath = $doc.filePath # The next three line is...
- 2017-04-04 12:37:53
- Forum: Nisus Writer Pro Macros
- Topic: 'Save Copy As…' in a macro
- Replies: 5
- Views: 15865
Re: 'Save Copy As…' in a macro
After opening a document, I want to run the actions File:Save Copy As… However, the macro stops at 'File'. What am I missing? This one works for me. $docActive = Document.active If $docActive Save Copy As... # Here '...' is not an ellipse but three fullstops. Else Exit End As far as I have ob...
- 2017-03-31 11:37:46
- Forum: Nisus Writer Pro Macros
- Topic: Create Index for Japanese Documents
- Replies: 8
- Views: 21808
Re: Create Index for Japanese Documents
With those macros (not exactly the same because of the necessity for applying special formatting), I created 索引 (index) for every volume of『井筒俊彦全集』( The Complete Works of Toshihiko IZUTSU , 12 vols and 1 supplement) http://www.keio-up.co.jp/kup/izutsu/cw.html https://www.keio-up.co.jp/np/search_resu...
- 2017-03-31 11:10:27
- Forum: Nisus Writer Pro Macros
- Topic: Create Index for Japanese Documents
- Replies: 8
- Views: 21808
Re: Create Index for Japanese Documents
And here is a macro creating a Japanese word list from the frontmost document, that you might find useful. ### Japanese Word List ### # Create a list of Katakana or Kanji words from the frontmost document. $lang = Language.languageWithCode 'ja' # zh_TW for Traditional Chinese and zh_CN for Simplifie...
- 2017-03-31 10:59:08
- Forum: Nisus Writer Pro Macros
- Topic: Create Index for Japanese Documents
- Replies: 8
- Views: 21808
Re: Create Index for Japanese Documents
It is tedious to type yomi (pronunciation of Kanji word represented by Hiragana or Katakana letters) for each Index entry. Here is a macro which inserts “yomi<space>” before selected Japanese word(s). ### Prepend Yomi ### # This macro add yomi before selected Japanese word(s) in Kanji, Katakana, or ...
- 2017-03-31 10:22:42
- Forum: Nisus Writer Pro Macros
- Topic: Create Index for Japanese Documents
- Replies: 8
- Views: 21808
Create Index for Japanese Documents
Here is a macro which [1] indexes Japanese words in the frontmost document as “yomi<space>word”, [2] inserts Index, and [3] remove “yomi” necessary only for sorting Index entries. ### Generate Index ### # This is a sample NWP macro to generate Index for Japanese documents. # Run against “kusabana.rt...
- 2017-03-26 12:18:54
- Forum: Nisus Writer Pro Macros
- Topic: Macro to call a unix script
- Replies: 8
- Views: 23437
Re: Macro to call a unix script
on run set scriptvar to (the clipboard) do shell script scriptvar end run Wow! Thank you very much! With that Services command, perhaps I’ll be able to make some of my macros work again. I really hate sand box ;-( Here is a bit complicated version of the macro. ### Highlight Syntax ### $highlightin...
- 2012-08-23 13:42:55
- Forum: Nisus Writer Pro
- Topic: NWP 2.04 crash
- Replies: 17
- Views: 22983
Re: NWP 2.04 crash
Crash logs are indeed saved to disk, in your home folder at: ~/Library/Logs/DiagnosticReports Perhaps this may be affected by my personal configuration but I just found several “Nisus Writer Pro_<date-number>_minibox.hang” and “soffice.bin_<date-number>_localhost.crash” in /Library/Logs/DiagnosticR...
- 2012-08-17 04:04:01
- Forum: Nisus Writer Pro
- Topic: Find problem
- Replies: 14
- Views: 21550
Re: Find problem
Hello Ulrich, I had to find a search expression to find all SC occurrences It’s too late and you seem to have solved the problem but the macro below will allow you to find and select all texts in a specific typeface of a specific font (though it does not work for a typeface faked by NWP or supplied ...
- 2012-08-16 12:11:57
- Forum: Nisus Writer Pro
- Topic: esreveR
- Replies: 35
- Views: 48074
Re: esreveR
Hello Ulrich, Imagine that you have to write an English text from right to left and then take it with a macro in the correct order. Is that practical? For new Hatra texts, I think it would be easier to [1] create a short right-to-left paragraph “CBA” by running the macro with “ABC” selected, [2] sel...
- 2012-08-15 10:12:20
- Forum: Nisus Writer Pro
- Topic: esreveR
- Replies: 35
- Views: 48074
Re: esreveR
There seems to be some confusion… Who in the world is supporting "esreveR" Unicode does support the esreveR style or what can be called so. The macros above just insert or remove Unicode formatting codes available since Unicode 3.0 at least, for over 10 years now. See “Unicode Bidirectiona...