> For the complete documentation index, see [llms.txt](https://docs.songbookplus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.songbookplus.com/zhong-wen/readme/songtexte-und-akkorde-importieren/aus-chordpro-dateien.md).

# 从 ChordPro 文件中

## 从 ChordPro 文件中导入歌词和和弦 <a href="#toc165549794" id="toc165549794"></a>

首先将 ChordPro 文件像普通的文本或 PDF 文件一样插入到 SongBook 中。打开后，您将看到 ChordPro 文件的未格式化原始内容。

通过“导入ChordPro文件”菜单项，可以像导入MP3文件一样导入它们 ([从 MP3 文件中](/zhong-wen/readme/songtexte-und-akkorde-importieren/aus-mp3-dateien.md))。此过程中会生成一个 PDF 文件。

### 从 ChordPro 文件中格式化歌词

从版本 6.4 开始，SongBook+ 也可以从 ChordPro 文件中获取格式信息，并以不同颜色或斜体或粗体显示如副歌、诗句等部分。

为此，将使用各种大括号指令：

* {start\_of\_chorus} / {end\_of\_chorus} 或简写 {soc} / {eoc}
* {start\_of\_verse} / {end\_of\_verse} 或简写 {sov} / {eov}
* {start\_of\_bridge} / {end\_of\_bridge} 或简写 {sob} / {eob}
* {start\_of\_solo} / {end\_of\_solo}
* {start\_of\_intro} / {end\_of\_intro}
* {start\_of\_outro} / {end\_of\_outro}

在 "Import von Songtexten und Akkorde" - "ChordPro 文本格式设置" 的设置中，可以为每个部分设置颜色，以及该部分是否以粗体和/或斜体显示。

<figure><img src="/files/cY2QCEPsQ4nKPWKA1g0U" alt=""><figcaption></figcaption></figure>

直接使用颜色：

* {textcolour:x} 或 {textcolor:x} 可以切换到特定颜色
  * x 可以是以下颜色之一：

    red, green, blue, yellow, magenta, cyan, black
  * 除了这些颜色，还可以使用任意颜色的十六进制 RGB 值

    格式为 #RRGGBB，例如 #7A67EE
* {textcolor} 或 {textcolour} 切换回标准颜色黑色


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.songbookplus.com/zhong-wen/readme/songtexte-und-akkorde-importieren/aus-chordpro-dateien.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
