wifi adapter not recognized

If you have a rtl88x2bu not recognized by Linux, you can try this:

git clone https://github.com/cilynx/rtl88x2bu.git

and then

sudo dkms add ./rtl88x2bu

and

sudo dkms install rtl88x2bu/5.8.7.1

You should change the release number (5.8.7.1), if necessary, according to your own release.

LibreWriter styles strange behavior

It could happen that apply a (custom) style doesn’t work as expected, i.g. even you have in that style a margin-left this margin is not applied, or it is only temporarily.

To solve you can try removing unused custom styles. Or making that style non hierarchically depending from other styles.

Regex for first lowercase letter

If you have en ebook that split badly a paragraph, you can try (to merge the bad splitted paragraph), as find

</p>\n\n\s\s<p>([a-z])

so that a paragraph beginning with a lowercase word be merged with the previous one.

But in Calibre editor you must check “case sensitive”, otherwise [a-z] will be read as [A-Z], and all first letters (lower and upper case) will be selected.

And as replace you could try

 \1

In this way you keep whatever letter is found with ([a-z]) in the result.

Regex for “space”

It can happen that you want replace a double space before <p>: use the \s. I.g. to replace

,</p>

<p>

You should use this find: ,</p>\n\n\s\s</p>