精华内容
下载资源
问答
  • vCard

    2013-10-05 21:13:00
    vCard 在翻阅dottoro的时候,在附录(appendix)的js部分,注意到一个叫vCard的部分,能单独列出来,可能是比较重要的,至少是比较独立的部分,但是以前从未听说或者了解过这一部分,如果有兴趣了解的,继续往下看...

    vCard

    在翻阅dottoro的时候,在附录(appendix)的js部分,注意到一个叫vCard的部分,能单独列出来,可能是比较重要的,至少是比较独立的部分,但是以前从未听说或者了解过这一部分,如果有兴趣了解的,继续往下看。

     

    vCard 规范容许公开交换个人数据交换 (Personal Data Interchange PDI) 信息。 vCard 规范可作为各种应用或系统之间的交换格式。可能是文件系统,点对点交换的公共电话网络,以有线网络或无线传送的方式,但是一般附加在电子邮件中,电子邮件能转发vCard中人信息。网页上很多用户填写的表格可自动使用vCard。

     

    vCard(或称做Versitcard)最早是由Versit联盟于1995年提出的,当时联盟成员包括苹果公司,AT&T科技(后来的朗讯),IBM西门子。在1996年十二月,格式的拥有权移至因特网邮件联盟(IMC),该联盟是由一些关注因特网电子邮件的公司所组成。vCard标准的2.1版被电子邮件客户端广泛支持。

     

    BEGIN:VCARD
    VERSION:4.0
    N:Gump;Forrest;;;
    FN:Forrest Gump
    ORG:Bubba Gump Shrimp Co.
    TITLE:Shrimp Man
    PHOTO;MEDIATYPE=image/gif:http://www.example.com/dir_photos/my_photo.gif
    TEL;TYPE=work,voice;VALUE=uri:tel:+1-111-555-1212
    TEL;TYPE=home,voice;VALUE=uri:tel:+1-404-555-1212
    ADR;TYPE=work;LABEL="100 Waters Edge\nBaytown, LA 30314\nUnited States of America"
      :;;100 Waters Edge;Baytown;LA;30314;United States of America
    ADR;TYPE=home;LABEL="42 Plantation St.\nBaytown, LA 30314\nUnited States of America"
     :;;42 Plantation St.;Baytown;LA;30314;United States of America
    EMAIL:forrestgump@example.com
    REV:20080424T195243Z
    END:VCARD
    vCard 4.0
    <?xml version="1.0" encoding="UTF-8"?>
    <vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
      <vcard>
        <n>
          <surname>Gump</surname><ref>{{cite web|last=Perreault|first=Simon|url=http://tools.ietf.org/html/rfc6351|publisher=Internet Engineering Task Force (IETF)|accessdate=18 September 2013}}</ref> 
          <given>Forrest</given>
        </n>
        <fn><text>Forrest Gump</text></fn>
        <title><text>Shrimp Man</text></title>
        <photo>
            <parameters>
                <mediatype><text>image/gif</text></mediatype>
            </parameters>
            <uri>http://www.example.com/dir_photos/my_photo.gif</uri>
        </photo>
        <tel>
          <parameters>
            <type>
              <text>work</text>
              <text>voice</text>
            </type>
          </parameters>
          <uri>tel:+1-111-555-1212</uri>
        </tel>
        <tel>
          <parameters>
            <type>
              <text>home</text>
              <text>voice</text>
            </type>
          </parameters>
          <uri>tel:+1-404-555-1212</uri>
        </tel>
        <adr>
          <parameters>
            <type><text>work</text></type>
            <label><text>100 Waters Edge
    Baytown, LA 30314
    United States of America</text></label>
          </parameters>
          <pobox/>
          <ext/>
          <street>100 Waters Edge</street>
          <locality>Baytown</locality>
          <region>LA</region>
          <code>30314</code>
          <country>United States of America</country>
        </adr>
        <adr>
          <parameters>
            <type><text>home</text></type>
            <label><text>100 Waters Edge
    Baytown, LA 30314
    United States of America</text></label>
          </parameters>
          <pobox/>
          <ext/>
          <street>42 Plantation St.</street>
          <locality>Baytown</locality>
          <region>LA</region>
          <code>30314</code>
          <country>United States of America</country>
        </adr>
        <email><text>forrestgump@example.com</text></email>
        <rev><timestamp>20080424T195243Z</timestamp></rev>
      </vcard>
    </vcards>
    xCard
    ["vcardstream",
      ["vcard",
        [
          ["version", {}, "text", "4.0"],
          ["n", {}, "text", ["Gump", "Forrest", "", "", ""]],
          ["fn", {}, "text", "Forrest Gump"],
          ["org", {}, "text", "Bubba Gump Shrimp Co"],
          ["title", {} ,"text", "Shrimp Man"],
          ["photo", {"mediatype":"image/gif"}, "uri", "http://www.example.com/dir_photos/my_photo.gif"],
          ["tel", {"type":["work", "voice"]}, "uri", "tel:+1-111-555-1212"],
          ["tel", {"type":["home", "voice"]}, "uri", "tel:+1-404-555-1212"],
          ["adr",
            {"label":"100 Waters Edge\nBaytown, LA 30314\nUnited States of America", "type":"work"},
            "text",
            ["", "", "100 Waters Edge", "Baytown", "LA", "30314", "United States of America"]
          ],
          ["adr",
            {"label":"42 Plantation St.\nBaytown, LA 30314\nUnited States of America", "type":"home"},
            "text",
            ["", "", "42 Plantation St.", "Baytown", "LA", "30314", "United States of America"]
          ],
          ["email", {}, "text", "forrestgump@example.com"],
          ["rev", {}, "timestamp", "2008-04-24T19:52:43Z"]
        ]
      ]
    ]
    jCard
    <html>
      <head>
        <link rel="profile" href="http://microformats.org/profile/hcard" />
      </head>
      <body>
        <div class="vcard">
          <img class="photo" src="http://www.example.com/dir_photos/my_photo.gif" align="left" />
          <h1 class="fn">Forrest Gump</h1>
          <div class="email">
            <span class="type">Internet</span> Email (<span class="type">pref</span>erred):
            <a class="value" href="mailto:forrestgump@example.com">forrestgump@example.com</a>
          </div>
          <div class="n">
            First Name: <span class="given-name">Forrest</span><br>
            Last Name: <span class="family-name">Gump</span>
          </div>
     
          <div class="label" style="display:none">
            <span class="type">home</span>
            42 Plantation St.<br>Baytown, LA 30314<br>United States of America
          </div>
          <div class="adr">
            <span class="type">Home</span> Address:<br>
            <span class="street-address">42 Plantation St.</span><br>
            <span class="locality">Baytown</span>, <span class="region">LA</span>
            <span class="postal-code">30314</span><br>
            <span class="country-name">United States of America</span>
          </div>
          <div class="tel">
             <abbr class="type" title="voice"></abbr>
             <span class="type">Home</span> Phone: <span class="value">+1-111-555-1212</span>
          </div>
     
          <div>
            Organization: <span class="org">Bubba Gump Shrimp Co.</span><br>
            Title: <span class="title">Shrimp Man</span>
          </div>
     
          <div class="label" style="display:none">
            <span class="type">work</span>
            100 Waters Edge<br>Baytown, LA 30314<br>United States of America
          </div>
          <div class="adr">
            <span class="type">Work</span> Address:<br>
            <span class="street-address">100 Waters Edge</span><br>
            <span class="locality">Baytown</span>, <span class="region">LA</span>
            <span class="postal-code">30314</span><br>
            <span class="country-name">United States of America</span>
          </div>
          <div class="tel">
             <abbr class="type" title="voice"></abbr>
             <span class="type">Work</span> Phone: <span class="value">+1-404-555-1212</span>
          </div>
     
          <em>vCard last updated:</em>
          <time class="rev" datetime="2008-04-24T19:52:43Z">April 24, 2008 at 7:52 PM GMT</time>
        </div>
      </body>
    </html>
    hCard

    其中hCard是一种微格式

    使得vCard可以被嵌入到HTML页面中。它利用CSS class属性定义每个vCard属性。

    像这样<img class="photo" src="http://www.example.com/dir_photos/my_photo.gif" align="left" />,表示属性为photo,值是'http://...'.

    所有的vCard必须是以BEGINl:VCARD开始,由END:VCARD结尾,所有的VCARD必须包含VERSION信息。

    详细的属性列表,请看这里

     

    说了这么多,对于做前端开发的,比较容易接受的将vCard比作json,和json类似,都是特定的格式,vCard常用于记录个人/企业信息方面,而JSON擅长与后台的数据交互。但是,JSON和vCard之间是可以互相转换的,vcard-json

     

    在IE中,window.navigator对象中有个成员是userProfile,依赖其特有的方法,调用vCard数据, 参考这里

    虽然只被IE支持,而且IE7以后就废弃了,不妨了解了解

     

     

    转载于:https://www.cnblogs.com/cy056/p/vCard.html

    展开全文
  • VCard

    2011-03-11 17:09:11
    今天在研究NFC的时候,有VCardTag才聊了了VCard这种电子名片。 以下是VCard的格式例子,也是在MockNdefMessages里面定义的 VCard tag BEGIN:VCARD VERSION:3.0 N:Employee;Joe;Google;; FN:Joe Google Employee...
    今天在研究NFC的时候,有VCardTag才聊了了VCard这种电子名片。
    以下是VCard的格式例子,也是在MockNdefMessages里面定义的 VCard tag
    BEGIN:VCARD
    VERSION:3.0
    N:Employee;Joe;Google;;
    FN:Joe Google Employee
    TEL;TYPE=WORK;TYPE=PREF:650-253-0000
    EMAIL;TYPE=X-INTERNET:support@google.com
    ADR;TYPE=WORK:;;1600 Amphitheatre Parkway;94043 Mountain View;;;
    ORG:Google
    TITLE:Software Engineer
    URL:http://www.google.com
    END:VCARD

    public static final byte[] VCARD = new byte[] { (byte) 0xc2, (byte) 0x0c,
    (byte) 0x00, (byte) 0x00, (byte) 0x01, (byte) 0x05, (byte) 0x74,
    (byte) 0x65, (byte) 0x78, (byte) 0x74, (byte) 0x2f, (byte) 0x78,
    (byte) 0x2d, (byte) 0x76, (byte) 0x43, (byte) 0x61, (byte) 0x72,
    (byte) 0x64, (byte) 0x42, (byte) 0x45, (byte) 0x47, (byte) 0x49,
    (byte) 0x4e, (byte) 0x3a, (byte) 0x56, (byte) 0x43, (byte) 0x41,
    (byte) 0x52, (byte) 0x44, (byte) 0x0d, (byte) 0x0a, (byte) 0x56,
    (byte) 0x45, (byte) 0x52, (byte) 0x53, (byte) 0x49, (byte) 0x4f,
    (byte) 0x4e, (byte) 0x3a, (byte) 0x33, (byte) 0x2e, (byte) 0x30,
    (byte) 0x0d, (byte) 0x0a, (byte) 0x46, (byte) 0x4e, (byte) 0x3a,
    (byte) 0x4a, (byte) 0x6f, (byte) 0x65, (byte) 0x20, (byte) 0x47,
    (byte) 0x6f, (byte) 0x6f, (byte) 0x67, (byte) 0x6c, (byte) 0x65,
    (byte) 0x20, (byte) 0x45, (byte) 0x6d, (byte) 0x70, (byte) 0x6c,
    (byte) 0x6f, (byte) 0x79, (byte) 0x65, (byte) 0x65, (byte) 0x0d,
    (byte) 0x0a, (byte) 0x41, (byte) 0x44, (byte) 0x52, (byte) 0x3b,
    (byte) 0x54, (byte) 0x59, (byte) 0x50, (byte) 0x45, (byte) 0x3d,
    (byte) 0x57, (byte) 0x4f, (byte) 0x52, (byte) 0x4b, (byte) 0x3a,
    (byte) 0x3b, (byte) 0x3b, (byte) 0x31, (byte) 0x36, (byte) 0x30,
    (byte) 0x30, (byte) 0x20, (byte) 0x41, (byte) 0x6d, (byte) 0x70,
    (byte) 0x68, (byte) 0x69, (byte) 0x74, (byte) 0x68, (byte) 0x65,
    (byte) 0x61, (byte) 0x74, (byte) 0x72, (byte) 0x65, (byte) 0x20,
    (byte) 0x50, (byte) 0x61, (byte) 0x72, (byte) 0x6b, (byte) 0x77,
    (byte) 0x61, (byte) 0x79, (byte) 0x3b, (byte) 0x39, (byte) 0x34,
    (byte) 0x30, (byte) 0x34, (byte) 0x33, (byte) 0x20, (byte) 0x4d,
    (byte) 0x6f, (byte) 0x75, (byte) 0x6e, (byte) 0x74, (byte) 0x61,
    (byte) 0x69, (byte) 0x6e, (byte) 0x20, (byte) 0x56, (byte) 0x69,
    (byte) 0x65, (byte) 0x77, (byte) 0x0d, (byte) 0x0a, (byte) 0x54,
    (byte) 0x45, (byte) 0x4c, (byte) 0x3b, (byte) 0x54, (byte) 0x59,
    (byte) 0x50, (byte) 0x45, (byte) 0x3d, (byte) 0x50, (byte) 0x52,
    (byte) 0x45, (byte) 0x46, (byte) 0x2c, (byte) 0x57, (byte) 0x4f,
    (byte) 0x52, (byte) 0x4b, (byte) 0x3a, (byte) 0x36, (byte) 0x35,
    (byte) 0x30, (byte) 0x2d, (byte) 0x32, (byte) 0x35, (byte) 0x33,
    (byte) 0x2d, (byte) 0x30, (byte) 0x30, (byte) 0x30, (byte) 0x30,
    (byte) 0x0d, (byte) 0x0a, (byte) 0x45, (byte) 0x4d, (byte) 0x41,
    (byte) 0x49, (byte) 0x4c, (byte) 0x3b, (byte) 0x54, (byte) 0x59,
    (byte) 0x50, (byte) 0x45, (byte) 0x3d, (byte) 0x49, (byte) 0x4e,
    (byte) 0x54, (byte) 0x45, (byte) 0x52, (byte) 0x4e, (byte) 0x45,
    (byte) 0x54, (byte) 0x3a, (byte) 0x73, (byte) 0x75, (byte) 0x70,
    (byte) 0x70, (byte) 0x6f, (byte) 0x72, (byte) 0x74, (byte) 0x40,
    (byte) 0x67, (byte) 0x6f, (byte) 0x6f, (byte) 0x67, (byte) 0x6c,
    (byte) 0x65, (byte) 0x2e, (byte) 0x63, (byte) 0x6f, (byte) 0x6d,
    (byte) 0x0d, (byte) 0x0a, (byte) 0x54, (byte) 0x49, (byte) 0x54,
    (byte) 0x4c, (byte) 0x45, (byte) 0x3a, (byte) 0x53, (byte) 0x6f,
    (byte) 0x66, (byte) 0x74, (byte) 0x77, (byte) 0x61, (byte) 0x72,
    (byte) 0x65, (byte) 0x20, (byte) 0x45, (byte) 0x6e, (byte) 0x67,
    (byte) 0x69, (byte) 0x6e, (byte) 0x65, (byte) 0x65, (byte) 0x72,
    (byte) 0x0d, (byte) 0x0a, (byte) 0x4f, (byte) 0x52, (byte) 0x47,
    (byte) 0x3a, (byte) 0x47, (byte) 0x6f, (byte) 0x6f, (byte) 0x67,
    (byte) 0x6c, (byte) 0x65, (byte) 0x0d, (byte) 0x0a, (byte) 0x55,
    (byte) 0x52, (byte) 0x4c, (byte) 0x3a, (byte) 0x68, (byte) 0x74,
    (byte) 0x74, (byte) 0x70, (byte) 0x3a, (byte) 0x2f, (byte) 0x2f,
    (byte) 0x77, (byte) 0x77, (byte) 0x77, (byte) 0x2e, (byte) 0x67,
    (byte) 0x6f, (byte) 0x6f, (byte) 0x67, (byte) 0x6c, (byte) 0x65,
    (byte) 0x2e, (byte) 0x63, (byte) 0x6f, (byte) 0x6d, (byte) 0x0d,
    (byte) 0x0a, (byte) 0x45, (byte) 0x4e, (byte) 0x44, (byte) 0x3a,
    (byte) 0x56, (byte) 0x43, (byte) 0x41, (byte) 0x52, (byte) 0x44,
    (byte) 0x0d, (byte) 0x0a };


    一开始我不了解VCard的格式,想了解一下VCard在NFC是如何定义的,我就把上面的十六进制一个一个的翻译。我真佩服我的耐心(傻人笨人^_^)后来,我到网上搜索VCard才知道已经是有规范的啦!唉!井底之蛙!
    后来我VCard tag import到Contact之后,我再export到/mnt/sdcard,再export到电脑上0001.vcf, 用记事本打开一看,呵呵,跟我翻译那十六进制的结果是一样的。
    展开全文
  • vcard

    2012-08-12 22:16:09
    是将联系人导出程vcard格式吧? 获取联系人代码如下: Java code private ArrayListString> contactName = new ArrayListString>(); private ArrayListString> contactNumber = new ArrayListString>();...
    是将联系人导出程vcard格式吧?
    获取联系人代码如下:
    Java code
    private ArrayList<String> contactName = new ArrayList<String>();
    private ArrayList<String> contactNumber = new ArrayList<String>();private void getPhoneContacts(){
    ContentResolver resolver = this.getContentResolver();
    Cursor cursor = resolver.query(Phone.CONTENT_URI, PHONES_PROJECTION, null, null, null);
    if(cursor != null){
    while(cursor.moveToNext()){
    String ctNumber = cursor.getString(PHONES_NUMBER_INDEX);
    if(TextUtils.isEmpty(ctNumber)){
    continue;
    }
    String ctName = cursor.getString(PHONES_DISPLAY_NAME_INDEX);
    contactName.add(ctName);
    contactNumber.add(ctNumber);
    }
    cursor.close();
    }
    }
     

    以上只是获取部分数据,其余同理。将获取的数据组织程vcard格式文件就行了。
    展开全文
  • 将手机联系人备份从vCard3.0文件转为vCard2.1文件(旧式手机需要) 。 在Python3.7下可运行,不支持头像转换。
  • vCard:我的在线vCard网站的源代码
  • Import vcard

    2020-12-09 05:24:11
    <div><p>Hi, <p>is there a way to import vcard example from owncloud? <p>Thanks</p><p>该提问来源于开源项目:hendotcat/ppl</p></div>
  • vCard 4.0

    2020-12-31 16:27:47
    <div><p>Are there plans to support vCard 4.0? It is published in 2011, so it is already rather old even though not a lot of clients support it yet. The new CardBook extension for Thunderbird does ...
  • ez-vcard, 用于Java的vCard分析程序库 位 vcard持续集成: 代码覆盖率: Maven 中心: 聊天室: 许可证: ez vCard是用Java编写的vCard库。 它可以以多种格式读取和写入 vcard 。 因为
  • my_vcard_flutter 完全是颤动的Vcard 使用的技术/框架 内置 屏幕截图 安装 从Github克隆或下载源代码。 您可以直接下载它,也可以使用Git-bash,Tortoise git之类的工具... 在Visual Studio Code中打开项目文件夹...
  • 将手机联系人备份从vCard3.0文件转为vCard2.1文件(旧式手机需要) 。 在Python3.7下可运行,不支持头像转换。
  • C# vCard 类库

    2018-01-23 17:46:18
    c# 开发vcard借鉴. 内置c#编写的通用类库。Personal Data Interchange PDI
  • Vcard parser update

    2020-12-28 14:21:14
    <div><p>Fixed vcard 4.0 parser, added parsing for vcard 3.0</p><p>该提问来源于开源项目:mozilla-comm/ical.js</p></div>
  • vCard import broken

    2021-01-09 15:21:15
    <p>I had a problem where my vcard imported e-mail addresses were only 1 character long. I tracked it down to the rcube_vcard import function and changed the code to import differently if the raw_email...
  • Add vCard plugin

    2020-11-30 18:29:33
    s a simple vCard plugin. It can set a vCard from an object and get a vCard retuning an object. Things I would like to figure out: <p>Given say a mock client such as: <pre><code> import {Client} from &...
  • Support VCard 2.1

    2020-12-26 02:20:55
    <div><p>If I try to parse a vCard in 2.1 format, the parser does not accept it, since the "TYPE=" tags are missing. Is vCard 2.1 not supported?</p><p>该提问来源于开源项目:mozilla-...
  • import org.jivesoftware.smackx.packet.VCard; //导入方法依赖的package包/类public void save(Connection connection) {try {VCard vCard = new VCard();vCard.load(connection, mUserId);if (!YiUtils....

    import org.jivesoftware.smackx.packet.VCard; //导入方法依赖的package包/类

    public void save(Connection connection) {

    try {

    VCard vCard = new VCard();

    vCard.load(connection, mUserId);

    if (!YiUtils.isStringInvalid(mNickName)) {

    vCard.setNickName(mNickName);

    }

    if (!YiUtils.isStringInvalid(mGender)) {

    vCard.setField(Const.SEX, mGender);

    } else {

    vCard.setField(Const.SEX, Const.FEMALE);

    }

    if (!YiUtils.isStringInvalid(mSign)) {

    vCard.setField(Const.SIGN, mSign);

    }

    if (!YiUtils.isStringInvalid(mCountry)) {

    vCard.setField(Const.COUNTRY, mCountry);

    }

    if (!YiUtils.isStringInvalid(mProvince)) {

    vCard.setField(Const.PROVINCE, mProvince);

    }

    if (!YiUtils.isStringInvalid(mAddress)) {

    vCard.setField(Const.ADDRESS, mAddress);

    }

    vCard.setField(Const.BIRTHDAY, String.valueOf(mBirthday));

    vCard.setField(Const.SECOND_BIRTHDAY,

    String.valueOf(mSecondBirthday));

    vCard.setField(Const.ONLINETIME, String.valueOf(mOnlineTime));

    if (!YiUtils.isStringInvalid(mRealName)) {

    vCard.setField(Const.REALNAME, mRealName);

    }

    if (!YiUtils.isStringInvalid(mBloodGroup)) {

    vCard.setField(Const.BLOOD_GROUP, mBloodGroup);

    }

    if (!YiUtils.isStringInvalid(mPhone)) {

    vCard.setField(Const.PHONE, mPhone);

    }

    if (!YiUtils.isStringInvalid(mOccupation)) {

    vCard.setField(Const.OCCUPATION, mOccupation);

    }

    if (!YiUtils.isStringInvalid(mEmail)) {

    vCard.setField(Const.EMAIL, mEmail);

    }

    if (mAvatar != null && mAvatar.length > 0) {

    vCard.setAvatar(mAvatar);

    YiStoreCache.cacheRawData(mUserId, mAvatar);

    }

    vCard.save(connection);

    } catch (Exception e) {

    // TODO: handle exception

    e.printStackTrace();

    }

    saveToDatabase();

    }

    展开全文
  • Vcard Profile URL

    2021-01-09 16:11:44
    <p>When i import vcard from GMAIL with Google+ profile on a contact, the URL is not show in roundcube. For exemple when i edit vcard and i change URL;type=PROFILE by URL;type=BLOG the URL ...
  • Unsupported media type vcard

    2020-12-29 10:42:18
    Validation error in vCard: REV MUST NOT appear more than once in a VCARD component</message>[LF] </error>[LF] EXCEPTION: at.bitfire.dav4android.exception.HttpException: 415 at at....
  • 你好我正在尝试使用Cardme API在Java中创建vcard(.vcf)文件.我可以保存一个.vcf文件,但其中没有内容并且为空.请在下面找到我的代码,private void generateVCard(Card card){HelperClass helper = new HelperClass();...
  • Support for vCard

    2020-12-27 07:29:48
    - request vcard (including photo etc) from contact - contact is informed and can say yes or no - transfer could work with regular file transfer, but be interpreted differently by client (immediately ...
  • VCARD 2.1版标准

    2016-10-08 11:24:52
    VCARD 2.1版本 的标准
  • vcard说明书

    2012-07-13 13:37:43
    vcard 2.1 specification

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 1,536
精华内容 614
关键字:

vcard