Files
obsidian/Clippings/jowavevcard2to3 Convert vcards from version 2.1 to version 3.0.md

95 lines
8.6 KiB
Markdown

---
title: "jowave/vcard2to3: Convert vcards from version 2.1 to version 3.0"
source: "https://github.com/jowave/vcard2to3"
author:
- "[[조웨이브]]"
published:
created: 2025-10-26
description: "Convert vcards from version 2.1 to version 3.0. Contribute to jowave/vcard2to3 development by creating an account on GitHub."
tags:
- "clippings"
---
vCard를 버전 2.1에서 버전 3.0으로 변환
[MIT 라이센스](https://github.com/jowave/vcard2to3/blob/master/LICENSE)
<table><thead><tr><th colspan="2"><span><font><font>이름</font></font></span></th><th colspan="1"><span><font><font>이름</font></font></span></th><th><p><span><font><font>마지막 커밋 메시지</font></font></span></p></th><th colspan="1"><p><span><font><font>마지막 커밋 날짜</font></font></span></p></th></tr></thead><tbody><tr><td colspan="3"><p><span><a href="https://github.com/jowave/vcard2to3/commit/a9c93c267dad6dd83396a687e843b22d750dd9f9"><font><font>기능: 사용자 정의 별명에 대한 선택적 CHARSET 매개변수 허용</font></font></a></span></p><p><span><a href="https://github.com/jowave/vcard2to3/commit/a9c93c267dad6dd83396a687e843b22d750dd9f9"><font><font>a9c93c2</font></font></a> <font><font>·</font></font></span></p><p><a href="https://github.com/jowave/vcard2to3/commits/master/"><span><span><span><font><font>42개의 커밋</font></font></span></span></span></a></p></td></tr><tr><td colspan="2"><p><a href="https://github.com/jowave/vcard2to3/tree/master/.github/ISSUE_TEMPLATE"><span><font><font>.github/ </font></font></span><span><font><font>이슈 템플릿</font></font></span></a></p></td><td colspan="1"><p><a href="https://github.com/jowave/vcard2to3/tree/master/.github/ISSUE_TEMPLATE"><span><font><font>.github/ </font></font></span><span><font><font>이슈 템플릿</font></font></span></a></p></td><td><p><a href="https://github.com/jowave/vcard2to3/commit/ca10b9abc989c92b65820323adc1416c3a08b8f9"><font><font>이슈 템플릿 업데이트</font></font></a></p></td><td></td></tr><tr><td colspan="2"><p><a href="https://github.com/jowave/vcard2to3/blob/master/.gitignore"><font><font>.gitignore</font></font></a></p></td><td colspan="1"><p><a href="https://github.com/jowave/vcard2to3/blob/master/.gitignore"><font><font>.gitignore</font></font></a></p></td><td><p><a href="https://github.com/jowave/vcard2to3/commit/dfa0ec7a92c1072bb36da74ae46ea83597059de7"><font><font>Replace type_lc 호출에 URL 및 LABEL 추가</font></font></a></p></td><td></td></tr><tr><td colspan="2"><p><a href="https://github.com/jowave/vcard2to3/blob/master/LICENSE"><font><font>특허</font></font></a></p></td><td colspan="1"><p><a href="https://github.com/jowave/vcard2to3/blob/master/LICENSE"><font><font>특허</font></font></a></p></td><td><p><a href="https://github.com/jowave/vcard2to3/commit/3f055af52c28fca402da2e7e0da9b9628643f35a"><font><font>라이센스 추가</font></font></a></p></td><td></td></tr><tr><td colspan="2"><p><a href="https://github.com/jowave/vcard2to3/blob/master/README.md"><font><font>README.md</font></font></a></p></td><td colspan="1"><p><a href="https://github.com/jowave/vcard2to3/blob/master/README.md"><font><font>README.md</font></font></a></p></td><td><p><a href="https://github.com/jowave/vcard2to3/commit/8f537a6f5974c04d3165cf30732102b9d2226022"><font><font>CLI 인수에 대한 도움말 텍스트 개선</font></font></a></p></td><td></td></tr><tr><td colspan="2"><p><a href="https://github.com/jowave/vcard2to3/blob/master/examples.vcf"><font><font>예제.vcf</font></font></a></p></td><td colspan="1"><p><a href="https://github.com/jowave/vcard2to3/blob/master/examples.vcf"><font><font>예제.vcf</font></font></a></p></td><td><p><a href="https://github.com/jowave/vcard2to3/commit/a9c93c267dad6dd83396a687e843b22d750dd9f9"><font><font>기능: 사용자 정의 별명에 대한 선택적 CHARSET 매개변수 허용</font></font></a></p></td><td></td></tr><tr><td colspan="2"><p><a href="https://github.com/jowave/vcard2to3/blob/master/process.sh"><font><font>프로세스.sh</font></font></a></p></td><td colspan="1"><p><a href="https://github.com/jowave/vcard2to3/blob/master/process.sh"><font><font>프로세스.sh</font></font></a></p></td><td><p><a href="https://github.com/jowave/vcard2to3/commit/8ab675b9a80d4a114007e7741e72c26129340cdb"><font><font>'--prune_empty' 옵션 제거</font></font></a></p></td><td></td></tr><tr><td colspan="2"><p><a href="https://github.com/jowave/vcard2to3/blob/master/quopri-encoding-test.vcf"><font><font>quopri-인코딩-테스트.vcf</font></font></a></p></td><td colspan="1"><p><a href="https://github.com/jowave/vcard2to3/blob/master/quopri-encoding-test.vcf"><font><font>quopri-인코딩-테스트.vcf</font></font></a></p></td><td><p><a href="https://github.com/jowave/vcard2to3/commit/db9b1d5f40b453534eff6c3b6924ab5afa37408f"><code>--in_encoding</code> <font><font>인용된 인쇄 가능한 내용을 디코딩하는 데 </font><font>사용</font></font></a></p></td><td></td></tr><tr><td colspan="2"><p><a href="https://github.com/jowave/vcard2to3/blob/master/vcard2to3.py"><font><font>vcard2to3.py</font></font></a></p></td><td colspan="1"><p><a href="https://github.com/jowave/vcard2to3/blob/master/vcard2to3.py"><font><font>vcard2to3.py</font></font></a></p></td><td><p><a href="https://github.com/jowave/vcard2to3/commit/a9c93c267dad6dd83396a687e843b22d750dd9f9"><font><font>기능: 사용자 정의 별명에 대한 선택적 CHARSET 매개변수 허용</font></font></a></p></td><td></td></tr><tr><td colspan="2"><p><a href="https://github.com/jowave/vcard2to3/blob/master/vcard_merge.py"><font><font>vcard_merge.py</font></font></a></p></td><td colspan="1"><p><a href="https://github.com/jowave/vcard2to3/blob/master/vcard_merge.py"><font><font>vcard_merge.py</font></font></a></p></td><td><p><a href="https://github.com/jowave/vcard2to3/commit/264ff2d59ccd6b08b9df94f6da4a7968b8f5a7ce"><font><font>PEP8 및 포맷</font></font></a></p></td><td></td></tr><tr><td colspan="3"></td></tr></tbody></table>
## 저장소 파일 탐색
## vcard2to3
vCard를 버전 2.1에서 버전 3.0으로 변환합니다.
Android 4.x 휴대폰에서 내보낸 연락처를 변환하여 Nextcloud로 가져오는 스크립트를 작성했습니다. 제 경우에는 효과가 있었지만, 여러분의 경험과는 다를 수 있습니다.
스크립트는 매우 간단하며, 2.1과 3.0의 모든 차이점을 다루지는 않습니다.
## vcard2to3.py
`vcard2to3.py` 변환 스크립트입니다. 빠른 시작:
```
git clone https://github.com/jowave/vcard2to3.git
cd vcard2to3
./vcard2to3.py your_file.vcf
```
출력은 파일입니다 `your_file.vcf.converted`.
사용 가능한 명령줄 인수를 표시하려면 다음을 실행하세요.
```
./vcard2to3.py --help
usage: vcard2to3.py [-h] [--in_encoding IN_ENCODING]
[--out_encoding OUT_ENCODING] [-r REMOVE]
[--remove_card REMOVE_CARD] [--remove_dollar]
infile [outfile]
Convert VCard 2.1 to VCard 3.0.
positional arguments:
infile the input filename
outfile the output filename, defaults to the input filename
with ".converted" appended, this file will be
overwritten if it exists
options:
-h, --help show this help message and exit
--in_encoding IN_ENCODING
the encoding of the input file (default: platform
dependent)
--out_encoding OUT_ENCODING
the encoding for the output file (default: platform
dependent)
-r REMOVE, --remove REMOVE
remove lines matching regex REMOVE, can be given
multiple times
--remove_card REMOVE_CARD
remove vcards for which any line matches regex
REMOVE_CARD, can be given multiple times
--remove_dollar remove "$" in N and FN values
```
## vcard\_merge.py
vCard를 병합하고 정렬합니다. `vcard_merge.py` 중복된 연락처를 제거할 수 있습니다. 연락처는 정렬 및 병합 기준에 따라 정렬되며 `FN`, 한 연락처 내의 중복된 줄은 삭제됩니다. 결과를 직접 편집해야 할 수도 있습니다.
## 참고문헌
- [VCard 3.0](https://tools.ietf.org/html/rfc2426)
- [VCard 4.0](https://tools.ietf.org/html/rfc6350)
## 새롭게 등장하다
게시된 자료는 없습니다.
## 세트
게시된 패키지는 없습니다.
## 언어
- [스타일 97.5%](https://github.com/jowave/vcard2to3/search?l=python)
- [인식데기 2.5%](https://github.com/jowave/vcard2to3/search?l=shell)