wm 2.7.0.2 RC2 with live markdown preview plugin

1,411 views
Skip to first unread message

josip

unread,
Oct 26, 2014, 3:33:08 PM10/26/14
to write...@googlegroups.com

In wm 2.7.0.2 RC2:

Minor fixes and improvements. This bundle includes new markdown preview plugin (see below).




Feedback welcomed!



PREVIEW FOR WRITEMONKEY (plugin, )


Version: 1.0, requires Writemonkey 2.7.0.2 RC2 or higher

Release date: October 20th 2014 Author: Josip

Description:
Offers live preview and template picker for your markdown, textile or wiki texts.

Installation:
Unzip the "Preview" directory into the plugins directory.

Deployment:
This plugin is initialized at start-up. Use ALT+Y to toggle visibility.

How it works:
Preview plugin parses your Markdown texts in real time and shows you formatted (html) version of your document.

Preview window will update every time you hit Enter or save (ctrl+s) your document.

There are two view modes: the default uses current writemonkey color scheme - everything renders in dimmed color. If you prefer text color instead, change this in *_config.incl* file. Double click the edge of the preview window to switch to the normal view - you'll get colors defined in the template, usually normal black on white. Normal view also shows scroll bars so you can navigate preview window independently.

You can access Print menu (and some other options) by right clicking the preview window. Always print from normal view, otherwise wm scheme will be used.

Use CTRL + Mouse Wheel or CTRL + plus or minus key to adjust zoom factor. This will be remembered till the end of current wm session, but preview will always start with 100% zoom.

Change template by clicking current name at the bottom of the preview window. The menu gives you all installed templates.

Preview plugin uses the same setting as regular writemonkey export tools, for example - changing template in preview will affect regular export tools and vice versa.

TIP: If you are using two monitors, drag preview window on your secondary monitor and leave it there always opened.




NEW SPELLING TOOLS (NEW in wm 2.7.0.0)

  • Hunspell - new spelling engine which uses native Open Office / Mozilla dictionaries.
    • Hunspell is state of the art spell checker for languages with complex word compounding and rich morphology. It is based on older MySpell standard and can also be used with original MySpell dictionaries. Hunspell is the default spell checker for OpenOffice, Mozilla Thunderbird and Firefox, Google Chrome and Apple OS/X.
  • Support for virtually all languages.
  • New spelling UI.
  • You can spell check whole doc or only a selection.
  • Skips internet addresses, emails, comments, tabbed paragraphs (markdown code).
  • CTRL+Click word or hit SHIFT+7 to get thesaurus entries. If word is misspelled, spelling suggestions are shown.

Dictionaries


Each installed language needs 3 files in the wm/dictionaries folder. Those 3 files must have the same base name.

Spell checker needs two files:

  • Dictionary file with .DIC extension (e.g. en_us.dic)
  • Affix file with .AFF extension (e.g. en_us.aff)

Thesaurus needs one file:

  • Data file with .DAT extension (e.g. en_us.dat)

Thesaurus file is optional as not all language packs include thesaurus definitions.

Old dic files won't work with Writemonkey 2.7!

Online resources


If dictionary for your language is not available on Writemonkey's web site, you can get it from one of the following addresses:

Open Office Dictionaries

Dictionaries are distributed as Open Office Extension (.OXT). In fact the Open Office extension files are Zip files. To get the dictionaries you must download, rename to .zip and open that renamed file. You'll find dic, aff and dat files in there.

Firefox DictionariesThunderbird Dictionaries

The Mozilla add-ons (.XPI) are are also Zip files. The same procedure as for OO dictionaries applies.

StefanG

unread,
Oct 27, 2014, 10:20:38 AM10/27/14
to write...@googlegroups.com
Great idea to integrate the preview. A nice alternative to Alt-tabbing over to the browser all the time. Zoom does not work over here, but other than that, it's an amazing plugin of real value. Hopefully, it will make more people aware of WM's markdown power.

Thanks for the Replace improvement. Works nicely, including the Undo.

StefanG

unread,
Oct 27, 2014, 3:20:06 PM10/27/14
to write...@googlegroups.com
ORIGINAL_ON_FOCUS=true  - what's this config-option supposed to do?

Is there a way to fire it up with normal view by default? The current default view is not that much different from the regular WM window,  I always dbl-click the edge first to see my images etc.

Does WM have any command line options? To start it w/o plugins. This way it could be used as a fast regular txt-editor, and at the same time as a more sophisticated writing tool for custom file formats.

josip

unread,
Oct 28, 2014, 4:39:17 AM10/28/14
to write...@googlegroups.com
This setting does nothing, I'll remove it for the final release. I'll also add setting for normal view as default, but right now you can open exe_Preview.js and change (line 25):

var wmColorScheme = true;

to

var wmColorScheme = false;

No command line parameters for now.
i.

StefanG

unread,
Oct 28, 2014, 4:54:46 AM10/28/14
to write...@googlegroups.com
Thanks for the tweak.
Concerning the zoom - tried everything from shortcuts to wheeling. Made sure the preview had the focus, of course. But no luck.

I wonder if this has to do with browser settings in general? Judging from the right-click menu it seems preview falls back on installed browsers. Firefox is my default app when I click html files, but zoom works nicely there, in all variations. I am on Win7 64.

Maybe it has to do with my other plugin problems in general. Zooming also breaks (but works initially) on corkboard cards. Easy Jumps doesn't retire into the tray on Soft Exit ..…things like that, don't know if these issues are related? But the plugin engine comes with WM, right? Nothing I could update or change, is there?

josip

unread,
Oct 28, 2014, 9:31:41 AM10/28/14
to write...@googlegroups.com
Preview uses .net webbrowser component which is essentially IE - the latest version installed on your system (this is basically it, but it is much more confusing - many other factors which rendering mode it uses). Soft exit is not your comp fault - it is something I must handle :(
i.

StefanG

unread,
Oct 29, 2014, 3:43:37 AM10/29/14
to write...@googlegroups.com
Thanks josip. So I guess the problem orginiates in my faulty IE setup? Or rather non-setup. Tried it on another Win7 64, but same thing, no zoom despite different mouse and different system altogether. That PC, however, also does not use IE as the default browser.

Do you know if the IE-component gets refreshed along with Windows updates, or do I need to explicitly run some kind of IE-installer to set it up?

josip

unread,
Oct 29, 2014, 4:53:33 AM10/29/14
to write...@googlegroups.com
It has nothing to do with the default browser and the win7 installation already comes with "modern enough" version of IE. Wb control is just a wrapper for it. I tested Preview on 5 different machines (including win7 64bit) and the zoom worked fine on all of them.

I'm not sure if it will help, but you can download newer version of IE and install it as a separate application.

i.

evge...@gmail.com

unread,
Nov 7, 2014, 1:59:59 AM11/7/14
to write...@googlegroups.com
Preview dont work! Win7.
In menu item not active/



понедельник, 27 октября 2014 г., 2:33:08 UTC+7 пользователь josip написал:

josip

unread,
Nov 8, 2014, 8:16:42 AM11/8/14
to write...@googlegroups.com, evge...@gmail.com
You need valid and properly installed donor key to run plugins.
i.

prot...@gmail.com

unread,
Mar 29, 2015, 10:44:08 AM3/29/15
to write...@googlegroups.com
The preview plugin is almost perfect, i'm sad that is not possible to preview the images I'm linking locally :(
Or am I missing something?

galaktor

unread,
May 8, 2015, 6:08:44 AM5/8/15
to write...@googlegroups.com
Very useful. Is there a way to set default zoom on open? And a setting to always show the preview on open?

anemet...@gmail.com

unread,
Jan 22, 2018, 11:45:00 AM1/22/18
to Writemonkey
I do not see the preview. It shows that plugin Preview is running (latest version), but no preview. ALT+Y does nothing. Win 10. Default browser Chrome. WM 2.7.0.3
Reply all
Reply to author
Forward
0 new messages