我正在用ruby和gem 'vpim‘制作电子名片,我的名片上有几个网址。目前,当我将生成的卡片导入mac上的contacts应用程序时,所有的urls都在homepage之后标记:
有没有办法把名字改成类似"twitter“或"youtube”之类的名字?
这定义了生成的vcf文件中的url:
URL:youtube.com/chelseafc我是这样创建的:
maker.add_url("youtube.com/chelseafc")在联系人应用程序中,我看到了主页: youtube.com/chelseafc,我希望看到youtube: youtube.com/chelseafc,以使其更具描述性。
谢谢。
发布于 2012-04-05 03:53:47
我发现了一个很好的例子,在这个例子中,我可以看到我需要如何定义我正在寻找的东西。
BEGIN:VCARD
VERSION:3.0
N:Doe;John;;;
FN:John Doe
ORG:Example.com Inc.;
TITLE:Imaginary test person
EMAIL;type=INTERNET;type=WORK;type=pref:johnDoe@example.org
TEL;type=WORK;type=pref:+1 617 555 1212
TEL;type=CELL:+1 781 555 1212
TEL;type=HOME:+1 202 555 1212
TEL;type=WORK:+1 (617) 555-1234
item1.ADR;type=WORK:;;2 Example Avenue;Anytown;NY;01111;USA
item1.X-ABADR:us
item2.ADR;type=HOME;type=pref:;;3 Acacia Avenue;Newtown;MA;02222;USA
item2.X-ABADR:us
NOTE:John Doe has a long and varied history\, being documented on more police files that anyone else. Reports of his death are alas numerous.
item3.URL;type=pref:http\://www.example/com/doe
item3.X-ABLabel:_$!<HomePage>!$_
item4.URL:http\://www.example.com/Joe/foaf.df
item4.X-ABLabel:FOAF
item5.X-ABRELATEDNAMES;type=pref:Jane Doe
item5.X-ABLabel:_$!<Friend>!$_
CATEGORIES:Work,Test group
X-ABUID:5AD380FD-B2DE-4261-BA99-DE1D1DB52FBE\:ABPerson
END:VCARD图片来源:http://www.w3.org/2002/12/cal/vcard-notes.html
https://stackoverflow.com/questions/10013465
复制相似问题