Good evening M Sarmat89,
I am sorry but I still need clarification.
primero;
"That command can be applied etc.," Please, what command are you referring too and where am I using it?
segundo;
Is perl -pe "s:^ +::" <original.txt>output1.txt
or;
Is perl -pe (?<=\S)\n(?=\S)<original.txt>output1.txt
to be used first-the first operation on the original txt file-before using the resulting file as the first file used in the four lines of code?
tercero;
This line of code; perl -pe "s:^ +::" < destination.tsv | perl -pe 's/\n\n+/\|\|/sg' | perl -pe 's/\n/ /sg' | perl -pe 's/\|\|/\n/sg' | perl -pe 's/^(\S+)/$1 /sg' | perl -pe "s:^([^[]+?) *(?=\[):\1\t:" > new.tsv
would use output4.csv(created by the four lines of perl code)which gets transformed into the new.tsv. New.tsv goes to pyglossary for the stardict conversion.
Thus, please clarify the very first code to be used; is it for pre-line unfolding or is it for the line unfolding itself?
It appears then, that the process is;
one line of code; line unfolding
four lines of code; creation of the .csv file
one long line of code; creation of the .tsv file
pyglossary using the final .tsv file
working stardict dictionary(we hope)
Please let me know where the error/s is nd/or confirm that 's good to go so that I can start in on this.
Cordially,
pz
|