bookbarcode howtos | indiscripts · 5 bookbarcode howtos sandbox © indiscripts.com | sept. 2010...

10
1 BookBarcode howtos Sandbox © Indiscripts.com | Sept. 2010 GETTING STARTED 1. Download BookBarcode from <indiscripts.com>. [PRO Version] Retrieve the package from your private link and save it on your hard disk. [TRY Version] Right-click BookBarcodeTry.zip and choose Save Target / Link As. 2. Extract BookBarcodePro.jsx  (or …Try.jsx) from the zip file, then place the file into your InDesign scripts folder (usually: Scripts Panel). 3. Start InDesign, open the Scripts panel: Window > Utilities > Scripts (CS5), or Window > Automation > Scripts (CS3, CS4). Then double-click on BookBarcode...jsx. BookBarcode supports  InDesign CS3,  CS4 or CS5 (recommended) and works  on both  Mac and Win platforms. The  TRY version has some limitations: You  cannot change the style of the barcode  (Digits, Inner Bars) and the Dimensions  panel is disabled. Batch Processing  is limited to 5 barcodes. The Script  execution is delayed for 20 seconds. PRO Version TRY Version

Upload: dangdat

Post on 10-Jun-2018

225 views

Category:

Documents


0 download

TRANSCRIPT

1

BookBarcode howtosSa

ndbo

x© Indiscripts.com | Sept. 2010

GETTING STARTED1. DownloadBookBarcodefrom<indiscripts.com>.

[PROVersion] Retrievethepackagefromyourprivatelinkandsaveitonyourharddisk.[TRYVersion] Right-clickBookBarcodeTry.zipandchooseSaveTarget/LinkAs.

2. ExtractBookBarcodePro.jsx (or…Try.jsx)fromthezipfile, thenplacethefileintoyourInDesignscriptsfolder(usually:Scripts Panel).

3. StartInDesign,opentheScriptspanel:Window > Utilities > Scripts(CS5), orWindow > Automation > Scripts(CS3,CS4).Thendouble-clickonBookBarcode...jsx.

   BookBarcode supports InDesign CS3, CS4 or CS5 (recommended) and works on both Mac and Win platforms.

   The TRY version has some limitations: You cannot change the style of the barcode (Digits, Inner Bars) and the Dimensions panel is disabled. Batch Processing is limited to 5 barcodes. The Script execution is delayed for 20 seconds.

PRO Version TRY Version

2

BookBarcode howtosSa

ndbo

x© Indiscripts.com | Sept. 2010

EAN-13 / ISBN-13 VALIDATION1. EnterorpastethedigitsofthebarcodeintheEAN-13 / ISBN-13zone A .BookBarcodedynamically checkstheentereddata C D soyoucannotvalidateawrongnumber E .TheEAN-13checksum (13th digit)iscalculatedanddisplayedassoonaspossible B .

2. Thescriptautomaticallyrecognizesanyvalid ISBN-13—youdon’tneedtokeythehyphens F .Inthiscase, itpromptsthecorrespondingcountry G orlanguage H andpop-upstheISBNsegmentation I .

3. NotethattheCreate buttonisdisabledaslongasthecodeisinvalidorincomplete.

   A valid EAN-13 is not necessary a valid ISBN-13. Although BookBarcode allows you to create any EAN-13 barcode, it also indicates whether your code belongs to the “ISBN space”.

   By default, the script pre-fills the input field with the ISBN prefix that matches your InDesign locale —e. g. “978-3” for German users.

AB C

EF

G H I

D

3

BookBarcode howtosSa

ndbo

x© Indiscripts.com | Sept. 2010

ADJUSTING THE BARCODE STYLE1. TheDigitspanelcontrolstheappearanceofthedigitblock.ChoosefirsttheFontandthefigureSize.

Enable Vertical Stretchforcesthefigurestoscaleuptothemaximumavailableheight.

2. CheckQuiet Zone Indicatortoaddthe>symbolattherightsideofthebarcode.

3.  Inner Bars Lengthindicatestherelativesizeoftheinnerlines.

   BookBarcode offers a set of 7 digit fonts. To ensure ANSI OCR-B compliance, choose ‘Classic’.

   Your settings are automatically stored within each barcode you create, so you can easily edit/update the object later from its actual properties.

100% 92% 92%+ vertical stretch

Quiet Zone

90% 60%

Size:

4

BookBarcode howtosSa

ndbo

x© Indiscripts.com | Sept. 2010

ADJUSTING THE BARCODE DIMENSIONS1.  BookBarcode Pro allowsyoutoentertheDimensions—andtospecifythedesiredOrientation—ofthe

barcode,whichisusefulifyoucreatetheobjectfromscratch(i.e.without‘template’).

2. Keepinmindthatthebarcode’sWidthisdefinedconsideringtheorientationofthedigitblock:

   The Width and/or the Height of a barcode can vary from 26 to 8640 pt.

   The Dimensions fields support various measurement units: pt, mm, p, pc, in, etc.The values and units you enter are converted into the current ruler units.

Horizontal

WIDTH

WIDTH

WIDTH

WIDTH

Upwards DownwardsIncluding digits Excluding digits

50 50

25

5

BookBarcode howtosSa

ndbo

x© Indiscripts.com | Sept. 2010

USING A TEMPLATE1.  Topresetthedimensionsofabarcode,youcanuseanyInDesignframeasatemplate:

Createandselectarectangle A . RunBookBarcode B .NotethattheDimensionspanelreflectstherectangleWidth/Height C . Theoptionwhichislabelled“Remove the template”ischeckedbydefault D . EntertheEAN-13andclickCreate.Thenewbarcodetakestheplaceoftherectangle E .

2. Thescriptassumesthatthelongestsideoftheoriginalrectanglerepresentsthewidthofthebarcode.So,usingatemplateimplicitlypresetstheOrientationmode.

   A Text Frame can be usedas a template too.

   Once a barcode has been processed by BookBarcode, InDesign CS4 and CS5 users can reverse the whole operation using Edit > Undo BookBarcode.

A

B

C

C

D

E

6

BookBarcode howtosSa

ndbo

x© Indiscripts.com | Sept. 2010

RESIZING, EDITING, UPDATING A BARCODE1. Toresizeanexistingbarcode,simplyselecttheobjectandrescaleit A .Youmaysafelyuseanyofthe

InDesigntransformationtoolssinceBookBarcodeonlycreatesvector arts B .

2. Youcanalsochangethesizeofthebarcodethroughthescriptdialogtocountervailinopportunedeformationsand/orrestorethecorrectproportionsoftheobject.Thenselectthebarcode,runthescriptandclickUpdate C .

3. Toeditabarcode—changetheEAN,thefont,thestyle,etc.—usethesamemethod:selecttheobject,runthescriptandadjusttheparametersatyourconveniencebeforeclickingUpdate.

   BookBarcode supports rotated objects as rotated Spread Views (InDesign CS4/CS5), so you can edit a barcode whatever its apparent angle.

Original barcode

Transformation within InDesign

BookBarcode Update

A

B

C

7

BookBarcode howtosSa

ndbo

x© Indiscripts.com | Sept. 2010

SYNCING A BARCODE WITH AN “ISBN FRAME”1.  BookBarcode Proallowsyouto‘link’acustomtextframetoanyexistingbarcodeinordertosyncitwithan

ISBN-13 label.Theassociatedtextframewillbeupdatedeachtimeyoueditthebarcode: Createyourbarcodefirst,thensetupatextframetocontaintheISBNdata A . SelectandgroupthebarcodewiththeISBNframe(Object > Group) B . RunBookBarcodeandclickUpdate.ThescriptoutputstheISBN-13stringintheattachedframe C .

2. YoucanaddadditionaltextbeforeandaftertheISBNstring D .WhetheryouedittheEANcodelater,BookBarcodewillautomaticallyupdatetheISBNtoo.

   The first time you link a text frame to a barcode, BookBarcode adds the ISBN-13 at the end of the associated frame. However, you can preset the frame contents by using the keyword <isbn> as a placeholder.E. g.:  ISBN: <isbn>  $39.00.

ISBN frame

Group

Barcode

A B

C D

8

BookBarcode howtosSa

ndbo

x© Indiscripts.com | Sept. 2010

CUSTOMIZING THE ISBN FRAME1.  Asanexercise,let’screateabarcodegroupasshowninFigure A .Ourgoalistoproduceareusablelayout

forseveralbookcovers.WeneedaborderaroundtheblockandsomestatictextintheISBNframe. First,createthebarcodeatthedesiredsizewithBookBarcode B . Createatext frametocontainthewholelayoutandapplyablackborder(stroke) C . Formatthecontentsoftheframe—usingthe<isbn>placeholder—andadjusttheinsetspacing(Text 

Frame Optionsdialog) D .YoucannowgroupthebarcodewiththeISBNframe E .

2. Theresultinggroupisready-to-usewithBookBarcode F .

   Of course you can export an ISBN-Barcode group as an InDesign Snippet (.idms), or store it into a Library.

   A similar method can be used to prepare complex templates for Batch Processing (see Pages 9-10).

Publisher: Indiscripts.com PRICE

ISBN: 978-0-12-345678-6 $39.00

The model Create the barcode. Create the text frame and apply a black stroke.

Format the contents and adjust the Inset Spacing.

Group the frame and the barcode.

Publisher: Indiscripts.com PRICEISBN: 978-0-12-345678-6 $39.00

Select the group and run the script to update the ISBN.

A

B

DE

C

F

9

BookBarcode howtosSa

ndbo

x© Indiscripts.com | Sept. 2010

BATCH PROCESSING — THE BASICS1.  Batch Processingallowsyoutogenerateasetofbarcodes.Themethodconsistsofusingatext frameto

defineboththelocationandtheEAN-13ofeachbarcode.Beforeyoubegin,agoodpracticeistoworkonaseparate layertoeasilyhandleandtargetthetextframesthatthescriptwillconvertintobarcodes.

2. Seteachtargettothedesiredsize,andsimplyenteranEAN-13number—andnothingelse!—ineachtextframe.The13 digitsarerequired.

3. RunBookBarcodeandclick“BatchProcessing…”IntheBatch Processing dialog,chooseyourtargetLayerandselect‘EAN13’asContents Pattern.Finally,clickProceed.

   In BookBarcode Try, Batch Processing is limited to 5 barcodes.

   Make sure that you provide complete and valid EAN-13 numbers in the target text frames. Batch Processing ignores any target that contains a wrong code.

9780331363067

9780

3313

6306

7

9780969752813

9782432279377 9782

4322

7937

7

9780569948371

BookBarcode howtosSa

ndbo

x© Indiscripts.com | Sept. 2010

10BATCH PROCESSING — ADVANCED1.  TheBatch Processingdialoggivesyoutheabilitytousethreemorespecificmarkupformats:

<bkbc:EAN13 >,<bkbc>EAN13 </bkbc>,or<ean>EAN13 </ean>(whereEAN13referstothe13-digitsEAN).Onlytextframeswhosecontentsexactlymatchestheselectedpatternwillbetreated.

2. Batch ProcessingalsosupportstargetswhicharegroupedwithanadditionalISBNframe A .

3. AllbarcodesarestyledconsideringthecurrentDigitsandInner Barssettingsinthemainscriptdialog.

4. IfyourEAN-13numberscomefromadatabase,aneasywaytoprepareyourdocumentforBatchProcessingistousetheInDesignData Mergefeature B .

   Remember to backup your InDesign document before batch processing! This feature may consume a lot of CPU resources —as it scans the whole document and computes a large amount of pathpoints for each barcode.

Target

Group

ISBN Frame

Batch!

Batch!

Data Merge

A B

Publisher: Indiscripts.comISBN: 978-0-12-345678-6