How to add full text to the abbreviations IN THE INDEX

Hi, in LaTeX you could habe a macro in your preamble like \newcommand*{\abk}[2]{(#1)} then a line like \index{ATP|abk{Adenosin-Tri-Phosphat}} would give the Indexentry with the fulltext added ATP, (Adenosin-Tri-Phosphat), 82, 198 Is this possible in XML with Oxygin 20? I would be very interested. Kind regards Bernhard -- spitzhalde9 D-79853 lenzkirch bernhard.kleine@gmx.net www.b-kleine.com, www.urseetal.net - thunderbird mit enigmail GPG schlüssel: D5257409 fingerprint: 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09

On 10.5.2018 16:15, Bernhard Kleine wrote:
Is this possible in XML with Oxygin 20? I would be very interested.
oXygen is "just" generic XML editor. It depends on vocabulary you are editing inside oXygen. For example if you are using DocBook you can use indexterm with nested see or seealso elements to get similar effect: https://tdg.docbook.org/tdg/5.1/indexterm.singular.html Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------

Am 10.05.2018 um 16:26 schrieb Jirka Kosek:
On 10.5.2018 16:15, Bernhard Kleine wrote:
Is this possible in XML with Oxygin 20? I would be very interested. oXygen is "just" generic XML editor. It depends on vocabulary you are editing inside oXygen. For example if you are using DocBook you can use indexterm with nested see or seealso elements to get similar effect:
https://tdg.docbook.org/tdg/5.1/indexterm.singular.html
Jirka What is in this link I know; however it is not helpful what you said: I would like to add brackets and some text immediately after the indexentry, using see or seealso would put the comment in a separate line.
Bernhard -- spitzhalde9 D-79853 lenzkirch bernhard.kleine@gmx.net www.b-kleine.com, www.urseetal.net - thunderbird mit enigmail GPG schlüssel: D5257409 fingerprint: 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09

Using a pure markup language, rather than a Turing-complete macro-expanding programming language, has its merits and its drawbacks. Why don’t you use the established internal subset mechanism for centralizing these indexterm definitions? Example: <!ENTITY idx_ATP "<indexterm><primary sortas='ATP'>ATP, (Adenosin-Tri-Phosphat)</primary></indexterm>" > You can think of other methods for avoiding repetition, for example, (mis-) using <xref> for pointing to the first occurrence of an indexterm with a certain content: <indexterm xml:id="idx_ATP"><primary sortas='ATP'>ATP, (Adenosin-Tri-Phosphat)</primary></indexterm> … <xref linkend="idx_ATP"/> but then you can’t use DocBook XSL’s rendering out of the box. Gerrit On 10.05.2018 17:02, Bernhard Kleine wrote:
Am 10.05.2018 um 16:26 schrieb Jirka Kosek:
On 10.5.2018 16:15, Bernhard Kleine wrote:
Is this possible in XML with Oxygin 20? I would be very interested. oXygen is "just" generic XML editor. It depends on vocabulary you are editing inside oXygen. For example if you are using DocBook you can use indexterm with nested see or seealso elements to get similar effect:
https://tdg.docbook.org/tdg/5.1/indexterm.singular.html
Jirka What is in this link I know; however it is not helpful what you said: I would like to add brackets and some text immediately after the indexentry, using see or seealso would put the comment in a separate line.
Bernhard
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- Gerrit Imsieke Geschäftsführer / Managing Director le-tex publishing services GmbH Weissenfelser Str. 84, 04229 Leipzig, Germany Phone +49 341 355356 110, Fax +49 341 355356 510 gerrit.imsieke@le-tex.de, http://www.le-tex.de Registergericht / Commercial Register: Amtsgericht Leipzig Registernummer / Registration Number: HRB 24930 Geschäftsführer / Managing Directors: Gerrit Imsieke, Svea Jelonek, Thomas Schmidt

I would prefer to use an entity like <!ENTITY primATP "<primary sortas='ATP'>ATP, (Adenosin-Tri-Phosphat)</primary>" > But I get the idea. I was not aware if the "sortas" attribute, therefore the question. Thanks a lot. Bernhard Am 10.05.2018 um 18:49 schrieb Imsieke, Gerrit, le-tex:
Using a pure markup language, rather than a Turing-complete macro-expanding programming language, has its merits and its drawbacks.
Why don’t you use the established internal subset mechanism for centralizing these indexterm definitions?
Example: <!ENTITY idx_ATP "<indexterm><primary sortas='ATP'>ATP, (Adenosin-Tri-Phosphat)</primary></indexterm>" >
You can think of other methods for avoiding repetition, for example, (mis-) using <xref> for pointing to the first occurrence of an indexterm with a certain content:
<indexterm xml:id="idx_ATP"><primary sortas='ATP'>ATP, (Adenosin-Tri-Phosphat)</primary></indexterm> … <xref linkend="idx_ATP"/>
but then you can’t use DocBook XSL’s rendering out of the box.
Gerrit
-- spitzhalde9 D-79853 lenzkirch bernhard.kleine@gmx.net www.b-kleine.com, www.urseetal.net - thunderbird mit enigmail GPG schlüssel: D5257409 fingerprint: 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09

It works! Thanks again Bernhard Am 10.05.2018 um 19:01 schrieb Bernhard Kleine:
I would prefer to use an entity like
<!ENTITY primATP "<primary sortas='ATP'>ATP, (Adenosin-Tri-Phosphat)</primary>" >
But I get the idea. I was not aware if the "sortas" attribute, therefore the question.
Thanks a lot.
Bernhard
Am 10.05.2018 um 18:49 schrieb Imsieke, Gerrit, le-tex:
Using a pure markup language, rather than a Turing-complete macro-expanding programming language, has its merits and its drawbacks.
Why don’t you use the established internal subset mechanism for centralizing these indexterm definitions?
Example: <!ENTITY idx_ATP "<indexterm><primary sortas='ATP'>ATP, (Adenosin-Tri-Phosphat)</primary></indexterm>" >
You can think of other methods for avoiding repetition, for example, (mis-) using <xref> for pointing to the first occurrence of an indexterm with a certain content:
<indexterm xml:id="idx_ATP"><primary sortas='ATP'>ATP, (Adenosin-Tri-Phosphat)</primary></indexterm> … <xref linkend="idx_ATP"/>
but then you can’t use DocBook XSL’s rendering out of the box.
Gerrit
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- spitzhalde9 D-79853 lenzkirch bernhard.kleine@gmx.net www.b-kleine.com, www.urseetal.net - thunderbird mit enigmail GPG schlüssel: D5257409 fingerprint: 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
participants (3)
-
Bernhard Kleine
-
Imsieke, Gerrit, le-tex
-
Jirka Kosek