diff options
Diffstat (limited to 'Master/texmf-dist/scripts/barracuda/lib-barcode/brcd-code128.lua')
-rw-r--r-- | Master/texmf-dist/scripts/barracuda/lib-barcode/brcd-code128.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Master/texmf-dist/scripts/barracuda/lib-barcode/brcd-code128.lua b/Master/texmf-dist/scripts/barracuda/lib-barcode/brcd-code128.lua index 317b3de8f8e..1ee1c983434 100644 --- a/Master/texmf-dist/scripts/barracuda/lib-barcode/brcd-code128.lua +++ b/Master/texmf-dist/scripts/barracuda/lib-barcode/brcd-code128.lua @@ -1,5 +1,5 @@ -- Code128 barcode generator module --- Copyright (C) 2019 Roberto Giacomelli +-- Copyright (C) 2020 Roberto Giacomelli -- -- All dimension must be in scaled point (sp) -- every fields that starts with an undercore sign are intended as private @@ -41,6 +41,11 @@ Code128._switch = { -- codes for switching from a codeset to another one } -- parameters definition +Code128._par_order = { + "xdim", + "ydim", + "quietzone_factor", +} Code128._par_def = {} local pardef = Code128._par_def @@ -49,7 +54,6 @@ pardef.xdim = { default = 0.21 * 186467, -- X dimension unit = "sp", -- scaled point isReserved = true, - order = 1, -- the one first to be modified fncheck = function (self, x, _) --> boolean, err if x >= self.default then return true, nil @@ -63,7 +67,6 @@ pardef.ydim = { default = 10 * 186467, -- Y dimension unit = "sp", isReserved = false, - order = 2, fncheck = function (self, y, tpar) --> boolean, err local xdim = tpar.xdim if y >= 10*xdim then @@ -78,7 +81,6 @@ pardef.quietzone_factor = { default = 10, unit = "absolute-number", isReserved = false, - order = 3, fncheck = function (self, z, _) --> boolean, err if z >= 10 then return true, nil @@ -89,7 +91,7 @@ pardef.quietzone_factor = { } -- create vbar objects -function Code128:config() --> ok, err +function Code128:_config() --> ok, err -- build Vbar object for the start/stop symbol local mod = self.xdim local sc = self._codeset.stopChar -- build the stop char |