aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/markdown-test/benchmark.dat.tmp38
-rw-r--r--tests/markdown-test/blockquotes-with-dode-blocks.html4
-rw-r--r--tests/markdown-test/markdown-documentation-basics.html30
-rw-r--r--tests/markdown-test/markdown-syntax.html85
-rw-r--r--tests/misc/arabic.html12
-rw-r--r--tests/misc/benchmark.dat.tmp102
-rw-r--r--tests/misc/bidi.html11
-rw-r--r--tests/misc/code-first-line.html4
-rw-r--r--tests/misc/funky-list.html4
-rw-r--r--tests/misc/php.html2
10 files changed, 141 insertions, 151 deletions
diff --git a/tests/markdown-test/benchmark.dat.tmp b/tests/markdown-test/benchmark.dat.tmp
index e8ca4f4..4a43ce5 100644
--- a/tests/markdown-test/benchmark.dat.tmp
+++ b/tests/markdown-test/benchmark.dat.tmp
@@ -1,20 +1,20 @@
construction:0.000000:0.000000
-amps-and-angle-encoding:0.250000:266240.000000
-auto-links:0.230000:0.000000
-backlash-escapes:0.950000:245760.000000
-blockquotes-with-dode-blocks:0.070000:0.000000
-hard-wrapped:0.060000:0.000000
-horizontal-rules:0.700000:0.000000
-inline-html-advanced:0.280000:0.000000
-inline-html-comments:0.340000:0.000000
-inline-html-simple:0.970000:0.000000
-links-inline:0.500000:0.000000
-links-reference:0.650000:0.000000
-literal-quotes:0.390000:0.000000
-markdown-documentation-basics:3.390000:1437696.000000
-markdown-syntax:14.780000:2035712.000000
-nested-blockquotes:0.520000:-110592.000000
-ordered-and-unordered-list:2.210000:0.000000
-strong-and-em-together:0.640000:0.000000
-tabs:0.690000:0.000000
-tidyness:0.590000:0.000000
+amps-and-angle-encoding:0.060000:397312.000000
+auto-links:0.070000:0.000000
+backlash-escapes:0.230000:131072.000000
+blockquotes-with-dode-blocks:0.020000:0.000000
+hard-wrapped:0.030000:0.000000
+horizontal-rules:0.160000:0.000000
+inline-html-advanced:0.060000:0.000000
+inline-html-comments:0.070000:0.000000
+inline-html-simple:0.190000:0.000000
+links-inline:0.110000:0.000000
+links-reference:0.120000:0.000000
+literal-quotes:0.080000:0.000000
+markdown-documentation-basics:0.620000:1482752.000000
+markdown-syntax:4.120000:2621440.000000
+nested-blockquotes:0.110000:0.000000
+ordered-and-unordered-list:0.390000:0.000000
+strong-and-em-together:0.130000:0.000000
+tabs:0.140000:0.000000
+tidyness:0.110000:0.000000
diff --git a/tests/markdown-test/blockquotes-with-dode-blocks.html b/tests/markdown-test/blockquotes-with-dode-blocks.html
index ef5c40d..275749f 100644
--- a/tests/markdown-test/blockquotes-with-dode-blocks.html
+++ b/tests/markdown-test/blockquotes-with-dode-blocks.html
@@ -2,12 +2,12 @@
<blockquote><p>Example:
</p>
<pre><code>sub status {
- print &quot;working&quot;;
+ print "working";
}
</code></pre><p>Or:
</p>
<pre><code>sub status {
- return &quot;working&quot;;
+ return "working";
}
</code></pre></blockquote>
diff --git a/tests/markdown-test/markdown-documentation-basics.html b/tests/markdown-test/markdown-documentation-basics.html
index 1dafe24..744e89d 100644
--- a/tests/markdown-test/markdown-documentation-basics.html
+++ b/tests/markdown-test/markdown-documentation-basics.html
@@ -32,7 +32,7 @@
</p>
<p>Markdown offers two styles of headers: <em>Setext</em> and <em>atx</em>.
Setext-style headers for <code>&lt;h1&gt;</code> and <code>&lt;h2&gt;</code> are created by
- &quot;underlining&quot; with equal signs (<code>=</code>) and hyphens (<code>-</code>), respectively.
+ "underlining" with equal signs (<code>=</code>) and hyphens (<code>-</code>), respectively.
To create an atx-style header, you put 1-6 hash marks (<code>#</code>) at the
beginning of the line -- the number of hashes equals the resulting
HTML header level.
@@ -168,14 +168,14 @@ Or, if you prefer, &lt;strong&gt;use two underscores instead&lt;/strong&gt;.&lt;
<pre><code>This is an [example link](http://example.com/).
</code></pre><p>Output:
</p>
-<pre><code>&lt;p&gt;This is an &lt;a href=&quot;http://example.com/&quot;&gt;
+<pre><code>&lt;p&gt;This is an &lt;a href="http://example.com/"&gt;
example link&lt;/a&gt;.&lt;/p&gt;
</code></pre><p>Optionally, you may include a title attribute in the parentheses:
</p>
-<pre><code>This is an [example link](http://example.com/ &quot;With a Title&quot;).
+<pre><code>This is an [example link](http://example.com/ "With a Title").
</code></pre><p>Output:
</p>
-<pre><code>&lt;p&gt;This is an &lt;a href=&quot;http://example.com/&quot; title=&quot;With a Title&quot;&gt;
+<pre><code>&lt;p&gt;This is an &lt;a href="http://example.com/" title="With a Title"&gt;
example link&lt;/a&gt;.&lt;/p&gt;
</code></pre><p>Reference-style links allow you to refer to your links by names, which
you define elsewhere in your document:
@@ -183,15 +183,15 @@ example link&lt;/a&gt;.&lt;/p&gt;
<pre><code>I get 10 times more traffic from [Google][1] than from
[Yahoo][2] or [MSN][3].
-[1]: http://google.com/ &quot;Google&quot;
-[2]: http://search.yahoo.com/ &quot;Yahoo Search&quot;
-[3]: http://search.msn.com/ &quot;MSN Search&quot;
+[1]: http://google.com/ "Google"
+[2]: http://search.yahoo.com/ "Yahoo Search"
+[3]: http://search.msn.com/ "MSN Search"
</code></pre><p>Output:
</p>
-<pre><code>&lt;p&gt;I get 10 times more traffic from &lt;a href=&quot;http://google.com/&quot;
-title=&quot;Google&quot;&gt;Google&lt;/a&gt; than from &lt;a href=&quot;http://search.yahoo.com/&quot;
-title=&quot;Yahoo Search&quot;&gt;Yahoo&lt;/a&gt; or &lt;a href=&quot;http://search.msn.com/&quot;
-title=&quot;MSN Search&quot;&gt;MSN&lt;/a&gt;.&lt;/p&gt;
+<pre><code>&lt;p&gt;I get 10 times more traffic from &lt;a href="http://google.com/"
+title="Google"&gt;Google&lt;/a&gt; than from &lt;a href="http://search.yahoo.com/"
+title="Yahoo Search"&gt;Yahoo&lt;/a&gt; or &lt;a href="http://search.msn.com/"
+title="MSN Search"&gt;MSN&lt;/a&gt;.&lt;/p&gt;
</code></pre><p>The title attribute is optional. Link names may contain letters,
numbers and spaces, but are <em>not</em> case sensitive:
</p>
@@ -202,22 +202,22 @@ title=&quot;MSN Search&quot;&gt;MSN&lt;/a&gt;.&lt;/p&gt;
</code></pre><p>Output:
</p>
<pre><code>&lt;p&gt;I start my morning with a cup of coffee and
-&lt;a href=&quot;http://www.nytimes.com/&quot;&gt;The New York Times&lt;/a&gt;.&lt;/p&gt;
+&lt;a href="http://www.nytimes.com/"&gt;The New York Times&lt;/a&gt;.&lt;/p&gt;
</code></pre>
<h3>Images</h3>
<p>Image syntax is very much like link syntax.
</p>
<p>Inline (titles are optional):
</p>
-<pre><code>![alt text](/path/to/img.jpg &quot;Title&quot;)
+<pre><code>![alt text](/path/to/img.jpg "Title")
</code></pre><p>Reference-style:
</p>
<pre><code>![alt text][id]
-[id]: /path/to/img.jpg &quot;Title&quot;
+[id]: /path/to/img.jpg "Title"
</code></pre><p>Both of the above examples produce the same output:
</p>
-<pre><code>&lt;img src=&quot;/path/to/img.jpg&quot; alt=&quot;alt text&quot; title=&quot;Title&quot; /&gt;
+<pre><code>&lt;img src="/path/to/img.jpg" alt="alt text" title="Title" /&gt;
</code></pre>
<h3>Code</h3>
<p>In a regular paragraph, you can create code span by wrapping text in
diff --git a/tests/markdown-test/markdown-syntax.html b/tests/markdown-test/markdown-syntax.html
index a0440e4..c789d95 100644
--- a/tests/markdown-test/markdown-syntax.html
+++ b/tests/markdown-test/markdown-syntax.html
@@ -1,5 +1,3 @@
-
-
<h1>Markdown: Syntax</h1>
<ul id="ProjectSubmenu">
<li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li>
@@ -224,17 +222,17 @@ This is another regular paragraph.
blank line -- a line containing nothing but spaces or tabs is considered
blank.) Normal paragraphs should not be intended with spaces or tabs.
</p>
-<p>The implication of the &quot;one or more consecutive lines of text&quot; rule is
- that Markdown supports &quot;hard-wrapped&quot; text paragraphs. This differs
+<p>The implication of the "one or more consecutive lines of text" rule is
+ that Markdown supports "hard-wrapped" text paragraphs. This differs
significantly from most other text-to-HTML formatters (including Movable
- Type's &quot;Convert Line Breaks&quot; option) which translate every line break
+ Type's "Convert Line Breaks" option) which translate every line break
character in a paragraph into a <code>&lt;br /&gt;</code> tag.
</p>
<p>When you <em>do</em> want to insert a <code>&lt;br /&gt;</code> break tag using Markdown, you
end a line with two or more spaces, then type return.
</p>
<p>Yes, this takes a tad more effort to create a <code>&lt;br /&gt;</code>, but a simplistic
- &quot;every line break is a <code>&lt;br /&gt;</code>&quot; rule wouldn't work for Markdown.
+ "every line break is a <code>&lt;br /&gt;</code>" rule wouldn't work for Markdown.
Markdown's email-style <a href="#blockquote">blockquoting</a> and multi-paragraph <a href="#list">list items</a>
work best -- and look better -- when you format them with hard breaks.
</p>
@@ -242,7 +240,7 @@ This is another regular paragraph.
<p>Markdown supports two styles of headers, <a href="http://docutils.sourceforge.net/mirror/setext.html">Setext</a> and <a href="http://www.aaronsw.com/2002/atx/">atx</a>.
</p>
-<p>Setext-style headers are &quot;underlined&quot; using equal signs (for first-level
+<p>Setext-style headers are "underlined" using equal signs (for first-level
headers) and dashes (for second-level headers). For example:
</p>
<pre><code>This is an H1
@@ -260,7 +258,7 @@ This is an H2
## This is an H2
###### This is an H6
-</code></pre><p>Optionally, you may &quot;close&quot; atx-style headers. This is purely
+</code></pre><p>Optionally, you may "close" atx-style headers. This is purely
cosmetic -- you can use this if you think it looks better. The
closing hashes don't even need to match the number of hashes
used to open the header. (The number of opening hashes
@@ -311,7 +309,7 @@ id sem consectetuer libero luctus adipiscing.
&gt;
&gt; Here's some example code:
&gt;
-&gt; return shell_exec(&quot;echo $input | $markdown_script&quot;);
+&gt; return shell_exec("echo $input | $markdown_script");
</code></pre><p>Any decent text editor should make email-style quoting easy. For
example, with BBEdit, you can make a selection and choose Increase
Quote Level from the Text menu.
@@ -478,14 +476,14 @@ sit amet, consectetuer adipiscing elit.
</p>
<pre><code>Here is an example of AppleScript:
- tell application &quot;Foo&quot;
+ tell application "Foo"
beep
end tell
</code></pre><p>will turn into:
</p>
<pre><code>&lt;p&gt;Here is an example of AppleScript:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;tell application &quot;Foo&quot;
+&lt;pre&gt;&lt;code&gt;tell application "Foo"
beep
end tell
&lt;/code&gt;&lt;/pre&gt;
@@ -498,12 +496,12 @@ end tell
it and indent it, and Markdown will handle the hassle of encoding the
ampersands and angle brackets. For example, this:
</p>
-<pre><code> &lt;div class=&quot;footer&quot;&gt;
+<pre><code> &lt;div class="footer"&gt;
&amp;copy; 2004 Foo Corporation
&lt;/div&gt;
</code></pre><p>will turn into:
</p>
-<pre><code>&lt;pre&gt;&lt;code&gt;&amp;lt;div class=&quot;footer&quot;&amp;gt;
+<pre><code>&lt;pre&gt;&lt;code&gt;&amp;lt;div class="footer"&amp;gt;
&amp;amp;copy; 2004 Foo Corporation
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
@@ -544,15 +542,15 @@ _ _ _
put the URL where you want the link to point, along with an <em>optional</em>
title for the link, surrounded in quotes. For example:
</p>
-<pre><code>This is [an example](http://example.com/ &quot;Title&quot;) inline link.
+<pre><code>This is [an example](http://example.com/ "Title") inline link.
[This link](http://example.net/) has no title attribute.
</code></pre><p>Will produce:
</p>
-<pre><code>&lt;p&gt;This is &lt;a href=&quot;http://example.com/&quot; title=&quot;Title&quot;&gt;
+<pre><code>&lt;p&gt;This is &lt;a href="http://example.com/" title="Title"&gt;
an example&lt;/a&gt; inline link.&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;http://example.net/&quot;&gt;This link&lt;/a&gt; has no
+&lt;p&gt;&lt;a href="http://example.net/"&gt;This link&lt;/a&gt; has no
title attribute.&lt;/p&gt;
</code></pre><p>If you're referring to a local resource on the same server, you can
use relative paths:
@@ -568,7 +566,7 @@ title attribute.&lt;/p&gt;
</code></pre><p>Then, anywhere in the document, you define your link label like this,
on a line by itself:
</p>
-<pre><code>[id]: http://example.com/ &quot;Optional Title Here&quot;
+<pre><code>[id]: http://example.com/ "Optional Title Here"
</code></pre><p>That is:
</p>
<ul>
@@ -596,12 +594,12 @@ title attribute.&lt;/p&gt;
</ul>
<p>The link URL may, optionally, be surrounded by angle brackets:
</p>
-<pre><code>[id]: &lt;http://example.com/&gt; &quot;Optional Title Here&quot;
+<pre><code>[id]: &lt;http://example.com/&gt; "Optional Title Here"
</code></pre><p>You can put the title attribute on the next line and use extra spaces
or tabs for padding, which tends to look better with longer URLs:
</p>
<pre><code>[id]: http://example.com/longish/path/to/resource/here
- &quot;Optional Title Here&quot;
+ "Optional Title Here"
</code></pre><p>Link definitions are only used for creating links during Markdown
processing, and are stripped from your document in the HTML output.
</p>
@@ -614,7 +612,7 @@ title attribute.&lt;/p&gt;
<p>The <em>implicit link name</em> shortcut allows you to omit the name of the
link, in which case the link text itself is used as the name.
Just use an empty set of square brackets -- e.g., to link the word
- &quot;Google&quot; to the google.com web site, you could simply write:
+ "Google" to the google.com web site, you could simply write:
</p>
<pre><code>[Google][]
</code></pre><p>And then define the link:
@@ -637,29 +635,29 @@ title attribute.&lt;/p&gt;
<pre><code>I get 10 times more traffic from [Google] [1] than from
[Yahoo] [2] or [MSN] [3].
- [1]: http://google.com/ &quot;Google&quot;
- [2]: http://search.yahoo.com/ &quot;Yahoo Search&quot;
- [3]: http://search.msn.com/ &quot;MSN Search&quot;
+ [1]: http://google.com/ "Google"
+ [2]: http://search.yahoo.com/ "Yahoo Search"
+ [3]: http://search.msn.com/ "MSN Search"
</code></pre><p>Using the implicit link name shortcut, you could instead write:
</p>
<pre><code>I get 10 times more traffic from [Google][] than from
[Yahoo][] or [MSN][].
- [google]: http://google.com/ &quot;Google&quot;
- [yahoo]: http://search.yahoo.com/ &quot;Yahoo Search&quot;
- [msn]: http://search.msn.com/ &quot;MSN Search&quot;
+ [google]: http://google.com/ "Google"
+ [yahoo]: http://search.yahoo.com/ "Yahoo Search"
+ [msn]: http://search.msn.com/ "MSN Search"
</code></pre><p>Both of the above examples will produce the following HTML output:
</p>
-<pre><code>&lt;p&gt;I get 10 times more traffic from &lt;a href=&quot;http://google.com/&quot;
-title=&quot;Google&quot;&gt;Google&lt;/a&gt; than from
-&lt;a href=&quot;http://search.yahoo.com/&quot; title=&quot;Yahoo Search&quot;&gt;Yahoo&lt;/a&gt;
-or &lt;a href=&quot;http://search.msn.com/&quot; title=&quot;MSN Search&quot;&gt;MSN&lt;/a&gt;.&lt;/p&gt;
+<pre><code>&lt;p&gt;I get 10 times more traffic from &lt;a href="http://google.com/"
+title="Google"&gt;Google&lt;/a&gt; than from
+&lt;a href="http://search.yahoo.com/" title="Yahoo Search"&gt;Yahoo&lt;/a&gt;
+or &lt;a href="http://search.msn.com/" title="MSN Search"&gt;MSN&lt;/a&gt;.&lt;/p&gt;
</code></pre><p>For comparison, here is the same paragraph written using
Markdown's inline link style:
</p>
-<pre><code>I get 10 times more traffic from [Google](http://google.com/ &quot;Google&quot;)
-than from [Yahoo](http://search.yahoo.com/ &quot;Yahoo Search&quot;) or
-[MSN](http://search.msn.com/ &quot;MSN Search&quot;).
+<pre><code>I get 10 times more traffic from [Google](http://google.com/ "Google")
+than from [Yahoo](http://search.yahoo.com/ "Yahoo Search") or
+[MSN](http://search.msn.com/ "MSN Search").
</code></pre><p>The point of reference-style links is not that they're easier to
write. The point is that with reference-style links, your document
source is vastly more readable. Compare the above examples: using
@@ -757,7 +755,7 @@ A backtick-delimited string in a code span: `` `foo` ``
equivalent of &lt;code&gt;&amp;amp;mdash;&lt;/code&gt;.&lt;/p&gt;
</code></pre><h3 id="img">Images</h3>
-<p>Admittedly, it's fairly difficult to devise a &quot;natural&quot; syntax for
+<p>Admittedly, it's fairly difficult to devise a "natural" syntax for
placing images into a plain text document format.
</p>
<p>Markdown uses an image syntax that is intended to resemble the syntax
@@ -767,7 +765,7 @@ equivalent of &lt;code&gt;&amp;amp;mdash;&lt;/code&gt;.&lt;/p&gt;
</p>
<pre><code>![Alt text](/path/to/img.jpg)
-![Alt text](/path/to/img.jpg &quot;Optional title&quot;)
+![Alt text](/path/to/img.jpg "Optional title")
</code></pre><p>That is:
</p>
<ul>
@@ -789,10 +787,10 @@ or single quotes.
<p>Reference-style image syntax looks like this:
</p>
<pre><code>![Alt text][id]
-</code></pre><p>Where &quot;id&quot; is the name of a defined image reference. Image references
+</code></pre><p>Where "id" is the name of a defined image reference. Image references
are defined using syntax identical to link references:
</p>
-<pre><code>[id]: url/to/image &quot;Optional title attribute&quot;
+<pre><code>[id]: url/to/image "Optional title attribute"
</code></pre><p>As of this writing, Markdown has no syntax for specifying the
dimensions of an image; if this is important to you, you can simply
use regular HTML <code>&lt;img&gt;</code> tags.
@@ -803,12 +801,12 @@ or single quotes.
<h3 id="autolink">Automatic Links</h3>
-<p>Markdown supports a shortcut style for creating &quot;automatic&quot; links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this:
+<p>Markdown supports a shortcut style for creating "automatic" links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this:
</p>
<pre><code>&lt;http://example.com/&gt;
</code></pre><p>Markdown will turn this into:
</p>
-<pre><code>&lt;a href=&quot;http://example.com/&quot;&gt;http://example.com/&lt;/a&gt;
+<pre><code>&lt;a href="http://example.com/"&gt;http://example.com/&lt;/a&gt;
</code></pre><p>Automatic links for email addresses work similarly, except that
Markdown will also perform a bit of randomized decimal and hex
entity-encoding to help obscure your address from address-harvesting
@@ -817,11 +815,11 @@ or single quotes.
<pre><code>&lt;address@example.com&gt;
</code></pre><p>into something like this:
</p>
-<pre><code>&lt;a href=&quot;&amp;#x6D;&amp;#x61;i&amp;#x6C;&amp;#x74;&amp;#x6F;:&amp;#x61;&amp;#x64;&amp;#x64;&amp;#x72;&amp;#x65;
+<pre><code>&lt;a href="&amp;#x6D;&amp;#x61;i&amp;#x6C;&amp;#x74;&amp;#x6F;:&amp;#x61;&amp;#x64;&amp;#x64;&amp;#x72;&amp;#x65;
&amp;#115;&amp;#115;&amp;#64;&amp;#101;&amp;#120;&amp;#x61;&amp;#109;&amp;#x70;&amp;#x6C;e&amp;#x2E;&amp;#99;&amp;#111;
-&amp;#109;&quot;&gt;&amp;#x61;&amp;#x64;&amp;#x64;&amp;#x72;&amp;#x65;&amp;#115;&amp;#115;&amp;#64;&amp;#101;&amp;#120;&amp;#x61;
+&amp;#109;"&gt;&amp;#x61;&amp;#x64;&amp;#x64;&amp;#x72;&amp;#x65;&amp;#115;&amp;#115;&amp;#64;&amp;#101;&amp;#120;&amp;#x61;
&amp;#109;&amp;#x70;&amp;#x6C;e&amp;#x2E;&amp;#99;&amp;#111;&amp;#109;&lt;/a&gt;
-</code></pre><p>which will render in a browser as a clickable link to &quot;address@example.com&quot;.
+</code></pre><p>which will render in a browser as a clickable link to "address@example.com".
</p>
<p>(This sort of entity-encoding trick will indeed fool many, if not
most, address-harvesting bots, but it definitely won't fool all of
@@ -851,5 +849,4 @@ _ underscore
- minus sign (hyphen)
. dot
! exclamation mark
-</code></pre>
-
+</code></pre> \ No newline at end of file
diff --git a/tests/misc/arabic.html b/tests/misc/arabic.html
index 476500f..fa27f2e 100644
--- a/tests/misc/arabic.html
+++ b/tests/misc/arabic.html
@@ -1,9 +1,7 @@
-
-
<h1 dir="rtl">بايثون</h1>
<p dir="rtl"><strong>بايثون</strong> لغة برمجة حديثة بسيطة، واضحة، سريعة ، تستخدم أسلوب البرمجة الكائنية (OOP) وقابلة للتطوير بالإضافة إلى أنها مجانية و مفتوحة المصدر. صُنفت بالأساس كلغة تفسيرية ، بايثون مصممة أصلاً للأداء بعض المهام الخاصة أو المحدودة. إلا أنه يمكن استخدامها بايثون لإنجاز المشاريع الضخمه كأي لغة برمجية أخرى، غالباً ما يُنصح المبتدئين في ميدان البرمجة بتعلم هذه اللغة لأنها من بين أسهل اللغات البرمجية تعلماً.
</p>
-<p dir="rtl">نشأت بايثون في مركز CWI (مركز العلوم والحاسب الآلي) بأمستردام على يد جويدو فان رُزوم. تم تطويرها بلغة C. أطلق فان رُزوم اسم &quot;بايثون&quot; على لغته تعبيرًا عن إعجابه بفِرقَة مسرحية هزلية شهيرة من بريطانيا، كانت تطلق على نفسها اسم مونتي بايثون Monty Python.
+<p dir="rtl">نشأت بايثون في مركز CWI (مركز العلوم والحاسب الآلي) بأمستردام على يد جويدو فان رُزوم. تم تطويرها بلغة C. أطلق فان رُزوم اسم "بايثون" على لغته تعبيرًا عن إعجابه بفِرقَة مسرحية هزلية شهيرة من بريطانيا، كانت تطلق على نفسها اسم مونتي بايثون Monty Python.
</p>
<p dir="rtl">تتميز بايثون بمجتمعها النشط ، كما أن لها الكثير من المكتبات البرمجية ذات الأغراض الخاصة والتي برمجها أشخاص من مجتمع هذه اللغة ، مثلاً مكتبة PyGame التي توفر مجموعه من الوظائف من اجل برمجة الالعاب. ويمكن لبايثون التعامل مع العديد من أنواع قواعد البيانات مثل MySQL وغيره.
</p>
@@ -11,7 +9,7 @@
<h2 dir="rtl">أمثلة</h2>
<p dir="rtl">مثال Hello World!
</p>
-<pre><code>print &quot;Hello World!&quot;
+<pre><code>print "Hello World!"
</code></pre><p dir="rtl">مثال لاستخراج المضروب Factorial :
</p>
<pre><code>num = 1
@@ -33,7 +31,5 @@ else:
<a href="http://www.python.org">الموقع الرسمي للغة بايثون</a>
</li>
</ul>
-<p dir="rtl"> بذرة حاس
-</p>
-
-
+<p dir="rtl"> بذرة حاس
+</p> \ No newline at end of file
diff --git a/tests/misc/benchmark.dat.tmp b/tests/misc/benchmark.dat.tmp
index b155e1c..a712c3a 100644
--- a/tests/misc/benchmark.dat.tmp
+++ b/tests/misc/benchmark.dat.tmp
@@ -1,53 +1,53 @@
construction:0.000000:0.000000
-adjacent-headers:0.050000:0.000000
-amp-in-url:0.040000:0.000000
-ampersand:0.040000:0.000000
-arabic:0.330000:0.000000
-attributes2:0.090000:0.000000
-bidi:0.910000:0.000000
+adjacent-headers:0.020000:0.000000
+amp-in-url:0.020000:0.000000
+ampersand:0.010000:0.000000
+arabic:0.130000:0.000000
+attributes2:0.030000:0.000000
+bidi:0.280000:0.000000
blank:0.000000:0.000000
-blank-block-quote:0.050000:0.000000
-blockquote-hr:0.210000:0.000000
-br:0.170000:0.000000
-bracket_re:21.910000:0.000000
-code-first-line:0.050000:0.000000
-comments:0.110000:0.000000
-div:0.130000:0.000000
-email:0.130000:0.000000
-funky-list:0.220000:0.000000
-h1:0.110000:0.000000
-hash:0.160000:0.000000
-headers:0.180000:0.000000
-hline:0.110000:0.000000
-html:0.310000:0.000000
-image:0.150000:0.000000
-image-2:0.220000:0.000000
-image_in_links:0.190000:0.000000
-inside_html:0.180000:0.000000
-japanese:0.540000:0.000000
-lazy-block-quote:0.190000:0.000000
-lists:0.450000:0.000000
-lists2:0.170000:0.000000
-lists3:0.170000:0.000000
-lists4:0.210000:0.000000
-lists5:0.260000:0.000000
-markup-inside-p:0.270000:0.000000
-mismatched-tags:0.180000:0.000000
-more_comments:0.210000:0.000000
-multi-line-tags:0.260000:0.000000
-multi-paragraph-block-quote:0.280000:0.000000
-multi-test:0.540000:0.000000
-multiline-comments:0.340000:0.000000
-normalize:0.270000:0.000000
-numeric-entity:0.310000:0.000000
-php:0.350000:0.000000
-pre:0.310000:0.000000
-russian:0.760000:-172032.000000
-some-test:0.850000:0.000000
-span:0.500000:0.000000
-stronintags:0.500000:0.000000
-tabs-in-lists:0.670000:0.000000
-two-spaces:0.550000:0.000000
-uche:0.540000:0.000000
-underscores:0.490000:0.000000
-url_spaces:0.420000:0.000000
+blank-block-quote:0.010000:0.000000
+blockquote-hr:0.050000:0.000000
+br:0.040000:0.000000
+bracket_re:6.310000:0.000000
+code-first-line:0.010000:0.000000
+comments:0.040000:0.000000
+div:0.040000:0.000000
+email:0.040000:0.000000
+funky-list:0.050000:0.000000
+h1:0.020000:0.000000
+hash:0.040000:0.000000
+headers:0.040000:0.000000
+hline:0.030000:0.000000
+html:0.130000:0.000000
+image:0.070000:0.000000
+image-2:0.090000:0.000000
+image_in_links:0.050000:0.000000
+inside_html:0.050000:0.000000
+japanese:0.120000:0.000000
+lazy-block-quote:0.050000:0.000000
+lists:0.100000:0.000000
+lists2:0.040000:0.000000
+lists3:0.040000:0.000000
+lists4:0.050000:0.000000
+lists5:0.060000:0.000000
+markup-inside-p:0.060000:0.000000
+mismatched-tags:0.040000:0.000000
+more_comments:0.040000:0.000000
+multi-line-tags:0.050000:0.000000
+multi-paragraph-block-quote:0.080000:0.000000
+multi-test:0.140000:0.000000
+multiline-comments:0.070000:0.000000
+normalize:0.060000:0.000000
+numeric-entity:0.070000:0.000000
+php:0.080000:0.000000
+pre:0.070000:0.000000
+russian:0.170000:0.000000
+some-test:0.170000:0.000000
+span:0.100000:0.000000
+stronintags:0.110000:0.000000
+tabs-in-lists:0.140000:0.000000
+two-spaces:0.110000:0.000000
+uche:0.130000:0.000000
+underscores:0.110000:0.000000
+url_spaces:0.090000:0.000000
diff --git a/tests/misc/bidi.html b/tests/misc/bidi.html
index a1a6068..74d4374 100644
--- a/tests/misc/bidi.html
+++ b/tests/misc/bidi.html
@@ -1,4 +1,3 @@
-
<p><strong>Python</strong>(パイソン)は、<a href="http://en.wikipedia.org/wiki/Guido_van_Rossum">Guido van Rossum</a> によって作られたオープンソースのオブジェクト指向スクリプト言語。<a href="http://ja.wikipedia.org/wiki/Perl">Perl</a>とともに欧米で広く普及している。イギリスのテレビ局 BBC が製作したコメディ番組『空飛ぶモンティ・パイソン』にちなんで名付けられた。 (Pythonには、爬虫類のニシキヘビの意味があり、Python言語のマスコットやアイコンとして使われることがある。)
</p>
<p>|||||||||||||||||||||||||||||THIS SHOULD BE LTR|||||||||||||||||||||||||
@@ -13,7 +12,7 @@
</p>
<p dir="rtl">ބްލޫ ވޭލްގެ ދޫ މަތީގައި އެއްފަހަރާ 50 މީހުންނަށް ތިބެވިދާނެވެ. ބޮޑު މަހުގެ ދުލަކީ އެހާމެ ބޮޑު އެއްޗެކެވެ.
</p>
-<p><strong>உருது</strong> 13ஆம் நூற்றாண்டில் உருவான ஒரு இந்தோ-ஐரோப்பிய மொழியாகும். உருது, ஹிந்தியுடன் சேர்த்து &quot;ஹிந்துஸ்தானி&quot; என அழைக்கப்படுகின்றது. மண்டரின், ஆங்கிலம் ஆகியவற்றுக்கு அடுத்தபடியாக மூன்றாவது கூடிய அளவு மக்களால் புரிந்து கொள்ளப்படக்கூடியது ஹிந்துஸ்தானியேயாகும். தாய் மொழியாகப் பேசுபவர்கள் எண்ணிக்கையின் அடிப்படையில் உருது உலகின் 20 ஆவது பெரிய மொழியாகும். 6 கோடி மக்கள் இதனைத் தாய் மொழியாகக் கொண்டுள்ளார்கள். இரண்டாவது மொழியாகக் கொண்டுள்ளவர்கள் உட்பட 11 கோடிப் பேர் இதனைப் பேசுகிறார்கள். உருது பாகிஸ்தானின் அரசகரும மொழியாகவும், இந்தியாவின் அரசகரும மொழிகளுள் ஒன்றாகவும் விளங்குகிறது.
+<p><strong>உருது</strong> 13ஆம் நூற்றாண்டில் உருவான ஒரு இந்தோ-ஐரோப்பிய மொழியாகும். உருது, ஹிந்தியுடன் சேர்த்து "ஹிந்துஸ்தானி" என அழைக்கப்படுகின்றது. மண்டரின், ஆங்கிலம் ஆகியவற்றுக்கு அடுத்தபடியாக மூன்றாவது கூடிய அளவு மக்களால் புரிந்து கொள்ளப்படக்கூடியது ஹிந்துஸ்தானியேயாகும். தாய் மொழியாகப் பேசுபவர்கள் எண்ணிக்கையின் அடிப்படையில் உருது உலகின் 20 ஆவது பெரிய மொழியாகும். 6 கோடி மக்கள் இதனைத் தாய் மொழியாகக் கொண்டுள்ளார்கள். இரண்டாவது மொழியாகக் கொண்டுள்ளவர்கள் உட்பட 11 கோடிப் பேர் இதனைப் பேசுகிறார்கள். உருது பாகிஸ்தானின் அரசகரும மொழியாகவும், இந்தியாவின் அரசகரும மொழிகளுள் ஒன்றாகவும் விளங்குகிறது.
</p>
<p dir="rtl">اردو ہندوآریائی زبانوں کی ہندويورپی شاخ کی ایک زبان ہے جو تيرھويں صدی ميں بر صغير ميں پيدا ہوئی ـ اردو پاکستان کی سرکاری زبان ہے اور بھارت کی سرکاری زبانوں ميں سے ايک ہے۔ اردو بھارت ميں 5 کروڑ اور پاکستان ميں 1 کروڑ لوگوں کی مادری زبان ہے مگر اسے بھارت اور پاکستان کے تقریباً 50 کروڑ لوگ بول اور سمجھ سکتے ھیں ۔ جن میں سے تقریباً 10.5 کروڑ لوگ اسے باقاعدہ بولتے ھیں۔
</p>
@@ -23,7 +22,7 @@
</p>
<p dir="rtl">|||||||||||||||||||||||||||||THIS SHOULD BE RTL|||||||||||||||||||||||||
</p>
-<p dir="rtl">(نشأت بايثون في مركز CWI (مركز العلوم والحاسب الآلي) بأمستردام على يد جويدو فان رُزوم. تم تطويرها بلغة C. أطلق فان رُزوم اسم &quot;بايثون&quot; على لغته تعبيرًا عن إعجابه بفِرقَة مسرحية هزلية شهيرة من بريطانيا، كانت تطلق على نفسها اسم مونتي بايثون Monty Python.
+<p dir="rtl">(نشأت بايثون في مركز CWI (مركز العلوم والحاسب الآلي) بأمستردام على يد جويدو فان رُزوم. تم تطويرها بلغة C. أطلق فان رُزوم اسم "بايثون" على لغته تعبيرًا عن إعجابه بفِرقَة مسرحية هزلية شهيرة من بريطانيا، كانت تطلق على نفسها اسم مونتي بايثون Monty Python.
</p>
<p dir="rtl">تتميز بايثون بمجتمعها النشط ، كما أن لها الكثير من المكتبات البرمجية ذات الأغراض الخاصة والتي برمجها أشخاص من مجتمع هذه اللغة ، مثلاً مكتبة PyGame التي توفر مجموعه من الوظائف من اجل برمجة الالعاب. ويمكن لبايثون التعامل مع العديد من أنواع قواعد البيانات مثل MySQL وغيره.
</p>
@@ -31,7 +30,7 @@
<h2 dir="rtl">أمثلة</h2>
<p dir="rtl">مثال Hello World!
</p>
-<pre><code>print &quot;Hello World!&quot;
+<pre><code>print "Hello World!"
</code></pre><p dir="rtl">مثال لاستخراج المضروب Factorial :
</p>
<pre><code>num = 1
@@ -58,6 +57,4 @@ else:
<p><strong>Недвард «Нед» Фландерс</strong> (Nedward «Ned» Flanders) — вымышленный персонаж мультсериала «[Симпсоны][]», озвученный Гарри Ширером. Он и его семья живут по соседству от семьи Симпсонов. Набожный христианин, Нед является одним из столпов морали Спрингфилда. В эпизоде «Alone Again, Natura-Diddily» он овдовел, его жена Мод погибла в результате несчастного случая.
</p>
<p>Нед был одним из первых персонажей в мультсериале, который не был членом семьи Симпсонов. Начиная с первых серий, он регулярно появляется в «Симпсонах». Считается, что Нед Фландерс был назван в честь улицы <em>Northeast Flanders St.</em> в <a href="http://www.portland.gov">Портленде</a>, Орегон, родном городе создателя мультсериала Мэтта Грейнинга]]. Надпись на указателе улицы <em>NE Flanders St.</em> хулиганы часто исправляли на <em>NED Flanders St.</em>
-</p>
-
-
+</p> \ No newline at end of file
diff --git a/tests/misc/code-first-line.html b/tests/misc/code-first-line.html
index 69ccaa2..172b17c 100644
--- a/tests/misc/code-first-line.html
+++ b/tests/misc/code-first-line.html
@@ -1,2 +1,2 @@
-<pre><code>print &quot;This is a code block.&quot;
-</code></pre> \ No newline at end of file
+<pre><code>print "This is a code block."
+</code></pre>
diff --git a/tests/misc/funky-list.html b/tests/misc/funky-list.html
index f8f6126..ebe8263 100644
--- a/tests/misc/funky-list.html
+++ b/tests/misc/funky-list.html
@@ -5,11 +5,11 @@
</li>
<li>
- this will show as number &quot;2&quot;
+ this will show as number "2"
</li>
<li>
- this will show as number &quot;3.&quot;
+ this will show as number "3."
</li>
<li>
diff --git a/tests/misc/php.html b/tests/misc/php.html
index 2ad3339..183716f 100644
--- a/tests/misc/php.html
+++ b/tests/misc/php.html
@@ -10,7 +10,7 @@
<?php echo "block_level";?>
-<p> &lt;?php echo &quot;not_block_level&quot;;?&gt;
+<p> &lt;?php echo "not_block_level";?&gt;
</p>