Windows Live Writer

10月30日

使用Windows Live Writer發佈日誌

陳國棟
2009.10.30

前言

Windows Live Writer是非常不錯的一個日誌發佈工具,支持本地寫文章,然後通過點擊一個按鈕就發佈到網站上,如果藉助插件,還可以同時發佈到多個博客網站,功能非常強大,很多博友認識她之後都有相見恨晚的感覺,有些Mac的用戶爲了使用她才裝上了Windows。
Windows Live Writer提供了很方便的插件編寫工具,可以自己增加一些希望的功能,網上也有大量的插件下載,很多都非常不錯。
本書根據新手入門使用Windows Live Writer可能遇到的一些問題進行詳細的闡述,讓新手也能很快駕馭這個工具,更高效的記錄日誌和發佈日誌,體驗更多網絡的樂趣。
本書還附帶了很多博客官方關於Live Writer使用的介紹,和其它一些很好的Live Writer相關的文章,以及筆者親自實踐/精心挑選的一系列優秀插件的安裝文件,非常實用,歡迎參考。
所有插件在Windows Vista, Windows Live Writer 14.0.8089.726 下安裝使用正常。
使用手冊和全套工具附件下載地址:http://down.51cto.com/data/51174

基礎問題

1 Live Writer最新版本下載地址是什麼?
http://download.live.com/writer

2 下載安裝Live Writer之後應該做什麼?
應該嘗試根據一些博客上的關於Live Writer發佈文章的介紹,配置一個帳號,體驗一下本地寫日誌/快速發佈的感覺,
特別是發佈多圖的文章,是非常方便的,而且任何文章本地留下備份這也是很好的,即使網絡斷了,還可以繼續寫文章。
如果希望體驗更多樂趣,那就安裝一些插件,他們提供了很多非常有用的功能,在本文後面有介紹。

2 Live Writer的日誌在電腦裏面保存在什麼地方的呢?
答案:我的文檔中的My Weblog Posts目錄下,具體參見下面的描述。
D:\Users\Jelly\Documents\My Weblog Posts\Drafts\CppUnit用例訪問被測類私有&保護成員的解決方案.wpost
D:\Users\Jelly\Documents\My Weblog Posts\Recent Posts\CppUnit用例訪問被測類私有&保護成員的解決方案.wpost

3 從網絡備份日誌之後,本地之前發佈的日誌被刪除。通過什麼判斷本地日誌與網絡日誌是同一個日誌呢?
有興趣的再研究下吧,歡迎弄清楚了郵件告訴我:[email protected],也歡迎交流相關問題。
4 日誌圖片和日誌附件上傳到哪裏了呢?
都上傳到你的SkyDrive的“日誌圖像”目錄了,比如我的是:
https://cid-756740869b27f5f2.skydrive.live.com/browse.aspx/.BlogImages
似乎有少量重複圖片,只是大小不同,可能需要注意,第一次上傳日誌前,就要把圖片大小調整合適,否則可能調整之後再上傳會產生重複圖片(待確認?)。

各種常用博客空間的Live Writer配置。

注:把sinojelly改爲你的帳號。

(1) LiveSpace

最簡單,選擇Live Space服務類型就可以了。

其它幾種博客,要選擇“其它日誌服務”。

(2) 51CTO

日誌主頁URL:http://sinojelly.blog.51cto.com

日誌類型:Metaweblog API

遠程發佈URL: http://sinojelly.blog.51cto.com/xmlrpc.php

參考:http://51ctoblog.blog.51cto.com/26414/95155

(3) CSDN

日誌主頁URL:http://blog.csdn.net/sinojelly

日誌類型:Metaweblog API

遠程發佈URL: http://blog.csdn.net/sinojelly/services/MetaBlogApi.aspx

參考:http://blog.csdn.net/blogdevteam/archive/2009/09/04/4519285.aspx

(4) ChinaUnix

似乎不能用Live Writer.

http://blog.chinaunix.net/u3/104013/

(5) LUPA

似乎不能用Live Writer.

(6) blogbus

日誌主頁URL:http://sinojelly.blogbus.com

日誌類型:Atom Publishing Protocol

遠程發佈URL: http://sinojelly.blogbus.com/api

參考:http://riverbird.blogbus.com/logs/35937634.html

(7) 百度HI空間

似乎不能用Live Writer.

(8) 網易163博客

日誌主頁URL:http://sinojelly.blog.163.com

日誌類型:無須選擇

遠程發佈URL: 無須選擇
用戶名:sinojelly

參考:http://amigoce.blog.163.com/blog/static/3002200841510285348/

(9) Google blogger

日誌主頁URL:http://sinojelly.blogspot.com

日誌類型:Atom Publishing Protocol

遠程發佈URL: http://sinojelly.blogspot.com/feeds/posts/full

參考:http://www.cnblogs.com/westsourcer/archive/2007/03/16/ConfigLiveWriterForBlogger.html
我鏈接超時了。
如果設置代理,要用http,不要用https,
其它故障參考:

更正:連接上了,但是發佈日誌時會報出錯。原因:原來Blogger的API被擋在牆外面了。
下載安裝Hotspot Shield
http://anchorfree.com/downloads/hotspot-shield/
其後,好像一切正常了。

插件

Windows Live Writer 14.0.8089.726 版本本身已支持的功能:

字數統計

安裝插件的過程中,不用關閉Windows Live Writer。

有些插件,把dll文件放到“C:\Program Files\Windows Live\Writer\Plugins”目錄即可。

有些插件,提供的msi安裝文件,雙擊安裝即可。

如果發現新安裝的插件沒出現,就重啓Live Writer。

LiveBlogTransfer

Current version:1.2.0 Last update: 2008-12-12

LiveBlogTransfer備份的是您個人博客的所有發佈的頁面和日誌,您進行數據恢復的時候可以恢復到您Live Writer設置博客上的任意一個,因此如果您擁有多個博客,LiveBlogTransfer可能是您絕佳的博客搬家和同步工具。下載鏈接:

If you have only one blog space, you could use LiveBlogTransfer to backup and restore your blog entries, if you have multiple blog spaces, LiveBlogTransfer could let you exchange blog entires between these blog spaces. Download links:

For WLW 14.0.8089.726 (New!)

EzMultiPost

Current version:1.0.0 Last update: 2008-12-3

EzMultiPost用於將你的博客日誌同步發步到多個博客空間。
需要先發送到一個博客,然後再MultiPost。注意類似51CTO博客必須寫原創/轉載類型的,必須先設置類型,然後再MultiPost。
下載鏈接:

EzMultiPost is a tool for you to post your blog to multiple blog spaces.Download links:

For WLW 14.0.8089.726 (New!)

參考:
http://www.niuray.com/develop/wlw-plugin/my-wlw-plugins/
通知 Twitter 新日誌發佈

把Twitter.WriterPlugin.dll放到“C:\Program Files\Windows Live\Writer\Plugins”目錄, 然後關閉Live Writer重新打開。
打開 Windows Live Writer –>  工具 Tools –> 選項 Options –> 插件 Plug-ins –> Twitter Notify,並且輸入 Twitter 用戶名,密碼
屏幕截取插件

把ScreenCapturePlugin.dll放到Plugins目錄,重啓Live Writer即可。

添加 Digg This 按鈕

把DiggThis.WriterPlugin.dll放到Plugins目錄,重啓Live Writer即可。(它好像不會在右邊欄顯示出來)
在工具->選項->插件中可以設置Digg的類型,禁用JavaScript的網站只能用兩種按鈕樣式: Button 和 Guy (不支持會自動替換爲按鈕樣式)。

插入代碼樣式

安裝CodeSnippetSetup.msi,然後重啓Live Writer即可。

如果代碼外面的框框總是出現討厭的滾動條,那麼可以點擊“Use Container”去掉容器。

1: int main() 2: { 3: int a = 1,b = 2; 4: int c = a+b; 5: return c; 6: }

Text Template
V1.2.3.3下載:http://gallery.live.com/liveItemDetail.aspx?li=9c8097b3-05f5-4e50-a968-dec6da6aea72&bt=9
網上的介紹:
這個插件對於那些在博文中使用重複的文本或者 html 的人,比如標語、簽名或者給讀者留言的邀請,這是必須的插件。使用 Text Template 你可以創建和保存包含文本和/或 html 的模板以後使用,然後快速簡便的插入你的文章中。創建的模板可以放入分類,如果你保存了很多的話就可以比較容易的找到。
相關參考:
http://www.codeplex.com/wikipage?ProjectName=wlwTextTemplate
V1.2.4下載:
http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=wlwTextTemplate&DownloadId=3099&FileTime=128050080314630000&Build=15896
類似的,還有一個:
Dynamic Template Plugin for Windows Live Writer
http://www.joecheng.com/code/DynamicTemplate/
Insert File Plugin
不錯,能夠把文檔插入博客文章的任何位置。

酷表情
安裝CNCoolEmotion.msi即可。
非常不錯。
拷貝VS.NET的代碼(強烈推薦)
把VSPaste.dll拷貝到C:\Program Files\Windows Live\Writer\Plugins即可。
效果如下:
image
插入標籤
參見下圖,無須另外安裝插件。
image
可以自己再添加tag提供商,
我添加了Windows Live:
<a href="http://windows.live.com/connect/tag/{tag-encoded}" rel="tag">{tag}</a>
參見:
http://malkside.spaces.live.com/blog/cns!BE2C70F6E8FD6095!467.entry
http://windowslive.com/Connect/Post/2cd5986f-4c18-436e-a94d-7c6079ffb842
注:
Windows Live標籤不是很好用,點擊標籤能搜索出帶有該標籤的文章,但沒看到我的文章。
Technorati 標籤則鏈接打不開,它被牆了,如果打開了的話,它能搜索帶有某種標籤的文章。不過暫時我也沒看到我的文章。

不怎麼好或者暫時未使用的插件

Clipboard Capture(暫時未使用)
把剪貼板的圖片粘貼到博客文章中,可以給圖片命名。(它能支持選擇jpg還是png,不過我更希望能設置jpg的質量。)

參考:http://gallery.live.com/liveItemDetail.aspx?li=665e9d1b-ab5c-4772-80de-ac4e69d66dae&bt=9&pl=8

xPollinate - Cross Post Plugin(未使用)

比Multiple Poster功能多些,但還是不能發送到51CTO博客,它提示沒有選擇原創類型。

下載次數:1207 發佈時間:2009/3/31

免費

xPollinate is a Live Writer plugin that enables you to cross post full or summarized blog entries to other blogs, as well as social networking sites such as Twitter, Facebook, MySpace and more via Ping.FM.
More info: http://xpollinate.codeplex.com

Sharper Photo (未使用)
直接在Writer中編輯圖片非常方便,可能很有用。

注:它可以調用外部編輯器編輯圖片,但也沒覺得方便多少,也沒太多別的功能。
Paste As Visual Studio Code v1.5
上次更新時間: 2009/10/15
從VS中複製代碼到Writer中,可能很有用。
安裝LavernockEnterprises.PasteAsVSCode.msi
效果如下,還可以,但也並不是很好。
image

Tag4Writer

這個插件沒有找到可下載的地方,似乎3年前出現過,後來就不見了。

Related Posts

安裝RelatedPostsPluginSetup.msi,然後重啓Live Writer即可。
需要在http://delicious.com/註冊。還沒怎麼用:)

SyntaxHighlighter插件(建議不要用)
它在我的Vista電腦上運行時異常。

1: System.NullReferenceException: 未將對象引用設置到對象的實例。 2: 在 Katamari.WriterPlugin.PropertiesPanelEditor.PropertiesPanelEditor_Load(Object sender, EventArgs e) 3: 在 System.Windows.Forms.UserControl.OnLoad(EventArgs e) 4: 在 System.Windows.Forms.UserControl.OnCreateControl() 5: 在 WindowsLive.Writer.Api.SmartContentEditor.OnCreateControl() 6: 在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 7: 在 System.Windows.Forms.Control.CreateControl() 8: 在 System.Windows.Forms.Control.ControlCollection.Add(Control value) 9: 在 WindowsLive.Writer.PostEditor.PostHtmlEditing.Sidebar.ContentSourceSidebarControl.UpdateView(Object htmlSelection, Boolean force) 10: 在 WindowsLive.Writer.PostEditor.PostHtmlEditing.Sidebar.HtmlEditorSidebarHost.UpdateSidebarState(Boolean force) 11: 在 WindowsLive.Writer.PostEditor.PostHtmlEditing.Sidebar.HtmlEditorSidebarHost._editorContext_SelectionChanged(Object sender, EventArgs e) 12: 在 System.EventHandler.Invoke(Object sender, EventArgs e) 13: 在 WindowsLive.Writer.HtmlEditor.HtmlEditorControl.OnSelectionChanged(EventArgs e, IHtmlEditorSelection newSelection) 14: 在 WindowsLive.Writer.HtmlEditor.HtmlEditorControl.FireSelectionChanged() 15: 在 WindowsLive.Writer.HtmlEditor.HtmlEditorControl.WindowsLive.Writer.HtmlEditor.IHtmlEditorComponentContext.EndSelectionChange() 16: 在 WindowsLive.Writer.PostEditor.PostHtmlEditing.SmartContentSelection.SelectElement(IHtmlEditorComponentContext editorComponentContext, IHTMLElement e, SmartContentState contentState) 17: 在 WindowsLive.Writer.PostEditor.PostHtmlEditing.SmartContentSelection.SelectIfSmartContentElement(IHtmlEditorComponentContext editorComponentContext, IHTMLElement e, SmartContentState contentState) 18: 在 WindowsLive.Writer.PostEditor.PostHtmlEditing.BlogPostHtmlEditorControl.OnInsertHtml(MarkupRange newContentRange) 19: 在 WindowsLive.Writer.HtmlEditor.HtmlEditorControl.InsertHtml(String html, Boolean moveSelectionRight) 20: 在 WindowsLive.Writer.PostEditor.PostHtmlEditing.BlogPostHtmlEditor.InsertHtml(String content, Boolean moveSelectionRight) 21: 在 WindowsLive.Writer.PostEditor.PostHtmlEditing.BlogPostHtmlEditor.InsertContentBlock(String contentSourceId, String content, IExtensionData extensionData) 22: 在 WindowsLive.Writer.PostEditor.PostHtmlEditing.BlogPostHtmlEditor.WindowsLive.Writer.PostEditor.ContentSources.IContentSourceSite.InsertContent(String contentSourceId, String content, IExtensionData extensionData) 23: 在 WindowsLive.Writer.PostEditor.ContentSources.ContentSourceManager.PerformInsertion(IContentSourceSite sourceSite, ContentSourceInfo contentSource)

它顯示的代碼格式如下:

int main() { int a,b; int c = a+b; return c; }

Insert MSN, Yahoo and Custom Smileys(不推薦)
在我的電腦上沒法用,缺少SmileyInfo.txt,但沒地方可下載。
Tag Generator(不推薦)
安裝TagCreator.WriterPlugin.msi,但我也遇到生成tag時Live Writer死掉。
下載地址:http://gallery.live.com/liveItemDetail.aspx?li=bbb14b2a-0250-4513-a942-cb99a3459ab9&bt=9&pl=8Ta
Amazon Book Lookup Plugin(不推薦)
使用時出現HTTP 503錯誤。
下載地址:http://gallery.live.com/liveItemDetail.aspx?li=41954338-69de-47d5-b15e-ca0d770146b6&bt=9&pl=8
還未嘗試的插件:
Code Prettify for Windows Live Writer
需要鏈接Google Code Prettify才能使插入的代碼高亮,不支持js的博客可能不好用。
參考:
http://gallery.live.com/liveItemDetail.aspx?li=c7ff63d8-d435-4349-a26e-d601f3151319&bt=9&pl=8
http://google-code-prettify.googlecode.com/svn/trunk/README.html
Attach File Plugin for Windows Live Writer
跟Insert File的功能差不多,沒有具體嘗試。
參考:
http://gallery.live.com/liveItemDetail.aspx?li=3554b280-8ea4-453a-ada7-d567348aab97&bt=9&pl=8
Contacts Plug-in
暫時沒覺得它很有用,沒嘗試它。
參考:
http://gallery.live.com/liveItemDetail.aspx?li=6388f05f-b3d7-481a-ad55-924686598856&bt=9&pl=8
http://www.codeplex.com/Wikipage?ProjectName=Oomph
http://visitmix.com/lab/#oomph
Import and Export Wizard for Windows Live Writer
發佈時間: 2009/10/31
備份/還原Live Writer的插件/配置/本地文件等信息,應該非常有用。
參考:
http://gallery.live.com/liveItemDetail.aspx?li=6f6a26f3-8797-41c9-9530-1a7c8baef154&bt=9&pl=8
Insert Links Smartly
爲了插入鏈接方便,它可能比較有用。

Syntax Higlighter 2.0 for Windows Live Writer

創建者:

下載次數:467 發佈時間:2009/7/6

免費

Add smart content editor syntax higlighter 2.0 support for Windows Live Writer.
插件列表:
http://gallery.live.com/results.aspx?bt=9&pl=8&ds=1&la=en&tier=0&st=2&p=1&c=0
製作Windows Live Writer綠色版
1 安裝Windows Live Writer最新版本。(最好不運行,避免產生很多配置文件)
2 下載WLWPortable3.rar。(地址:http://www.box.net/shared/i97ftfzvya,可能被牆了)
3 解壓縮WLWPortable3.rar,把C:\Program Files\Windows Live\Writer裏面的內容全部複製到WLWPortable3\WindowsLiveWriterPortable\App\WindowsLiveWriter目錄下。
4 另外兩個插件RelatedPostsPlugin.dll和WLWTextTemplates.dll被安裝到C:\Program Files\Windows Live Writer\Plugins,把它們所在的Plugins裏面的內容都複製到WindowsLiveWriterPortable\App\WindowsLiveWriter\Plugins目錄下。(注意:正是這個操作,RelatedPostsPlugin.dll使得配置客戶端完成後,Live Writer啓動後自動退出,後來把它刪掉就OK了。)
5 最後發現還缺少一個插件Insert File。用Everything搜索InsertFile,發現它的路徑爲C:\Program Files\Braunweb Solutions\Insert File Plugin for Windows Live Writer\InsertFilePlugin.dll
6 把InsertFilePlugin.dll複製到WindowsLiveWriterPortable\App\WindowsLiveWriter\Plugins目錄下。
製作綠色版發現的現象:
1 發佈的文章和草稿都在我的文檔/My Weblog Posts目錄,並且必須啓動Windows Live Writer它纔會出現,關閉時它又會消失。不過文章不會丟失,目錄出現時,裏面的文章也會出現。
2 每次啓動Writer,都需要配置一遍博客的信息。觀察Data/Registry.reg,它每次啓動Writer都會更新,它保存了博客帳號信息。但爲什麼每次啓動都需要配置呢?而且運行註冊表文件也不行。Data\Settings\Dir3.dat\Windows Live Writer.log有日誌信息。
經過嘗試,發現用2.0版本的WindowsLiveWriterPortable.exe,不會有每次啓動都要註冊的問題。(把該exe文件替換爲2.0版本的即可)
3 可以在電腦裏面保存兩份完整的Windows Live Writer,分別註冊/登錄不同的博客,它們互不干擾,用這種方法可以解決51CTO和Live Space等不能放在一起的問題。
4 在WindowsLiveWriterPortable\User\TextTemplates保存了一些模板,使用時把TextTemplates的路徑設置到該目錄即可使用。
注:
1 我的另外一篇博文也有關於Windows 7下的Windows Live Writer體驗的介紹。
網址:http://sinojellycn.spaces.live.com/blog/cns!756740869B27F5F2!232.entry
2 從發佈到網絡之後的效果(或者編輯時的效果)來看,LiveSpace的效果是最好的,其它都存在缺陷,甚至代碼都不換行。不知道是不是我編輯時用的LiveSpace的緣故。
3 在本地修改文章之後,再發布,不會在博客上再產生一篇文章。但如果切換多個博客帳號之後再發布,會產生多篇文章。
4 切換博客帳號是要極力避免的,否則重新發布產生新文章,而且每個博客的日誌也不一致了。51CTO必須選原創類型, 不支持粘貼了附件的文章,它會提示圖片無法上傳.暫時的解決辦法,先在51CTO發佈,而後再在LiveSpace以及其它兩個博客上發佈,除了51CTO的文章不再修改外,其它幾個博客上的文章還可以實時更新。
5 突然發現有個插件Paste as JPG,之所以上傳的圖片都是JPG,而不是效果更好的PNG,可能是它的緣故。通過禁用該插件,發現所有圖片都是PNG了,不過效果是否好了,還要進一步確認。
6 發現文章中刪除了圖片,發佈文章,已上傳的圖片並不會自動刪除,可以手動刪除。
7 每張圖片在服務器上都有兩張,一張成爲thumb的,不過兩張似乎沒任何不同,大概都是51K多。
8 文章發佈之後,會自動拷貝到已發送目錄,同時它的二進制內容也會發生一些變化。
9 CSDN博客支持js,能顯示digg的js圖像,不過如果之前在別的不支持js的博客上發佈過,再通過MultiPost發佈到CSDN,則不能顯示js圖像。
10 從網絡上覆製圖片到Live Writer,一次只能複製一張,一次複製多張,則前面的若干張都只作爲鏈接被複制,斷網後無法顯示。
11 寫過一篇文章發佈到Live Space後,可以把它複製一份,再發布到51CTO,以後這兩篇文章可以獨立修改和發佈。(當然每個修改都要人爲修改兩處,但這樣發佈,兩個博客都不會產生重複文章,而且也只需要一份Live Writer工具)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章