Nisus Writer Express



ExpressNisus
I realize that since Nisus Writer Express is a mac only word processor this request will not be a very high priority, but it would be nice if there were a macro for adding citations in zotero that worked for Nisus Writer Express.
  • IIRC, NWE uses Perl as a macro language. If right, I'd encrouage any Perl hacker out there to create a Perl module to do CSL reading and formatting, and then just write a little glue code for NWE and Zotero.
    What we really need, though, is a generic API and service for this function. It's silly that developers have to write dedicated code every different word-processor and bibliographic application! Citation formatting should be a system service in OS X.
  • Nisus Writer Express requires OSX10.3.9 and the crappy mac that I bought for testing Zotero integration only has 10.3.5. So I can't help directly.
    However, if you can, have a look at the Word for Mac macro. The basic concept of that macro is that it calls Zotero using the VB command Macscript. I'm assuming that Nisus Writer Express macros (perl?) has the equivalent of a shell command to run OS commands. Using that you should be able run the command 'osascript -e' and pass to it the same string that the macro builds. Alternatively I guess perl provides a HTTPREQUEST command. In OpenOffice I have used Pythons HTTPRequest as this works in all versions of OpenOffice.
    The original macro uses Word fields and the name of the field to get the RTF formatted string back from Zotero. Instead of fields I have used bookmarks.
    The original macro uses custom document properties for storing, the SessionID, the style of citation, whether that style is a note style, and whether to use footnotes or endnotes. As custom document properties don't round trip between OOo and MS Word I stored them as a string in the Document description.
    I should be in a position to post my macros soon.
  • Any word on improved word-processor integration yet?
  • edited January 11, 2008
    Nisus integration would be fantastic--I just wanted to second this idea (or bring it back to people's attention). Zotero is so rad that I've set aside my usual wps (Mellel and Nisus) and have gone back to using Word! (not a big fan of Word...) But it would be a dream not to have to use Word (or NeoOffice...)
  • While I don't speak for Zotero, my suggestion is still the same: find somebody with OS X coding skills to figure out how to do this, ideally generically (in any OS X-native app; Pages, Nisus, Mellel, etc.).
    The Word and OOo code have the advantage that they share a lot. OOo, for example, handles VBA. I don't think the same is true of the other apps I list above.
    Nor, BTW, is it true of Office 2008, which was just released, and does NOT support VBA. Hence, those of you who use Macs and Word, realize that Zotero won't work with 2008.
  • Thank you for your suggestion--my purpose in adding a response to the list was precisely to raise this topic again so it might catch such a coder's attention.
  • I wouldn't mind writing some perl to read and format csl. Thing is I wouldn't know where to start - are there bindings for another scripting language I can use as a basis of any perl hackery?
  • You might have a read through this thread first, since I have a feeling it has implications for you as well.
  • Oh god grief, does this mean I need to port from vba to perl? or is there a javascript library I can use as a crib?
  • Oh god grief, does this mean I need to port from vba to perl?
    Well, at the moment, probably. If your goal is just to interface with Zotero, you need plugin logic, not a citation processor (which is implemented in JS in Zotero). Currently, the plugin logic is written in VBA.
    Once the core plugin code is ported to Python and uses an AppleScript bridge to talk to Word 2008 (which is what that ticket is about), it may be possible to talk to other AppleScript-aware applications by breaking out the word processor-specific functionality. So you might want to wait for that to happen before moving forward.
    If Nisus doesn't have any sort of field/bookmark support equivalent to Word/OOo (and I don't see any mention of anything like that in its AppleScript dictionary, at least), it could be a bit harder/uglier whichever way this is implemented, though.
  • From a high-level view, think of the process as involving encoding the citation, which is basically a field that contains a reference to the citation source [note: right now, Zotero does this in a way that is really problematic in that the pointer is to a specific database ID]. The code that you need to deal with is that, plus extracting the references, sending them to Zotero, and inserting back the rendered output.
    WRT to encoding the string/field in Cocoa, I think NSAttributedString might be useful, though I'd strongly, strongly recommend consulting the Nisus people.
    Ideally, in fact, citation encoding and processing in OS X ought to be generic. I see no reason why every application ought to implement their own custom ways to do this. I've submitted an enhancement request to Apple to this effect, though I don't expect them to move on it. Better to push developers like Nisus, Omni, etc.
    BTW, you might also look into how Mellel handles their citation API and encoding.
  • edited February 5, 2008
    to be honest I'd settle for a module that allows me to take csl from my input and output something that's formatted. My goal is a model that can interface with Catalyst easily - so basically a module called something like Bibliography::CSL or something on cpan the corresponding Catalyst::Model::Bib::CSL would be 5 lines of code ;) So help with a nissus integration would be a side-effect for me.
    Is there a timeframe for the word08 plugin? How long do I have to wait before I have some python to crib :)
  • OK, but again, there are two separate things here.
    A Perl CSL processor would be called citeproc-perl and would be a topic for the XBib list, where just today the statuses of the various citeproc-* implementations (Ruby, Python, XSLT) were discussed. If you wanted to do that, you could port Zotero's JS-based processor to Perl. But that won't give you Nisus integration with Zotero. (Bruce's comment from last April might have thrown you off here.)
    Nisus integration with Zotero would require porting today's VBA plugin or waiting for the Python plugin, but that has nothing to do with CSL. The Python plugin is probably a few months off.
  • kieren: yeah, what Dan said.
    I'd really like to see modules/libraries for this in different languages, and so really like your idea to be able to be able to drop it into a Catalyst project. But as Dan said that code is basically responsible for reading a CSL file, taking some input data, and outputting the formatting strings. The editor integration is really another chunk of code.
    As Dan also said, if you want to explore this more, now would be a good time to join the xbib list particularly since there's someone that's just started on a PHP port that he wants to integrate with Drupal, and so is a similar kind of use case.
  • Does Zotero work with Max with Word 08 installed at this time? Does it work with Mellel?
  • +1 for Mellel integration. Mellel is my favorite word processor on any platform, and lack of Mellel support is one of the major things holding me back from switching to Zotero as my main ref software.
  • Does Mellel support AppleScript or have a plugin architecture?
  • http://www.redlers.com/mellelscholars.html#Anchor-Working-47857
    I think they have an API for citations, though I have no idea on the details.
Express

Nisus Writer Pro

Solana Beach, CA - September 14, 2007 - Nisus Software today announces the immediate release of Nisus Writer Express 3.0, the powerful, yet affordable word processor for Mac OS X. Built from the same core as Nisus Writer Pro, Express 3.0 includes new features such as Text Wrap around images, Glossaries, Widow and Orphan Control, Small Caps support, and an improved Find and Replace engine.

Word Count In Nisus Writer Pro

  1. Hot on the heels of Nisus Writer Pro 2.1.9 and Nisus Writer Express 3.5.9 comes Nisus Writer Pro 2.1.10 and Nisus Writer Express 3.5.10. These releases fix issues related to macOS Mojave: possible random crashes closing document windows, problems when customizing the toolbar, and an inability to send feedback reports when using a non-English.
  2. Nisus Writer Express offers a new feature I was initially dismissive of, but which I’ve subsequently grown to appreciate: Document Manager. Basically, Nisus Writer Express can automatically save new documents to the Document Manager rather than forcing you to save each file separately.




Comments are closed.