[3.2.9-3.3.x][RC] Glossary 3.0.20

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
pierredu
Registered User
Posts: 1256
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [3.2][RC] Glossary 2.1.5

Post by pierredu »

Hello,

1. No, because the extension should recognize the word in any syntactical position in the sentence. On the other hand, if you need that, I can tell you how to change the behaviour.

2. Terms of two or three words work, but it is better to avoid them, because of the risk of recursive replacement. For instance, if you have 'red book' and 'book'.
User avatar
Morgain
Registered User
Posts: 22
Joined: Wed Mar 13, 2019 5:32 pm
Location: Wales
Name: Shan Morgain
Contact:

Re: [3.2][RC] Glossary 2.1.5

Post by Morgain »

Thank you.
pierredu wrote: Thu Mar 14, 2019 7:21 am 1. No, because the extension should recognize the word in any syntactical position in the sentence. On the other hand, if you need that, I can tell you how to change the behaviour.
Yes please.
pierredu wrote: Thu Mar 14, 2019 7:21 am 2. Terms of two or three words work, but it is better to avoid them, because of the risk of recursive replacement. For instance, if you have 'red book' and 'book'.
Well yes there will be mentions of "book". But in my research area "Red Book"and "White Book" are names of manuscripts.
What effect will it have if I enter them in the Glossary?
Perhaps the previous item will help. "White Book' is not the same as 'white book'. When it names the manuscript it would always be with capital letters.
User avatar
pierredu
Registered User
Posts: 1256
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [3.2][RC] Glossary 2.1.5

Post by pierredu »

I'm not sure that the Glossary is the right tool for you, but you own the board.
You may have a look at another extension, Autolinks.

Folder event, file listener.php, line 364
You have the end of a regex )\b/ui. Delete the i (for case insensitive).
User avatar
Morgain
Registered User
Posts: 22
Joined: Wed Mar 13, 2019 5:32 pm
Location: Wales
Name: Shan Morgain
Contact:

Re: [3.2][RC] Glossary 2.1.5

Post by Morgain »

Pierre yes I do want the Glossary - it's a dream come true for me.
I will want to use some terms which are names with a capital letter, but without the capital letter they are ordinary words e.g. Guest (name of a key person in the history of my topic) and 'guest'.
You said you could explain how to do this - yes please.

The other issue is a few important multiple terms e.g. "Red Book" / "White Book".
You mentioned recursive terms which I did not understand.

Can I make several different terms point at the same Glossary description?
There are often different names for the same thing e.g. full name, name in another language, acronym.
Perhaps this works to make 3 separate Glossary entries.
User avatar
pierredu
Registered User
Posts: 1256
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [3.2][RC] Glossary 2.1.5

Post by pierredu »

For the case-sensitive search, I gave you the solution in my former message. Just delete the i.

You can have several terms leading to the same entry. This is useful for plural/singular forms, but also for common spelling errors, etc.

The recursion problem happens when you have a term which exists as a composite term and as a single word, like Red Book and Book, for instance. The extension search first fr the longest keyword.

I want to add that you can also play with the difference between the normal space and the non-breaking space (ALT 0160).
Last edited by pierredu on Fri Mar 22, 2019 9:05 am, edited 1 time in total.
Holger
Registered User
Posts: 1883
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [3.2][RC] Glossary 2.1.5

Post by Holger »

One question: how do Glossary and Autolinks behave when installed at the same time?
User avatar
pierredu
Registered User
Posts: 1256
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [3.2][RC] Glossary 2.1.5

Post by pierredu »

Both extensions can coexist. But they can't have the same keywords.
On the other hand, you can select the forums where each one applies.
Holger
Registered User
Posts: 1883
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [3.2][RC] Glossary 2.1.5

Post by Holger »

pierredu wrote: Fri Mar 22, 2019 9:06 am But they can't have the same keywords.
What happens then? :)
User avatar
pierredu
Registered User
Posts: 1256
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [3.2][RC] Glossary 2.1.5

Post by pierredu »

I made tests, but I don't remember exactly. A bogus display, probably.
Holger
Registered User
Posts: 1883
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [3.2][RC] Glossary 2.1.5

Post by Holger »

As those extensions are very close in the functionality, wouldnt it makes sense to cross check between them (when you have some spare time) automatically to avoid having the same word triggering two links?
User avatar
Morgain
Registered User
Posts: 22
Joined: Wed Mar 13, 2019 5:32 pm
Location: Wales
Name: Shan Morgain
Contact:

Re: [3.2][RC] Glossary 2.1.5

Post by Morgain »

play with the difference between the normal space and the non-breaking space (ALT 0160).

How does that work? People are just gong to type
Red Book
I can't make them do it a certain way. Or I can try and then some/ many will forget.
User avatar
pierredu
Registered User
Posts: 1256
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [3.2][RC] Glossary 2.1.5

Post by pierredu »

Morgain wrote: Fri Mar 22, 2019 9:43 am play with the difference between the normal space and the non-breaking space (ALT 0160).
This is for the Autolinks extension, where you type what you want.
User avatar
pierredu
Registered User
Posts: 1256
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [3.2][RC] Glossary 2.1.5

Post by pierredu »

Holger wrote: Fri Mar 22, 2019 9:26 am As those extensions are very close in the functionality, wouldnt it makes sense to cross check between them (when you have some spare time) automatically to avoid having the same word triggering two links?
Coding such a cooperation between extensions seems me rather difficult.
Holger
Registered User
Posts: 1883
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [3.2][RC] Glossary 2.1.5

Post by Holger »

I am testing this great extension, thank you for the hard work!

On the "Register new entry" page, how is the language-field handeled? How should a user know what to enter (besides leaving the standard-value)?

The re-use an image field, how is that supposed to work? What to enter?

What is ment by "Anchor points"?
User avatar
pierredu
Registered User
Posts: 1256
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [3.2][RC] Glossary 2.1.5

Post by pierredu »

The language field is a placeholder to do something in the future.
I don't know exactly what.

If you have already uploaded an image, you can reuse it (for instance, create two or more entries for a single picture).

Anchor points: keywords used to link the popup to the message text.
That means that you can have several grammatical forms (singular, plural, etc.).
Post Reply

Return to “Extensions in Development”