Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative entries don't work like stardict!! #270

Closed
sobaee opened this issue Nov 29, 2020 · 14 comments
Closed

Alternative entries don't work like stardict!! #270

sobaee opened this issue Nov 29, 2020 · 14 comments

Comments

@sobaee
Copy link

sobaee commented Nov 29, 2020

As you know stardict alternative entries will be in .syn file, and alternative entries for a word (e.g. go) will be shown in the same window of the original entry and show its entry text, like in this image using goldendict:
Screenshot_20201129031823

This is the perfect way to show the alternative entries.

But with other glossaries this entry text is not founded like in this image using bluedict:
Screenshot_20201129031707

And also with Aard2, alternative entries appear in tabs but still the same issue:
Screenshot_20201129033015

I hope I was able to discuss this issue because it's really hard to explain it.

Also, I don't know if I have to call them synonyms instead of alternative entries

@sobaee
Copy link
Author

sobaee commented Nov 29, 2020

I don't know why it's automatically assign you, I don't know how to disable this, So sorry for that

This is the file that I used it (converted it from mdx to slob and from mdx to ifo)

https://drive.google.com/file/d/1LvGtF2lrBRWyMsj7Ku8UmjvDuxya4Eg_/view?usp=drivesdk

Thanks a lot

@ilius
Copy link
Owner

ilius commented Nov 29, 2020

No worries.
Please don't use tag "Feature" unless it's a new format support.
I will add tag if needed.

@ilius
Copy link
Owner

ilius commented Nov 29, 2020

I fixed the slob writer issue.
It will make the file size bigger though.

And updated Almaany plugin to add a title, that may fix BlueDict issue.

@ilius ilius closed this as completed Nov 29, 2020
@sobaee
Copy link
Author

sobaee commented Nov 29, 2020

Has worked very well

What you did with almaany plugin is the perfect thing that I wanted, so I may don't want to "add alternates as different entries" like what you did with aard2slob plugin.

So, could you "add headword title to begining of definition" to the other important plugins like tabfile and stardict please 🙏🙏

@sobaee
Copy link
Author

sobaee commented Nov 29, 2020

I have this stardict glossary, which has .syn file contain many alternative entries. And hundreds of stardict glossaries with many alternative entries.

It would be great to "add headword title to begining of definition" in stardict plugin, so we could see them easly before the definition.

Could you please modify stardict plugin or/and tabfile plugin like you did with almaany plugin!?

If you would do that, this will be amazing

Many thanks for all your efforts ilius

The glossary link:
https://drive.google.com/file/d/1M-KrR6r9iizzs3UcaD-HqqaZnGOREyjx/view?usp=drivesdk

This all great job wouldn't be even possible to know it without your great and hard work.

@sobaee
Copy link
Author

sobaee commented Nov 29, 2020

Also, you may ask your self why this slob plugin modification is not enough?

This is because separating alternative entries will never be amazing and organized like adding headwords for them, and you could try these 2 options with converting almaany dictionary by each one of these 2 ways and see the difference!!

Also, when someone convert any glossary to .slob this will be fast, but when converting this glossary from .slob to any other glossary it will be very very very slow. Unlike stardict or tabfile glossaries they are very fast to convert from or to them.

So, in my opinion, getting this "add headword title to begining of definition" in stardict or/tabfile plugins would be the final solution.

Many thanks again 😊😊

@ilius
Copy link
Owner

ilius commented Nov 29, 2020

I think Writer classes are the right place to add the title (with a write option), not Readers, because it's application-dependent.
But there are a few obstacles.
Let me decide and get back to you.

@ilius ilius added the Feature label Nov 29, 2020
@ilius ilius reopened this Nov 29, 2020
@ilius
Copy link
Owner

ilius commented Nov 29, 2020

I added an option for some plugins' writers (including the ones you use), enable it with --write-options word_title=true

@ilius ilius closed this as completed Nov 29, 2020
@sobaee
Copy link
Author

sobaee commented Nov 30, 2020

Many thanks for all of this 👍👍

@sobaee
Copy link
Author

sobaee commented Nov 30, 2020

One more thing

The appearance of the converted glossary by this modification in the writer class is not like adding headwards in the reader class (like you did before with almaany plugin),

This is almaany glossary with the previous modification (adding headwards):
Screenshot_20201130183055

This is from Medicine En-Ar converted with the last modification (writer class)

Screenshot_20201130183014

So the new one contains many undesirable words in the title

Could you try to fix this with the writer class or give me the line to change in the reader class of tabfile plugin to add the headwords please?

Thank you for your great efforts to make this application the only and the perfect one for this purpose 🙏🙏

@ilius
Copy link
Owner

ilius commented Nov 30, 2020

I added the missing newline.

@ilius
Copy link
Owner

ilius commented Nov 30, 2020

You think only the first headword should be shown as title?

@ilius
Copy link
Owner

ilius commented Nov 30, 2020

Can you open a new issue?
This issue is getting long.

@sobaee
Copy link
Author

sobaee commented Nov 30, 2020

You think only the first headword should be shown as title?

Yes
like this:
Screenshot_20201130182651

Not like this:
Screenshot_20201130213130

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants