Am 03.09.26 um 09:18 schrieb Hans Hagen via ntg-context:
The ean13 version can’t cope with complete numbers but insists on calculating the checksum itself. That’s a bit cumbersome since I usually have my complete ISBN in a variable.

There’s a spurious ">" after the EAN.
https://en.wikipedia.org/wiki/International_Article_Number

line 321:

    local function ean(str,quietsign)

line 440:

    insert(list_one,quietsign and ">" or "~")

line 457:

     generators["ean13"]  = function(str) return ean(str,false) end
     generators["gtin13"] = function(str) return ean(str,true ) end
Thank you! That works (of course).

Now, could you also allow to provide the check digit by the user instead nulling the number?

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to