Wednesday, May 26, 2021

Making your own album 39 - overview important codes

7     Programming codes

7.1     Abbreviations

PM = parameter
mm = millimeter
pt = point
FT = font

W/E/N/S : West East North South
DSQ ; double straight quotes

7.2     For the whole document

7.2.1     Fixed data

ALBUM_PAGES_SIZE (210.0 297.0)

2 pm (in mm) : page size
210.0/297.0 for A4 – 215.9 /279.4 for US Letter

ALBUM_PAGES_MARGINS (15.0 15.0 15.0 15.0 )

4 pm (in mm) margins for work area : W/E/N/S

ALBUM_PAGES_BORDER (0.5 0.1 0.0 1.0)

4 pm (in pt) frame : line 1/ line 2 / line 3 / distance in-between

ALBUM_PAGES_SPACING (5.0 5.0)

2 pm (in pt) space between letters / space between lines

ALBUM_PAGES_TITLE (TB 16 "title text")

2 pm (FT and size) + “title text”

7.2.2     Variations on default settings

ALBUM_DEFINE_FONT(PENGUIN "Penguin Attack" )

2 pm (own FT + exact FT name in your computer”)

ALBUM_PAGES_MARGINSE (12.0 20.0 15.0 15.0)

4 pm (in mm) margins for work area, in EVEN pages, if different from ODD pages (default) W/E/N/S

7.2.3     Header and footer full document

ALBUM_PAGES_NUMBER (HN 12 C 1 "Page " " of $PAGES$")

6 pm FT and size, / location / “page” “ “ of (total number of pages)”

ALBUM_PAGES_DATE (HN 12 RL YMD "-")

4 pm (FT and size / RL (location) / Year Month Date(format) “devider“)

7.3     Working with paragraphs

PAGE_TEXT_PARAGRAPH_START(TN 10 LEFT*)   *LEFT or CENTRE or RIGHT:
PAGE_TEXT_PARAGRAPH_END

Only FT and size, and aligning -  no DSQ needed within ‘paragraph’ -command
to be combined with columns,

7.4     Working with columns

PAGE_COLUMN_START (2.0)

PAGE_TEXT_PARAGRAPH_START(HB 10 CENTRE)
PAGE_TEXT_PARAGRAPH_END

PAGE_COLUMN_NEXT

PAGE_TEXT_PARAGRAPH_START(HB 10 CENTRE)
PAGE_TEXT_PARAGRAPH_END

PAGE_COLUMN_STOP

7.5     Optional settings for chapters

PAGE_START_GROUP_BEGIN
PAGE_START_GROUP_END

Between BEGIN and END : all what we want to see as fixed or dynamic parts.

7.5.1     Fixed chapters

PAGE_TEXT(HN 1 "" 6.0)

Makes the fixed image placed a certain distance from the border frame
4 pm (FT and size , “ “ for the blank (empty) text line, distance to next line

ROW_START_JS(HN 6 0.1)

Mandatory command to create working lines – 3 pm (FT and size, spacing)

STAMP_ADD_IMG(42 21 "stamp_images/flag_canada.png" "" "" "" NO_FRAME)

7 pm for the inserted image:

·         Height and width in mm

·         Location of the image on computer “folder/name + extention”

·         subtext left, middle and right (texts between DSQ “xx

·         choice between FRAME or NO_FRAME

PAGE_TEXT (HN 1 "" -22.0)

4 pm, FT and size / empty text “ ”/ negative spacing, so the text becomes next and not underneath the image

PAGE_TEXT_CENTRE(CPG 42 "Canada")

Entering text (next to image, thanks to the negative spacing)
3 pm, FT and size / “text” – mind the DSQ

7.5.2     Dynamic chapters (with the use of columns)

PAGE_TEXT_CENTRE (HI 42 "France" 8.0)

PAGE_TEXT_CENTRE (HN 13 $$1 1.5)  * settings reference $$1
PAGE_TEXT_CENTRE (HN 13 "Definitive Series" 1.5)

PAGE_TEXT_CENTRE (HN 13 $$2 7.0)
* settings reference $$2
PAGE_TEXT_CENTRE (HI 10 $$3 5.0) * settings reference $$3
PAGE_TEXT_CENTRE (HN 1 "" 10.0)

PAGE_START_GROUP_BEGIN

PAGE_COLUMN_START

PAGE_TEXT(HN 1 "" 6.0)
ROW_START_JS(HN 6 0.1)

STAMP_ADD_IMG (
$$4 $$5 $$6 "" "" "" NO_FRAME)
* settings reference $$4, $$5, $$6
PAGE_COLUMN_NEXT

PAGE_TEXT(HN 1 "" -22.0)

PAGE_TEXT_CENTRE(CPG 42 "Canada")

PAGE_TEXT(HN 1 "" 12.0)

PAGE_COLUMN_STOP

PAGE_START_GROUP_END

Chapter  1 : PAGE_START ("replacement for $$1" "repl $$2" "repl $$3" 37.0($$4) 45.0 ($$5) "stamp_images/Sage.png" ($$6)

Chapter 2 : PAGE_START ("Merson Liberty and Peace" "1900 - 1927" "Designer - Nicolas Luc-Olivier Merson" 80.0 45.0 "stamp_images/Merson.png")

Up to $$9 (last 3 reserved for the image)

programming in AlbumEasy 4.2.1

7.6     For pages (mandatory command !)

PAGE_START

0 pm – needed to start a (new) page
PAGE_TEXT
(HN 16 "free text")
PAGE_TEXT_CENTRE (TB 12 "free text")

7.7     Using fonts

For the whole album
ALBUM_DEFINE_FONT
(DJ "DejaVu Sans")

For use in text parts
PAGE_TEXT

PAGE_TEXT_CENTRE
(XX 99 xxxx”)

7.7.1     Some fonts used in the tutorial

DJ : DejaVu Sans

HN : Helvetica (Normal)
HB : Helvetica (Bold)

TN : Times New Roman (Normal)

TB : Times New Roman (Bold)

CPG : CopperPlateGothic

PENGUIN : Penguin Attack

7.7.2     Using optional fonts

ALBUM_DEFINE_FONT (DJV "DejaVu Sans") – can work with Latin, Cyrillic and Hebrew

ALBUM_DEFINE_FONT(UN_BATANG "Un Batang") – for Chinese, Japanese, Korean

After installing fantasy fonts to your computer:

add the font(s) you like for your album to the album settings - with the chosen reference:
ALBUM_DEFINE_FONT(DALM "Dalmatian")
TIP :
Default fonts : 2  letters (HI, TB, …)
Optional fonts 3 letters (DJV, CPG, …)
Fantasy fonts : 4 letters (DALM, COLA, ….)

7.8     Using fixed colours

COLOUR_ALBUM_BORDER(colour name or  $ hexa-code)
COLOUR_PAGE_TEXT(colour name or  $ hexa-code)

7.9     Spacing texts

7.9.1     Within a text

TEXT_CHAR_SPACING (0.5)

1 PM, the spacing between letters (! DSQ)
PAGE_TEXT_CENTRE
(HN 16 "text")

7.9.2     Within paragraphs

PAGE_TEXT_PARAGRAPH_START(TN 10 LEFT)

Can be “left”, “right” of “centre” (no DSQ)

7.10  Boxes

7.10.1  Shapes

STAMP_ADD (Width and height "ABC" "D" "E" "F")

STAMP_ADD_DIAMOND (Width and height "ABC" "D" "E" "F")
STAMP_ADD_OVAL
(Width and height "ABC" "D" "E" "F")
STAMP_ADD_TRIANGLE
(Width and height "ABC" "D" "E" "F" [apex]) [apex] for trapezoid
STAMP_ADD_TRIANGLE_INV
(Width and height "ABC" "D" "E" "F" [apex])

[apex] for inverted trapezoids
STAMP_ADD_HEXAGON
(width SU/CU "ABC" "D" "E" "F")
STAMP_ADD_OCTAGON
(width SU/CU "ABC" "D" "E" "F")

7.10.2   Box frames

STAMP_BORDER_STYLE (Style)

STAMP_INNER_BORDER_STYLE (Style)

SOLID - DOTTED - DOT_DASH - DASHED - BLANK (no border)

CORNER ** (TL / TR / BL / BR)

7.10.3  Box filling

STAMP_ADD_IMG (Width and height "naam.exentie" "A" "B" "C")
ALBUM_STAMP_NEW_IMG_SETTING
(Width and height false / true) COLOUR_STAMP_BORDER (colour)

COLOUR_STAMP_INNER_BORDER (colour)
COLOUR_STAMP_BACKGROUND
(colour)
COLOUR_STAMP_HEADING
(colour)
COLOUR_STAMP_TEXT
(colour)

to be continued... 

previous part : https://rainbowstampsandcoins.blogspot.com/2021/05/making-your-own-album-38.html
next part : https://rainbowstampsandcoins.blogspot.com/2021/05/making-your-own-album-40-final-solving.html

No comments: