Reftests for ZWNJ

git-svn-id: svn://10.0.0.236/trunk@241849 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
smontagu%smontagu.org 2007-12-20 16:13:41 +00:00
parent 6d0a30f8ed
commit efba9ba04b
5 changed files with 90 additions and 0 deletions

View File

@ -5,3 +5,6 @@ random == soft-hyphens-1c.html soft-hyphens-1-ref.html # bug 406299
== white-space-1a.html white-space-1-ref.html
== white-space-1b.html white-space-1-ref.html
== white-space-2.html white-space-2-ref.html
== zwnj-01.html zwnj-01-ref.html
== zwnj-02.html zwnj-02-ref.html
!= zwnj-01.html zwnj-02-ref.html

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<!-- Reference rendering for zwnj-01.html. This uses spans with
display:inline-block to prevent the letters from connecting -->
<html>
<head>
<title>ZWNJ test</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style type="text/css">
body {
font-size: 36px;
}
span {
display: inline-block;
}
</style>
</head>
<body lang="ar">
<p><span>&#x647;&#x627;</span><span>&#x647;&#x641;&#x62A;&#x647;</span></p>
<p><span>&#x647;&#x627;</span><span>&#x645;&#x648;&#x632;&#x647;</span></p>
<p><span>&#x634;&#x646;&#x628;&#x647;</span><span>&#x633;&#x647;</span></p>
<p><span>&#x622;&#x647;&#x646;</span><span>&#x631;&#x627;&#x647;</span></p>
<p><span>&#x627;&#x641;&#x632;&#x627;&#x631;</span><span>&#x646;&#x631;&#x645;</span></p>
</body>
</html>

View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<!-- ZWNJ test #1. Persian words containing a ZWNJ (copied from
http://www.unics.uni-hannover.de/nhtcapri/bidirectional-text.html) -->
<html>
<head>
<title>ZWNJ test</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style type="text/css">
body {
font-size: 36px;
}
</style>
</head>
<body lang="ar">
<p>&#x647;&#x641;&#x62A;&#x647;&#x200C;&#x647;&#x627;</p>
<p>&#x645;&#x648;&#x632;&#x647;&#x200C;&#x647;&#x627;</p>
<p>&#x633;&#x647;&#x200C;&#x634;&#x646;&#x628;&#x647;</p>
<p>&#x631;&#x627;&#x647;&#x200C;&#x622;&#x647;&#x646;</p>
<p>&#x646;&#x631;&#x645;&#x200C;&#x627;&#x641;&#x632;&#x627;&#x631;</p>
</body>
</html>

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<!-- Reference rendering for zwnj-02.html. No spans, no ZWNJs. Everything
should connect -->
<head>
<title>ZWNJ test</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style type="text/css">
body {
font-size: 36px;
}
</style>
</head>
<body lang="ar">
<p>&#x647;&#x641;&#x62A;&#x647;&#x647;&#x627;</p>
<p>&#x645;&#x648;&#x632;&#x647;&#x647;&#x627;</p>
<p>&#x633;&#x647;&#x634;&#x646;&#x628;&#x647;</p>
<p>&#x631;&#x627;&#x647;&#x622;&#x647;&#x646;</p>
<p>&#x646;&#x631;&#x645;&#x627;&#x641;&#x632;&#x627;&#x631;</p>
</body>
</html>

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<!-- ZWNJ test #2. The words from zwnj-01.html with the ZWNJs replaced by
span boundaries. Correct behaviour is for the letters to connect across the
spans -->
<html>
<head>
<title>ZWNJ test</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style type="text/css">
body {
font-size: 36px;
}
</style>
</head>
<body lang="ar">
<p><span>&#x647;&#x641;&#x62A;&#x647;</span><span>&#x647;&#x627;</span></p>
<p><span>&#x645;&#x648;&#x632;&#x647;</span><span>&#x647;&#x627;</span></p>
<p><span>&#x633;&#x647;</span><span>&#x634;&#x646;&#x628;&#x647;</span></p>
<p><span>&#x631;&#x627;&#x647;</span><span>&#x622;&#x647;&#x646;</span></p>
<p><span>&#x646;&#x631;&#x645;</span><span>&#x627;&#x641;&#x632;&#x627;&#x631;</span></p>
</body>
</html>