Remove new lines from a text file

I want to copy some text from a PDF file into a word processor. Copying works, but the line breaks from the PDF formatting are also copied. This messes up the text and results in disconnected text with many rows. I decided to use the command line to fix this automatically. I searched a bit and it seems that there are two steps that have to be taken.
Read the rest of this entry »


Syntax highlighting

I’ve been writing a text document, where I want to paste an excerpt of a shell script. I want to put it in a frame as a separate “figure”, referred to in the text as “Box ##”. To make it clearer to the reader, I want to have the appropriate syntax highlighting. How to do it?
Read the rest of this entry »


Cropping an image in Inkscape

Lately, I’ve been processing a lot of imaging data in Inkscape. This included arranging imported pictures, setting their size, proportions and more. I needed an easy way to crop images that have been already imported in Inkscape. Usually, I would just make sure that everything is in the correct size before importing. Well, pedantic as this might be, it is time consuming.
Read the rest of this entry »


Break a line in Inkscape

I have a solid line in Inkscape and I want to insert a line break, say, in the middle. The reason is that I had a relatively complex figure generated as SVG, where I need to colour some lines in half.

So, here’s how to do it: Read the rest of this entry »


WPS Office dictionary

I have been using WPS Office for quite some time now, and I am really not looking back. The default spellcheck that comes with the office is American English (en_US). I wanted to add a spell check in Writer for British English, since this is what I normally use for documents. 

NOTE (27 May 2023): check this much more recent post of mine, as well as the ready to use dictionaries at GitHub.

NOTE (03 April 2021): Please, check this newer post for updated howto for WPS Office 11.*!

Read the rest of this entry »