Teks sumber — English
Terjemahan — Bahasa Indonesia
:rfc:`3454` defines a procedure for "preparing" Unicode strings in internet protocols. Before passing strings onto the wire, they are processed with the preparation procedure, after which they have a certain normalized form. The RFC defines a set of tables, which can be combined into profiles. Each profile must define which tables it uses, and what other optional parts of the ``stringprep`` procedure are part of the profile. One example of a ``stringprep`` profile is ``nameprep``, which is used for internationalized domain names.
:rfc:`3454` mendefinisikan prosedur untuk "menyiapkan" string Unicode dalam protokol internet. Sebelum string diteruskan ke jaringan, string tersebut diproses dengan prosedur persiapan, setelah itu string tersebut memiliki bentuk ternormalisasi tertentu. RFC tersebut mendefinisikan sekumpulan tabel, yang dapat digabungkan menjadi profil. Setiap profil harus mendefinisikan tabel mana yang digunakannya, dan bagian opsional lain apa dari prosedur ``stringprep`` yang menjadi bagian dari profil tersebut. Salah satu contoh profil ``stringprep`` adalah ``nameprep``, yang digunakan untuk nama domain yang terinternasionalisasi.
The module :mod:`!stringprep` only exposes the tables from :rfc:`3454`. As these tables would be very large to represent as dictionaries or lists, the module uses the Unicode character database internally. The module source code itself was generated using the ``mkstringprep.py`` utility.
Modul :mod:`!stringprep` hanya mengekspos tabel-tabel dari :rfc:`3454`. Karena tabel-tabel ini akan sangat besar jika direpresentasikan sebagai dictionary atau list, modul ini menggunakan basis data karakter Unicode secara internal. Kode sumber modul itu sendiri dihasilkan menggunakan utilitas ``mkstringprep.py``.