1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-12-21 07:08:51 -05:00

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

View File

@ -23,6 +23,12 @@
<email>jonas@zombofant.net</email>
<jid>jonas@zombofant.net</jid>
</author>
<revision>
<version>0.2.0</version>
<date>2021-03-28</date>
<initials>jsc</initials>
<remark>Describe the conversion algorithm.</remark>
</revision>
<revision>
<version>0.1.0</version>
<date>2021-03-28</date>
@ -131,8 +137,9 @@ unexpected elements.</p>
<section2 anchor="plain-text" topic="Plain-text compatibility">
<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
following algorithm is to be applied:</p>
the list of labels in &xep0128; or a &xep0004; configuration form, the structure described above is converted to a simple text-based form.</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">
@ -151,10 +158,7 @@ All labels are mapped to a single <tt>text-multi</tt>.</p>
</field>
</x>]]></example>
<p>Each line in the <tt>text-multi</tt> field is prefixed with the <tt>key</tt> of the
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>
<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>
</section2><section2 anchor="muc-config" topic="Offering configuration of the Self-Rating of a XEP-0045 Multi-User-Chat">