XEP-0456: fix lack of algorithm description

This commit is contained in:
Jonas Schäfer 2021-03-28 14:36:01 +02:00
parent 6e78fdbf69
commit 54031a176f
1 changed files with 10 additions and 6 deletions

View File

@ -23,6 +23,12 @@
<email>jonas@zombofant.net</email> <email>jonas@zombofant.net</email>
<jid>jonas@zombofant.net</jid> <jid>jonas@zombofant.net</jid>
</author> </author>
<revision>
<version>0.2.0</version>
<date>2021-03-28</date>
<initials>jsc</initials>
<remark>Describe the conversion algorithm.</remark>
</revision>
<revision> <revision>
<version>0.1.0</version> <version>0.1.0</version>
<date>2021-03-28</date> <date>2021-03-28</date>
@ -131,8 +137,9 @@ unexpected elements.</p>
<section2 anchor="plain-text" topic="Plain-text compatibility"> <section2 anchor="plain-text" topic="Plain-text compatibility">
<p>If the format needs to be conveyed in plain text form, for example to carry <p>If the format needs to be conveyed in plain text form, for example to carry
the list of labels in &xep0128; or a &xep0004; configuration form, the the list of labels in &xep0128; or a &xep0004; configuration form, the structure described above is converted to a simple text-based form.</p>
following algorithm is to be applied:</p>
<p>Each <tt>&lt;simple-label/&gt;</tt> element is converted to a line of text. The line is composed of the value of the <tt>type</tt> attribute of the element, followed by a single space character (U+0020), followed by the character data of the element.</p>
</section2></section1><section1 anchor="usecases" topic="Use Cases"> </section2></section1><section1 anchor="usecases" topic="Use Cases">
@ -151,10 +158,7 @@ All labels are mapped to a single <tt>text-multi</tt>.</p>
</field> </field>
</x>]]></example> </x>]]></example>
<p>Each line in the <tt>text-multi</tt> field is prefixed with the <tt>key</tt> of the <p>Each line in the <tt>text-multi</tt> field corresponds to a converted <tt>&lt;simple-label/&gt;</tt> element as described above.</p>
corresponding <tt>&lt;simple-label/&gt;</tt> element. The <tt>key</tt> is followed by a single
space character (U+0020), followed by the character data of the
<tt>&lt;simple-label/&gt;</tt> element.</p>
</section2><section2 anchor="muc-config" topic="Offering configuration of the Self-Rating of a XEP-0045 Multi-User-Chat"> </section2><section2 anchor="muc-config" topic="Offering configuration of the Self-Rating of a XEP-0045 Multi-User-Chat">