View Single Post
Old 08-14-2023, 08:11 AM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,863
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by citrate View Post
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.
What novel is this?
JSWolf is offline   Reply With Quote