eliranwong / UniqueBible

A cross-platform bible application, integrated with high-quality resources and amazing features, running offline in Windows, macOS and Linux, ChromeOS, Android, iOS. Various running modes are supported.
https://UniqueBible.app
GNU General Public License v3.0
131 stars 37 forks source link

Issue between 3rd party dictionary and lexicon #695

Closed darrelwright closed 2 years ago

darrelwright commented 3 years ago

I have a dictionary that I converted to a lexicon (see attachments). I pull up Gen 1:1 in the MIB and click on "ברא". When the lexicons show I select LEM (the lexicon) and nothing displays. When I right-click on "ברא", walk down the list to Bible resources, then to 3rd party dictionaries, then select "LEM" I get the results shown in the png. From the lexicon list I get nothing. It appears that when I click an entry and select from the list of lexicons that UBA is pulling its search entry (in this case) as E70003 rather than "ברא". Can we rework how UBA goes after its lexicon data?

More precisely, when clicking on "ברא" or any lemma UBA pulls from another dictionary where it picks up (in this case) either E70003 or H1254 rather than "ברא", then when clicking on "More Lexicons Here" it uses (in this case) either E70003 or H1254 as its search criteria for other lexicons and returns potentially bad results. Again, can we rework this?

LEM.lexicon.zip LEM.dct.mybible.zip lem

otseng commented 3 years ago

Don't think it's possible to really alter the way MIB works since all the links are defined in the database. For instance, in the database, it's:
<ref onclick="lex('E70003')" ondblclick="searchLexicalEntry('E70003')"><wlex><heb>ברא</heb></wlex></ref>

darrelwright commented 3 years ago

Ouch! I have 44 lexicons that get affected by this. So you're saying that I must alter how I go after things by using some other bible since there are not many that I can just click on a word and have UBA jump to a dictionary.

So I have another question. Can we set up a database that links a default dictionary to a Bible. For example I have BSB Interlinear NT open to Acts 17:28. I would like to click on "αὐτός" and have it open MLSJ to that entry (which is essentially what happens with MIB except it's picking up the Strong's number and opening TBESG).

Make sense?

On 7/26/21 5:17 PM, Oliver Tseng wrote:

Don't think it's possible to really alter the way MIB works since all the links are defined in the database. For instance, in the database, it's: |<ref onclick="lex('E70003')" ondblclick="searchLexicalEntry('E70003')">ברא|

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/eliranwong/UniqueBible/issues/695#issuecomment-887114806, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXXZXCGZMLRAARJ2JUIJS3TZX3JBANCNFSM5A7OT2YA.

otseng commented 3 years ago

Another option is if can have some database that can link E70003 to ברא, then can use that to link to your lexicons/dictionaries.

Can we set up a database that links a default dictionary to a Bible.

That is possible also.

darrelwright commented 3 years ago

Either one of those is good. Now about that to-do list ....😂

On 7/26/21 9:32 PM, Oliver Tseng wrote:

Another option is if can have some database that can link E70003 to ברא, then can use that to link to your dictionaries.

Can we set up a database that links a default dictionary to a Bible.

That is possible also.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/eliranwong/UniqueBible/issues/695#issuecomment-887200691, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXXZXBY6FKYGUMIPGMWVM3TZYZGDANCNFSM5A7OT2YA.

otseng commented 3 years ago

Another option is to created a MIB enhanced (MIBE) version. It would add another link to be able to search on the words.

darrelwright commented 2 years ago

Is anything happening on this?

otseng commented 2 years ago

I have an idea to experiment with this. How about I convert the searchLexicalEntry to lexicon via a plugin?

otseng commented 2 years ago

Update to latest code. Then unzip these into plugins/event folder. post_parse_bible.zip lexicon_entry.zip

Verify LEM.lexicon is in marvelData/lexicons

Now you can click on the Hebrew word to look it up from LEM.

darrelwright commented 2 years ago

This looks very good. Need to play with it, but I like what it opens up. Thank you!

On 7/14/22 03:57, Oliver Tseng wrote:

I have an idea to experiment with this. How about I convert the searchLexicalEntry to lexicon via a plugin?

— Reply to this email directly, view it on GitHub https://github.com/eliranwong/UniqueBible/issues/695#issuecomment-1184302916, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXXZXG6Y3WOVPYFZXLJGPLVT7XAXANCNFSM5A7OT2YA. You are receiving this because you authored the thread.Message ID: @.***>

darrelwright commented 2 years ago

Cool!

On 7/14/22 06:28, Oliver Tseng wrote:

Update to latest code. Then unzip these into plugins/event folder. post_parse_bible.zip https://github.com/eliranwong/UniqueBible/files/9112142/post_parse_bible.zip lexicon_entry.zip https://github.com/eliranwong/UniqueBible/files/9112143/lexicon_entry.zip

Verify LEM.lexicon is in marvelData/lexicons

Now you can click on the Hebrew word to look it up from LEM.

— Reply to this email directly, view it on GitHub https://github.com/eliranwong/UniqueBible/issues/695#issuecomment-1184449809, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXXZXF3JMTFXMDXXFH7IZDVUAIXFANCNFSM5A7OT2YA. You are receiving this because you authored the thread.Message ID: @.***>