2007년 4월 19일 목요일

Address Book CallID에 스킨 적용방법

Address Book CallID에 스킨(skin)을 설치하기 위해서는
1. Address Book이 설치된 홀더의 CIDSkin홀더를 만드세요.
2. 다음 거기에 skin압축화일을 풀었을때 생기는 skin.ini파일과 관련되는 BMP파일을 복사하십시요.
3. 마지막으로 변경을 적용시키기 위해 CallerID를 재기동(restart)하면 됩니다.

2007년 4월 17일 화요일

Inesoft Address Book Skin 사용해보기

최근 Inesoft Address Book v1.67 beta판에서는 skin기능을 지원하였습니다.
CIDSkinPC.exe(344kb)파일로 PC에서 skin파일을 시험해 볼수 있습니다.

Inesoft Address Book의 skin에 대한 정보를 제공하는 URL은 다음과 같습니다.

skin.ini파일에 대한 정보 : http://inesoft.blogspot.com
sample skin파일들에 대한 게시판(russian) http://4pda.ru/forum/index.php?showtopic=29997&st=0



파일: inesoft_cid_skin_alecmos_qvga.zip(475kB)




파일: Earth.rar(67kB)




파일: Lopess_call_skin.rar(94kB)




파일: CIDKoTSmile1.rar (88kb)



파일: CIDKoTSmile2.rar(156kb)



파일: CIDKoTSmile3.rar(153kb)

Inesoft Address Book 스킨(skin)에 대하여(skin.ini 파일에 대한 설명)

Inesoft CallerID skin.ini 파일에 대한 설명

-------
Sections:
-------
만일 일부 설정값들을 설정하지 않으면 프로그람은 표준(default)값을 사용할것이다.

1. [Background Image]
배경화상의 속성들
속성값들:
type = 아래내용을 참고
file = file.ext - BMP 파일의 이름 (표준값: bgr.bmp)
posP = x,y - 세운형(portrait mode)의 왼쪽웃구석좌표값 (표준값: 0,0)
sizeP = w,h - 세운형식에서 높이와 너비 (만일 설정하지 않거나 0,0을 설정하면 프로그람은 화상의 크기를 리용한다.)
posL = x,y - 누운형(landscape mode)의 왼쪽웃구석좌표값 ( 만일 설정하지 않으면 프로그람은 세운형설정값을 리용한다. )
sizeL = w,h - 누운형에서 높이와 너비 (만일 설정하지 않으면 프로그람은 세운형설정값을 리용한다. )
posQ = x,y - 정방형(square mode)의 왼쪽웃구석좌표값 (만일 설정하지 않으면 프로그람은 누운형설정값을 리용한다.)
sizeQ = w,h - 정방형에서 높이와 너비 (만일 설정하지 않으면 프로그람은 누운형설정값을 리용한다.)

2.[Background Color]
만일 배경화상을 설정하지 않거나 배경전체지역을 차지하지 못하는 경우 리용하게 되는 배경색

속성값들:
color = R,G,B - RGB형식의 색 (255,255,255 - 힌색; 0,0,0 - 검은색 등.)

3.[Photo Rect]
교신자화상(contact picture)위치 설정
속성값들:
posP = x,y - 세운형(portrait mode)의 왼쪽웃구석좌표값 (표준값: 0,0)
sizeP = w,h - 세운형식에서 높이와 너비 (만일 설정하지 않거나 0,0을 설정하면 프로그람은 화상의 크기를 리용한다.)
posL = x,y - 누운형(landscape mode)의 왼쪽웃구석좌표값 ( 만일 설정하지 않으면 프로그람은 세운형설정값을 리용한다. )
sizeL = w,h - 누운형에서 높이와 너비 (만일 설정하지 않으면 프로그람은 세운형설정값을 리용한다. )
posQ = x,y - 정방형(square mode)의 왼쪽웃구석좌표값 (만일 설정하지 않으면 프로그람은 누운형설정값을 리용한다.)
sizeQ = w,h - 정방형에서 높이와 너비 (만일 설정하지 않으면 프로그람은 누운형설정값을 리용한다.)

4. [Button]
단추들 설정, 한개 혹은 여러개의 부분(section)이 파일안에 존재 할수 있다.
속성값들:
type = 아래를 보라
file_up = file.ext - 단추의 BMP파일이름
file_down = file.ext - 눌린 상태의 단추의 BMP파일이름
id = value - 단추식별값(identifier), 다음의 값들을 리용한다.: 1 - 풀색(green)단추, 2 - 붉은색(red)단추, 3 - 창문닫기(close window), 4 -

종끄기스위치(switch the ring off)
posP = x,y - 세운형(portrait mode)의 왼쪽웃구석좌표값 (표준값: 0,0)
sizeP = w,h - 세운형식에서 높이와 너비 (만일 설정하지 않거나 0,0을 설정하면 프로그람은 화상의 크기를 리용한다.)
posL = x,y - 누운형(landscape mode)의 왼쪽웃구석좌표값 ( 만일 설정하지 않으면 프로그람은 세운형설정값을 리용한다. )
sizeL = w,h - 누운형에서 높이와 너비 (만일 설정하지 않으면 프로그람은 세운형설정값을 리용한다. )
posQ = x,y - 정방형(square mode)의 왼쪽웃구석좌표값 (만일 설정하지 않으면 프로그람은 누운형설정값을 리용한다.)
sizeQ = w,h - 정방형에서 높이와 너비 (만일 설정하지 않으면 프로그람은 누운형설정값을 리용한다.)

5. [Image]
그림속성 설정, 한개 혹은 여러개의 부분(section)이 파일안에 존재 할수 있다.
속성값들:
file = file.ext - BMP파일이름
type = 아래를 보라
border = 1/0, 1 - 그림테두리(border round)그리기, 0 - 그리지 않기 (표준값: 0), see section [Border Image] too
posP = x,y - 세운형(portrait mode)의 왼쪽웃구석좌표값 (표준값: 0,0)
sizeP = w,h - 세운형식에서 높이와 너비 (만일 설정하지 않거나 0,0을 설정하면 프로그람은 화상의 크기를 리용한다.)
posL = x,y - 누운형(landscape mode)의 왼쪽웃구석좌표값 ( 만일 설정하지 않으면 프로그람은 세운형설정값을 리용한다. )
sizeL = w,h - 누운형에서 높이와 너비 (만일 설정하지 않으면 프로그람은 세운형설정값을 리용한다. )
posQ = x,y - 정방형(square mode)의 왼쪽웃구석좌표값 (만일 설정하지 않으면 프로그람은 누운형설정값을 리용한다.)
sizeQ = w,h - 정방형에서 높이와 너비 (만일 설정하지 않으면 프로그람은 누운형설정값을 리용한다.)

6. [Label]
문자정보(text information)부분 설정, 한개 혹은 여러개의 부분(section)이 파일안에 존재 할수 있다.
속성값들:
type = 아래를 보라
hor_align = x - 수평배치(horizontal alignment), 다음값들을 리용: 0 - 왼쪽, 1 - 오른쪽, 2 - 중심 (표준값: 0)
vert_align = x - 수직배치(vertical alignment), 다음값들을 리용: 0 - 우에(up), 1 - 아래(downside), 2 - 가운데(center) (표준값: 0)
fields = value1,value2,...valueN - 령역(field)들을 설정, 매령역은 다음 값들의 한개를 리용:
time - 현재 시간
name - 교신자(contact) 이름
company - 회사(company)이름
job - 직업
phoneonly - 전화번호(phone number)
phonetype - 전화형식(phone type)
phone - 전화번호 + 전화형식
category - 교신자부류(contact category)
nick - 가명(nick name)
령역들의 수는 제한이 없으며 매 마당은 새행으로 시작한다.
font1...N = height, name, bold,italic - N령역의 서체(font)설정,
여기서: height - 서체의 크기, 이름 - 서체이름 , bold - 1 혹은 0 (굵은체 혹은 보통체), italic - 1 혹은 0 (빗선 혹은 보통)
만일 어떤령역의 font를 설정하지 않은면 프로그람은 표준값을 설정한다.(9,Tahoma,0,0)
color1...N = R,G,B - N령역에서 RGB형식의 글자색값 (255,255,255 - 하얀색; 0,0,0 - 검은색등.)
만일 어떤령역의 글자색을 지정하지 않으면 프로그람은 검은색을 리용한다.
posP = x,y - 세운형(portrait mode)의 왼쪽웃구석좌표값 (만일 설정하지 않면 프로그람은 세운형에서 령역을 보여주지 않는다.)
sizeP = w,h - 세운형식에서 높이와 너비 (만일 설정하지 않면 프로그람은 세운형에서 령역을 보여주지 않는다.)
posL = x,y - 누운형(landscape mode)의 왼쪽웃구석좌표값 ( 만일 설정하지 않면 프로그람은 누운형에서 령역을 보여주지 않는다. )
sizeL = w,h - 누운형에서 높이와 너비 (만일 설정하지 않면 프로그람은 누운형에서 령역을 보여주지 않는다. )
posQ = x,y - 정방형(square mode)의 왼쪽웃구석좌표값 (만일 설정하지 않면 프로그람은 정방형에서 령역을 보여주지 않는다.)
sizeQ = w,h - 정방형에서 높이와 너비 (만일 설정하지 않면 프로그람은 정방형에서 령역을 보여주지 않는다.)

7. [Border Image]
border속성값이 1인 화상의 테두리를 그리기 위한 BMP화상설정
속성값들:
file = file.ext - BMP파일이름
프로그람은 그림을 9개부분으로 나누기위해 너비와 높이를 각각 3등분하여진다.
123
456
789
1,3,9,7부분은 테두리의 구석(corner)들을 그리는데 리용된다.
2,4,6,8부분은 테두리의 선(line)들을 그리는데 리용된다.

----------------
Attribute type:
----------------
[Background Image],[Button],[Image],[Label] 부분(section)들에서 사용된다.
부분(section)이 리용되는 관계(using rule)를 설정
type = 수값:
1 - 알지못할 호출자(caller)(전화번호 없음)
2 - 비밀(private)의 호출자 (전화번호 없음)
4 - 전화번호를 검출(detect)하였으나 련계인목록에 없음
8 - 전화번호를 검출하였으나 사진이 없는 련계인
16 - 전화번호를 검출하였으며 사진이 있음
255 - 모든 방식(mode)에서 리용
부분을 여러 방식에 리용서 리용하게 하기 위해서는 값들의 합을 리용할수 있다.
실례로 28( 4 + 8 + 16 )값은 전화번호를 검출하였을때의 모든 방식값
설정하지 않으면 프로그람은 표준값: 255을 리용할것이다.

-----------
Notes:
-----------
1. 당신의 모바일장치(mobile device)에 스킨(skin)을 설치하기 위해서는 Address Book가 설치된 홀더의 CIDSkin홀더를 만들고 skin.ini파일과 관

련되는 모든 BMP파일을 복사하시오. 변경을 적용시키기 위해서 CallerID를 재기동(restart)하시오.
2. BMP파일의 크기를 줄이기 위해 256색으로 보관하시오.
3.
3. 다른 방식(실례로 세운형과 누운형을 위해)에서 호출정보를 표시하기 위해서는 두 세개의 [Label]부분(section)을 만들고 sizeP/sizeL 을 리용

한다.
실례로:
CallerID를 다음의 보기 형식을 만들기 위해서
1. 세운형에서 name\company\phone number이 그림아래부분에 놓이고
2. 누운형에서 name\company는 그림의 오른쪽부분에 놓이고 phone number는 그림의 아래부분에 놓이게 한다.
아래의 내용을 파일에 포함한다.:
[Label]
fields = name,company,phone
posP = 5,190
sizeP = 230,75

sizeL = 0,0

[Label]
fields = name,company
sizeP = 0,0
posL = 168,30
sizeL = 146,152

[Label]
fields = phone
posP = 0,0
posL = 5,190
sizeL = 230,75

4. 다른 방식으로 호출정보의 표현을 호출의 형식에 따라 "type"속성을 리용한다.
실례로:
만일 걸려온 전화의 련계인 그림을 찾아낸 경우에 련계인의 상세한 정보는 검은색의 작은 글자로 그림아래에 놓이며 그렇지 않은 경우에는 큰 붉

은색의 글자가 중심에 놓이자면:

[Label]
type = 16
fields = name,company,phone
hor_align = 2
vert_align = 2
posP = 5,190
sizeP = 230,75

[Label]
type = 15
fields = name,company,phone
hor_align = 2
vert_align = 2
posP = 0,0
sizeP = 240,320
font1 = 20,Tahoma,1,0
color1 = 255,0,0
font2 = 20,Tahoma,1,0
color2 = 255,0,0
font3 = 20,Tahoma,1,0
color3 = 255,0,0

5. CIDSkinPC.exe를 리용하여 PC에서 skin파일을 시험해 볼수 있습니다.

Inesoft Address Book 스킨(skin)에 대하여(영문: skin.ini format description.)

Inesoft CallerID skin.ini format description.

-------
Sections:
-------
No section is required, if some parameter is not set, the program will use a default value.

1. [Background Image]
Background image properties
attributes:
type = see below
file = file.ext - BMP file name (default value: bgr.bmp)
posP = x,y - left upper corner coordinates in portrait mode (default value: 0,0)
sizeP = w,h - width and height in portrait mode (if not or set 0,0 the program will use a picture size)
posL = x,y - left upper corner coordinates in landscape mode (if not set, the program will use the portrait settings)
sizeL = w,h - width and height in landscape mode (if not set, the program will use the portrait settings)
posQ = x,y - left upper corner coordinates for square screen (if not set, the program will use the landscape settings)
sizeQ = w,h - width and height for square screen (if not set, the program will use the landscape settings)

2.[Background Color]
Background color settings if a background picture is not set or does not cover the whole area.
attributes:
color = R,G,B - color in RGB format (255,255,255 - white; 0,0,0 - black etc.)

3.[Photo Rect]
Sets the contact picture position
attributes:
posP = x,y - left upper corner coordinates in portrait mode (if not set, the program will not show a picture in portrait mode)
sizeP = w,h - width and height in portrait mode (if not set, the program will not show a picture in portrait mode)
posL = x,y - left upper corner coordinates in landscape mode (if not set, the program will use the portrait settings)
sizeL = w,h - width and height in landscape mode (if not set, the program will use the portrait settings)
posQ = x,y - left upper corner coordinates for square screen (if not set, the program will use the landscape settings)
sizeQ = w,h - width and height for square screen (if not set, the program will use the landscape settings)

4. [Button]
Sets buttons, can have more than one section
attributes:
type = see below
file_up = file.ext - BMP file name for released button
file_down = file.ext - BMP file name for pressed button
id = value - button identifier, can have these values: 1 - the green button, 2 - the red button, 3 - close window, 4 - switch the ring off
posP = x,y - left upper corner coordinates in portrait mode (if not set, the program will not show a picture in portrait mode)
sizeP = w,h - width and height in portrait mode (if not set, the program will not show a picture in portrait mode)
posL = x,y - left upper corner coordinates in landscape mode (if not set, the program will use the portrait settings)
sizeL = w,h - width and height in landscape mode (if not set, the program will use the portrait settings)
posQ = x,y - left upper corner coordinates for square screen (if not set, the program will use the landscape settings)
sizeQ = w,h - width and height for square screen (if not set, the program will use the landscape settings)

5. [Image]
Sets a picutre, can have more than one section
attributes:
file = file.ext - BMP file name
type = see below
border = 1/0, 1 - draw a border round the picture, 0 - do not draw (default value: 0), see section [Border Image] too
posP = x,y - left upper corner coordinates in portrait mode (default value: 0,0)
sizeP = w,h - width and height in portrait mode (if not set or set 0,0 the program will use the picture size)
posL = x,y - left upper corner coordinates in landscape mode (if not set, the program will use the portrait settings)
sizeL = w,h - width and height in landscape mode (if not set, the program will use the portrait settings)
posQ = x,y - left upper corner coordinates for square screen (if not set, the program will use the landscape settings)
sizeQ = w,h - width and height for square screen (if not set, the program will use the landscape settings)

6. [Label]
Sets the block of text information can have more than one section
attributes:
type = see below
hor_align = x - horizontal alignment, can have these values: 0 - to the left, 1 - to the right, 2 - center (default value: 0)
vert_align = x - vertical alignment, can have these values: 0 - upside, 1 - downside, 2 - center (default value: 0)
fields = value1,value2,...valueN - a field set, each field can have one of these values:
time - current time
name - contact name
company - company name
job - job
phoneonly - phone number
phonetype - phone type
phone - phone number + phone type
category - contact category
nick - nick name
Number of fields is not limited, each field starts a new line
font1...N = height,name,bold,italic - font settings for N field, where: height - font size in points, name - font name, bold - 1 or 0 (bold or usual), italic - 1 or 0 (italic or usual)
if a font is not set for some fields, the program will use the default font (9,Tahoma,0,0)
color1...N = R,G,B - a color for N field in RGB format (255,255,255 - white; 0,0,0 - black etc.)
if a color for some field is not set, the program will use black color
posP = x,y - left upper corner coordinates in portrait mode (if not set, the program will not show a block in portrait mode)
sizeP = w,h - width and height in portrait mode (if not set, the program will not show a block in portrait mode)
posL = x,y - left upper corner coordinates in landscape mode (if not set, the program will not show a block in landscape mode)
sizeL = w,h - width and height in landscape mode (if not set, the program will not show a block in landscape mode)
posQ = x,y - left upper corner coordinates for square screen (if not set, the program will not show a block on a square screen)
sizeQ = w,h - width and height for square screen (if not set, the program will not show a block on a square screen)

7. [Border Image]
Sets a BMP picture for the contact photo boarder, it the 'border" attribute is 1
attributes:
file = file.ext - BMP file name
width and height must be divisible by 3 because the program divides the file to 9 pieces:
123
456
789
pieces 1,3,9,7 are used to draw boarder corners
pieces 2,4,6,8 are used to draw boarder lines

----------------
Attribute type:
----------------
Used in sections [Background Image],[Button],[Image],[Label]
Sets section using rules
type = number value:
1 - unknown caller (no phone number)
2 - private caller (no phone number)
4 - phone number detected, not present in contacts
8 - phone number detected, found contact without a picture
16 - phone number detected, found contact with a picture
255 - use in all modes
to set up more than one mode, sum its values, for example: 28 (4 + 8 + 16) - for all modes when a phone number detected
when not set, the program will use default value: 255

-----------
Notes:
-----------
1. To install a skin on your mobile device, create CIDSkin folder in Address Book installation folder, and copy skin.ini and all BMP pictures to. Restart CallerID the changes to take effect;
2. To reduce a BMP file size, save it as 256 Color;
3. Create a few sections [Label] to group a call information in different ways (for example for portrait and landscape modes) and use sizeP/sizeL
Example:
To make the CallerID to show:
1. name\company\phone number block under the picture in portrait mode
2. name\company block to the right of the picture and phone number block under the picture in landscape mode
create these sections:
[Label]
fields = name,company,phone
posP = 5,190
sizeP = 230,75

sizeL = 0,0

[Label]
fields = name,company
sizeP = 0,0
posL = 168,30
sizeL = 146,152

[Label]
fields = phone
posP = 0,0
posL = 5,190
sizeL = 230,75

4. To present the call info in different way, depending on call type, use the "type" attribute.
Example:
If on incoming call a contact with picture was found, the contact details font will be small and black under the picture, otherwise the font will be large, red and centred:

[Label]
type = 16
fields = name,company,phone
hor_align = 2
vert_align = 2
posP = 5,190
sizeP = 230,75

[Label]
type = 15
fields = name,company,phone
hor_align = 2
vert_align = 2
posP = 0,0
sizeP = 240,320
font1 = 20,Tahoma,1,0
color1 = 255,0,0
font2 = 20,Tahoma,1,0
color2 = 255,0,0
font3 = 20,Tahoma,1,0
color3 = 255,0,0

5. Use the CIDSkinPC.exe file to test your skin on a PC computer.