I have used a text-from-image generator to pull info from a image of a glossary that look like this:
word1 :meaning1
word2 :meaning2
word3 :meaning3
word4 :meaning4
Which resulted in a text file looking like this:
word1
word2
word3
word4
:meaning1
:meaning2
:meaning3
:meaning4
I feel like this is a common occurrence when copying glossary-like texts from pdf documents as well. Is there any handy way to recreate the original text disposition? Preferably create columns where the words and meanings are linked, even better if it is without cells.
I guess I'm looking for a way to paste/attach the content of several rows to the ends of several existing rows.
The only solution I can think of is to paste everything into LibreOffice writer and choose columns, but that would only recreate the source document presentation-wise and there is no real use of that.
The question is:
How to change the extracted text into two columns so that it looks like it was in the picture i.e. like:
word1 :meaning1
word2 :meaning2
word3 :meaning3
word4 :meaning4
I would prefer GUI tools, but non-advanced CLI solutions are also appriciated.