[ZT]用于电子书的RSS——OPDS

在书社会上看到Jada写的这篇日志,觉得值得钻研一番。现征得Jada许可,转贴于此。

依Jada指点在Stanza的“共享”中增加了几个资源,从PragPub Magazine中下载了一期杂志,从云中书城下载了一个漫画,才知道一直以为面目可憎的ePub电子书其实也可以有图片并编出漂亮的版式。不过在吾国,添加了Internet Archive也无法连上,可惜了那上面数以百万计的电子书。

查了下,该标准由Internet Archive等制订,正是Google图书的竞争对手。

Open Publication Distribution System

用于电子书的RSS——OPDS / by Jada

开放出版发行系统OPDS(Open Publication Distribution System),是一种用于电子书书目信息发布和订阅的格式标准,基于atom。它的功能类似于博客订阅中的RSS格式标准,只不过是专为电子书而设计的。这个标准以epub格式的电子书为主要格式,也叫OpenPub。2010年5月推出0.9,最新的是今年6月推出的1.1版本。

该标准的一大好处是支持各种桌面和移动终端,各种软件,可以让电子书书目信息在不同的终端和电子书阅读软件上显示和分享。读者可以用一款阅读器软件,订阅多个来源电子书书目信息,像RSS订阅一样,实时更新。目前已有著名的Stanza软件支持OPDS。IPAD中文版的Stanza在app store上有下载。对一些不涉及版权等问题的免费电子书,可直接下载到本机阅读,十分方便。

该标准也提供对书籍借阅方面的支持,如订阅电子书目后,除了浏览书目信息,还可以连接到书目信息提供者,如果是图书馆,可直接借阅。该标准定义了以下可能的情境:
http://opds-spec.org/acquisition
http://opds-spec.org/acquisition/open-access
http://opds-spec.org/acquisition/borrow
http://opds-spec.org/acquisition/buy
http://opds-spec.org/acquisition/sample
http://opds-spec.org/acquisition/subscribe

这些情景就包括借阅和购买。以下是编码范例:

<link rel=”http://opds-spec.org/acquisition” href=”/content/free/4561.epub” type=”application/epub+zip”/>
<link rel=”http://opds-spec.org/acquisition” href=”/content/free/4561.mobi” type=”application/x-mobipocket-ebook”/>
<link rel=”http://opds-spec.org/acquisition/buy” href=”/content/4561.pdf” type=”application/pdf”>
<opds:price currencycode=”USD”>18.99</opds:price>
<opds:price currencycode=”GBP”>11.99</opds:price>
</link>

其中rel 代表这本书来源的状况,而href 则是连结位置,type 则是文档的状态,可以用在让电子书阅读器选择所支持的格式,如:application/epub+zip ,application/pdf ,application/x-mobipocket-ebook。
rel=”http://opds-spec.org/acquisition/buy” 说明这本书是需要购买的,<opds:price currencycode=”USD”>18.99</opds:price>是对书籍价格的描述。关于书的元数据的显示,封面的显示,分页显示等等,也有定义。

OPDS的另一个亮点是支持按主题、日期、流行度等分面浏览。包括以下定义:
http://opds-spec.org/sort/new
http://opds-spec.org/sort/popular
http://opds-spec.org/featured
http://opds-spec.org/crawlable
http: //opds-spec.org/shelf
http://opds-spec.org/subscriptions

目前提供OPDS订阅的在线资源有

Feedbooks: http://www.feedbooks.com/catalog.atom
Internet Archive: http://bookserver.archive.org/catalog/
PragPub Magazine | The Pragmatic Bookshelf: http://pragprog.com/magazines.opds
Revues.org: http://bookserver.revues.org/
Project Gutenberg: http://m.gutenberg.org
Ebooks libres et gratuits: http://www.ebooksgratuits.com/opds/
Legimi – digital content delivery platform: http://www.legimi.com/opds/root.atom
Shucang: http://www.shucang.com/s/index.php
Plough Publishing: http://www.plough.com/ploughCatalog_opds.xml
SNDA YZSC: http://opds.yzsc.com.cn

支持OPDS的软件有

Infinite Book Reader: – eBook reader for the iPad.
QuickReader: – The Speed Reading eBook Reader for the iPad, iPhone, and iPod Touch.
Aldiko: – EPUB reader and OPDS client for Android
EPUBReader: – All devices and OS supporting Firefox and SeaMonkey Web Browsers
FBReader: – All devices with network access.
Ouiivo Reader: – EPUB reader and OPDS client for iPhone and iPod Touch
MegaReader: – Highly customizable eBook reader for the iPad, iPhone, and iPod Touch with Heads Up Display.
Cool Reader: – Only in Android version.
eBook Search: – Allows you to download free books from OPDS catalogs to iBooks, Kindle, Nook or your favorite iOS eBook reader app. Download for free from iTunes app store.
Mantano Reader'”: ePub and PDF reader for Android.

OPDS生成工具
Lucicat 在服务器上生成OPDS书目信息。 基于 PHP/MySQL。

http://lucidor.org/lucicat/

对于图书馆来说,可以利用这个标准,在电子书内容整合上,大有可为啊。