Ascii85: 두 판 사이의 차이

내용 삭제됨 내용 추가됨
편집 요약 없음
TedBot (토론 | 기여)
잔글 봇: 틀 이름 및 스타일 정리
5번째 줄:
 
==기본 구상==
binary-to-text encoding은 사람이 읽을 수 있는([[:en:human-readable]]) 문자만을 전송할 수 있는 기존 통신 프로토콜 위에서 [[이진 데이터]]를 다루기 위해서 필요했다. 이런 환경에서 문자는 7 비트만을 사용하고 그 마저도 일부 제어 문자를 빼야하므로 데이터의 전송에 사용할 수 있는 문자는 95개 뿐이다.
 
4 바이트는 2<sup>32</sup>&nbsp;= 4,294,967,296 가지의 값을 가지고, 5자리 85 진수([[:en:radix]])는 85<sup>5</sup>&nbsp;= 4,437,053,125 가지의 값이 가능하므로 이걸로 32비트 값을 충분히 표현할 수 있다. 5자리의 84 진수는 84<sup>5</sup>&nbsp;=&nbsp;4,182,119,424 가지 값만을 가지기 때문에 85가 5자리로 4바이트를 표현해 낼 수 있는 최소값이라 이것이 선택되었다.
20번째 줄:
 
===btoa version===
The original btoa program always encoded full groups (padding the source as necessary), with a prefix line of "xbtoa Begin", and suffix line of "xbtoa End", followed by the original file length (in decimal and [[hexadecimal]]) and three 32-bit [[checksum]]s. The decoder needs to use the file length to see how much of the group was padding. The initial proposal for btoa encoding used an encoding alphabet starting at the ASCII space character through "t" inclusive, but this was replaced with an encoding alphabet of "!" to "u" to avoid "problems with some mailers (stripping off trailing blanks)."<ref>{{cite web인용|last1=Orost|first1=Joe|title=Re: COMPRESSING of binary data into mailable ASCII Re: Encoding of binary data into mailable ASCII|url=https://groups.google.com/forum/#!original/comp.compression/Ve7k8XF-F5k/gBWfpyL-gfgJ|website=Google Groups|accessdate=11 April 2015}}</ref> This program also introduced the special "<code>z</code>" short form for an all-zero group. Version 4.2 added a "<code>y</code>" exception for a group of all ASCII [[space (punctuation)|space]] characters (0x20202020).
 
===ZMODEM version===