.\" ~jhs/public_html/src/bsd/jhs/bin/public/phone/phone.1
.TH PHONE P "Manual V1.19 for Program V1.17" "Julian H. Stacey" "Julian H. Stacey, http://www.berklix.com"
.UC 4
.\"
.\" To be added new field definition to take eg:
.\" GnuPG-Schluessel EG: DA4A 1116
.\" Fingerabdruck EG: C17B 4E35 5CF2 C802 2295 C2FF 87D6 A0DD DA4A 1116
.\"
.SH NAME
phone \- Create a phone list from an address book
.SH SYNTAX
.B phone
[-+]
[-,]
[-1]
[-?]
[-C]
[-I international_prefix]
[-L]
[-N national_prefix]
[-S]
[-c country_number]
[-g]
[-G 0]
[-G 1]
[-i]
[-l]
[-m]
[-n]
[-p phone_records]
[-s sim_records]
[-t town_number]
[-V] [off]
[-b contacts_per_vcf_book]
[-w name_width]
[-z]
-- or File[s]
.SH DESCRIPTION
Converts data in address book format,
to column format (number then name), of use to
call lookup programs such as:
.in +2
.ti -2
-
.I Estic
&
.I ~/public_html/bin/.sh/telno_router
}
(for /etc/pbx/aliases);
.ti -2
-
.I Isdnd (8)
}
(for /etc/isdn/isdntel.alias);
.ti -2
-
.I /usr/ports/comms/gnokii
.ti -2
-
VCF Vcard version:2.1
for
{
Android phone book
.ti -2
-
FRITZ!App Fon to export to XML
.br
(No native export direct to XML yet)
.in -2
.SH OPTIONS
.PP
All parameters may be in any order relative to each other.
.br
All parameters must precede all file names.
.br
Parameter default values are shown in brackets.
.TP
.B \-- [off]
.br
Pipe usage (off by default).
See Output section.
.TP
.B \-+
.br
This option has no effect unless "-g" is also specified.
.br
Normally a
.I gnokii
mobile(*) phone list has all entries put in it, that do not contain a
"ie:-" record. This option changes that default, to instead
exclude all entries lacking an "ie:+".
(Useful if you often add people to you address book,
& forget to add "ie:-" fields.
Without this option, your previously full
.I gnokii
table would overflow.
.TP
.B \-,
.br
Convert commas in names to Ampersand.
As if commas are left in names,
.I xgnokii
then fails
to to do a text to number conversion when parsing a comma separated
list of text names of multiple people to send a a single common message to.
If
.I phone
encounters a comma, it warns but does not change unless you
turn this option on.
(Some people like commas in names on mobiles(*), & do not use
.I gnokii
to send SMSs so they don't need to avoid commas).
.TP
.B \-1
.br
Output just 1 number (the shortest),
even if all of local, national, & international are available
.TP
.B \-?
.br
Shows allowed syntax. (Remember to delimit the '?' from the shell, (probably with '\\\\' so the program sees the '?' it).
.TP
.B \-C [off]
.br
Capitalise whole names. Useful for mobile(*) phones that have small
screens , bad back lighting & stupid `highlighting` done by by
Reducing the contrast level on the selected phone number, as seen
on Sony CMD-J70 & Sony PTX-520.
.TP
.B \-I [00]
.br
Specify an alternate International prefix code other than 00. (EG
in Germany one dials 00 to exit Germany followed by 44 to get to
UK, in UK one (used to) dial 010 to exit UK followed by 49 to get
to Germany).
.TP
.B \-L [off]
.br
Stronger form of `-l': also restricts names to <= 16 chars.
.TP
.B \-N [0]
.br
Specify an alternate National prefix code other than 0. (EG in
Germany & England one dials '0' to get out of town onto the national
trunk routes).
.TP
.B \-S
.br
Sort mode.
Currently just a dummy.
.TP
.B \-c [49]
.br
Specify an alternate National Country code other than 49 for Germany.
.TP
.B \-g [off]
.br
Produce a list with 5 columns, {names ; numbers ; Sim / Phone Selector ; Record Number }, for
looking up outgoing calls on mobile(*) phone, for use with the
.I gnokii
&
.I xgnokii
package available in FreeBSD's
/usr/ports/comms/gnokii/ .
As mobiles(*) do not use local town numbers, & need either
national or international numbers:
.in +2
.ti -2
- If you either {turn off both national & international} or {leave
both national & international on} then you will get the full
international numbers, (equivalent of `-n' and no `-i'). You can
achieve national numbers by using `-i' and no `-n'.)
.\" Options could be added to
.\" exclude all phone numbers by default. Optional over-ride by field [ie].
.\" .br
.\" Options could be added to start in phone & overflow to SIM if necessary.
.ti -2
.ft B
- (*) Nomenclature:\fR `Cell phone', `Mobile' & `Handy':
.br
What Americans call a `Cell phone', British call a `Mobile phone'
or `Mobile', & Germans call a `Handy' (presumably because they
mis-understood someone say in English "That's handy" (short for
"That's handy to have/use", & understood it as "That is a `Handy'"
(similar mistake to when Italian `Lago Caldo' (hot lake) got
translated to German `Kalterer-See' (cold lake!)) ).
.in -2 \"}
.TP
.B \-G 0 or 1
.br
This option is only needed to create
data to
later be written by
.I gnokii
running on a different version of the operating system
than
.I phone
is now running on.
(eg where a newer host creates data & an older host
connected to the mobile(*) later writes it to the phone).
.br
.B -G
includes the function of as
.B -g
above;
.br
.B -G
must have one of 2 mandatory values: 0 or 1:
.in +2
.ti -2
-
.B G 0
Forces a
.I gnokii
3rd field type of "A" or "B" (to specify storing in SIM or phone memory). (As used by
.I gnokii
-6.4 (eg on FreeBSD-4.11).
.ti -2
-
.B G 1
Forces a
.I gnokii
3rd field type of "SM" or "ME" (to specify storing in SIM or phone memory). (As used by
.I gnokii
-6.14 (eg on FreeBSD-6.2).
.in -2
(If you do not specify
.B \-G 0 or 1
then
.B phone
assumes by default that you will later run
.I gnokii
on same OS release level
as
.B phone
is currently running on.)
.br
Observation: When reading with FreeBSD-6.2 +
.I gnokii
-6.14,
a SIM in a Nokia 6110, previously written with FreeBSD-4.11 +
.I gnokii
-6.4:
After clicking "Contacts"
window displaying "Reading caller group names"
took 3.5 minutes to finish !
Then clicking "Read From Phone" the 100 entries came up quickly,
but with all marked as "No Group".
.TP
.B \-i
.br
Turn off "full international number". (ie no 004989123456 & no +4989123456)
.TP
.B \-l [off]
.br
Produces a list with 2 columns, numbers then names, for
look up of received calls, for use with
FreeBSD's
.I isdnd (8)
Isdn4Bsd package (integrated in base src/ tree),
also for use by the
.I Estic
PBX (Private Branch Exchange) / TK-Anlage package, available in FreeBSD's
/usr/ports/misc/estic/ .
.TP
.B \-m
.br
Turn off "within-same-town" variant of number, if within your own town"
(ie no 123456).
.br
If you use -g, most in-town numbers are discarded even without using -m,
but a few emergency & mobile(*) service numbers are allowed though EG
"112"
"2000"
"2424"
"2522"
"2526"
"2555"
"3311"
These too are prevented if you use -m.
.TP
.B \-n
.br
Turn off "within-same-nation national variant of number, if within
your own country" national variant of numbers. (ie no 089123456).
.TP
.B \-p phone_records
.br
Specify number of records in phone memory, if not default [50].
NOKIA_5110:0, NOKIA_6110:50, NOKIA_6210:500, SONY_CMD_J70:500, SONY_PTX_520:500.
.TP
.B \-s sim_records
.br
Specify number of records in sim card memory, if not default [100].
I've observed all these different sizes (solely on SIM card, not
confusing this with capacity on phone):
.in +2
100: T-Mobil(Deutsche Telekom) +49 175 \" 1.....8 jhs@personal,oldest SIM)
.br
100: T-Mobil(Deutsche Telekom) +49 160 \" 9......7 mk@ 2nd oldest SIM
.br
199: T-Mobile(UK) +44 7951 \" jhs@ 9....8 expired
.\" Seems strange it's not 200, but
.I xgnokii
says 199
.br
230: T-Mobil(Deutsche Telekom) +49 160 \" 6.....1 \" jhs@ work, joint newest
.br
230: T-Mobil(Deutsche Telekom) +49 160 \" 6.....8 \" jhs@ SMS on computer, joint newest
.br
230: T-Mobil(Deutsche Telekom) Debitel +49 171 4.....0 \" rk
.in -2
.TP
.B \-t [89]
.br
Specify an alternate City/Town code other than 89 for Munich.
.TP
.B \-V [off]
Output VCF vCard output VERSION:2.1 (Fuctionality added 2018-02)
Omits records with no name or no numbers.
Converts most fields to begin in upper case (not email addresses or comments).
.br
There are varying max limits:
.in +2
.ti -2
- Size Of A Field in A Contact
.in +2
.ti -2
-
https://support.google.com/contacts/answer/148779?hl=en
.br
1,024 characters in a contact field (except "Notes")
.in -2
.ti -2
- Size Of A Contact in A Phone Book
.in +2
.ti -2
-
https://support.google.com/contacts/answer/148779?hl=en
.br
128 KB per contact
.in -2
.ti -2
- Number Of Phone Books:
.in +2
.ti -2
-
https://assets.avm.de/files/docs/fritzbox/fritzbox-7490/fritzbox-7490_man_en_GB.pdf
.br
Page 114 Section 16.1 :
"You can set up a separate telephone book for each FRITZ!Fon."
.ti -2
- Ref
https://support.google.com/contacts/answer/148779
.br
"You can set up multiple telephone books in the FRITZ!Box and then
use a separate one for each of your FRITZ!Fons"
.in -2
.TP
.B \-b contacts_per_vcf_book [0]
.br
Maximum contacts per vcf book (0 = unlimited).
Output is truncated at number of records specified, & an exit value of -1 is returned.
.br
Maybe JJLATER I might eject a ^L = FF = form feed, & reset counter, & leave it to a human to manual split at FF occurences.
.in +2
.ti -2
- Number Of Contacts:
.in +2
.ti -2
- The Android Contact app (accesed via Phone App)
accepts my .vcf file with 2131 contacts.
.\" grep BEGIN Contacts.vcf | wc -l
.ti -2
-
https://avm.de/service/fritzbox/fritzbox-7490/wissensdatenbank/publication/show/1353_Smartphone-Kontakte-in-ein-Telefonbuch-der-FRITZ-Box-uebertragen/
.br
"Die Kontakte-App darf maximal 300 Einträge enthalten."
.ti -2
- Ref h
ttps://support.google.com/contacts/answer/148779
.br
"The telephone book may contain up to 1000 entries."
.ti -2
- h
ttps://support.google.com/contacts/answer/148779?hl=en
.br
25,000 contacts (or 20 MB, photos not included).
.in -2
.TP
.B \-w name_width
.br
Specify an alternate name width, if not default [14].
.\" (Word "length"is avoided, to reserve it for whether eg SIM Card
.\" of length 100 or 230 names).
.\" Possibly the .gnokiirc model = 6110 might affect maximum size
.\" creatable for phone (& hard luck if writing to SIM in one phone,
.\" to later transfer to another phone).
.br
Width:
.in +6
.ti -4
03: Minimum allowed by this program
.I phone, (previously 6). \" NAME_WIDTH_MIN
.ti -4
13: Suggested for Sony { CMD-J70 & PTX-520 LCD },
(as Sony display only shows the left third of '#' character after previous 13
characters in "ABCDEFGHIJKLM#").
.ti -4
14:
.I xgnokii
refused to create a name longer than 14 character
"ABCDEFGHIJKLMN"
(both to a
.\" mk@
SIM card of length 100
& a
.\" rk@
SIM card of length 230
on a Nokia 6110,
.I xgnokii
reports for a new entry:
Will truncate to save into SIM.
.ti -4
14
.I xgnokii
Only shows first 14 on screen, even though it can save 16 to file,
for use in pnone internal (rather than SIM) memory.
.ti -4
16: Nokia 6110 internal phone memory.
.ti -4
16:
.I xgnokii
(at least with Nokia 6110) truncates at this.
.ti -4
16: A Nokia 6101 exporting to a
.\" rk@
SIM card (of length 230, so not an older) SIM card, then read by gnokii with a Nokia 6110, truncates widths to 16.
.ti -4
51: Nokia 6101 internal phone memory (jhs@ experimental editing on phone).
.ti -4
64: Maximum allowed by this program
.I phone. \" NAME_WIDTH_MAX
(was previously 16).
.in -6
.TP
.B \-z
.br
Zap mode.
Remove number strings shorter than 6 digits.
.bp
.SH INPUT FORMATS
A space indented field is a continuation of the previous line.
.br
Any phone number field with a # in it, is treated as comment on & after the #.
(This should be changed, perhaps to eg ';' as '*' & "#" are valid buttons on phones, & eg "*100#" is sequence to query account balance on D-Telekom mobile(*).
.br
A 1 or 0 is a common field content to indicate yes or no.
(for the ie field I have inconsistently used '-' & '+', this should to be changed.
Address Book Input Format:
.in +2 \"{
.in +15 \"{
][
.de REC
.ti -15
..
.REC
th:Telephone Home Outputs:
.I estic
, isdn,
.I gnokii
.REC
tw:Telephone Work Outputs:
.I estic
, isdn,
.I gnokii
.REC
tm:Telephone Mobile(*) Outputs:
.I estic
, isdn,
.I gnokii
.REC
tn:Telephone No Known Type Outputs:
.I estic
, isdn,
.I gnokii
.ti +2
(For if you don't know if this number is home work or mobile(*), \
also output by phone_reverse script.)
.REC
fh:Fax Home (not used for output to
.I gnokii
)
.REC
fm:Fax Mobile(*) (not used for output to
.I gnokii
.REC
fw:Fax Work (not used for output to
.I gnokii
)
)
.\" JJLATER should add a section for eg email @theiet.org & similar.
.REC
ih:ISDN Data Home (not used for output to
.I gnokii
)
.REC
iw:ISDN Data Work (not used for output to
.I gnokii
)
.REC
im:ISDN Data Mobile(*) (not used for output to
.I gnokii
)
.REC
mh:Modem home Outputs:
.I estic
, isdn,
.I gnokii
.REC
mm:Modem mobile(*) Outputs:
.I estic
, isdn,
.I gnokii
.REC
mw:Modem work Outputs:
.I estic
, isdn,
.I gnokii
.REC
fn:Forenames Outputs:
.I estic
, isdn,
.I gnokii
.REC
sn:Surname Outputs:
.I estic
, isdn,
.I gnokii
.REC
bn:Business name Outputs:
.I estic
, isdn,
.I gnokii
.REC
de:Department \" Extension of Business Name, No output currently
.REC
ie:Include or Exclude.
.br
`+' or `-' Change default behaviour when generating output for
.I gnokii
(as Nokia does not have room for infinite list of phone numbers).
.REC
cg:Call Group
.br
Different phones &/or versions of
.I gnokii
allocate different names.
.br
This program recognises the following call group names,
in upper lower or mixed case,
(which it maps to numbers):
.in +2
.nf
0 Family
1 Urgent
2 Social
3 Business
4 Club
5 Default
5 No group
.fi
.in -2
Strings which
.I xgnokii
-0.6.4 On host=lapa FreeBSD-4.11 offered:
.in +2
.nf
0 Family
1 VIP
2 Friends
3 No group
4 Other
5 No group
6 No group
.fi
.in -2
.br
.I xgnokii
-6.14 window graphics has these strings embedded:
.in +2
.nf
Family
VIP
Friends
Colleagues
Other
No group
.fi
.in -2
Strings which older
.I xgnokii
-0.6.4 On FreeBSD-4.11 offered
.in +2
.nf
Reading caller groups names ...
Family < Note "ll" mis spelling from what ?
Friends
Colleagues
Other
No group
.fi
.in -2
.br
In my phone I've stored these group name text strings:
.in +2
.nf
Family
Travel
Social
Business
Club
.fi
.in -2
.br
.I Xgnokii
shows group 6 as "No group"
What happens with higher numbers in SIMs
on other mobiles(*) I haven't tested.
.\" --------------
Any of these strings
"Family", "Urgent", "Social", "Business", "Club" "No group"
which get mapped to 0 to 5 respectively, for output to
.I gnokii.
5 is default "No group"
.br
.in +2 \"{
The 6 call groups in Nokia 6110 can be associated with different ring tones
and logos.
to the numbers.
.br
(Uses for multiple ring tones: Put Business callers in a different group.
Put urgent family in a different group, people you will allow to interrupt a meal to g answer phone.
Move fellow cyclists or downhill skiers of the current day into group "Urgent",
so you brake only to answer their `Where are you ?' calls,
but don't stop for anyone else's less urgent calls).
.in -2 \"}
.REC
ac:Accom share (others in a shared flat, home or office, who might answer phone or door bell)
.REC
ah:Address home
.REC
aw:Address work
.REC
bd:Birth date aka vCard=VCF: BDAY:19700310
.REC
bg:Beer Garden Regular (0:1)
.REC
bo:Boat Owner (0:1)
.REC
ca:Car (0:1:2)
.REC
co:Context (How known, eg where met)
.REC
cy:Cycle
.REC
cz:Comment (Random freeform text, multi line, subsequent lines indented by space). Data exported to .vcf
.REC
zz:Comment (Random freeform text, multi line, subsequent lines indented by space) Not exported to .vcf. This field for private stuff, eg bank PIN nos you dont wabt to export to insecure Android.
.REC
eh:Email home
.REC
em:Email mobile(*) aka Webmail live on server as opposed to POP3 downloaded.
.REC
ew:Email work
.REC
fr:Friend
.REC
jo:Jobs - date last asked.
.REC
ld:Last update (Should be in format 2008-04-24T19:52:43Z but not checked.)
.REC
na:Nationality (free text, but typical last part of a TLD eg .uk .de .fr)
.REC
oc:Occupation (profession or interest)
.REC
sk:Skier (0:1)
.REC
sm:Smoker (0:1)
.REC
te:Tent Owner (0:1)
.REC
tx:Telex (numeric, inc. Answerback, getting obsolete that!)
.REC
wh:Web Home (Personal)
.REC
ws:Windsurfer (0:1)
.REC
ww:Web Work (Business)
.REC
xr:Xmas Card Received List of years, letest first, comma seperated.
.REC
xs:Xmas Card Sent List of years, letest first, comma seperated.
.REC
][
.in -15 \"}
.fi
.in -2 \"}
I want to add facility for a single name & multiple numbers.
(Until I do, put the prime number for each person first (or last,
depending how your phone works) in list,
else mobile(*) phones may get the wrong entry).
.br
Later, I want to add a standard letter groff .so inc/co/var/ facility.
.br
Some time I may convert to [an extended version of]
virtual business card format used in email,
Ref:
.in +2 \"{
RFC 6350: vCard Format Specification
.br
https://tools.ietf.org/html/rfc6350
.br
which obsoletes:
.in +2
RFC 2425, MIME Content-Type for Directory Information
http://tools.ietf.org/html/rfc2425
.br
RFC 2426, vCard MIME Directory Profile
http://tools.ietf.org/html/rfc2426
.in -2
.in -2 \"}
Examples:
.in +2 \"{
.sp
Example
.in +2
.nf
begin:vcard
n:Smith;John
tel;fax:+49 1234/1234-12
tel;work:+49 1234/1234-56
x-mozilla-html:FALSE
url:http://www.company.de
org:Old Unix Gmbh
adr:;;Aaaaa-Bbbb-Str. 3 ;Bad Homburg;;61352;
version:2.1
email;internet:name@domain.com
x-mozilla-cpt:;-8608
fn:John Smith
end:vcard
.fi
.in -2 \"{
.br
Some people wrongly quote "++" instead of "+" for international.
.\" so conversion software should best allow for it.
.sp
Example
.in +2 \"{
.nf
This is a text/x-vcard
It might be displayable with metamail. (Invoke menu with right button.)
begin: vcard
fn: John Smith
n: Smith;John
org: Some Bank
adr: OMM c/o 1234;;Havenlaan 1;B-1234 Brussel;;;Belgium
email;internet: John.Smith_ERASE@some-bank.be
title: Project leader VisualAge Conversie
tel;work: +32(2)123.45.56
tel;fax: +32(2)123.45.67
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard
.fi
.in -2 \"}
.sp
Example
.in +2 \"{
.nf
This is a text/x-vcard
It might be displayable with metamail. (Invoke menu with right button.)
begin: vcard
fn: John Smith
n: phone.1;John
email;internet: john,smith_ERASE@somewhere.com
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard
.fi
.in -2 \"}
.in -2 \"}
.sp
Output Format For
.I Estic
, (with use of -e)
.in +2 \"{
.nf
123456 "Local Frie TH"
089123456 "Local Frie TH"
004989123456 "Margar Tha TH"
00441711234444 "John Far_a TH"
004418145678888 "John Far_a TW"
0044333555555555 "John Far_a FH"
.fi
.in -2 \"}
.be
.sp
Output Format For
.I gnokii
&
.I xgnokii
, (with use of -g).
.in +2 \"{
Format: text file, so numbers are text strings):
.in +2 \"{
.nf
Name;Number;A_or_B;Index;Group;
Julian H. Stacey#;+4989123456;A;23;0;
.fi
.in -2 \"}
Fields:
.in +2 \"{
.ti -2
.ft B
- Name:
.ft R
Text string with spaces.
.br
SIM Card from D.Telecom allows 14 chars.
Nokia 6110 phone internal memory allows 16 chars.
Names copied between memories in Nokia 6110 will get truncated
to the shorter string.
.br
Suggested convention:
.in +2 \"{
Rather than using strings such as "Mob" or "Cel"
I (jhs) use a single character `#' to mean `home' (think of own 4 walls),
`$' to mean `work' (think of song `working for the dollar'),
& Yen symbol (0xA5) to symbolise `Mobile'(*), as it looks like an Antenna/Aerial.
.in -2 \"}
.ti -2
.ft B
- Number:
.ft R
Digit string.
.br
Phone number to be called, can begin with a `+'.
.I xgnokii
accepts dots & spaces in the strong.
Nokia 6110 rejects entries sent from
.I xgnokii
that have numbers containing dots or spaces.
.ti -2
.ft B
- A_or_B:
.ft R
Single capital letter `A' or `B'.
.br
`A' is for storage on SIM card,
`B' for storage in mobile(*) phone.
.ti -2
.ft B
- Index:
.ft R
Digit string.
.br
This number starts with 1, not 0.
If SIM & phone storage are both used, 2 entries will have Number `1'
.ti -2
.ft B
- Caller Group:
.ft R
A digit in range `0' to `5'.
.br
Incoming callers can be listed as one of 6 call groups.
Each call group can be allocated a different ring tone & logo.
.I xgnokii
allows all 6 groups to be allocated names, but
Nokia 6110 rejects allocation of a group name for group `5'
and forces it to "No group".
.in -2 \"}
.in -2 \"}
.in -2 \"}
.SH ENHANCEMENTS LATER
In Munich I see EG London callers reported as "20......" with no leading
zeroes or 44, so I could generate another line in the lookup table,
for all +44 style international numbers, taking the same name string,
& appending to name "(If International)"
.SH SUGGESTION
I suggest you post process the output of
.I phone
with this ~/Makefile entry:
.in +6
.nf
all: /etc/pbx/aliases
/etc/pbx/aliases: addresses /etc/pbx/aliases.top
phone -e addresses > /etc/pbx/aliases.tmp
cp /etc/pbx/aliases.top /etc/pbx/aliases
@# Local numbers first
grep -v ^0 /etc/pbx/aliases.tmp | sort >> /etc/pbx/aliases
@# National
grep ^0 /etc/pbx/aliases.tmp | grep -v ^00 | sort >> /etc/pbx/aliases
@# International
grep ^00 /etc/pbx/aliases.tmp | sort >> /etc/pbx/aliases
clean:
rm -f /etc/pbx/aliases.tmp # /etc/pbx/aliases
.fi
.in -6
.SH EXIT CODE
0 only if no errors occur.
.SH LIMITATIONS
Sometime I want to extend this program to sort entries.
.sp
You receive a warning (to stderr) if you exceed the
number of allowed names.
(First [eg 100] names are allocated to SIM card,
next [eg 50] to phone internal memory), but
.I phone
will not abort after [eg 100 + 50], as you may be generating a list for some other
mobile(*) with a higher limit.
.sp
Special locally implemented numbers such as Emergency "112" &
Free 0800 numbers should be avoided,
as they get converted by
.I phone
to +4989112 & +49800
(& I haven't tried phoning 004989112 to see if it
works, as I don't want to waste the time of the emergency operator,
though some one might try phoning a 0049800 number sometime).
.sp
Sort Order with Nokia 6110:
.in +2
.br
.I Xgnokii
sort names as expected, but Nokia does not:
.br
As expected per Ascii table,
Names prefixed with characters of * and + and 1 and 2 come before [A-Z] normal names;
.br
Unexpected: Nokia does not sort between * and +, treats them as equal, & sorts on first [A-Z] letter following.
.br
Unexpected: A leading space is ignored, & not sorted on.
.br
Expected:
.I Xgnokii
lists + before 1, as in ascii table. Unexpected: Nokia sorts reversed.
.in -2
.SH BUGS
I suspect a cz: field that immediately has an end of line, with comment indented on next line, may break files exported via .vcf to .xls where fritz 7490 refuse to load them ? No time yet to confirm this.
.br
Without a leading comment in input before person separator (][), it breaks.
.br
0800 numbers will wrongly get mapped to EG +4989800
.br
To Do: mh: mm: mw: should not export to
.I gnokii.
.br
To Do: ih: im: iw: are obsolete,
.br
To Do: sh: im: iw: add new fields for SMS text only.
.br
To Do: perhaps add a new field nc:
for no complaint of duplicate number to allow eg
a close friend to be also listed as name "ICE* or ICE[0-9])
as ICE is a newish quasi standard coming in for rescuers finding injured people with "In Case of Emergency" numbers in their phones.
( A foolishly blinkered idea that's English language dependent, no
use to international travellers. An opaque acronym for { German,
French, Spanish etc speaking peoples in South America, German
speaking parts of Italy, multi lingual Belgium etc } Better to use
a simpler convention, eg AAAAA[0-9] ).
.SH REVERSE SCRIPT
The
.I phone_reverse
shell script
converts
.I gnokii
format back to
.I phone
format. IE opposite direction to
.I phone.
Handy for several things:
.in +4
.ti -4
- Creating an initial
.I phone
file:
.br
From someone's phone or SIM who never had a
.I phone
format file until now.
.ti -4
- Mangled Data Recovery:
.br
If you have used a normal text editor on a
.I gnokii
format file,
& damaged it so
.I xgnokii
only loads the first part loads to phone or SIM
(as happened to me jhs@, don't know what I did wrong with edit, possibly
name too long), then
.I phone_reverse
can recover the format.
.ti -4
- Merging multiple
.I gnokii
format files:
.br
(You can not simply cat them, because
the SIM record numbers & SIM/Phone selector would conflict).
(Numerous reasons to want to merge 2 or more SIM cards:
.in +4
.ti -4
- New friend/ colleague arrives with new set of contacts.
.ti -4
- Some person/ phone account or SIM card departs/ retires/ dies/ terminates
& contacts need to be merged in.
.ti -4
- Merging/ synchronising a phone kept in car for emergencies & phones
for business & personal.
.ti -4
- Merging multiple SIM images,
where the same SIM card (perhaps just of length 100)
is used several times to progressively unload a phone of more (perhaps 500)
memories, where that phone type does not connect properly to
.I gnokii,
so SIM needs to be unloaded via another phone connected to
.I gnokii
PC.
.in -4
.in -4
.SH HOST OP SYSTEM
This utility runs on FreeBSD (Unix)
.SH COPYRIGHT
Program Copyright Julian H. Stacey, Munich, 1st Jan. 1997 through 2018
.br
Document Copyright Julian H. Stacey, Munich, 10th Jan. 1997 through 2018.
'\" .so author.jhs
.SH FILES
none
.SH SEE ALSO
.I estic
,
.I gnokii(1)
,
.br
http://www.berklix.com/~jhs/src/bsd/jhs/bin/public/phone/
/usr/ports/deskutils/kdeconnect interface between phone and computer
.br
/usr/ports/deskutils/kdepim4/ inc. kaddressbook - Keeps your addresses on file & kontact - Brings together all the KDE PIM applications under one roof
.br
/usr/ports/deskutils/rolo http://rolo.sf.net/ - for checking VCF vCard output