Windstyle SlugHelper for Windows Live Writer

Windstyle SlugHelper Logo

什么是Slug?

Slug是用来描述日志或页面的一小段话,通常是日志或页面标题的URL友好化版本。

比如本页的URL可以有两种形式,其中粗体字部分就是URL中的Slug:

  1. http://coding.windstyle.cn/?page_id=859
  2. http://coding.windstyle.cn/projects/windstyle-slughelper-for-windows-live-writer

虽然第一种Slug非常简短,但是我们并没有办法看懂它,更别提从它来推断出该URL所表示的页面的大致内容;而第二种就是友好的Slug,不仅对访客友好,也对搜索引擎友好。

什么是WindStyle SlugHelper?

WindStyle SlugHelper是一个Windows Live Writer插件,它会在每次发布日志或页面时提醒你补全Slug,并会提供几种快速生成Slug的方式。

WindStyle SlugHelper提供的Slug生成选项包括:

  • 不更改
  • 同标题一致
  • 将标题转换为中文拼音
  • 使用Google将标题翻译为英文
  • 使用微软Bing将标题翻译为英文
  • 自定义

同时,WindStyle SlugHelper还是一个开源项目,它托管在微软的CodePlex网站,你可以点击这里访问本项目

如何使用WindStyle SlugHelper?

WindStyle SlugHelp插件的使用方法非常简单:

  1. 移步至此页面下载最新编译版本;
  2. 将下载得到的“WindStyle.WindowsLiveWriter.Plugin.SlugHelper.dll”文件复制到Windows Live Writer安装目录的Plugins目录
  3. 重新启动Windows Live Writer,在【工具】【选项】【插件】中启用“Slug补全插件”。
  4. 在发布日志时,你就会看到如下对话框,选择你喜欢的方式即可:
    preview

如何参与WindStyle SlugHelper?

如果你有好的意见,可以在本页以评论的形式留下;如果你有好的想法,并且愿意花费时间和精力来共同开发这个插件,我也迎你加入到这个开源项目中,请在评论中留下你的想法和CodePlex账号。

版本

27 Comments

  1. [...] SlugHelper的作者博客是听风且吟,开发者在插件中为处理slug提供了六种选项:不更改 同标题一致 [...]

  2. 说道:

    博主您好,一直在使用您开发的这款插件,非常喜欢。
    今日更新Writer后,插件失效并提示错误,希望博主能够抽空看一看,多谢。
    Slug补全插件 插件发生错误:

    未能加载文件或程序集“WindowsLive.Writer.Extensibility, Version=14.0.8089.726, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到指定的文件。

  3. Windie Chai 说道:

    @: 谢谢告知,已经知道是什么问题了,修复后我会通知你的。

  4. Windie Chai 说道:

    @: 已经更新到1.2.0.0版本。

  5. [...] // var searchbox = document.getElementById("searchbox"); var searchtxt = document.getElementById("searchtxt"); var tiptext = "请输入关键字…"; if(searchtxt.value == "" || searchtxt.value == tiptext) { searchtxt.className += " searchtip"; searchtxt.value = tiptext; } searchtxt.onfocus = function(e) { if(searchtxt.value == tiptext) { searchtxt.value = ""; searchtxt.className = searchtxt.className.replace(" searchtip", ""); } } searchtxt.onblur = function(e) { if(searchtxt.value == "") { searchtxt.className += " searchtip"; searchtxt.value = tiptext; } } // 首页关于留言板站点地图音乐 有道 鲜果 抓虾 Google My Yahoo! newsgator Bloglines 哪吒WindStyle SlugHelper 1.2.0.0 2010年6月8日 | 分类: 分享 | 标签: slug, wlw, wordpressWindStyle SlugHelper是作者Windie Chai为Windows Live Writer开发的一款插件,专用于wordpress中处理slug。我之前也在“wordpress中处理slug”一文中,推荐过这款非常方便的插件。前几日Writer升级到新的版本,这款插件也失去的效用,在作者的blog上留言反馈了一下,很快就得到了他的回复,并对插件进行了升级,非常感谢。 版本历史1.2.0.0(2010-06-03)对应Windows Live Writer版本号为:14.0.8117.416可以配置是否忽略已经包含slug的日志,请在插件选项中配置增加插件图标1.1.0.1(2009-12-30)跟进Google翻译服务的更新1.1.0.0 beta(2009-09-08)增加使用微软Bing翻译服务1.1.0.0 alpha(2009-09-07)对应Windows Live Writer版本号为:14.0.8089.726每次发布日志时提示补全slug支持使用标题充当slug支持使用标题的拼音充当slug支持使用Google翻译服务翻译标题并充当slug支持自定义slug插件下载下载页|作者blog安装与使用将插件释放至Windows Live Writer安装目录下的子目录Plugins下,点击wlw菜单栏的工具-选项-插件启用即可,安装完成后,点击发布文章时便会弹出选择slug 生成的窗口。 分享至:Related posts:wordpress中处理slug 发表评论 | Trackback 目前还没有任何评论. [...]

  6. 说道:

    @Windie Chai: 非常感谢您,升级后使用正常了。

  7. Leo 说道:

    使用wave4,后插件失效。

  8. Windie Chai 说道:

    @Leo: 我也发现了……Live Writer的API太土了……设置成不引用固定版本都不行……

  9. Windie Chai 说道:

    @Leo: 已支持Live Writer Wave 4的测试版。

  10. [...] // var searchbox = document.getElementById("searchbox"); var searchtxt = document.getElementById("searchtxt"); var tiptext = "请输入关键字…"; if(searchtxt.value == "" || searchtxt.value == tiptext) { searchtxt.className += " searchtip"; searchtxt.value = tiptext; } searchtxt.onfocus = function(e) { if(searchtxt.value == tiptext) { searchtxt.value = ""; searchtxt.className = searchtxt.className.replace(" searchtip", ""); } } searchtxt.onblur = function(e) { if(searchtxt.value == "") { searchtxt.className += " searchtip"; searchtxt.value = tiptext; } } // 首页关于留言板站点地图音乐 WindStyle SlugHelper 1.2.0.1 2010年8月4日 | 分类: 分享 | 标签: slug, wlw, wordpressWindows Live Writer的wordpress slug支持插件“WindStyle SlugHelper”,已经更新到了新的版本,根据作者Windie Chai的更新日志,新的版本加入了对Live Writer Wave 4的测试版的支持,对应的WlW版本号为“15.3.2804.607”,尚未更新到该版本的朋友可以不必更新。关于slug和这款插件的详细说明我在以前的博文“wordpress中处理slug”中有过相关介绍,有兴趣的朋友可以跳转看一下,对于使用wlw更新wordpress blog来说,还是非常方便的。 更新日志1.2.0.1(2010-08-01)对应Windows Live Writer版本号为:15.3.2804.6071.2.0.0(2010-06-03)对应Windows Live Writer版本号为:14.0.8117.416可以配置是否忽略已经包含slug的日志,请在插件选项中配置增加插件图标1.1.0.1(2009-12-30)跟进Google翻译服务的更新1.1.0.0 beta(2009-09-08)增加使用微软Bing翻译服务1.1.0.0 alpha(2009-09-07)对应Windows Live Writer版本号为:14.0.8089.726每次发布日志时提示补全slug支持使用标题充当slug支持使用标题的拼音充当slug支持使用Google翻译服务翻译标题并充当slug支持自定义slug相关链接下载页|作者blog安装与使用将插件释放至Windows Live Writer安装目录下的子目录Plugins下,点击wlw菜单栏的工具-选项-插件启用即可,安装完成后,点击发布文章时便会弹出生成slug的窗口。 分享至:google_ad_client = "pub-6653910767808350"; /* 468×15, 创建于 10-7-10 */ google_ad_slot = "2933382450"; google_ad_width = 468; google_ad_height = 15; Related posts:WindStyle SlugHelper 1.2.0.0wordpress中处理slug 发表评论 | Trackback 目前还没有任何评论. [...]

  11. puzzup 说道:

    Slug补全插件 插件发生错误:

    未能加载文件或程序集“WindowsLive.Writer.Extensibility, Version=15.3.2804.607, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到指定的文件。

  12. windie 说道:

    @puzzup: 请下载1.2.0.1版。

  13. solo 说道:

    你好,我启用了插件,但是发布日志的时候没有看到“Slug编辑器”的对话框弹出来啊

  14. [...] Windows Live Writer是颇受欢迎的博客客户端,除了支持多种博客服务之外,还具备良好的扩展性,允许第三方开发插件来扩展或补充功能,我也为它开发了两个插件:用来补充Slug的SlugHelper和补充图片Exif信息的ExifInfo。 [...]

  15. rover12421 说道:

    非常好的插件,但是我这出错
    下载的是最新的1.2.0.1
    请看下是什么原因

    =====================================================

    Slug补全插件 插件发生错误:

    未能加载文件或程序集“WindowsLive.Writer.Extensibility, Version=15.3.2804.607, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到指定的文件。

  16. [...] // var searchbox = document.getElementById("searchbox"); var searchtxt = document.getElementById("searchtxt"); var tiptext = "请输入关键字…"; if(searchtxt.value == "" || searchtxt.value == tiptext) { searchtxt.className += " searchtip"; searchtxt.value = tiptext; } searchtxt.onfocus = function(e) { if(searchtxt.value == tiptext) { searchtxt.value = ""; searchtxt.className = searchtxt.className.replace(" searchtip", ""); } } searchtxt.onblur = function(e) { if(searchtxt.value == "") { searchtxt.className += " searchtip"; searchtxt.value = tiptext; } } // 首页关于留言板站点地图音乐 WindStyle SlugHelper 1.2.0.2 2010年12月30日 by 靖 | 分类: 分享 | 标签: wlw, wordpress, 插件WindStyle SlugHelper 是一款Windows Live Writer插件,可以在文章发布时,帮助补全slug,我在wordpress中处理slug这篇文章中有过相关的介绍。Windows Live Writer升级到2011版本后,这款插件就不能正常工作了,一直在等待作者的更新,今天去拜访作者的博客时,发现新版本已经发布了。目前的版本号为:WindStyle SlugHelper 1.2.0.2,对应支持的Windows Live Writer版本号为:15.4.3502.922,xp下的wlw仍然可以使用1.2.0.0版本。 安装方法将下载的WindStyle.WindowsLiveWriter.Plugin.SlugHelper.dll,拷贝到X:Program FilesWindows LiveWriterPlugins目录下,在wlw选项中启用并重启wlw即可,发布文章后,会自动调用插件。插件下载发布页 | 网盘 | 作者页 [...]

  17. sultan 说道:

    Slug补全插件 插件发生错误:

    未能加载文件或程序集“WindowsLive.Writer.Extensibility, Version=15.4.3508.1109, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0×80131040)

    额,又不能用了,更新下吧。

  18. sultan 说道:

    Slug补全插件 插件发生错误:

    未能加载文件或程序集“WindowsLive.Writer.Extensibility, Version=15.4.3508.1109, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0×80131040)\

    奇怪啊,为什么我用进修总是提示这个错误呢?

  19. [...] 发现个windows live writer插件,WindStyle SlugHelper,作者『听风且吟』。猛击下载。 什么是WindStyle [...]

Leave a Reply