Convert memo files in the memo_origin folder that have not yet been converted into Markdown and save them in the memo folder.
Work order
- Compare the file lists of the memo_origin folder and the memo folder to find files that have not yet been converted. (In the memo folder, the target is an original that does not have a file with the same name as the
.md.) - Convert each original file using the procedure below.
- Read the content according to the original format. For txt/md, read as is; for docx, extract the text; for images (jpg/png), read the content and transcribe it into text.
- Organize the body into clean Markdown. (The main heading is
#, subheadings are##, etc. Content such as the creation date written in the memo body should be left as is in the body.) - Add YAML front matter at the top of the document according to the rules below.
memo/<원본파일명>.mdand save it. Change only the extension to.mdand keep the filename.
Front matter rules
Add YAML front matter in the format below at the top of every converted file, and append the organized body below it.
---
title: <메모 제목>
created: <원본 파일 생성 시각>
modified: <원본 파일 수정 시각>
keywords: [키워드1, 키워드2, 키워드3]
---
-
title: The core topic of the memo in one line. Use the same value as the main heading (H1) of the body. If there is no suitable title, create a short title that summarizes the content. -
created/modified: Enter the filesystem timestamp of the original file in ISO 8601 (date + time). On macOS, obtain it at once with the command below.stat -f "created=%SB modified=%Sm" -t "%Y-%m-%dT%H:%M:%S" "<원본 파일 경로>"createdis the creation time (%SB, birth time),modifiedis the modification time (%Sm). -
keywords: Extract 3-5 core keywords based on the body content and put them in an array. Choose mainly nouns that can be used for search and classification. If a keyword contains a symbol such as:,,,#, enclose it in quotes.