Skip to content

Commit d7a2786

Browse files
committed
gender: fix XML by converting para to simpara tags via script
1 parent 6ec7165 commit d7a2786

File tree

11 files changed

+148
-170
lines changed

11 files changed

+148
-170
lines changed

reference/gender/book.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 68c2c871505aadf983f16113c5b077b335ce8d76 Maintainer: takagi Status: ready -->
4-
5-
<book xml:id="book.gender" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
3+
<!-- EN-Revision: 1742a682cd5f588937e7f03d39b53765c0227446 Maintainer: takagi Status: ready -->
4+
<book xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="book.gender">
65
<?phpdoc extension-membership="pecl" ?>
76
<title>名前の性別の判別</title>
87
<titleabbrev>Gender</titleabbrev>
98

109
<preface xml:id="intro.gender">
1110
&reftitle.intro;
12-
<para>
11+
<simpara>
1312
Gender 拡張モジュールは、Joerg Michael によるプログラム gender.c
1413
を PHP に移植したものです。主目的は、ファーストネームから性別を判断することです。
1514
データベースには、現時点で 54か国から 40000 を超えるファーストネームが含まれています。
16-
</para>
15+
</simpara>
1716
</preface>
1817

1918
&reference.gender.setup;
2019
&reference.gender.examples;
2120
&reference.gender.gender;
2221

2322
</book>
24-
2523
<!-- Keep this comment at the end of the file
2624
Local variables:
2725
mode: sgml

reference/gender/configure.xml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: e9366ee458b2900c53a503b1ad97664e1d9a8859 Maintainer: mumumu Status: ready -->
4-
5-
<section xml:id="gender.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
3+
<!-- EN-Revision: 1742a682cd5f588937e7f03d39b53765c0227446 Maintainer: mumumu Status: ready -->
4+
<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="gender.installation">
65
&reftitle.install;
76

8-
<para>
7+
<simpara>
98
&pecl.info;
109
<link xlink:href="&url.pecl.package;gender">&url.pecl.package;gender</link>
11-
</para>
12-
13-
14-
</section>
10+
</simpara>
1511

1612

13+
</section>
1714
<!-- Keep this comment at the end of the file
1815
Local variables:
1916
mode: sgml

reference/gender/examples.xml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: e9366ee458b2900c53a503b1ad97664e1d9a8859 Maintainer: takagi Status: ready -->
4-
5-
<chapter xml:id="gender.examples" xmlns="http://docbook.org/ns/docbook">
3+
<!-- EN-Revision: 1742a682cd5f588937e7f03d39b53765c0227446 Maintainer: takagi Status: ready -->
4+
<chapter xmlns="http://docbook.org/ns/docbook" xml:id="gender.examples">
65
&reftitle.examples;
76
<section xml:id="gender.example.admin">
87
<title>利用例</title>
9-
<para>
8+
<simpara>
109
Gender クラスの利用例です。
11-
</para>
10+
</simpara>
1211
<example>
1312
<title>利用例</title>
1413
<programlisting role="php">
@@ -19,10 +18,10 @@ namespace Gender;
1918
2019
$gender = new Gender;
2120
22-
21+
2322
$name = "Milene";
2423
$country = Gender::FRANCE;
25-
24+
2625
$result = $gender->get($name, $country);
2726
2827
$data = $gender->country($country);
@@ -32,41 +31,41 @@ switch($result) {
3231
printf("%sは、%sでは女性の名前です。\n", $name, $data['country']);
3332
break;
3433
35-
34+
3635
case Gender::IS_MOSTLY_FEMALE:
3736
printf("%sは、%sではおそらく女性の名前です。\n", $name, $data['country']);
3837
break;
3938
40-
39+
4140
case Gender::IS_MALE:
4241
printf("%sは、%sでは男性の名前です。\n", $name, $data['country']);
4342
break;
4443
45-
44+
4645
case Gender::IS_MOSTLY_MALE:
4746
printf("%sは、%sではおそらく男性の名前です。\n", $name, $data['country']);
4847
break;
4948
50-
49+
5150
case Gender::IS_UNISEX_NAME:
5251
printf("%sは、%sでは男女どちらも区別しません。\n", $name, $data['country']);
5352
break;
5453
55-
54+
5655
case Gender::IS_A_COUPLE:
5756
printf("%sは、%sでは男性の名前としても女性の名前としても使います。\n", $name, $data['country']);
5857
break;
5958
60-
59+
6160
case Gender::NAME_NOT_FOUND:
6261
printf("%sは、%sでは見つかりません。\n", $name, $data['country']);
6362
break;
6463
65-
64+
6665
case Gender::ERROR_IN_NAME:
6766
echo "名前にエラーが発生しました!\n";
6867
break;
69-
68+
7069
default:
7170
echo "エラーが発生しました!\n";
7271
break;
@@ -77,7 +76,6 @@ switch($result) {
7776
</example>
7877
</section>
7978
</chapter>
80-
8179
<!-- Keep this comment at the end of the file
8280
Local variables:
8381
mode: sgml
@@ -98,4 +96,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
9896
vim: et tw=78 syn=sgml
9997
vi: ts=1 sw=1
10098
-->
101-

0 commit comments

Comments
 (0)