- It is not necessary to start booting with EFI if you have GPT partitions (you could choose to have legacy boot with GPT partitions).
- It is not necessary that EFI partition be at the start of a disk: it could be in every place, provided that it has a) boot (esp) flags, and b) at least 110mb of space.
Flatpak remove settings
You can try with: rm -r ~/.var/app/app-to-remove. I.g.:
rm -r ~/.var/app/com.usebottles.bottles
Flatpak bad installation
It could happen that a flatpak installation, from a link, goes bad and from a GUI you can’t fix the problem. In this case you can try with: sudo flatpak repair in a terminal.
At least, this was my experience with Bottles.
regex delete duplicate lines from a text file
You can search for
^(.*)(\r?\n\1)+$
Don’t worry: all the duplicate lines will be selected, but not all deleted. Then give this as replace
\1
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>
Regex replace tags around digits
If you would replace all <p>[some digits, such as "10", or "23", or "348"]</p>, you could use this regex code:
search: <p>(.*?\d{2})</p>
replace: <h6>\1</h6>
Indeed (.*?) is whatever, and (.*?\d{2}) is whatever number (with more than two digits).
Html emojis
Here you can find a complete set of available emojis to use in your website.
You can have an image from a simple html code, like this:
📆 🌤
To add an emoji via css, you have to set something like
.book:before {
content: "\01F4D5";
}