Skip to content

Commit b3c1dd5

Browse files
committed
rar : fix XML by converting para to simpara tags via script
1 parent 6432150 commit b3c1dd5

32 files changed

Lines changed: 358 additions & 371 deletions

reference/rar/book.xml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 68c2c871505aadf983f16113c5b077b335ce8d76 Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
3-
4-
<book xml:id="book.rar" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<!-- EN-Revision: ee741f54f831af19f135d1d9894a41477ab896c3 Maintainer: fernandowobeto Status: ready -->
3+
<!-- CREDITS: fernandowobeto -->
4+
<book xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="book.rar">
55
<?phpdoc extension-membership="pecl" ?>
66
<title>Arquivamento Rar</title>
77
<titleabbrev>Rar</titleabbrev>
88

99
<!-- {{{ preface -->
1010
<preface xml:id="intro.rar">
1111
&reftitle.intro;
12-
<para>
12+
<simpara>
1313
Rar é um arquivador poderoso e eficaz criado por Eugene Roshal.
1414
Esta extensão dá a possibilidade de ler arquivos Rar, mas
1515
não suporta a gravação de arquivos Rar, porque isso não é suportado
1616
pela biblioteca UnRar e é diretamente proibido por sua licença.
17-
</para>
18-
<para>
19-
Mais informações sobre Rar e UnRar pode ser encontrado em <link
20-
xlink:href="&url.rar;">&url.rar;</link>.
21-
</para>
17+
</simpara>
18+
<simpara>
19+
Mais informações sobre Rar e UnRar pode ser encontrado em <link xlink:href="&url.rar;">&url.rar;</link>.
20+
</simpara>
2221
</preface>
2322
<!-- }}} -->
2423

@@ -31,7 +30,6 @@
3130
&reference.rar.rarexception;
3231

3332
</book>
34-
3533
<!-- Keep this comment at the end of the file
3634
Local variables:
3735
mode: sgml
@@ -52,4 +50,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
5250
vim: et tw=78 syn=sgml
5351
vi: ts=1 sw=1
5452
-->
55-

reference/rar/examples.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 49395299550ff534324a540b902c5480d0b834e4 Maintainer: fernandowobeto Status: ready -->
2+
<!-- EN-Revision: ee741f54f831af19f135d1d9894a41477ab896c3 Maintainer: fernandowobeto Status: ready -->
33
<!-- CREDITS: fernandowobeto,leonardolara -->
44
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="rar.examples">
55
&reftitle.examples;
66

7-
<para>
7+
<simpara>
88
Veja também os exemplos do empacotador <link linkend="wrappers.rar"><literal>rar://</literal></link>.
9-
</para>
9+
</simpara>
1010

1111
<example>
1212
<title>Descompressão instantânea</title>
@@ -116,9 +116,9 @@ while (!feof($fp)) {
116116
]]>
117117
</programlisting>
118118
</example>
119-
<para>
119+
<simpara>
120120
Este exemplo abre um arquivo RAR e apresenta o arquivo solicitado dentro do arquivo RAR para download no cliente.
121-
</para>
121+
</simpara>
122122

123123
<example>
124124
<title>Exemplo de extração de sistema de arquivos com extensão RAR</title>
@@ -144,10 +144,10 @@ rar_close($rar_file);
144144
]]>
145145
</programlisting>
146146
</example>
147-
<para>
147+
<simpara>
148148
Este exemplo abre um arquivo RAR e extrai cada entrada para o
149149
diretório especificado.
150-
</para>
150+
</simpara>
151151

152152
</chapter>
153153
<!-- Keep this comment at the end of the file

reference/rar/functions/rar-wrapper-cache-stats.xml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 8b6d169424ff189bb563ef4c3f35f8adff3f42c5 Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
3-
4-
<refentry xml:id="function.rar-wrapper-cache-stats" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<!-- EN-Revision: ee741f54f831af19f135d1d9894a41477ab896c3 Maintainer: fernandowobeto Status: ready -->
3+
<!-- CREDITS: fernandowobeto -->
4+
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.rar-wrapper-cache-stats">
55
<refnamediv>
66
<refname>rar_wrapper_cache_stats</refname>
77
<refpurpose>Acertos e erros de cache para o empacotador de URL</refpurpose>
@@ -11,11 +11,11 @@
1111
&reftitle.description;
1212
<methodsynopsis>
1313
<type>string</type><methodname>rar_wrapper_cache_stats</methodname>
14-
<void />
14+
<void/>
1515
</methodsynopsis>
16-
<para>
16+
<simpara>
1717

18-
</para>
18+
</simpara>
1919

2020
&warn.undocumented.func;
2121

@@ -28,14 +28,13 @@
2828

2929
<refsect1 role="returnvalues">
3030
&reftitle.returnvalues;
31-
<para>
31+
<simpara>
3232

33-
</para>
33+
</simpara>
3434
</refsect1>
3535

3636

3737
</refentry>
38-
3938
<!-- Keep this comment at the end of the file
4039
Local variables:
4140
mode: sgml

reference/rar/rararchive.xml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: ff65144390564426bdf289c2351c4e8a0f6a73e1 Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
3-
4-
<reference xml:id="class.rararchive" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
2+
<!-- EN-Revision: ee741f54f831af19f135d1d9894a41477ab896c3 Maintainer: fernandowobeto Status: ready -->
3+
<!-- CREDITS: fernandowobeto -->
4+
<reference xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="class.rararchive" role="class">
55

66
<title>A classe RarArchive</title>
77
<titleabbrev>RarArchive</titleabbrev>
@@ -11,15 +11,15 @@
1111
<!-- {{{ RarArchive intro -->
1212
<section xml:id="rararchive.intro">
1313
&reftitle.intro;
14-
<para>
14+
<simpara>
1515
Esta classe representa um arquivo RAR, que pode ser formado por vários volumes (partes) e que contém
1616
uma série de entradas RAR (ou seja, arquivos, diretórios e outros objetos especiais, como links simbólicos).
17-
</para>
18-
<para>
17+
</simpara>
18+
<simpara>
1919
Objetos desta classe podem ser percorridos, gerando as entradas armazenadas no respectivo arquivo RAR.
2020
Essas entradas também podem ser obtidas através de <methodname>RarArchive::getEntry</methodname> e
2121
<methodname>RarArchive::getEntries</methodname>.
22-
</para>
22+
</simpara>
2323
</section>
2424
<!-- }}} -->
2525

@@ -44,7 +44,7 @@
4444
<!-- }}} -->
4545

4646
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
47-
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.rararchive')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
47+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.rararchive')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])"/>
4848
</classsynopsis>
4949
<!-- }}} -->
5050

@@ -55,7 +55,6 @@
5555
&reference.rar.entities.rararchive;
5656

5757
</reference>
58-
5958
<!-- Keep this comment at the end of the file
6059
Local variables:
6160
mode: sgml

reference/rar/rararchive/close.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 49395299550ff534324a540b902c5480d0b834e4 Maintainer: fernandowobeto Status: ready -->
2+
<!-- EN-Revision: ee741f54f831af19f135d1d9894a41477ab896c3 Maintainer: fernandowobeto Status: ready -->
33
<!-- CREDITS: fernandowobeto -->
44
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="rararchive.close">
55
<refnamediv>
@@ -10,19 +10,19 @@
1010

1111
<refsect1 role="description">
1212
&reftitle.description;
13-
<para>&style.oop; (method):</para>
13+
<simpara>&style.oop; (method):</simpara>
1414
<methodsynopsis>
1515
<modifier>public</modifier> <type>bool</type><methodname>RarArchive::close</methodname>
1616
<void/>
1717
</methodsynopsis>
18-
<para>&style.procedural;:</para>
18+
<simpara>&style.procedural;:</simpara>
1919
<methodsynopsis>
2020
<type>bool</type><methodname>rar_close</methodname>
2121
<methodparam><type>RarArchive</type><parameter>rarfile</parameter></methodparam>
2222
</methodsynopsis>
23-
<para>
23+
<simpara>
2424
Fecha o arquivo RAR e libera todos os recursos alocados.
25-
</para>
25+
</simpara>
2626
</refsect1>
2727

2828
<refsect1 role="parameters">
@@ -31,19 +31,19 @@
3131
<varlistentry>
3232
<term><parameter>rarfile</parameter></term>
3333
<listitem>
34-
<para>
34+
<simpara>
3535
Um objeto <type>RarArchive</type>, aberto com <function>rar_open</function>.
36-
</para>
36+
</simpara>
3737
</listitem>
3838
</varlistentry>
3939
</variablelist>
4040
</refsect1>
4141

4242
<refsect1 role="returnvalues">
4343
&reftitle.returnvalues;
44-
<para>
44+
<simpara>
4545
&return.success;
46-
</para>
46+
</simpara>
4747
</refsect1>
4848

4949
<refsect1 role="changelog">

reference/rar/rararchive/getcomment.xml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 49395299550ff534324a540b902c5480d0b834e4 Maintainer: fernandowobeto Status: ready -->
2+
<!-- EN-Revision: ee741f54f831af19f135d1d9894a41477ab896c3 Maintainer: fernandowobeto Status: ready -->
33
<!-- CREDITS: fernandowobeto -->
44
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="rararchive.getcomment">
55
<refnamediv>
@@ -10,23 +10,23 @@
1010

1111
<refsect1 role="description">
1212
&reftitle.description;
13-
<para>&style.oop; (method):</para>
13+
<simpara>&style.oop; (method):</simpara>
1414
<methodsynopsis>
1515
<modifier>public</modifier> <type>string</type><methodname>RarArchive::getComment</methodname>
1616
<void/>
1717
</methodsynopsis>
18-
<para>&style.procedural;:</para>
18+
<simpara>&style.procedural;:</simpara>
1919
<methodsynopsis>
2020
<type>string</type><methodname>rar_comment_get</methodname>
2121
<methodparam><type>RarArchive</type><parameter>rarfile</parameter></methodparam>
2222
</methodsynopsis>
23-
<para>
23+
<simpara>
2424
Obtém o comentário (global) armazenado no arquivo RAR. Pode ter até 64 KiB de comprimento.
25-
</para>
25+
</simpara>
2626
<note>
27-
<para>
27+
<simpara>
2828
Esta extensão não oferece suporte a comentários no nível de entrada.
29-
</para>
29+
</simpara>
3030
</note>
3131
</refsect1>
3232

@@ -36,25 +36,25 @@
3636
<varlistentry>
3737
<term><parameter>rarfile</parameter></term>
3838
<listitem>
39-
<para>
39+
<simpara>
4040
Um objeto <type>RarArchive</type>, aberto com <function>rar_open</function>.
41-
</para>
41+
</simpara>
4242
</listitem>
4343
</varlistentry>
4444
</variablelist>
4545
</refsect1>
4646

4747
<refsect1 role="returnvalues">
4848
&reftitle.returnvalues;
49-
<para>
49+
<simpara>
5050
Retorna o comentário ou &null; se não houver nenhum.
51-
</para>
51+
</simpara>
5252
<note>
53-
<para>
53+
<simpara>
5454
Atualmente, o RAR não oferece suporte para comentários Unicode. A codificação do
5555
resultado desta função não está especificada, mas provavelmente será
5656
Windows-1252.
57-
</para>
57+
</simpara>
5858
</note>
5959
</refsect1>
6060

reference/rar/rararchive/getentries.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 49395299550ff534324a540b902c5480d0b834e4 Maintainer: fernandowobeto Status: ready -->
2+
<!-- EN-Revision: ee741f54f831af19f135d1d9894a41477ab896c3 Maintainer: fernandowobeto Status: ready -->
33
<!-- CREDITS: fernandowobeto -->
44
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="rararchive.getentries">
55
<refnamediv>
@@ -10,28 +10,28 @@
1010

1111
<refsect1 role="description">
1212
&reftitle.description;
13-
<para>&style.oop; (method):</para>
13+
<simpara>&style.oop; (method):</simpara>
1414
<methodsynopsis>
1515
<modifier>public</modifier> <type class="union"><type>array</type><type>false</type></type><methodname>RarArchive::getEntries</methodname>
1616
<void/>
1717
</methodsynopsis>
18-
<para>&style.procedural;:</para>
18+
<simpara>&style.procedural;:</simpara>
1919
<methodsynopsis>
2020
<type class="union"><type>array</type><type>false</type></type><methodname>rar_list</methodname>
2121
<methodparam><type>RarArchive</type><parameter>rarfile</parameter></methodparam>
2222
</methodsynopsis>
23-
<para>
23+
<simpara>
2424
Obtém a lista de entradas (arquivos e diretórios) do arquivo RAR.
25-
</para>
25+
</simpara>
2626
<note>
27-
<para>
27+
<simpara>
2828
Se o arquivo tiver
2929
entradas com o mesmo nome, este método, juntamente com a iteração <type>RarArchive</type>
3030
<literal>foreach</literal> e o acesso tipo array com índices numéricos,
3131
são os únicos a acessar todas as entradas (ou seja,
3232
<methodname>RarArchive::getEntry</methodname> e o <link linkend="wrappers.rar">
3333
empacotador <literal>rar://</literal></link> são insuficientes).
34-
</para>
34+
</simpara>
3535
</note>
3636
</refsect1>
3737

@@ -41,20 +41,20 @@
4141
<varlistentry>
4242
<term><parameter>rarfile</parameter></term>
4343
<listitem>
44-
<para>
44+
<simpara>
4545
Um objeto <type>RarArchive</type>, aberto com <function>rar_open</function>.
46-
</para>
46+
</simpara>
4747
</listitem>
4848
</varlistentry>
4949
</variablelist>
5050
</refsect1>
5151

5252
<refsect1 role="returnvalues">
5353
&reftitle.returnvalues;
54-
<para>
54+
<simpara>
5555
<function>rar_list</function> retorna um array de objetos <type>RarEntry</type>
5656
&return.falseforfailure;.
57-
</para>
57+
</simpara>
5858
</refsect1>
5959

6060
<refsect1 role="changelog">

0 commit comments

Comments
 (0)