# code-2-5-datalogic

The code-2-5-datalogic bar code type is used by the Chinese Postal Service for processing and sorting mail.

The code represents a decimal number with a variable number of digits. The number of digits can be specified by setting the noDigits attribute. The last digit is the check character. The check character is calculated the same way as the ean 13 check sum.

The rightmost digit (checksum digit) can be omitted. When the system is supplied with a value that is one digit shorter than specified by noDigits then the check digit is automatically calculated by the system.

The nominal height is 1in. Each digit is drawn using a pattern of two wide and three thin bars making a total of 5 bars per digit. The nominal width of a thin bar is THINBARWIDTH=0.0236in. The width of a thick bar is THICKBARWIDTH=THINBARWIDTH/ thinToThickRelation where thinToThickRelation thinToGapRelation is drawn. The padding on both sides measures 10*THINBARWIDTH.
{"ft_lang_label":"__label__en","ft_lang_prob":0.7776021,"math_prob":0.98183966,"size":963,"snap":"2023-40-2023-50","text_gpt3_token_len":227,"char_repetition_ratio":0.124087594,"word_repetition_ratio":0.0,"special_character_ratio":0.20145379,"punctuation_ratio":0.073033705,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97500145,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-25T17:31:29Z\",\"WARC-Record-ID\":\"<urn:uuid:772788fb-c987-4fc1-ab0f-925f33466d48>\",\"Content-Length\":\"7126\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f00dd5dd-6a6d-4f58-8289-1281ca98bd47>\",\"WARC-Concurrent-To\":\"<urn:uuid:4be166ea-f7d9-4f4b-8dd7-1eb1f583659c>\",\"WARC-IP-Address\":\"51.210.182.105\",\"WARC-Target-URI\":\"https://4js.com/online_documentation/fjs-gst-manual-html/gst-topics/c_grd_barcodes_code_2_5_datalogic.html\",\"WARC-Payload-Digest\":\"sha1:EYHXL27HOIFOVC35IJAAM3B26UVP7PJU\",\"WARC-Block-Digest\":\"sha1:MLWFGFKMBUFJKK3PBOU2DBNGZYM5SBZC\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233509023.57_warc_CC-MAIN-20230925151539-20230925181539-00824.warc.gz\"}"}