diff options
| author | 2021-02-03 19:17:00 -0500 | |
|---|---|---|
| committer | 2021-02-03 19:17:00 -0500 | |
| commit | 3a0d66f07b112b6d2bdc2b57bbf717a89a351ce6 (patch) | |
| tree | a7cf56282e54f05785243bc1e903d6594f2c06ba /tests/data | |
| parent | 787b97a4cb24330b36f11297c6d3a7a473a907d0 (diff) | |
New upstream version 8.1.2.upstream/8.1.2
Diffstat (limited to 'tests/data')
28 files changed, 1170 insertions, 691 deletions
diff --git a/tests/data/1-nolinks.rst b/tests/data/1-nolinks.rst index 7f168fb..a644793 100644 --- a/tests/data/1-nolinks.rst +++ b/tests/data/1-nolinks.rst @@ -1,6 +1,7 @@ .. title: Welcome to Nikola .. slug: welcome-to-nikola .. date: 2012-03-30 23:00:00 UTC-03:00 +.. updated: 2018-08-10 06:54:00Z .. tags: nikola, python, demo, blog .. author: Roberto Alsina .. link: https://getnikola.com/ diff --git a/tests/data/metadata_extractors/f-html-1-compiler.html b/tests/data/metadata_extractors/f-html-1-compiler.html new file mode 100644 index 0000000..5e95c47 --- /dev/null +++ b/tests/data/metadata_extractors/f-html-1-compiler.html @@ -0,0 +1,7 @@ +<meta name="title" content="T: HTML, 1, compiler"> +<meta name="slug" content="s-html-1-compiler"> +<meta name="date" content="2017-07-01 00:00:00 UTC"> +<meta name="tags" content="meta,HTML,onefile,compiler"> + +Content line 1. +Content line 2.
\ No newline at end of file diff --git a/tests/data/metadata_extractors/f-ipynb-1-compiler.ipynb b/tests/data/metadata_extractors/f-ipynb-1-compiler.ipynb new file mode 100644 index 0000000..3f6d18f --- /dev/null +++ b/tests/data/metadata_extractors/f-ipynb-1-compiler.ipynb @@ -0,0 +1,31 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Content line 1.\nContent line 2." + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "env": {}, + "language": "python", + "name": "python3" + }, + "nikola": { + "category": "", + "date": "2017-07-01 00:00:00 UTC", + "description": "", + "link": "", + "slug": "s-ipynb-1-compiler", + "tags": "meta,Jupyter Notebook,onefile,compiler", + "title": "T: Jupyter Notebook, 1, compiler", + "type": "text" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/tests/data/metadata_extractors/f-markdown-1-compiler.md b/tests/data/metadata_extractors/f-markdown-1-compiler.md new file mode 100644 index 0000000..689bb0f --- /dev/null +++ b/tests/data/metadata_extractors/f-markdown-1-compiler.md @@ -0,0 +1,7 @@ +title: T: Markdown, 1, compiler +slug: s-markdown-1-compiler +date: 2017-07-01 00:00:00 UTC +tags: meta,Markdown,onefile,compiler + +Content line 1. +Content line 2. diff --git a/tests/data/metadata_extractors/f-markdown-1-nikola.md b/tests/data/metadata_extractors/f-markdown-1-nikola.md new file mode 100644 index 0000000..5b38c20 --- /dev/null +++ b/tests/data/metadata_extractors/f-markdown-1-nikola.md @@ -0,0 +1,13 @@ +<!-- +.. title: T: Markdown, 1, Nikola +.. slug: s-markdown-1-nikola +.. date: 2017-07-01 00:00:00 UTC +.. tags: meta,Markdown,onefile,Nikola +.. category: +.. link: +.. description: +.. type: text +--> + +Content line 1. +Content line 2. diff --git a/tests/data/metadata_extractors/f-markdown-2-nikola.md b/tests/data/metadata_extractors/f-markdown-2-nikola.md new file mode 100644 index 0000000..0bd667b --- /dev/null +++ b/tests/data/metadata_extractors/f-markdown-2-nikola.md @@ -0,0 +1,2 @@ +Content line 1. +Content line 2. diff --git a/tests/data/metadata_extractors/f-markdown-2-nikola.meta b/tests/data/metadata_extractors/f-markdown-2-nikola.meta new file mode 100644 index 0000000..c068ba6 --- /dev/null +++ b/tests/data/metadata_extractors/f-markdown-2-nikola.meta @@ -0,0 +1,7 @@ +.. title: T: Markdown, 2, Nikola +.. slug: s-markdown-2-nikola +.. date: 2017-07-01 00:00:00 UTC +.. tags: meta,Markdown,twofile,Nikola +.. link: +.. description: +.. type: text diff --git a/tests/data/metadata_extractors/f-rest-1-compiler.rst b/tests/data/metadata_extractors/f-rest-1-compiler.rst new file mode 100644 index 0000000..3b21c3f --- /dev/null +++ b/tests/data/metadata_extractors/f-rest-1-compiler.rst @@ -0,0 +1,9 @@ +T: reST, 1, compiler +==================== + +:slug: s-rest-1-compiler +:Date: 2017-07-01 00:00:00 UTC +:tags: meta,reST,onefile,compiler + +Content line 1. +Content line 2. diff --git a/tests/data/metadata_extractors/f-rest-1-nikola.rst b/tests/data/metadata_extractors/f-rest-1-nikola.rst new file mode 100644 index 0000000..14dede0 --- /dev/null +++ b/tests/data/metadata_extractors/f-rest-1-nikola.rst @@ -0,0 +1,11 @@ +.. title: T: reST, 1, Nikola +.. slug: s-rest-1-nikola +.. date: 2017-07-01 00:00:00 UTC +.. tags: meta,reST,onefile,Nikola +.. category: +.. link: +.. description: +.. type: text + +Content line 1. +Content line 2. diff --git a/tests/data/metadata_extractors/f-rest-1-toml.rst b/tests/data/metadata_extractors/f-rest-1-toml.rst new file mode 100644 index 0000000..0e2c4eb --- /dev/null +++ b/tests/data/metadata_extractors/f-rest-1-toml.rst @@ -0,0 +1,8 @@ ++++ +title = "T: reST, 1, TOML" +slug = "s-rest-1-toml" +date = "2017-07-01 00:00:00 UTC" +tags = "meta,reST,onefile,TOML" ++++ +Content line 1. +Content line 2. diff --git a/tests/data/metadata_extractors/f-rest-1-yaml.rst b/tests/data/metadata_extractors/f-rest-1-yaml.rst new file mode 100644 index 0000000..b904b35 --- /dev/null +++ b/tests/data/metadata_extractors/f-rest-1-yaml.rst @@ -0,0 +1,8 @@ +--- +title: "T: reST, 1, YAML" +slug: s-rest-1-yaml +date: "2017-07-01 00:00:00 UTC" +tags: ["meta", "reST", "onefile", "YAML"] +--- +Content line 1. +Content line 2. diff --git a/tests/data/metadata_extractors/f-rest-2-nikola.meta b/tests/data/metadata_extractors/f-rest-2-nikola.meta new file mode 100644 index 0000000..aeb6f49 --- /dev/null +++ b/tests/data/metadata_extractors/f-rest-2-nikola.meta @@ -0,0 +1,7 @@ +.. title: T: reST, 2, Nikola +.. slug: s-rest-2-nikola +.. date: 2017-07-01 00:00:00 UTC +.. tags: meta,reST,twofile,Nikola +.. link: +.. description: +.. type: text diff --git a/tests/data/metadata_extractors/f-rest-2-nikola.rst b/tests/data/metadata_extractors/f-rest-2-nikola.rst new file mode 100644 index 0000000..0bd667b --- /dev/null +++ b/tests/data/metadata_extractors/f-rest-2-nikola.rst @@ -0,0 +1,2 @@ +Content line 1. +Content line 2. diff --git a/tests/data/metadata_extractors/f-rest-2-toml.meta b/tests/data/metadata_extractors/f-rest-2-toml.meta new file mode 100644 index 0000000..4235df9 --- /dev/null +++ b/tests/data/metadata_extractors/f-rest-2-toml.meta @@ -0,0 +1,6 @@ ++++ +title = "T: reST, 2, TOML" +slug = "s-rest-2-toml" +date = "2017-07-01 00:00:00 UTC" +tags = "meta,reST,twofile,TOML" ++++ diff --git a/tests/data/metadata_extractors/f-rest-2-toml.rst b/tests/data/metadata_extractors/f-rest-2-toml.rst new file mode 100644 index 0000000..0bd667b --- /dev/null +++ b/tests/data/metadata_extractors/f-rest-2-toml.rst @@ -0,0 +1,2 @@ +Content line 1. +Content line 2. diff --git a/tests/data/metadata_extractors/f-rest-2-yaml.meta b/tests/data/metadata_extractors/f-rest-2-yaml.meta new file mode 100644 index 0000000..87d83bc --- /dev/null +++ b/tests/data/metadata_extractors/f-rest-2-yaml.meta @@ -0,0 +1,6 @@ +--- +title: "T: reST, 2, YAML" +slug: s-rest-2-yaml +date: "2017-07-01 00:00:00 UTC" +tags: ["meta", "reST", "twofile", "YAML"] +--- diff --git a/tests/data/metadata_extractors/f-rest-2-yaml.rst b/tests/data/metadata_extractors/f-rest-2-yaml.rst new file mode 100644 index 0000000..0bd667b --- /dev/null +++ b/tests/data/metadata_extractors/f-rest-2-yaml.rst @@ -0,0 +1,2 @@ +Content line 1. +Content line 2. diff --git a/tests/data/rss-2_0.xsd b/tests/data/rss-2_0.xsd new file mode 100644 index 0000000..d7ddaee --- /dev/null +++ b/tests/data/rss-2_0.xsd @@ -0,0 +1,500 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + XML Schema for RSS v2.0 + Copyright (C) 2003-2008 Jorgen Thelin + +Microsoft Public License (Ms-PL) + +This license governs use of the accompanying software. +If you use the software, you accept this license. +If you do not accept the license, do not use the software. + +1. Definitions + +The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. + + A "contribution" is the original software, or any additions or changes to the software. + + A "contributor" is any person that distributes its contribution under this license. + + "Licensed patents" are a contributor's patent claims that read directly on its contribution. + +2. Grant of Rights + + (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. + + (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. + +3. Conditions and Limitations + + (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. + + (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. + + (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. + + (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. + + (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. + +--> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" + elementFormDefault="unqualified" + version="2.0.2.16"> + <xs:annotation> + <xs:documentation>XML Schema for RSS v2.0 feed files.</xs:documentation> + <xs:documentation>Project home: http://www.codeplex.com/rss2schema/ </xs:documentation> + <xs:documentation>Based on the RSS 2.0 specification document at http://cyber.law.harvard.edu/rss/rss.html </xs:documentation> + <xs:documentation>Author: Jorgen Thelin</xs:documentation> + <xs:documentation>Revision: 16</xs:documentation> + <xs:documentation>Date: 01-Nov-2008</xs:documentation> + <xs:documentation>Feedback to: http://www.codeplex.com/rss2schema/WorkItem/List.aspx </xs:documentation> + </xs:annotation> + <xs:element name="rss"> + <xs:complexType> + <xs:sequence> + <xs:element name="channel" type="RssChannel"/> + <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + <xs:attribute name="version" type="xs:decimal" use="required" fixed="2.0"/> + <xs:anyAttribute namespace="##any"/> + </xs:complexType> + </xs:element> + <xs:complexType name="RssItem"> + <xs:annotation> + <xs:documentation>An item may represent a "story" -- much like a story in a newspaper or magazine; if so its description is a synopsis of the story, and the link points to the full story. An item may also be complete in itself, if so, the description contains the text (entity-encoded HTML is allowed), and the link and title may be omitted.</xs:documentation> + </xs:annotation> + <xs:sequence> + <xs:choice maxOccurs="unbounded"> + <xs:element name="title" type="xs:string" minOccurs="0"> + <xs:annotation> + <xs:documentation>The title of the item.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="description" type="xs:string" minOccurs="0"> + <xs:annotation> + <xs:documentation>The item synopsis.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="link" type="xs:anyURI" minOccurs="0"> + <xs:annotation> + <xs:documentation>The URL of the item.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="author" type="EmailAddress" minOccurs="0"> + <xs:annotation> + <xs:documentation>Email address of the author of the item.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="category" type="Category" minOccurs="0"> + <xs:annotation> + <xs:documentation>Includes the item in one or more categories. </xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="comments" type="xs:anyURI" minOccurs="0"> + <xs:annotation> + <xs:documentation>URL of a page for comments relating to the item.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="enclosure" type="Enclosure" minOccurs="0"> + <xs:annotation> + <xs:documentation>Describes a media object that is attached to the item.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="guid" type="Guid" minOccurs="0"> + <xs:annotation> + <xs:documentation>guid or permalink URL for this entry</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="pubDate" type="Rfc822FormatDate" minOccurs="0"> + <xs:annotation> + <xs:documentation>Indicates when the item was published.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="source" type="Source" minOccurs="0"> + <xs:annotation> + <xs:documentation>The RSS channel that the item came from.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"> + <xs:annotation> + <xs:documentation>Extensibility element.</xs:documentation> + </xs:annotation> + </xs:any> + </xs:choice> + </xs:sequence> + <xs:anyAttribute namespace="##any"/> + </xs:complexType> + <xs:complexType name="RssChannel"> + <xs:sequence> + <xs:choice maxOccurs="unbounded"> + <xs:element name="title" type="xs:string"> + <xs:annotation> + <xs:documentation>The name of the channel. It's how people refer to your service. If you have an HTML website that contains the same information as your RSS file, the title of your channel should be the same as the title of your website.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="link" type="xs:anyURI"> + <xs:annotation> + <xs:documentation>The URL to the HTML website corresponding to the channel.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="description" type="xs:string"> + <xs:annotation> + <xs:documentation>Phrase or sentence describing the channel.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="language" type="xs:language" minOccurs="0"> + <xs:annotation> + <xs:documentation>The language the channel is written in. This allows aggregators to group all Italian language sites, for example, on a single page. A list of allowable values for this element, as provided by Netscape, is here. You may also use values defined by the W3C.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="copyright" type="xs:string" minOccurs="0"> + <xs:annotation> + <xs:documentation>Copyright notice for content in the channel.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="managingEditor" type="EmailAddress" minOccurs="0"> + <xs:annotation> + <xs:documentation>Email address for person responsible for editorial content.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="webMaster" type="EmailAddress" minOccurs="0"> + <xs:annotation> + <xs:documentation>Email address for person responsible for technical issues relating to channel.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="pubDate" type="Rfc822FormatDate" minOccurs="0"> + <xs:annotation> + <xs:documentation>The publication date for the content in the channel. All date-times in RSS conform to the Date and Time Specification of RFC 822, with the exception that the year may be expressed with two characters or four characters (four preferred).</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="lastBuildDate" type="Rfc822FormatDate" minOccurs="0"> + <xs:annotation> + <xs:documentation>The last time the content of the channel changed.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="category" type="Category" minOccurs="0"> + <xs:annotation> + <xs:documentation>Specify one or more categories that the channel belongs to.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="generator" type="xs:string" minOccurs="0"> + <xs:annotation> + <xs:documentation>A string indicating the program used to generate the channel.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="docs" type="xs:anyURI" minOccurs="0"> + <xs:annotation> + <xs:documentation>A URL that points to the documentation for the format used in the RSS file. It's probably a pointer to this page. It's for people who might stumble across an RSS file on a Web server 25 years from now and wonder what it is.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="cloud" type="Cloud" minOccurs="0"> + <xs:annotation> + <xs:documentation>Allows processes to register with a cloud to be notified of updates to the channel, implementing a lightweight publish-subscribe protocol for RSS feeds.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="ttl" type="xs:nonNegativeInteger" minOccurs="0"> + <xs:annotation> + <xs:documentation>ttl stands for time to live. It's a number of minutes that indicates how long a channel can be cached before refreshing from the source.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="image" type="Image" minOccurs="0"> + <xs:annotation> + <xs:documentation>Specifies a GIF, JPEG or PNG image that can be displayed with the channel.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="rating" type="xs:string" minOccurs="0"> + <xs:annotation> + <xs:documentation>The PICS rating for the channel.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="textInput" type="TextInput" minOccurs="0"> + <xs:annotation> + <xs:documentation>Specifies a text input box that can be displayed with the channel.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="skipHours" type="SkipHoursList" minOccurs="0"> + <xs:annotation> + <xs:documentation>A hint for aggregators telling them which hours they can skip.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="skipDays" type="SkipDaysList" minOccurs="0"> + <xs:annotation> + <xs:documentation>A hint for aggregators telling them which days they can skip.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"> + <xs:annotation> + <xs:documentation>Extensibility element.</xs:documentation> + </xs:annotation> + </xs:any> + </xs:choice> + <xs:element name="item" type="RssItem" minOccurs="1" maxOccurs="unbounded"> + <!-- + HACK: According to the RSS 2.0 spec, it should strictly be possible to have zero item elements, + but this makes the schema non-deterministic with regard to extensibility elements + so for the moment we undid bug-fix 10231 and set minOccurs=1 to work around this problem. + --> + </xs:element> + <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"> + <xs:annotation> + <xs:documentation>Extensibility element.</xs:documentation> + </xs:annotation> + </xs:any> + </xs:sequence> + <xs:anyAttribute namespace="##any"/> + </xs:complexType> + <xs:simpleType name="SkipHour"> + <xs:annotation> + <xs:documentation>A time in GMT when aggregators should not request the channel data. The hour beginning at midnight is hour zero.</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:nonNegativeInteger"> + <xs:minInclusive value="0"/> + <xs:maxInclusive value="23"/> + </xs:restriction> + </xs:simpleType> + <xs:complexType name="SkipHoursList"> + <xs:sequence> + <xs:element name="hour" type="SkipHour" minOccurs="0" maxOccurs="24"/> + </xs:sequence> + </xs:complexType> + <xs:simpleType name="SkipDay"> + <xs:annotation> + <xs:documentation>A day when aggregators should not request the channel data.</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:string"> + <xs:enumeration value="Monday"/> + <xs:enumeration value="Tuesday"/> + <xs:enumeration value="Wednesday"/> + <xs:enumeration value="Thursday"/> + <xs:enumeration value="Friday"/> + <xs:enumeration value="Saturday"/> + <xs:enumeration value="Sunday"/> + </xs:restriction> + </xs:simpleType> + <xs:complexType name="SkipDaysList"> + <xs:sequence> + <xs:element name="day" type="SkipDay" minOccurs="0" maxOccurs="7"> + <xs:annotation> + <xs:documentation>A time in GMT, when aggregators should not request the channel data. The hour beginning at midnight is hour zero.</xs:documentation> + </xs:annotation> + </xs:element> + </xs:sequence> + </xs:complexType> + <xs:complexType name="Category"> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="domain" type="xs:string" use="optional"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + <xs:complexType name="Image"> + <xs:all> + <xs:element name="url" type="xs:anyURI"> + <xs:annotation> + <xs:documentation>The URL of the image file.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="title" type="xs:string"> + <xs:annotation> + <xs:documentation>Describes the image, it's used in the ALT attribute of the HTML <img> tag when the channel is rendered in HTML.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="link" type="xs:anyURI"> + <xs:annotation> + <xs:documentation>The URL of the site, when the channel is rendered, the image is a link to the site. (Note, in practice the image <title> and <link> should have the same value as the channel's <title> and <link>. </xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="width" type="ImageWidth" default="88" minOccurs="0"> + <xs:annotation> + <xs:documentation>The width of the image in pixels.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="height" type="ImageHeight" default="31" minOccurs="0"> + <xs:annotation> + <xs:documentation>The height of the image in pixels.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="description" type="xs:string" minOccurs="0"> + <xs:annotation> + <xs:documentation>Text that is included in the TITLE attribute of the link formed around the image in the HTML rendering.</xs:documentation> + </xs:annotation> + </xs:element> + </xs:all> + </xs:complexType> + <xs:simpleType name="ImageHeight"> + <xs:annotation> + <xs:documentation>The height of the image in pixels.</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:positiveInteger"> + <xs:maxInclusive value="400"/> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="ImageWidth"> + <xs:annotation> + <xs:documentation>The width of the image in pixels.</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:positiveInteger"> + <xs:maxInclusive value="144"/> + </xs:restriction> + </xs:simpleType> + <xs:complexType name="Cloud"> + <xs:annotation> + <xs:documentation>Specifies a web service that supports the rssCloud interface which can be implemented in HTTP-POST, XML-RPC or SOAP 1.1. Its purpose is to allow processes to register with a cloud to be notified of updates to the channel, implementing a lightweight publish-subscribe protocol for RSS feeds.</xs:documentation> + </xs:annotation> + <xs:attribute name="domain" type="xs:string" use="required"/> + <xs:attribute name="port" type="xs:positiveInteger" use="required"/> + <xs:attribute name="path" type="xs:string" use="required"/> + <xs:attribute name="registerProcedure" type="xs:string" use="required"/> + <xs:attribute name="protocol" type="CloudProtocol" use="required"/> + </xs:complexType> + <xs:simpleType name="CloudProtocol"> + <xs:restriction base="xs:string"> + <xs:enumeration value="xml-rpc"/> + <xs:enumeration value="http-post"/> + <xs:enumeration value="soap"/> + </xs:restriction> + </xs:simpleType> + <xs:complexType name="TextInput"> + <xs:annotation> + <xs:documentation>The purpose of this element is something of a mystery! You can use it to specify a search engine box. Or to allow a reader to provide feedback. Most aggregators ignore it.</xs:documentation> + </xs:annotation> + <xs:all> + <xs:element name="title" type="xs:string"> + <xs:annotation> + <xs:documentation>The label of the Submit button in the text input area.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="description" type="xs:string"> + <xs:annotation> + <xs:documentation>Explains the text input area.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="name" type="xs:string"> + <xs:annotation> + <xs:documentation>The name of the text object in the text input area.</xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="link" type="xs:anyURI"> + <xs:annotation> + <xs:documentation>The URL of the CGI script that processes text input requests.</xs:documentation> + </xs:annotation> + </xs:element> + </xs:all> + </xs:complexType> + <xs:simpleType name="EmailAddress"> + <xs:annotation> + <xs:documentation>Using the regexp definiton of E-Mail Address by Lucadean from the .NET RegExp Pattern Repository at http://www.3leaf.com/default/NetRegExpRepository.aspx </xs:documentation> + </xs:annotation> + <xs:restriction base="xs:string"> + <xs:pattern value="([a-zA-Z0-9_\-])([a-zA-Z0-9_\-\.]*)@(\[((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}|((([a-zA-Z0-9\-]+)\.)+))([a-zA-Z]{2,}|(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\])"/> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="Rfc822FormatDate"> + <xs:annotation> + <xs:documentation>A date-time displayed in RFC-822 format.</xs:documentation> + <xs:documentation>Using the regexp definiton of rfc-822 date by Sam Ruby at http://www.intertwingly.net/blog/1360.html </xs:documentation> + </xs:annotation> + <xs:restriction base="xs:string"> + <xs:pattern value="(((Mon)|(Tue)|(Wed)|(Thu)|(Fri)|(Sat)|(Sun)), *)?\d\d? +((Jan)|(Feb)|(Mar)|(Apr)|(May)|(Jun)|(Jul)|(Aug)|(Sep)|(Oct)|(Nov)|(Dec)) +\d\d(\d\d)? +\d\d:\d\d(:\d\d)? +(([+\-]?\d\d\d\d)|(UT)|(GMT)|(EST)|(EDT)|(CST)|(CDT)|(MST)|(MDT)|(PST)|(PDT)|\w)"/> + </xs:restriction> + </xs:simpleType> + <xs:complexType name="Source"> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="url" type="xs:anyURI"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + <xs:complexType name="Enclosure"> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="url" type="xs:anyURI" use="required"> + <xs:annotation> + <xs:documentation>URL where the enclosure is located</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="length" type="xs:nonNegativeInteger" use="required"> + <xs:annotation> + <xs:documentation>Size in bytes</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="type" type="xs:string" use="required"> + <xs:annotation> + <xs:documentation>MIME media-type of the enclosure</xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + <xs:complexType name="Guid"> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="isPermaLink" type="xs:boolean" use="optional" default="true"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + +<!-- +TODO: +- Need to add regexp pattern for MIME media-type value of tEnclosure/type +- Need to add regexp pattern for checking contents of guid is a URL when isPermaLink=true" +- Need to add some form of constraint to check on an item that one, or other, or both of title and description are present. + However, I'm not sure it is possible to represent these constraints in XML Schema language alone. +- Need some way to enforce cardinality constraints preventing repeated elements in channels or items +- Unfortunately the bug-fix for issue 10231 made this schema non-deterministic with respect to extensibitity elements. + We can't tell whether an extension element in tRssChannel is within the choice or after the item elements. + Need to reconsider the solution to bug-fix 10231. +--> + +<!-- +Change Log: +Date Revision Description +31-Mar-2003 1 Initial version released for comment +31-Mar-2003 2 Changes based on feedback from Gudge: + - Remove targetNamespace="" and use elemenfFormDefault="unqualified" instead + - Use namespace="##other" on <any>'s to create a more deterministic data model. + - Added missing xs:documentation inside xs:annotation at the schema level. + - Use xs:language for ISO Language Codes in <language> element. + - Change guid to a single declaration. This loses some of the checking of the + URL when the contents of the guid is a permaLink, so we will need to add + that back in with a regexp pattern. +14-Apr-2003 3 Changes to solve some element ordering problems. + - Use xs:all in place of xs:sequence to support flexible ordering of elements. + Although the ordering constraints for elements is not clear from the + original specification, the custom and practice seems to be that + element ordering is freeform. + - Use elemenfFormDefault="qualified" for explicit intent. +15-Apr-2003 4 Changes to solve some element ordering problems. + - Use xs:choice in place of xs:all as previous usage of <all> was invalid. + This creates the problem that unsufficient constraints can be applied + by the schema - for example, it can't prevent two title elements for an item. + - Use elemenfFormDefault="unqualified" for to get the correct behavious + when importing and combining schemas. +15-Apr-2003 5 Putting the extensibility element inside the repeating choice solves + all problems with element ordering. +15-Apr-2003 6 - skipHours and skipDays should contain a nested list of values, + not just a single value. + - Added version attribute to schema definition. + - Corrected type of the cloud element +25-Apr-2003 7 - Add regexp for RFC-822 date suggested by Sam Ruby + - I had to leave the base type of the tRfc822FormatDate type + as xs:string due to the problems with using + a pattern with xs:dateTime described at + http://www.thearchitect.co.uk/weblog/archives/2003/04/000142.html +19-Jun-2003 8 - Fixed a bug the Oxygen XML Editor spotted in the regexp for RFC-822 dates +23-Jun-2003 9 - Added legal boilerplate license text for LGPL. + - Minor formatting changes. +24-Jun-2003 10 - Missing types for item/title and item/description - Spotted by Andreas Schwotzer. +01-Jan-2008 11 - Copy made available under the Microsoft Public License (MS-PL). +25-May-2008 12 - Bug fix 10231 from Ken Gruven - channel can contain zero or more items. +06-Sep-2008 13 - Fixed tab-space whitespace issues. Now always use spaces. + - Undid the fix for bug-fix 10231 since it made the schema non-deterministic + with respect to extensibility eleemnts in tRssChannel - need to reconsider the fix. +08-Sep-2008 14 - Removed 't' prefixes from type names to improve class names + that get code-generated from the schema. +22-Sep-2008 15 - Move type def for rss element in-line for improved compativility with Java 1.6 tools. +01-Nov-2008 16 - Added the missing rating element from the spec to RssChannel. +--> + +</xs:schema> diff --git a/tests/data/test_config/conf.py b/tests/data/test_config/conf.py new file mode 100644 index 0000000..2a2d1b8 --- /dev/null +++ b/tests/data/test_config/conf.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +import time + +BLOG_AUTHOR = "Your Name" +BLOG_TITLE = "Demo Site" +SITE_URL = "https://example.com/" +BLOG_EMAIL = "joe@demo.site" +BLOG_DESCRIPTION = "This is a demo site for Nikola." +DEFAULT_LANG = "en" +CATEGORY_ALLOW_HIERARCHIES = False +CATEGORY_OUTPUT_FLAT_HIERARCHY = False +HIDDEN_CATEGORIES = [] +HIDDEN_AUTHORS = ['Guest'] +LICENSE = "" + +CONTENT_FOOTER_FORMATS = { + DEFAULT_LANG: ( + (), + { + "email": BLOG_EMAIL, + "author": BLOG_AUTHOR, + "date": time.gmtime().tm_year, + "license": LICENSE + } + ) +} + +ADDITIONAL_METADATA = { + "ID": "conf" +} diff --git a/tests/data/test_config/config.with+illegal(module)name.characters.py b/tests/data/test_config/config.with+illegal(module)name.characters.py new file mode 100644 index 0000000..39a8aeb --- /dev/null +++ b/tests/data/test_config/config.with+illegal(module)name.characters.py @@ -0,0 +1,6 @@ +import conf + +globals().update(vars(conf)) +ADDITIONAL_METADATA = { + "ID": "illegal" +} diff --git a/tests/data/test_config/prod.py b/tests/data/test_config/prod.py new file mode 100644 index 0000000..3838827 --- /dev/null +++ b/tests/data/test_config/prod.py @@ -0,0 +1,6 @@ +import conf + +globals().update(vars(conf)) +ADDITIONAL_METADATA = { + "ID": "prod" +} diff --git a/tests/data/translated_titles/conf.py b/tests/data/translated_titles/conf.py index 3d0d829..9e8a042 100644 --- a/tests/data/translated_titles/conf.py +++ b/tests/data/translated_titles/conf.py @@ -1,95 +1,16 @@ # -*- coding: utf-8 -*- - -from __future__ import unicode_literals import time - -# !! This is the configuration of Nikola. !!# -# !! You should edit it to your liking. !!# - - -# ! Some settings can be different in different languages. -# ! A comment stating (translatable) is used to denote those. -# ! There are two ways to specify a translatable setting: -# ! (a) BLOG_TITLE = "My Blog" -# ! (b) BLOG_TITLE = {"en": "My Blog", "es": "Mi Blog"} -# ! Option (a) is there for backwards compatibility and when you don't -# ! want that setting translated. -# ! Option (b) should be used for settings that are different in -# ! different languages. - - -# Data about this site BLOG_AUTHOR = "Your Name" # (translatable) BLOG_TITLE = "Demo Site" # (translatable) -# This is the main URL for your site. It will be used -# in a prominent link SITE_URL = "https://example.com/" -# This is the URL where nikola's output will be deployed. -# If not set, defaults to SITE_URL -# BASE_URL = "https://example.com/" BLOG_EMAIL = "joe@demo.site" BLOG_DESCRIPTION = "This is a demo site for Nikola." # (translatable) - -# Nikola is multilingual! -# -# Currently supported languages are: -# bg Bulgarian -# ca Catalan -# cs Czech [ALTERNATIVELY cz] -# de German -# el Greek [NOT gr!] -# en English -# eo Esperanto -# es Spanish -# et Estonian -# eu Basque -# fa Persian -# fi Finnish -# fr French -# hi Hindi -# hr Croatian -# it Italian -# ja Japanese [NOT jp!] -# nb Norwegian Bokmål -# nl Dutch -# pt_br Portuguese (Brasil) -# pl Polish -# ru Russian -# sl Slovenian [NOT sl_si!] -# tr Turkish (Turkey) [NOT tr_tr!] -# ur Urdu -# zh_cn Chinese (Simplified) -# -# If you want to use Nikola with a non-supported language you have to provide -# a module containing the necessary translations -# (cf. the modules at nikola/data/themes/base/messages/). -# If a specific post is not translated to a language, then the version -# in the default language will be shown instead. - -# What is the default language? DEFAULT_LANG = "en" - -# What other languages do you have? -# The format is {"translationcode" : "path/to/translation" } -# the path will be used as a prefix for the generated pages location TRANSLATIONS = { "en": "", "pl": "./pl", } - -# What will translated input files be named like? - -# If you have a page something.rst, then something.pl.rst will be considered -# its Polish translation. -# (in the above example: path == "something", ext == "rst", lang == "pl") -# this pattern is also used for metadata: -# something.meta -> something.pl.meta - TRANSLATIONS_PATTERN = "{path}.{lang}.{ext}" - -# Links for the sidebar / navigation bar. -# You should provide a key-value pair for each used language. -# (the same way you would do with a (translatable) setting.) NAVIGATION_LINKS = { DEFAULT_LANG: ( ('/archive.html', 'Archives'), @@ -97,67 +18,14 @@ NAVIGATION_LINKS = { ('/rss.xml', 'RSS'), ), } - -# Below this point, everything is optional - -# While nikola can select a sensible locale for each language, -# sometimes explicit control can come handy. -# In this file we express locales in the string form that -# python's locales will accept in your OS, by example -# "en_US.utf8" in unix-like OS, "English_United States" in Windows. -# LOCALES = dict mapping language --> explicit locale for the languages -# in TRANSLATIONS. You can ommit one or more keys. -# LOCALE_FALLBACK = locale to use when an explicit locale is unavailable -# LOCALE_DEFAULT = locale to use for languages not mentioned in LOCALES; if -# not set the default Nikola mapping is used. - -# POSTS and PAGES contains (wildcard, destination, template) tuples. -# -# The wildcard is used to generate a list of reSt source files -# (whatever/thing.txt). -# -# That fragment could have an associated metadata file (whatever/thing.meta), -# and optionally translated files (example for spanish, with code "es"): -# whatever/thing.es.txt and whatever/thing.es.meta -# -# This assumes you use the default TRANSLATIONS_PATTERN. -# -# From those files, a set of HTML fragment files will be generated: -# cache/whatever/thing.html (and maybe cache/whatever/thing.html.es) -# -# These files are combinated with the template to produce rendered -# pages, which will be placed at -# output / TRANSLATIONS[lang] / destination / pagename.html -# -# where "pagename" is the "slug" specified in the metadata file. -# -# The difference between POSTS and PAGES is that POSTS are added -# to feeds and are considered part of a blog, while PAGES are -# just independent HTML pages. -# - POSTS = ( ("posts/*.rst", "posts", "post.tmpl"), ("posts/*.txt", "posts", "post.tmpl"), ) PAGES = ( - ("stories/*.rst", "stories", "story.tmpl"), - ("stories/*.txt", "stories", "story.tmpl"), + ("pages/*.rst", "pages", "page.tmpl"), + ("pages/*.txt", "pages", "page.tmpl"), ) - -# One or more folders containing files to be copied as-is into the output. -# The format is a dictionary of "source" "relative destination". -# Default is: -# FILES_FOLDERS = {'files': '' } -# Which means copy 'files' into 'output' - -# A mapping of languages to file-extensions that represent that language. -# Feel free to add or delete extensions to any list, but don't add any new -# compilers unless you write the interface for it yourself. -# -# 'rest' is reStructuredText -# 'markdown' is MarkDown -# 'html' assumes the file is html and just copies it COMPILERS = { "rest": ('.rst', '.txt'), "markdown": ('.md', '.mdown', '.markdown'), @@ -176,237 +44,10 @@ COMPILERS = { # with many of the others. # "pandoc": ('.rst', '.md', '.txt'), } - -# Create by default posts in one file format? -# Set to False for two-file posts, with separate metadata. -# ONE_FILE_POSTS = True - -# If this is set to True, the DEFAULT_LANG version will be displayed for -# untranslated posts. -# If this is set to False, then posts that are not translated to a language -# LANG will not be visible at all in the pages in that language. -# Formerly known as HIDE_UNTRANSLATED_POSTS (inverse) -# SHOW_UNTRANSLATED_POSTS = True - -# Paths for different autogenerated bits. These are combined with the -# translation paths. - -# Final locations are: -# output / TRANSLATION[lang] / TAG_PATH / index.html (list of tags) -# output / TRANSLATION[lang] / TAG_PATH / tag.html (list of posts for a tag) -# output / TRANSLATION[lang] / TAG_PATH / tag.xml (RSS feed for a tag) -# TAG_PATH = "categories" - -# If TAG_PAGES_ARE_INDEXES is set to True, each tag's page will contain -# the posts themselves. If set to False, it will be just a list of links. -# TAG_PAGES_ARE_INDEXES = True - -# Final location for the main blog page and sibling paginated pages is -# output / TRANSLATION[lang] / INDEX_PATH / index-*.html -# INDEX_PATH = "" - -# Create per-month archives instead of per-year -# CREATE_MONTHLY_ARCHIVE = False -# Create one large archive instead of per-year -# CREATE_SINGLE_ARCHIVE = False -# Final locations for the archives are: -# output / TRANSLATION[lang] / ARCHIVE_PATH / ARCHIVE_FILENAME -# output / TRANSLATION[lang] / ARCHIVE_PATH / YEAR / index.html -# output / TRANSLATION[lang] / ARCHIVE_PATH / YEAR / MONTH / index.html -# ARCHIVE_PATH = "" -# ARCHIVE_FILENAME = "archive.html" - -# URLs to other posts/pages can take 3 forms: -# rel_path: a relative URL to the current page/post (default) -# full_path: a URL with the full path from the root -# absolute: a complete URL (that includes the SITE_URL) -# URL_TYPE = 'rel_path' - -# Final location for the blog main RSS feed is: -# output / TRANSLATION[lang] / RSS_PATH / rss.xml -# RSS_PATH = "" - -# Number of posts in RSS feeds -# FEED_LENGTH = 10 - -# Slug the Tag URL easier for users to type, special characters are -# often removed or replaced as well. -# SLUG_TAG_PATH = True - -# A list of redirection tuples, [("foo/from.html", "/bar/to.html")]. -# -# A HTML file will be created in output/foo/from.html that redirects -# to the "/bar/to.html" URL. notice that the "from" side MUST be a -# relative URL. -# -# If you don't need any of these, just set to [] REDIRECTIONS = [] - -# Commands to execute to deploy. Can be anything, for example, -# you may use rsync: -# "rsync -rav --delete output/ joe@my.site:/srv/www/site" -# And then do a backup, or run `nikola ping` from the `ping` -# plugin (`nikola install_plugin ping`). -# To do manual deployment, set it to [] -# DEPLOY_COMMANDS = [] - -# Where the output site should be located -# If you don't use an absolute path, it will be considered as relative -# to the location of conf.py -# OUTPUT_FOLDER = 'output' - -# where the "cache" of partial generated content should be located -# default: 'cache' -# CACHE_FOLDER = 'cache' - -# Filters to apply to the output. -# A directory where the keys are either: a file extensions, or -# a tuple of file extensions. -# -# And the value is a list of commands to be applied in order. -# -# Each command must be either: -# -# A string containing a '%s' which will -# be replaced with a filename. The command *must* produce output -# in place. -# -# Or: -# -# A python callable, which will be called with the filename as -# argument. -# -# By default, there are no filters. -# -# Many filters are shipped with Nikola. A list is available in the manual: -# <https://getnikola.com/handbook.html#post-processing-filters> -# FILTERS = { -# ".jpg": ["jpegoptim --strip-all -m75 -v %s"], -# } - -# Expert setting! Create a gzipped copy of each generated file. Cheap server- -# side optimization for very high traffic sites or low memory servers. -# GZIP_FILES = False -# File extensions that will be compressed -# GZIP_EXTENSIONS = ('.txt', '.htm', '.html', '.css', '.js', '.json', '.xml') -# Use an external gzip command? None means no. -# Example: GZIP_COMMAND = "pigz -k {filename}" -# GZIP_COMMAND = None -# Make sure the server does not return a "Accept-Ranges: bytes" header for -# files compressed by this option! OR make sure that a ranged request does not -# return partial content of another representation for these resources. Do not -# use this feature if you do not understand what this means. - -# Compiler to process LESS files. -# LESS_COMPILER = 'lessc' - -# A list of options to pass to the LESS compiler. -# Final command is: LESS_COMPILER LESS_OPTIONS file.less -# LESS_OPTIONS = [] - -# Compiler to process Sass files. -# SASS_COMPILER = 'sass' - -# A list of options to pass to the Sass compiler. -# Final command is: SASS_COMPILER SASS_OPTIONS file.s(a|c)ss -# SASS_OPTIONS = [] - -# ############################################################################# -# Image Gallery Options -# ############################################################################# - -# Galleries are folders in galleries/ -# Final location of galleries will be output / GALLERY_PATH / gallery_name -# GALLERY_PATH = "galleries" -# THUMBNAIL_SIZE = 180 -# MAX_IMAGE_SIZE = 1280 -# USE_FILENAME_AS_TITLE = True -# EXTRA_IMAGE_EXTENSIONS = [] -# -# If set to False, it will sort by filename instead. Defaults to True -# GALLERY_SORT_BY_DATE = True - -# ############################################################################# -# HTML fragments and diverse things that are used by the templates -# ############################################################################# - -# Data about post-per-page indexes. -# INDEXES_PAGES defaults to 'old posts, page %d' or 'page %d' (translated), -# depending on the value of INDEXES_PAGES_MAIN. -# INDEXES_TITLE = "" # If this is empty, defaults to BLOG_TITLE -# INDEXES_PAGES = "" # If this is empty, defaults to '[old posts,] page %d' (see above) -# INDEXES_PAGES_MAIN = False # If True, INDEXES_PAGES is also displayed on -# # the main (the newest) index page (index.html) - -# Name of the theme to use. -THEME = "bootstrap3" - -# Color scheme to be used for code blocks. If your theme provides -# "assets/css/code.css" this is ignored. -# Can be any of autumn borland bw colorful default emacs friendly fruity manni -# monokai murphy native pastie perldoc rrt tango trac vim vs -# CODE_COLOR_SCHEME = 'default' - -# If you use 'site-reveal' theme you can select several subthemes -# THEME_REVEAL_CONFIG_SUBTHEME = 'sky' -# You can also use: beige/serif/simple/night/default - -# Again, if you use 'site-reveal' theme you can select several transitions -# between the slides -# THEME_REVEAL_CONFIG_TRANSITION = 'cube' -# You can also use: page/concave/linear/none/default - -# date format used to display post dates. -# (str used by datetime.datetime.strftime) -# DATE_FORMAT = '%Y-%m-%d %H:%M' - -# FAVICONS contains (name, file, size) tuples. -# Used for create favicon link like this: -# <link rel="name" href="file" sizes="size"/> -# For creating favicons, take a look at: -# http://www.netmagazine.com/features/create-perfect-favicon -# FAVICONS = { -# ("icon", "/favicon.ico", "16x16"), -# ("icon", "/icon_128x128.png", "128x128"), -# } - -# Show only teasers in the index pages? Defaults to False. -# INDEX_TEASERS = False - -# A HTML fragment with the Read more... link. -# The following tags exist and are replaced for you: -# {link} A link to the full post page. -# {read_more} The string “Read more” in the current language. -# {{ A literal { (U+007B LEFT CURLY BRACKET) -# }} A literal } (U+007D RIGHT CURLY BRACKET) -# READ_MORE_LINK = '<p class="more"><a href="{link}">{read_more}…</a></p>' - -# A HTML fragment describing the license, for the sidebar. -# (translatable) +THEME = "bootblog4" LICENSE = "" -# I recommend using the Creative Commons' wizard: -# http://creativecommons.org/choose/ -# LICENSE = """ -# <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/ar/"> -# <img alt="Creative Commons License BY-NC-SA" -# style="border-width:0; margin-bottom:12px;" -# src="http://i.creativecommons.org/l/by-nc-sa/2.5/ar/88x31.png"></a>""" - -# A small copyright notice for the page footer (in HTML). -# (translatable) CONTENT_FOOTER = 'Contents © {date} <a href="mailto:{email}">{author}</a> - Powered by <a href="https://getnikola.com/" rel="nofollow">Nikola</a> {license}' - -# Things that will be passed to CONTENT_FOOTER.format(). This is done -# for translatability, as dicts are not formattable. Nikola will -# intelligently format the setting properly. -# The setting takes a dict. The keys are languages. The values are -# tuples of tuples of positional arguments and dicts of keyword arguments -# to format(). For example, {'en': (('Hello'), {'target': 'World'})} -# results in CONTENT_FOOTER['en'].format('Hello', target='World'). -# WARNING: If you do not use multiple languages with CONTENT_FOOTER, this -# still needs to be a dict of this format. (it can be empty if you -# do not need formatting) -# (translatable) CONTENT_FOOTER_FORMATS = { DEFAULT_LANG: ( (), @@ -418,335 +59,6 @@ CONTENT_FOOTER_FORMATS = { } ) } - -# To use comments, you can choose between different third party comment -# systems, one of "disqus", "livefyre", "intensedebate", "moot", -# "googleplus", "facebook" or "isso" COMMENT_SYSTEM = "disqus" -# And you also need to add your COMMENT_SYSTEM_ID which -# depends on what comment system you use. The default is -# "nikolademo" which is a test account for Disqus. More information -# is in the manual. COMMENT_SYSTEM_ID = "nikolademo" - -# Enable annotations using annotateit.org? -# If set to False, you can still enable them for individual posts and pages -# setting the "annotations" metadata. -# If set to True, you can disable them for individual posts and pages using -# the "noannotations" metadata. -# ANNOTATIONS = False - -# Create index.html for story folders? -# STORY_INDEX = False -# Enable comments on story pages? -# COMMENTS_IN_STORIES = False -# Enable comments on picture gallery pages? -# COMMENTS_IN_GALLERIES = False - -# What file should be used for directory indexes? -# Defaults to index.html -# Common other alternatives: default.html for IIS, index.php -# INDEX_FILE = "index.html" - -# If a link ends in /index.html, drop the index.html part. -# http://mysite/foo/bar/index.html => http://mysite/foo/bar/ -# (Uses the INDEX_FILE setting, so if that is, say, default.html, -# it will instead /foo/default.html => /foo) -# (Note: This was briefly STRIP_INDEX_HTML in v 5.4.3 and 5.4.4) -# Default = False -# STRIP_INDEXES = False - -# Should the sitemap list directories which only include other directories -# and no files. -# Default to True -# If this is False -# e.g. /2012 includes only /01, /02, /03, /04, ...: don't add it to the sitemap -# if /2012 includes any files (including index.html)... add it to the sitemap -# SITEMAP_INCLUDE_FILELESS_DIRS = True - -# Instead of putting files in <slug>.html, put them in -# <slug>/index.html. Also enables STRIP_INDEXES -# This can be disabled on a per-page/post basis by adding -# .. pretty_url: False -# to the metadata -# PRETTY_URLS = False - -# If True, publish future dated posts right away instead of scheduling them. -# Defaults to False. -# FUTURE_IS_NOW = False - -# If True, future dated posts are allowed in deployed output -# Only the individual posts are published/deployed; not in indexes/sitemap -# Generally, you want FUTURE_IS_NOW and DEPLOY_FUTURE to be the same value. -# DEPLOY_FUTURE = False -# If False, draft posts will not be deployed -# DEPLOY_DRAFTS = True - -# Allows scheduling of posts using the rule specified here (new_post -s) -# Specify an iCal Recurrence Rule: http://www.kanzaki.com/docs/ical/rrule.html -# SCHEDULE_RULE = '' -# If True, use the scheduling rule to all posts by default -# SCHEDULE_ALL = False -# If True, schedules post to today if possible, even if scheduled hour is over -# SCHEDULE_FORCE_TODAY = False - -# Do you want a add a Mathjax config file? -# MATHJAX_CONFIG = "" - -# If you are using the compile-ipynb plugin, just add this one: -# MATHJAX_CONFIG = """ -# <script type="text/x-mathjax-config"> -# MathJax.Hub.Config({ -# tex2jax: { -# inlineMath: [ ['$','$'], ["\\\(","\\\)"] ], -# displayMath: [ ['$$','$$'], ["\\\[","\\\]"] ] -# }, -# displayAlign: 'left', // Change this to 'center' to center equations. -# "HTML-CSS": { -# styles: {'.MathJax_Display': {"margin": 0}} -# } -# }); -# </script> -# """ - -# Do you want to customize the nbconversion of your IPython notebook? -# IPYNB_CONFIG = {} -# With the following example configuracion you can use a custom jinja template -# called `toggle.tpl` which has to be located in your site/blog main folder: -# IPYNB_CONFIG = {'Exporter':{'template_file': 'toggle'}} - -# What MarkDown extensions to enable? -# You will also get gist, nikola and podcast because those are -# done in the code, hope you don't mind ;-) -# MARKDOWN_EXTENSIONS = ['fenced_code', 'codehilite'] - -# Social buttons. This is sample code for AddThis (which was the default for a -# long time). Insert anything you want here, or even make it empty. -# (translatable) -# SOCIAL_BUTTONS_CODE = """ -# <!-- Social buttons --> -# <div id="addthisbox" class="addthis_toolbox addthis_peekaboo_style addthis_default_style addthis_label_style addthis_32x32_style"> -# <a class="addthis_button_more">Share</a> -# <ul><li><a class="addthis_button_facebook"></a> -# <li><a class="addthis_button_google_plusone_share"></a> -# <li><a class="addthis_button_linkedin"></a> -# <li><a class="addthis_button_twitter"></a> -# </ul> -# </div> -# <script src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4f7088a56bb93798"></script> -# <!-- End of social buttons --> -# """ - -# Show link to source for the posts? -# Formerly known as HIDE_SOURCELINK (inverse) -# SHOW_SOURCELINK = True -# Copy the source files for your pages? -# Setting it to False implies SHOW_SOURCELINK = False -# COPY_SOURCES = True - -# Modify the number of Post per Index Page -# Defaults to 10 -# INDEX_DISPLAY_POST_COUNT = 10 - -# RSS_LINK is a HTML fragment to link the RSS or Atom feeds. If set to None, -# the base.tmpl will use the feed Nikola generates. However, you may want to -# change it for a feedburner feed or something else. -# RSS_LINK = None - -# Show only teasers in the RSS feed? Default to True -# RSS_TEASERS = True - -# Strip HTML in the RSS feed? Default to False -# RSS_PLAIN = False - -# A search form to search this site, for the sidebar. You can use a google -# custom search (http://www.google.com/cse/) -# Or a duckduckgo search: https://duckduckgo.com/search_box.html -# Default is no search form. -# (translatable) -# SEARCH_FORM = "" -# -# This search form works for any site and looks good in the "site" theme where -# it appears on the navigation bar: -# -# SEARCH_FORM = """ -# <!-- Custom search --> -# <form method="get" id="search" action="//duckduckgo.com/" -# class="navbar-form pull-left"> -# <input type="hidden" name="sites" value="%s"/> -# <input type="hidden" name="k8" value="#444444"/> -# <input type="hidden" name="k9" value="#D51920"/> -# <input type="hidden" name="kt" value="h"/> -# <input type="text" name="q" maxlength="255" -# placeholder="Search…" class="span2" style="margin-top: 4px;"/> -# <input type="submit" value="DuckDuckGo Search" style="visibility: hidden;" /> -# </form> -# <!-- End of custom search --> -# """ % SITE_URL -# -# If you prefer a google search form, here's an example that should just work: -# SEARCH_FORM = """ -# <!-- Custom search with google--> -# <form id="search" action="//www.google.com/search" method="get" class="navbar-form pull-left"> -# <input type="hidden" name="q" value="site:%s" /> -# <input type="text" name="q" maxlength="255" results="0" placeholder="Search"/> -# </form> -# <!-- End of custom search --> -# """ % SITE_URL - -# Also, there is a local search plugin you can use, based on Tipue, but it requires setting several -# options: - -# SEARCH_FORM = """ -# <span class="navbar-form pull-left"> -# <input type="text" id="tipue_search_input"> -# </span>""" -# -# BODY_END = """ -# <script src="/assets/js/tipuesearch_set.js"></script> -# <script src="/assets/js/tipuesearch.js"></script> -# <script> -# $(document).ready(function() { -# $('#tipue_search_input').tipuesearch({ -# 'mode': 'json', -# 'contentLocation': '/assets/js/tipuesearch_content.json', -# 'showUrl': false -# }); -# }); -# </script> -# """ - -# EXTRA_HEAD_DATA = """ -# <link rel="stylesheet" type="text/css" href="/assets/css/tipuesearch.css"> -# <div id="tipue_search_content" style="margin-left: auto; margin-right: auto; padding: 20px;"></div> -# """ -# ENABLED_EXTRAS = ['local_search'] -# - - -# Use content distribution networks for jquery and twitter-bootstrap css and js -# If this is True, jquery and html5shiv are served from the Google CDN and -# Bootstrap is served from BootstrapCDN (provided by MaxCDN) -# Set this to False if you want to host your site without requiring access to -# external resources. -# USE_CDN = False - -# Extra things you want in the pages HEAD tag. This will be added right -# before </head> -# (translatable) -# EXTRA_HEAD_DATA = "" -# Google Analytics or whatever else you use. Added to the bottom of <body> -# in the default template (base.tmpl). -# (translatable) -# BODY_END = "" - -# The possibility to extract metadata from the filename by using a -# regular expression. -# To make it work you need to name parts of your regular expression. -# The following names will be used to extract metadata: -# - title -# - slug -# - date -# - tags -# - link -# - description -# -# An example re is the following: -# '(?P<date>\d{4}-\d{2}-\d{2})-(?P<slug>.*)-(?P<title>.*)\.md' -# FILE_METADATA_REGEXP = None - -# Additional metadata that is added to a post when creating a new_post -# ADDITIONAL_METADATA = {} - -# Nikola supports Twitter Card summaries / Open Graph. -# Twitter cards make it possible for you to attach media to Tweets -# that link to your content. -# -# IMPORTANT: -# Please note, that you need to opt-in for using Twitter Cards! -# To do this please visit -# https://dev.twitter.com/form/participate-twitter-cards -# -# Uncomment and modify to following lines to match your accounts. -# Specifying the id for either 'site' or 'creator' will be preferred -# over the cleartext username. Specifying an ID is not necessary. -# Displaying images is currently not supported. -# TWITTER_CARD = { -# # 'use_twitter_cards': True, # enable Twitter Cards / Open Graph -# # 'site': '@website', # twitter nick for the website -# # 'site:id': 123456, # Same as site, but the website's Twitter user ID -# # instead. -# # 'creator': '@username', # Username for the content creator / author. -# # 'creator:id': 654321, # Same as creator, but the Twitter user's ID. -# } - - -# Post's dates are considered in UTC by default, if you want to use -# another time zone, please set TIMEZONE to match. Check the available -# list from Wikipedia: -# http://en.wikipedia.org/wiki/List_of_tz_database_time_zones -# (eg. 'Europe/Zurich') -# Also, if you want to use a different time zone in some of your posts, -# you can use W3C-DTF Format (ex. 2012-03-30T23:00:00+02:00) -# -# TIMEZONE = 'UTC' - -# If webassets is installed, bundle JS and CSS to make site loading faster -# USE_BUNDLES = True - -# Plugins you don't want to use. Be careful :-) -# DISABLED_PLUGINS = ["render_galleries"] - -# Add the absolute paths to directories containing plugins to use them. -# For example, the `plugins` directory of your clone of the Nikola plugins -# repository. -# EXTRA_PLUGINS_DIRS = [] - -# Experimental plugins - use at your own risk. -# They probably need some manual adjustments - please see their respective -# readme. -# ENABLED_EXTRAS = [ -# 'planetoid', -# 'ipynb', -# 'local_search', -# 'render_mustache', -# ] - -# List of regular expressions, links matching them will always be considered -# valid by "nikola check -l" -# LINK_CHECK_WHITELIST = [] - -# If set to True, enable optional hyphenation in your posts (requires pyphen) -# HYPHENATE = False - -# The <hN> tags in HTML generated by certain compilers (reST/Markdown) -# will be demoted by that much (1 → h1 will become h2 and so on) -# This was a hidden feature of the Markdown and reST compilers in the -# past. Useful especially if your post titles are in <h1> tags too, for -# example. -# (defaults to 1.) -# DEMOTE_HEADERS = 1 - -# You can configure the logging handlers installed as plugins or change the -# log level of the default stdout handler. -LOGGING_HANDLERS = { - 'stderr': {'loglevel': 'WARNING', 'bubble': True}, - # 'smtp': { - # 'from_addr': 'test-errors@example.com', - # 'recipients': ('test@example.com'), - # 'credentials':('testusername', 'password'), - # 'server_addr': ('127.0.0.1', 25), - # 'secure': (), - # 'level': 'DEBUG', - # 'bubble': True - # } -} - -# Templates will use those filters, along with the defaults. -# Consult your engine's documentation on filters if you need help defining -# those. -# TEMPLATE_FILTERS = {} - -# Put in global_context things you want available on all your templates. -# It can be anything, data, functions, modules, etc. GLOBAL_CONTEXT = {} diff --git a/tests/data/translated_titles/stories/1.pl.txt b/tests/data/translated_titles/pages/1.pl.txt index a888c1f..a888c1f 100644 --- a/tests/data/translated_titles/stories/1.pl.txt +++ b/tests/data/translated_titles/pages/1.pl.txt diff --git a/tests/data/translated_titles/stories/1.txt b/tests/data/translated_titles/pages/1.txt index 45fb214..45fb214 100644 --- a/tests/data/translated_titles/stories/1.txt +++ b/tests/data/translated_titles/pages/1.txt diff --git a/tests/data/wordpress_import/wordpress_export_example.xml b/tests/data/wordpress_import/wordpress_export_example.xml new file mode 100644 index 0000000..e2401f7 --- /dev/null +++ b/tests/data/wordpress_import/wordpress_export_example.xml @@ -0,0 +1,322 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. --> +<rss version="2.0" + xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/" + xmlns:content="http://purl.org/rss/1.0/modules/content/" + xmlns:wfw="http://wellformedweb.org/CommentAPI/" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:wp="http://wordpress.org/export/1.2/" +> + +<channel> + <title>Wordpress blog title</title> + <link>http://some.blog</link> + <description>Nikola test blog ;) - with moré Ümläüts</description> + <pubDate>Wed, 25 Jul 2012 22:31:24 +0000</pubDate> + <language>de-DE</language> + <wp:wxr_version>1.2</wp:wxr_version> + <wp:base_site_url>http://some.blog</wp:base_site_url> + <wp:base_blog_url>http://some.blog</wp:base_blog_url> + + <wp:author><wp:author_id>2</wp:author_id><wp:author_login>Niko</wp:author_login><wp:author_email>mail@some.blog</wp:author_email><wp:author_display_name><![CDATA[Niko]]></wp:author_display_name><wp:author_first_name><![CDATA[Niko]]></wp:author_first_name><wp:author_last_name><![CDATA[]]></wp:author_last_name></wp:author> + + <wp:category><wp:term_id>11</wp:term_id><wp:category_nicename>programmierung</wp:category_nicename><wp:category_parent></wp:category_parent><wp:cat_name><![CDATA[c0ding]]></wp:cat_name></wp:category> + <wp:tag><wp:term_id>501</wp:term_id><wp:tag_slug>dotnet</wp:tag_slug><wp:tag_name><![CDATA[.Net]]></wp:tag_name></wp:tag> + + <generator>http://wordpress.org/?v=3.4.1</generator> + + <item> + <title>Arzt+Pfusch - S.I.C.K.</title> + <link>http://some.blog/2008/07/arzt-und-pfusch-s-i-c-k/arzt_und_pfusch-sick-cover/</link> + <pubDate>Thu, 16 Jul 2009 19:40:37 +0000</pubDate> + <dc:creator>Niko</dc:creator> + <guid isPermaLink="false">http://some.blog/wp-content/uploads/2008/07/arzt_und_pfusch-sick-cover.png</guid> + <description></description> + <content:encoded><![CDATA[Das Cover von Arzt+Pfusch - S.I.C.K.]]></content:encoded> + <excerpt:encoded><![CDATA[Arzt+Pfusch - S.I.C.K.]]></excerpt:encoded> + <wp:post_id>10</wp:post_id> + <wp:post_date>2009-07-16 21:40:37</wp:post_date> + <wp:post_date_gmt>2009-07-16 19:40:37</wp:post_date_gmt> + <wp:comment_status>open</wp:comment_status> + <wp:ping_status>open</wp:ping_status> + <wp:post_name>arzt_und_pfusch-sick-cover</wp:post_name> + <wp:status>inherit</wp:status> + <wp:post_parent>6</wp:post_parent> + <wp:menu_order>0</wp:menu_order> + <wp:post_type>attachment</wp:post_type> + <wp:post_password></wp:post_password> + <wp:is_sticky>0</wp:is_sticky> + <wp:attachment_url>http://some.blog/wp-content/uploads/2008/07/arzt_und_pfusch-sick-cover.png</wp:attachment_url> + <wp:postmeta> + <wp:meta_key>_wp_attached_file</wp:meta_key> + <wp:meta_value><![CDATA[2008/07/arzt_und_pfusch-sick-cover.png]]></wp:meta_value> + </wp:postmeta> + <wp:postmeta> + <wp:meta_key>_wp_attachment_metadata</wp:meta_key> + <wp:meta_value><![CDATA[a:6:{s:5:"width";s:3:"300";s:6:"height";s:3:"299";s:14:"hwstring_small";s:22:"height='96' width='96'";s:4:"file";s:38:"2008/07/arzt_und_pfusch-sick-cover.png";s:5:"sizes";a:1:{s:9:"thumbnail";a:3:{s:4:"file";s:38:"arzt_und_pfusch-sick-cover-150x150.png";s:5:"width";s:3:"150";s:6:"height";s:3:"150";}}s:10:"image_meta";a:10:{s:8:"aperture";s:1:"0";s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:1:"0";s:3:"iso";s:1:"0";s:13:"shutter_speed";s:1:"0";s:5:"title";s:0:"";}}]]></wp:meta_value> + </wp:postmeta> + </item> + + <item> + <title>Transformation test</title> + <link>http://some.blog/2007/04/hoert/</link> + <pubDate>Fri, 27 Apr 2007 13:02:35 +0000</pubDate> + <dc:creator>Niko</dc:creator> + <guid isPermaLink="false">http://some.blog/?p=17</guid> + <description></description> + <content:encoded><![CDATA[An image. + +[caption id="attachment_16" align="alignnone" width="739" caption="caption test"]<img class="size-full wp-image-16" title="caption test" src="http://some.blog/wp-content/uploads/2009/07/caption_test.jpg" alt="caption test" width="739" height="517" />[/caption] + +Some source code. + +[sourcecode language="Python"] +import sys +print sys.version +[/sourcecode] + +The end. +]]></content:encoded> + <excerpt:encoded><![CDATA[]]></excerpt:encoded> + <wp:post_id>17</wp:post_id> + <wp:post_date>2007-04-27 15:02:35</wp:post_date> + <wp:post_date_gmt>2007-04-27 13:02:35</wp:post_date_gmt> + <wp:comment_status>open</wp:comment_status> + <wp:ping_status>open</wp:ping_status> + <wp:post_name>hoert</wp:post_name> + <wp:status>publish</wp:status> + <wp:post_parent>0</wp:post_parent> + <wp:menu_order>0</wp:menu_order> + <wp:post_type>post</wp:post_type> + <wp:post_password></wp:post_password> + <wp:is_sticky>0</wp:is_sticky> + <category domain="post_tag" nicename="bild"><![CDATA[Bild]]></category> + <category domain="category" nicename="musik"><![CDATA[Musik]]></category> + <category domain="category" nicename="unterhaltung"><![CDATA[Unterhaltung]]></category> + <category domain="post_tag" nicename="werbung"><![CDATA[Werbung]]></category> + <wp:postmeta> + <wp:meta_key>_edit_last</wp:meta_key> + <wp:meta_value><![CDATA[2]]></wp:meta_value> + </wp:postmeta> + </item> + + <item> + <title>Arzt+Pfusch - S.I.C.K.</title> + <link>http://some.blog/2008/07/arzt-und-pfusch-s-i-c-k/</link> + <pubDate>Sat, 12 Jul 2008 19:22:06 +0000</pubDate> + <dc:creator>Niko</dc:creator> + <guid isPermaLink="false">http://some.blog/?p=6</guid> + <description></description> + <content:encoded><![CDATA[<img class="size-full wp-image-10 alignright" title="Arzt+Pfusch - S.I.C.K." src="http://some.blog/wp-content/uploads/2008/07/arzt_und_pfusch-sick-cover.png" alt="Arzt+Pfusch - S.I.C.K." width="210" height="209" />Arzt+Pfusch - S.I.C.K.Gerade bin ich über das Album <em>S.I.C.K</em> von <a title="Arzt+Pfusch" href="http://www.arztpfusch.com/" target="_blank">Arzt+Pfusch</a> gestolpert, welches Arzt+Pfusch zum Download für lau anbieten. Das Album steht unter einer Creative Commons <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/de/">BY-NC-ND</a>-Lizenz. +Die Ladung <em>noisebmstupidevildustrial</em> gibts als MP3s mit <a href="http://www.archive.org/download/dmp005/dmp005_64kb_mp3.zip">64kbps</a> und <a href="http://www.archive.org/download/dmp005/dmp005_vbr_mp3.zip">VBR</a>, als Ogg Vorbis und als FLAC (letztere <a href="http://www.archive.org/details/dmp005">hier</a>). <a href="http://www.archive.org/download/dmp005/dmp005-artwork.zip">Artwork</a> und <a href="http://www.archive.org/download/dmp005/dmp005-lyrics.txt">Lyrics</a> gibts nochmal einzeln zum Download.]]></content:encoded> + <excerpt:encoded><![CDATA[]]></excerpt:encoded> + <wp:post_id>6</wp:post_id> + <wp:post_date>2008-07-12 21:22:06</wp:post_date> + <wp:post_date_gmt>2008-07-12 19:22:06</wp:post_date_gmt> + <wp:comment_status>open</wp:comment_status> + <wp:ping_status>open</wp:ping_status> + <wp:post_name>arzt-und-pfusch-s-i-c-k</wp:post_name> + <wp:status>publish</wp:status> + <wp:post_parent>0</wp:post_parent> + <wp:menu_order>0</wp:menu_order> + <wp:post_type>post</wp:post_type> + <wp:post_password></wp:post_password> + <wp:is_sticky>0</wp:is_sticky> + <category domain="post_tag" nicename="arzt-und-pfusch"><![CDATA[Arzt+Pfusch]]></category> + <category domain="post_tag" nicename="creative-commons"><![CDATA[Creative Commons]]></category> + <category domain="post_tag" nicename="download"><![CDATA[Download]]></category> + <category domain="post_tag" nicename="electronic-body-music"><![CDATA[EBM]]></category> + <category domain="post_tag" nicename="flac"><![CDATA[Free Lossless Audio Codec]]></category> + <category domain="post_tag" nicename="gratis"><![CDATA[Gratis]]></category> + <category domain="post_tag" nicename="industrial"><![CDATA[Industrial]]></category> + <category domain="post_tag" nicename="mp3"><![CDATA[MP3]]></category> + <category domain="category" nicename="musik"><![CDATA[Musik]]></category> + <category domain="post_tag" nicename="ogg"><![CDATA[Ogg]]></category> + <wp:postmeta> + <wp:meta_key>_edit_last</wp:meta_key> + <wp:meta_value><![CDATA[2]]></wp:meta_value> + </wp:postmeta> + </item> + + <item> + <title>Kontakt</title> + <link>http://some.blog/kontakt/</link> + <pubDate>Thu, 16 Jul 2009 18:20:32 +0000</pubDate> + <dc:creator>Niko</dc:creator> + <guid isPermaLink="false">http://some.blog/?page_id=3</guid> + <description></description> + <content:encoded><![CDATA[<h1>Datenschutz</h1> +Ich erhebe und speichere automatisch in meine Server Log Files Informationen, die dein Browser an mich übermittelt. Dies sind: +<ul> + <li>Browsertyp und -version</li> + <li>verwendetes Betriebssystem</li> + <li>Referrer URL (die zuvor besuchte Seite)</li> + <li>IP Adresse des zugreifenden Rechners</li> + <li>Uhrzeit der Serveranfrage.</li> +</ul> +Diese Daten sind für mich nicht bestimmten Personen zuordenbar. Eine Zusammenführung dieser Daten mit anderen Datenquellen wird nicht vorgenommen, die Daten werden einzig zu statistischen Zwecken erhoben.]]></content:encoded> + <excerpt:encoded><![CDATA[]]></excerpt:encoded> + <wp:post_id>3</wp:post_id> + <wp:post_date>2009-07-16 20:20:32</wp:post_date> + <wp:post_date_gmt>2009-07-16 18:20:32</wp:post_date_gmt> + <wp:comment_status>closed</wp:comment_status> + <wp:ping_status>closed</wp:ping_status> + <wp:post_name>kontakt</wp:post_name> + <wp:status>publish</wp:status> + <wp:post_parent>0</wp:post_parent> + <wp:menu_order>0</wp:menu_order> + <wp:post_type>page</wp:post_type> + <wp:post_password></wp:post_password> + <wp:is_sticky>0</wp:is_sticky> + <wp:postmeta> + <wp:meta_key>_edit_last</wp:meta_key> + <wp:meta_value><![CDATA[2]]></wp:meta_value> + </wp:postmeta> + <wp:postmeta> + <wp:meta_key>_wp_page_template</wp:meta_key> + <wp:meta_value><![CDATA[default]]></wp:meta_value> + </wp:postmeta> + </item> + <item> + <title>Indentation Test</title> + <link>http://some.blog/2012/04/indentation_test/</link> + <pubDate>Sun, 15 Apr 2012 11:44:59 +0000</pubDate> + <dc:creator>Niko</dc:creator> + <guid isPermaLink="false">http://some.blog/?p=2077</guid> + <description></description> + <content:encoded><![CDATA[Some examples for indented code that should not be broken. + +You should see some Python code hereafter. The code should be one block. +<pre>class Borg: + _state = {} + def __init__(self): + self.__dict__ = self._state</pre> + + +Here is a listing made with HTML that should display without the HTML being visible to the visitor. +<ul> + <li>to post: <strong>groupname@googlegroups.com</strong></li> + <li>to <em>subscribe</em>: <strong>groupname+subscribe@googlegroups.com</strong></li> + <li>to <em>unsubscribe</em>: <strong>groupname+unsubscribe@googlegroups.com</strong></li> +</ul> + +A listing with another listing inside. +<ul> +<li> foo + <ul> + <li> bar + </ul> +</ul> +]]></content:encoded> + <excerpt:encoded><![CDATA[]]></excerpt:encoded> + <wp:post_id>2077</wp:post_id> + <wp:post_date>2012-04-15 12:44:59</wp:post_date> + <wp:post_date_gmt>2012-04-15 11:44:59</wp:post_date_gmt> + <wp:comment_status>open</wp:comment_status> + <wp:ping_status>open</wp:ping_status> + <wp:post_name>python-borg-pattern</wp:post_name> + <wp:status>publish</wp:status> + <wp:post_parent>0</wp:post_parent> + <wp:menu_order>0</wp:menu_order> + <wp:post_type>post</wp:post_type> + <wp:post_password></wp:post_password> + <wp:is_sticky>0</wp:is_sticky> + <category domain="category" nicename="programming"><![CDATA[programming]]></category> + <category domain="post_tag" nicename="design-patterns"><![CDATA[Design Patterns]]></category> + <category domain="post_tag" nicename="python"><![CDATA[Python]]></category> + <wp:postmeta> + <wp:meta_key>_edit_last</wp:meta_key> + <wp:meta_value><![CDATA[2]]></wp:meta_value> + </wp:postmeta> + </item> + + <item> + <title>Screenshot - 2012-12-19</title> + <link>http://some.blog/2012/12/wintermodus/2012-12-19-1355925145_1024x600_scrot/</link> + <pubDate>Wed, 19 Dec 2012 13:53:19 +0000</pubDate> + <dc:creator>Niko</dc:creator> + <guid isPermaLink="false">http://some.blog/wp-content/uploads/2012/12/2012-12-19-355925145_1024x600_scrot.png</guid> + <description></description> + <content:encoded><![CDATA[]]></content:encoded> + <excerpt:encoded><![CDATA[]]></excerpt:encoded> + <wp:post_id>2271</wp:post_id> + <wp:post_date>2012-12-19 14:53:19</wp:post_date> + <wp:post_date_gmt>2012-12-19 13:53:19</wp:post_date_gmt> + <wp:comment_status>open</wp:comment_status> + <wp:ping_status>open</wp:ping_status> + <wp:post_name>2012-12-19-1355925145_1024x600_scrot</wp:post_name> + <wp:status>inherit</wp:status> + <wp:post_parent>2270</wp:post_parent> + <wp:menu_order>0</wp:menu_order> + <wp:post_type>attachment</wp:post_type> + <wp:post_password></wp:post_password> + <wp:is_sticky>0</wp:is_sticky> + <wp:attachment_url>http://some.blog/wp-content/uploads/2012/12/2012-12-19-355925145_1024x600_scrot.png</wp:attachment_url> + <wp:postmeta> + <wp:meta_key>_wp_attached_file</wp:meta_key> + <wp:meta_value><![CDATA[2012/12/2012-12-19-1355925145_1024x600_scrot.png]]></wp:meta_value> + </wp:postmeta> + <wp:postmeta> + <wp:meta_key>_wp_attachment_metadata</wp:meta_key> + <wp:meta_value><![CDATA[a:5:{s:5:"width";i:1024;s:6:"height";i:600;s:4:"file";s:48:"2012/12/2012-12-19-1355925145_1024x600_scrot.png";s:5:"sizes";a:9:{s:9:"thumbnail";a:4:{s:4:"file";s:48:"2012-12-19-1355925145_1024x600_scrot-150x150.png";s:5:"width";i:150;s:6:"height";i:150;s:9:"mime-type";s:9:"image/png";}s:6:"medium";a:4:{s:4:"file";s:48:"2012-12-19-1355925145_1024x600_scrot-300x175.png";s:5:"width";i:300;s:6:"height";i:175;s:9:"mime-type";s:9:"image/png";}s:12:"mosaic-thumb";a:4:{s:4:"file";s:46:"2012-12-19-1355925145_1024x600_scrot-96x96.png";s:5:"width";i:96;s:6:"height";i:96;s:9:"mime-type";s:9:"image/png";}s:13:"gallery-thumb";a:4:{s:4:"file";s:46:"2012-12-19-1355925145_1024x600_scrot-96x96.png";s:5:"width";i:96;s:6:"height";i:96;s:9:"mime-type";s:9:"image/png";}s:9:"widget-24";a:4:{s:4:"file";s:46:"2012-12-19-1355925145_1024x600_scrot-24x24.png";s:5:"width";i:24;s:6:"height";i:24;s:9:"mime-type";s:9:"image/png";}s:9:"widget-32";a:4:{s:4:"file";s:46:"2012-12-19-1355925145_1024x600_scrot-36x36.png";s:5:"width";i:36;s:6:"height";i:36;s:9:"mime-type";s:9:"image/png";}s:9:"widget-48";a:4:{s:4:"file";s:46:"2012-12-19-1355925145_1024x600_scrot-48x48.png";s:5:"width";i:48;s:6:"height";i:48;s:9:"mime-type";s:9:"image/png";}s:9:"widget-64";a:4:{s:4:"file";s:46:"2012-12-19-1355925145_1024x600_scrot-64x64.png";s:5:"width";i:64;s:6:"height";i:64;s:9:"mime-type";s:9:"image/png";}s:9:"widget-96";a:4:{s:4:"file";s:46:"2012-12-19-1355925145_1024x600_scrot-96x96.png";s:5:"width";i:96;s:6:"height";i:96;s:9:"mime-type";s:9:"image/png";}}s:10:"image_meta";a:10:{s:8:"aperture";i:0;s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";i:0;s:9:"copyright";s:0:"";s:12:"focal_length";i:0;s:3:"iso";i:0;s:13:"shutter_speed";i:0;s:5:"title";s:0:"";}}]]></wp:meta_value> + </wp:postmeta> + </item> + + <item> + <title>NoirsEtPleinsDeLumière</title> + <link>http://some.blog/2011/04/noirs-et-pourtant-pleins-de-lumiere/noirsetpleinsdelumiere/#main</link> + <pubDate>Tue, 12 Apr 2011 21:56:05 +0000</pubDate> + <dc:creator><![CDATA[tibonihoo]]></dc:creator> + <guid isPermaLink="false">http://some.blog/wp-content/uploads/2011/04/NoirsEtPleinsDeLumière.jpg</guid> + <description></description> + <content:encoded><![CDATA[]]></content:encoded> + <excerpt:encoded><![CDATA[]]></excerpt:encoded> + <wp:post_id>724</wp:post_id> + <wp:post_date>2011-04-12 23:56:05</wp:post_date> + <wp:post_date_gmt>2011-04-12 21:56:05</wp:post_date_gmt> + <wp:comment_status>open</wp:comment_status> + <wp:ping_status>closed</wp:ping_status> + <wp:post_name>noirsetpleinsdelumiere</wp:post_name> + <wp:status>inherit</wp:status> + <wp:post_parent>723</wp:post_parent> + <wp:menu_order>0</wp:menu_order> + <wp:post_type>attachment</wp:post_type> + <wp:post_password></wp:post_password> + <wp:is_sticky>0</wp:is_sticky> + <wp:attachment_url>http://some.blog/wp-content/uploads/2011/04/NoirsEtPleinsDeLumière.jpg</wp:attachment_url> + <wp:postmeta> + <wp:meta_key>_wp_attachment_metadata</wp:meta_key> + <wp:meta_value><![CDATA[a:6:{s:5:"width";s:3:"533";s:6:"height";s:3:"800";s:14:"hwstring_small";s:22:"height='96' width='63'";s:4:"file";s:35:"2011/04/NoirsEtPleinsDeLumière.jpg";s:5:"sizes";a:2:{s:9:"thumbnail";a:3:{s:4:"file";s:35:"NoirsEtPleinsDeLumière-150x150.jpg";s:5:"width";s:3:"150";s:6:"height";s:3:"150";}s:6:"medium";a:3:{s:4:"file";s:35:"NoirsEtPleinsDeLumière-199x300.jpg";s:5:"width";s:3:"199";s:6:"height";s:3:"300";}}s:10:"image_meta";a:10:{s:8:"aperture";s:1:"5";s:6:"credit";s:0:"";s:6:"camera";s:13:"Canon EOS 40D";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:3:"100";s:3:"iso";s:3:"200";s:13:"shutter_speed";s:9:"-42949672";s:5:"title";s:0:"";}}]]></wp:meta_value> + </wp:postmeta> + <wp:postmeta> + <wp:meta_key>_wp_attached_file</wp:meta_key> + <wp:meta_value><![CDATA[2011/04/NoirsEtPleinsDeLumière.jpg]]></wp:meta_value> + </wp:postmeta> + </item> + <item> + <title>Image Link Rewriting</title> + <link>http://some.blog/2012/12/wintermodus/</link> + <pubDate>Wed, 19 Dec 2012 13:55:10 +0000</pubDate> + <dc:creator>Niko</dc:creator> + <guid isPermaLink="false">http://some.blog/?p=2270</guid> + <description></description> + <content:encoded><![CDATA[Some image upload. The links to this and the src of the img-tag should be rewritten correctly. + + <a href="http://some.blog/wp-content/uploads/2012/12/2012-12-19-1355925145_1024x600_scrot.png"><img class="aligncenter size-medium wp-image-2271" alt="Netbook Screenshot - 2012-12-19" src="http://some.blog/wp-content/uploads/2012/12/2012-12-19-1355925145_1024x600_scrot-300x175.ng" width="300" height="175" /></a>]]></content:encoded> + <excerpt:encoded><![CDATA[]]></excerpt:encoded> + <wp:post_id>2270</wp:post_id> + <wp:post_date>2012-12-19 14:55:10</wp:post_date> + <wp:post_date_gmt>2012-12-19 13:55:10</wp:post_date_gmt> + <wp:comment_status>open</wp:comment_status> + <wp:ping_status>open</wp:ping_status> + <wp:post_name>image-link-rewriting</wp:post_name> + <wp:status>publish</wp:status> + <wp:post_parent>0</wp:post_parent> + <wp:menu_order>0</wp:menu_order> + <wp:post_type>post</wp:post_type> + <wp:post_password></wp:post_password> + <wp:is_sticky>0</wp:is_sticky> + <category domain="category" nicename="linux"><![CDATA[Linux]]></category> + </item> + </channel> +</rss> diff --git a/tests/data/wordpress_import/wordpress_qtranslate_item_modernized.xml b/tests/data/wordpress_import/wordpress_qtranslate_item_modernized.xml new file mode 100644 index 0000000..2622bfd --- /dev/null +++ b/tests/data/wordpress_import/wordpress_qtranslate_item_modernized.xml @@ -0,0 +1,30 @@ + <item> + <title>[:fr]Sous le ciel[:][:en]Under heaven[:]</title> + <link>http://www.tibonihoo.net/blog/2014/05/sous-le-ciel/</link> + <pubDate>Sat, 03 May 2014 13:20:32 +0000</pubDate> + <dc:creator><![CDATA[tibonihoo_admin]]></dc:creator> + <guid isPermaLink="false">http://www.tibonihoo.net/blog/?p=1585</guid> + <description></description> + <content:encoded><![CDATA[[:fr]<a href="http://www.tibonihoo.net/blog/wp-content/uploads/2014/05/IMG_68511.jpg"><img class="alignnone size-medium wp-image-1587" src="http://www.tibonihoo.net/blog/wp-content/uploads/2014/05/IMG_68511-300x199.jpg" alt="IMG_6851" width="300" height="199" /></a>[:][:en]<img class="alignnone size-medium wp-image-1587" src="http://www.tibonihoo.net/blog/wp-content/uploads/2014/05/IMG_68511-300x199.jpg" alt="IMG_6851" width="300" height="199" />[:]]]></content:encoded> + <excerpt:encoded><![CDATA[]]></excerpt:encoded> + <wp:post_id>1585</wp:post_id> + <wp:post_date><![CDATA[2014-05-03 14:20:32]]></wp:post_date> + <wp:post_date_gmt><![CDATA[2014-05-03 13:20:32]]></wp:post_date_gmt> + <wp:comment_status><![CDATA[open]]></wp:comment_status> + <wp:ping_status><![CDATA[closed]]></wp:ping_status> + <wp:post_name><![CDATA[sous-le-ciel]]></wp:post_name> + <wp:status><![CDATA[publish]]></wp:status> + <wp:post_parent>0</wp:post_parent> + <wp:menu_order>0</wp:menu_order> + <wp:post_type><![CDATA[post]]></wp:post_type> + <wp:post_password><![CDATA[]]></wp:post_password> + <wp:is_sticky>0</wp:is_sticky> + <category domain="post_tag" nicename="chine"><![CDATA[Chine]]></category> + <category domain="category" nicename="creations"><![CDATA[créations]]></category> + <category domain="post_tag" nicename="photos"><![CDATA[photos]]></category> + <category domain="post_tag" nicename="roof"><![CDATA[roof]]></category> + <wp:postmeta> + <wp:meta_key><![CDATA[_edit_last]]></wp:meta_key> + <wp:meta_value><![CDATA[2]]></wp:meta_value> + </wp:postmeta> + </item> diff --git a/tests/data/wordpress_import/wordpress_qtranslate_item_raw_export.xml b/tests/data/wordpress_import/wordpress_qtranslate_item_raw_export.xml new file mode 100644 index 0000000..50bac7b --- /dev/null +++ b/tests/data/wordpress_import/wordpress_qtranslate_item_raw_export.xml @@ -0,0 +1,30 @@ + <item> + <title><!--:fr-->Sous le ciel<!--:--><!--:en-->Under heaven<!--:--></title> + <link>http://www.tibonihoo.net/blog/2014/05/sous-le-ciel/</link> + <pubDate>Sat, 03 May 2014 13:20:32 +0000</pubDate> + <dc:creator><![CDATA[tibonihoo_admin]]></dc:creator> + <guid isPermaLink="false">http://www.tibonihoo.net/blog/?p=1585</guid> + <description></description> + <content:encoded><![CDATA[<!--:fr--><a href="http://www.tibonihoo.net/blog/wp-content/uploads/2014/05/IMG_68511.jpg"><img class="alignnone size-medium wp-image-1587" src="http://www.tibonihoo.net/blog/wp-content/uploads/2014/05/IMG_68511-300x199.jpg" alt="IMG_6851" width="300" height="199" /></a><!--:--><!--:en--><img class="alignnone size-medium wp-image-1587" src="http://www.tibonihoo.net/blog/wp-content/uploads/2014/05/IMG_68511-300x199.jpg" alt="IMG_6851" width="300" height="199" /><!--:-->]]></content:encoded> + <excerpt:encoded><![CDATA[]]></excerpt:encoded> + <wp:post_id>1585</wp:post_id> + <wp:post_date><![CDATA[2014-05-03 14:20:32]]></wp:post_date> + <wp:post_date_gmt><![CDATA[2014-05-03 13:20:32]]></wp:post_date_gmt> + <wp:comment_status><![CDATA[open]]></wp:comment_status> + <wp:ping_status><![CDATA[closed]]></wp:ping_status> + <wp:post_name><![CDATA[sous-le-ciel]]></wp:post_name> + <wp:status><![CDATA[publish]]></wp:status> + <wp:post_parent>0</wp:post_parent> + <wp:menu_order>0</wp:menu_order> + <wp:post_type><![CDATA[post]]></wp:post_type> + <wp:post_password><![CDATA[]]></wp:post_password> + <wp:is_sticky>0</wp:is_sticky> + <category domain="post_tag" nicename="chine"><![CDATA[Chine]]></category> + <category domain="category" nicename="creations"><![CDATA[créations]]></category> + <category domain="post_tag" nicename="photos"><![CDATA[photos]]></category> + <category domain="post_tag" nicename="roof"><![CDATA[roof]]></category> + <wp:postmeta> + <wp:meta_key><![CDATA[_edit_last]]></wp:meta_key> + <wp:meta_value><![CDATA[2]]></wp:meta_value> + </wp:postmeta> + </item> diff --git a/tests/data/wordpress_import/wordpress_unicode_export.xml b/tests/data/wordpress_import/wordpress_unicode_export.xml new file mode 100644 index 0000000..b2204fc --- /dev/null +++ b/tests/data/wordpress_import/wordpress_unicode_export.xml @@ -0,0 +1,114 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. --> +<!-- It contains information about your site's posts, pages, comments, categories, and other content. --> +<!-- You may use this file to transfer that content from one site to another. --> +<!-- This file is not intended to serve as a complete backup of your site. --> + +<!-- To import this information into a WordPress site follow these steps: --> +<!-- 1. Log in to that site as an administrator. --> +<!-- 2. Go to Tools: Import in the WordPress admin panel. --> +<!-- 3. Install the "WordPress" importer from the list. --> +<!-- 4. Activate & Run Importer. --> +<!-- 5. Upload this file using the form provided on that page. --> +<!-- 6. You will first be asked to map the authors in this export file to users --> +<!-- on the site. For each author, you may choose to map to an --> +<!-- existing user on the site or to create a new user. --> +<!-- 7. WordPress will then import each of the posts, pages, comments, categories, etc. --> +<!-- contained in this file into your site. --> + +<!-- generator="WordPress.com" created="2012-12-25 21:39"--> +<rss version="2.0" + xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/" + xmlns:content="http://purl.org/rss/1.0/modules/content/" + xmlns:wfw="http://wellformedweb.org/CommentAPI/" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:wp="http://wordpress.org/export/1.2/" +> + +<channel> + <title>Nikola Unicode Test ͵pó®t</title> + <link>http://nikolaunicode.wordpress.com</link> + <description>The greatest WordPress.com site in all the land!</description> + <pubDate>Tue, 25 Dec 2012 21:39:30 +0000</pubDate> + <language>en</language> + <wp:wxr_version>1.2</wp:wxr_version> + <wp:base_site_url>http://wordpress.com/</wp:base_site_url> + <wp:base_blog_url>http://nikolaunicode.wordpress.com</wp:base_blog_url> + + <wp:author><wp:author_id>3804924</wp:author_id><wp:author_login>ralsina</wp:author_login><wp:author_email>roberto.alsina@gmail.com</wp:author_email><wp:author_display_name><![CDATA[ralsina]]></wp:author_display_name><wp:author_first_name><![CDATA[]]></wp:author_first_name><wp:author_last_name><![CDATA[]]></wp:author_last_name></wp:author> + + <wp:category><wp:term_id>1</wp:term_id><wp:category_nicename>uncategorized</wp:category_nicename><wp:category_parent></wp:category_parent><wp:cat_name><![CDATA[Uncategorized]]></wp:cat_name></wp:category> + <wp:tag><wp:term_id>132937998</wp:term_id><wp:tag_slug>thag1</wp:tag_slug><wp:tag_name><![CDATA[þág1]]></wp:tag_name></wp:tag> + <wp:tag><wp:term_id>132937999</wp:term_id><wp:tag_slug>thag%c2%b2</wp:tag_slug><wp:tag_name><![CDATA[þág²]]></wp:tag_name></wp:tag> + + <generator>http://wordpress.com/</generator> +<cloud domain='nikolaunicode.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' /> +<image> + <url>https://s2.wp.com/i/buttonw-com.png</url> + <title>Nikola Unicode Test ͵pó®t</title> + <link>http://nikolaunicode.wordpress.com</link> + </image> + <atom:link rel="search" type="application/opensearchdescription+xml" href="http://nikolaunicode.wordpress.com/osd.xml" title="Nikola Unicode Test ͵pó®t" /> + <atom:link rel='hub' href='http://nikolaunicode.wordpress.com/?pushpress=hub'/> + + <item> + <title>About</title> + <link>http://nikolaunicode.wordpress.com/about/</link> + <pubDate>Tue, 25 Dec 2012 21:36:15 +0000</pubDate> + <dc:creator>ralsina</dc:creator> + <guid isPermaLink="false">http://nikolaunicode.wordpress.com/?page_id=1</guid> + <description></description> + <content:encoded><![CDATA[This is an example of a page. Unlike posts, which are displayed on your blog’s front page in the order they’re published, pages are better suited for more timeless content that you want to be easily accessible, like your About or Contact information. Click the Edit link to make changes to this page or <a title="Direct link to Add New in the Admin Dashboard" href="/wp-admin/post-new.php?post_type=page">add another page</a>.]]></content:encoded> + <excerpt:encoded><![CDATA[]]></excerpt:encoded> + <wp:post_id>1</wp:post_id> + <wp:post_date>2012-12-25 21:36:15</wp:post_date> + <wp:post_date_gmt>2012-12-25 21:36:15</wp:post_date_gmt> + <wp:comment_status>open</wp:comment_status> + <wp:ping_status>open</wp:ping_status> + <wp:post_name>about</wp:post_name> + <wp:status>publish</wp:status> + <wp:post_parent>0</wp:post_parent> + <wp:menu_order>0</wp:menu_order> + <wp:post_type>page</wp:post_type> + <wp:post_password></wp:post_password> + <wp:is_sticky>0</wp:is_sticky> + </item> + <item> + <title>Úñî©òðé title</title> + <link>http://nikolaunicode.wordpress.com/2012/12/25/uniode-title/</link> + <pubDate>Tue, 25 Dec 2012 21:38:37 +0000</pubDate> + <dc:creator>ralsina</dc:creator> + <guid isPermaLink="false">http://nikolaunicode.wordpress.com/?p=3</guid> + <description></description> + <content:encoded><![CDATA[Mó®é úñí©óðé]]></content:encoded> + <excerpt:encoded><![CDATA[]]></excerpt:encoded> + <wp:post_id>3</wp:post_id> + <wp:post_date>2012-12-25 21:38:37</wp:post_date> + <wp:post_date_gmt>2012-12-25 21:38:37</wp:post_date_gmt> + <wp:comment_status>open</wp:comment_status> + <wp:ping_status>open</wp:ping_status> + <wp:post_name>uniode-title</wp:post_name> + <wp:status>publish</wp:status> + <wp:post_parent>0</wp:post_parent> + <wp:menu_order>0</wp:menu_order> + <wp:post_type>post</wp:post_type> + <wp:post_password></wp:post_password> + <wp:is_sticky>0</wp:is_sticky> + <category domain="post_tag" nicename="thag1"><![CDATA[þág1]]></category> + <category domain="post_tag" nicename="thag%c2%b2"><![CDATA[þág²]]></category> + <category domain="category" nicename="uncategorized"><![CDATA[Uncategorized]]></category> + <wp:postmeta> + <wp:meta_key>_edit_last</wp:meta_key> + <wp:meta_value><![CDATA[3804924]]></wp:meta_value> + </wp:postmeta> + <wp:postmeta> + <wp:meta_key>_publicize_pending</wp:meta_key> + <wp:meta_value><![CDATA[1]]></wp:meta_value> + </wp:postmeta> + <wp:postmeta> + <wp:meta_key>jabber_published</wp:meta_key> + <wp:meta_value><![CDATA[1356471518]]></wp:meta_value> + </wp:postmeta> + </item> +</channel> +</rss> |
