Very good point!

Re: Thanks for the solution to my problem, but... -- GWrinkle
Posted by Emmanuel ® , 01/19/2021, 02:06:26 Reply Top of Thread Forum

You are right! Of course you don't want to end up having to enter new entries twice:
  • once for Main1.xglo
  • once for Main2.xglo

So let us amend the proposed solution which I admit is far from satisfying.

Indeed let us call Main.xglo the glossary without the doctors expansions, i.e. your original glossary after you have extracted the doctor1 and doctor2 entries.

What you can do is create 2 new expansion glossaries via Glossary Viewer → File → New

  • Main1.xglo
  • Main2.xglo

You will then include the following glossaries to Main1.xglo:

  • Main.xglo
  • Doctor1.xglo

And you will include the following glossaries to Main2.xglo:

  • Main.xglo
  • Doctor2.xglo

As you can see Main1.xglo and Main2.xglo now share Main.xglo as a common include. This will solve your issue, every time you add something to Main it will also benefit to Main1 and Main2!

At that point you will need to tweek your Add Glossary Entry Hotkey or create another one, because the default one (ALT=) adds to the current glossary. So if you use the default version you will end up:

while you want to add to Main so that it benefits to both Main1 and Main2.

To achieve this just create a new Add Glossary Entry Hotkey where you specify Main.xglo as the target glossary:

filename = "Glossary\Main.xglo"
input = "text"
resumeUponOK = "n"

This expansion will open the Add Glossary Entry window for an addition to Main.xglo.

Edit | Reply | | Original Message | Top of Thread | Current page | Author