UNPKG

red-agate-barcode

Version:

red-agate barcode tag library.

183 lines 4.69 kB
// Copyright (c) 2017, Shellyl_N and Authors // license: ISC // https://github.com/shellyln export const charactersMap = new Map([ ["0", { index: 0, pattern: "1112212110" }], ["1", { index: 1, pattern: "2112111120" }], ["2", { index: 2, pattern: "1122111120" }], ["3", { index: 3, pattern: "2122111110" }], ["4", { index: 4, pattern: "1112211120" }], ["5", { index: 5, pattern: "2112211110" }], ["6", { index: 6, pattern: "1122211110" }], ["7", { index: 7, pattern: "1112112120" }], ["8", { index: 8, pattern: "2112112110" }], ["9", { index: 9, pattern: "1122112110" }], ["A", { index: 10, pattern: "2111121120" }], ["B", { index: 11, pattern: "1121121120" }], ["C", { index: 12, pattern: "2121121110" }], ["D", { index: 13, pattern: "1111221120" }], ["E", { index: 14, pattern: "2111221110" }], ["F", { index: 15, pattern: "1121221110" }], ["G", { index: 16, pattern: "1111122120" }], ["H", { index: 17, pattern: "2111122110" }], ["I", { index: 18, pattern: "1121122110" }], ["J", { index: 19, pattern: "1111222110" }], ["K", { index: 20, pattern: "2111111220" }], ["L", { index: 21, pattern: "1121111220" }], ["M", { index: 22, pattern: "2121111210" }], ["N", { index: 23, pattern: "1111211220" }], ["O", { index: 24, pattern: "2111211210" }], ["P", { index: 25, pattern: "1121211210" }], ["Q", { index: 26, pattern: "1111112220" }], ["R", { index: 27, pattern: "2111112210" }], ["S", { index: 28, pattern: "1121112210" }], ["T", { index: 29, pattern: "1111212210" }], ["U", { index: 30, pattern: "2211111120" }], ["V", { index: 31, pattern: "1221111120" }], ["W", { index: 32, pattern: "2221111110" }], ["X", { index: 33, pattern: "1211211120" }], ["Y", { index: 34, pattern: "2211211110" }], ["Z", { index: 35, pattern: "1221211110" }], ["-", { index: 36, pattern: "1211112120" }], [".", { index: 37, pattern: "2211112110" }], [" ", { index: 38, pattern: "1221112110" }], ["$", { index: 39, pattern: "1212121110" }], ["/", { index: 40, pattern: "1212111210" }], ["+", { index: 41, pattern: "1211121210" }], ["%", { index: 42, pattern: "1112121210" }], ["*", { index: 43, pattern: "1211212110" }] ]); export const reverseMap = new Map(); for (const e of charactersMap.entries()) reverseMap.set(e[1].index, e[0]); export const fullAsciiMap = new Map([ [0, "%U"], [1, "$A"], [2, "$B"], [3, "$C"], [4, "$D"], [5, "$E"], [6, "$F"], [7, "$G"], [8, "$H"], [9, "$I"], [0, "$J"], [11, "$K"], [12, "$L"], [13, "$M"], [14, "$N"], [15, "$O"], [16, "$P"], [17, "$Q"], [18, "$R"], [19, "$S"], [20, "$T"], [21, "$U"], [22, "$V"], [23, "$W"], [24, "$X"], [25, "$Y"], [26, "$Z"], [27, "%A"], [28, "%B"], [29, "%C"], [30, "%D"], [31, "%E"], [32, " "], [33, "/A"], [34, "/B"], [35, "/C"], [36, "/D"], [37, "/E"], [38, "/F"], [39, "/G"], [40, "/H"], [41, "/I"], [42, "/J"], [43, "/K"], [44, "/L"], [45, "-"], [46, "."], [47, "/"], [48, "0"], [49, "1"], [50, "2"], [51, "3"], [52, "4"], [53, "5"], [54, "6"], [55, "7"], [56, "8"], [57, "9"], [58, "/Z"], [59, "%F"], [60, "%G"], [61, "%H"], [62, "%I"], [63, "%J"], [64, "%V"], [65, "A"], [66, "B"], [67, "C"], [68, "D"], [69, "E"], [70, "F"], [71, "G"], [72, "H"], [73, "I"], [74, "J"], [75, "K"], [76, "L"], [77, "M"], [78, "N"], [79, "O"], [80, "P"], [81, "Q"], [82, "R"], [83, "S"], [84, "T"], [85, "U"], [86, "V"], [87, "W"], [88, "X"], [89, "Y"], [90, "Z"], [91, "%K"], [92, "%L"], [93, "%M"], [94, "%N"], [95, "%O"], [96, "%W"], [97, "+A"], [98, "+B"], [99, "+C"], [100, "+D"], [101, "+E"], [102, "+F"], [103, "+G"], [104, "+H"], [105, "+I"], [106, "+J"], [107, "+K"], [108, "+L"], [109, "+M"], [110, "+N"], [111, "+O"], [112, "+P"], [113, "+Q"], [114, "+R"], [115, "+S"], [116, "+T"], [117, "+U"], [118, "+V"], [119, "+W"], [120, "+X"], [121, "+Y"], [122, "+Z"], [123, "%P"], [124, "%Q"], [125, "%R"], [126, "%S"], [127, "%T"] // DEL ]); //# sourceMappingURL=Code39.data.js.map