View Single Post
Old 09-11-2022, 01:01 PM   #27
pzack
Connoisseur
pzack began at the beginning.
 
Posts: 79
Karma: 10
Join Date: Aug 2022
Device: kobo sage,elipsa
Dear Markismus,

You have put not a little work in your response to me and I am very appreciative of your efforts to help me.

Let me try to understand what you are proposing;

Firstly, I need to build a csv file. You applied the four lines of perl code to convert the one word to a csv formated file. Thus, do I plug in the original text file name in your first of four lines of code(perl -pe 's/\n\n+/\|\|/sg' <original.txt> output1.txt)and then follow through to the fourth line insserting the actual file names?

This then, would give me a complete csv file of the full text file of which you have the example?

Secondly, and I quote you:

"Stardict
Using my script I've added to the txt-file a csv-extension and ran it using
Code:

perl pocketbookdic.pl zymogène.S-delimiter .txt.csv fr '|,|'

I thought that we already built the csv file with your four lines of perl code. What txt file are you now adding a csv extension too. And what am I doing with the .xml and .zip files? Have I created these with your code?

Do I understand correctly that pyglossary will convert the csv file created? Does this side-step the tab-delimiting of the text file or was this accomplished in your code?

Where do I find "perl" and is this an instruction set to be used in a particular text editor. Is this under Linux terminal? What text editor are you using? Is sublime3 the editor? I am a little confused about what I actually need to impliment what you want me to do.

I hope that my understanding(or what little there is of)is not completely off base!

cordially,
pz
pzack is offline