Copy link to clipboard
Copied
Hello everyone,
I'm looking for the way to generate Ean13 barcode when importing an XML into Indesign via Xslt (that seems to me hard!)
It seems to me that it will be easier to run a script in the layout but EAN_Barcode_Generator and EanDesign only work with windows?
Do you have a solution before getting into the script modification?
Thank you
Yours truly
Bonjour à tous,
je cherche le moyen de généré des code barre Ean13 à l’importation d'un XML dans Indesign via Xslt (cela me semble dure !)
Il me semble qu'il serai plus facile de lancer un script dans la mise en page mais EAN_Barcode_Generator et EanDesign ne travail seulement avec des fenêtres?
Avez-vous une solution avant de me lancer dans le modification de script?
Merci
Bien à vous
Philippe
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thank you tpk1982 but I wish all to do automatically in indesign with an xslt or JavaScript over 800 code to do.
I have a Perl code that fessais that for a font, I would like the same thing.
------
Merci tpk1982 mais je souhaite tous faire en automatique dans indesign avec un xslt ou JavaScript plus de 800 code à faire.
J'ai un code Perl qui me fessais ça pour une police, je voudrais la même chose.
Copy link to clipboard
Copied
Hi Liphou,
The only way I can think of is to tie a character style to the xml node. You can do that by either mapping tags to styles (see XML tags flyout menu) or by adding a aid:cstyle attribute (be careful to add the corresponding namespace). In both case you need to call the specific font in the style.
If you have the barcodes generated by a third party program (eps exports for example), you can add them with XSLT by adding a href attribute to the xml node so they will mount on the fly.
HTH
Loic
Copy link to clipboard
Copied
Bonjour Loic.Aigon​,
I picked up a Perl code that I used more than 10 years ago from Simone Fioravanti, who uses an ean13.ttf font, and it works. This will serve me as backup if I am taken from court.
But :
— I would have wanted to change the font not possible the code is not the same (ex: Ean Lin P36);
— to redo another barcode in the layout I currently have to go through the Terminal
my second idea, is to leave the script EanDesign (1.03b) of Marc Autret, DIY something! (I know it's not good.)
/----------------------
J'ai récupéré un code Perl que j'avais utilisé il y plus de 10 ans de Simone Fioravanti, qui utilise une police ean13.ttf, et cela fonctionne. Cela me servira de Backup si je suis pris de cour.
Mais
— j'aurais voulus changé la police pas possible le code n'est pas le même (ex: Ean Lin P36);
— pour refaire un autre code barre dans le mise en page je dois actuellement passé par le Terminal
ma deuxième idée, est de repartir du script EanDesign (1.03b) de Marc Autret, Bricolé quelque chose !! ( je sais! c'est pas bien.)
Copy link to clipboard
Copied
Ok, something I didn't mention is to either use a GREP find/replace search (even done manually) or a more procedural script.
Try GREP:
Only issue is that the search string may differ from specifications. You will adjust it
FIND :
\d{13}
REPLACE
$0
appliedCharacterStyle:"MyEAN13Font"
Could that work for you ?
Copy link to clipboard
Copied
Yes indeed the use of a GREP find / replace is of course possible, I already place a character style but I can not just place a style, I have also calculated the barcode ?
Oui effectivement l'utilisation d'un GREP find/replace est bien sur possible, j'ai déjà placer un style de caractère mais je ne peux pas juste placer un style, je dois aussi calculé le code barre, non?
Philippe
Copy link to clipboard
Copied
Unless I am wrong, barcode are all about text drawn in a specific way. Most of fonts will do it fine. What some plugins may bring are specific settings that a font cannot provide such as for example barcode reduction in order to avoid greasing and barcodes misreading by scanners.
Copy link to clipboard
Copied
totally agree, I could not do what I want with the police ...
reflection in court ...
/----
tout à fait d'accord, je ne pourrais pas faire ce que je veux avec la police ...
réflexion en coure ...
Copy link to clipboard
Copied
then you could try to draw it programatically, or try to drive third party plugins to generate them as you wish and have eps file or get in touch with indiscripts and see if it's possible to buy for a lib use.
Copy link to clipboard
Copied
Yes, I found in my archives the Beta version of "BookBarcode", EanDesign.jsx Version: 1.03b - Author: Marc Autret - Update: 27/09/07. I hope that M. Autret will not be angry at me, and I must already understand the code in a very short time.
Thanks to you
Oui, j'ai retrouvé dans mes archives la version Bêta de "BookBarcode", EanDesign.jsx Version: 1.03b -- Auteur: Marc Autret -- Update: 27/09/07. J'espère que M. Autret ne m'en voudra pas trop, de plus il faut déjà que j'arrive à comprendre le code dans un délai très cour.
Merci à toi
Philippe
Copy link to clipboard
Copied
Vue le prix si peu cher du BookBarcode, je vais franchir le pas ! et voir avec M. Autret le possiblité.
Copy link to clipboard
Copied
yes, I think I remember there is a batch mode. You could process every needed barcode. Then once that done, use xslt to embed the barcodes in the XML workflow.
Copy link to clipboard
Copied
I just tested the "BookBarcode", it does batch processing, super but as my block is in an array that is in an anchor block for XML, it does not function, so I asked the question, thank you for opening my eyes to the simplicity of the "BookBarcode" script.
Je viens de tester la "BookBarcode", il fais du traitement par lot, super mais comme mon bloc est dans un tableau qui est dans un bloc ancre pour le XML, il n'a pas fonction, j'ai donc posés la question, merci de m'avoir ouvert les yeux sur la simplicité du script "BookBarcode"
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more