Multilingual Wiki Documentation

You are currently using syntax.
In an attempt to improve PlantUML documentation...
Please do not use this website for your own diagrams.
You can click here and use the online server here for your own documentation.

Back to page content

Changes

Japanese version English version
===== Principle =====

例えば、

<code>
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
</code>

は、


となります。

このエンコードは、[[http://www.plantuml.com/plantuml/uml/Syp9J4vLqBLJSCfFib9mB2t9ICqhoKnEBCdCprC8IYqiJIqkuGBAAUW2rJY256DHLLoGdrUS2W00|http://www.plantuml.com/plantuml/uml/Syp9J4vLqBLJSCfFib9mB2t9ICqhoKnEBCdCprC8IYqiJIqkuGBAAUW2rJY256DHLLoGdrUS2W00]] のように URL に使用することができます。

この変換は、以下のように行われます。

- UTF-8 に変換
- [[http://en.wikipedia.org/wiki/DEFLATE|Deflate]] アルゴリズムを用いて圧縮
- ASCII 文字列に再変換
- [[http://en.wikipedia.org/wiki/Base64|base64]] 表現にする
===== Principle =====

For example, the following uml text description:

<code>
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
</code>

is encoded as:


To achieve such an encoding, the text diagram is:

- Encoded in UTF-8
- Compressed using [[http://en.wikipedia.org/wiki/DEFLATE|Deflate]] algorithm
- Reencoded in ASCII using a transformation //close// to [[http://en.wikipedia.org/wiki/Base64|base64]]

**Why not use Base64?**

The main reason is historic: this format was not created to be public at first. Now, it's too late to change it. However, the only difference is in character order.

Where in base64 the mapping array for values 0-63 is:
<code>
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
</code>

For PlantUML, the mapping array for values 0-63 is:
<code>
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_
</code>


Please report any bugs to plantuml@gmail.com or here.
This website is still in beta testing.