Hi,
thanks for your answer!
I found the prior post
https://hyperionics.com/forum2/tm.aspx?m=11939, and tried to apply it, only partially successfully.
So I created a JSON file (see below) and a TXT filter file, and the filter file is successfully applied -- however, it seems that it still only works for one sentence at most.
So I played around a bit with the other attributes in the JSON file.
When I open the epub created by @Audio in Calibre, I find the following HTML for figure captions:
<p class='fs37'><b>Figure 1.27</b> The trajectories of a robot
successfully evolved in simulation (adapted from Keymeulen et al.
1997). The robot manages to reach the target object (whose position
is denoted by the X) without hitting the obstacles (represented by
the gray boxes) or touching the walls of the arena from all of the
predefined starting positions (except those that are located within
an obstacle).</p>
So I tried:
{
"extractor": "full",
"disabled": false,
"file": ".*",
"title": "My Filter",
"speechFilt": "my-replace-eng.txt",
"nodeRemove": [
{ "tag": "p", "attrib": [{ "name": "class", "val": "fs37" }]},
],
"edit": [
{ "repeat": true, "from": "Figure", "subst": "" }
]
}
But this does not have an effect. I am probably using the JSON in some wrong way -- could you perhaps explain a bit how it is used correctly? :)