View Single Post
Old 09-10-2022, 11:41 AM   #14
pzack
Connoisseur
pzack began at the beginning.
 
Posts: 79
Karma: 10
Join Date: Aug 2022
Device: kobo sage,elipsa
Dear Sarmat89,

Thank you for the information and for responding. The code is greek to me.

Here is how my text file looks as an example(I did not build this file);

cours [kur] n.m. definition........................................ .................................
.................................................. .................................................. .........
.................................................. .................................................. ...........

.................................................. .................................................. ..........
.................................................. .................................................. .............
coursier [kursje] n.m. definition........................................ .............................
.................................................. .................................................. .............
.................................................. .................................................. ..............

Thus, you have headword space [prononciation] gender definition.
The definitions can be in separate paragraphs and sometimes a number of paragraphs in a long definition and it is, I think, the bracketed prononciation with its headword before it that delimits the definitions.

If I understand tab-delimiting correctly, then the headword and brackets would have a tab but I don't know where to place the tab and how to actually tab the text.

There are over 100,000 words with definitions(6,000 pages plus)so the program has to run through the file placing somewhere the tab. Or tabs?

If your example of code applies here, how would you plug in the actual format in this code, that is what represents what in your code looking at my example?

I don't know what regex is and how it works. I have notepad++ under win 11 and I have never formatted a text file least of all built a tab-delimited file.

I assume that the problem in pryglossary is getting the headword with the brackets tabbed so that stardict can find the word.

Very cordially,
pz
pzack is offline