View Single Post
Old 08-14-2023, 07:52 AM   #1
citrate
Junior Member
citrate began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2023
Device: BOOX Note 5+
TXT to EPUB: How to Make Chapter Markers as Titles

Hello there. I have a novel in .txt format and I want to convert it to .epub format. Since there's no tags decorating chapter markers (hashtags or <h2> tag) in the original text, I used regular expression (`//*[re.test(., "<regexp>", "i")]`) in structure detection to find out all the chapters.

The chapters are detected correctly, however, the chapter markers are treated as ordinary text. Is it possible to let Calibrie understand that the detected chapter marker are titles/headers?

For example, If I have something like:

```
Chapter 1 Chapter Name

some text some text
```

I want it be something like

```
# Chapter 1 Chapter Name

some text some text
```

in the .epub output. That is, give the chapter marker/title a different format from ordinary text.
citrate is offline   Reply With Quote