From b12f0fa7f7a4f77de1e1f666307485093bcc9bd7 Mon Sep 17 00:00:00 2001 From: Stefan Jung Date: Tue, 23 Jul 2024 11:41:54 +0200 Subject: [PATCH] Try to add non-keyref linking --- Terminology_Termentry.framework | 62 ++++++++++++++++++++++++++ frameworks/termentry/css/termentry.css | 56 ++++++++++++++++------- 2 files changed, 102 insertions(+), 16 deletions(-) diff --git a/Terminology_Termentry.framework b/Terminology_Termentry.framework index 7a56341..a194c46 100644 --- a/Terminology_Termentry.framework +++ b/Terminology_Termentry.framework @@ -7461,6 +7461,68 @@ + + + authorExtensionDescriptor/actionDescriptors + + + 193 + + + + + term.antonym.add.href + + + ${i18n(term.antonym.add)} href + + + ${i18n(term.antonym.add_description)} href + + + ${framework}/frameworks/termentry/icons/add_20.png + + + ${framework}/frameworks/termentry/icons/add_16.png + + + + + + + + + + + + + + + + + preferred element name + antonym + + + + + ro.sync.ecss.extensions.dita.link.InsertLinkOperation + + + + + + false + + + + + addIndex + + + + + authorExtensionDescriptor/menubarDescriptor/menuEntriesDescriptorList diff --git a/frameworks/termentry/css/termentry.css b/frameworks/termentry/css/termentry.css index 895194d..918cfae 100644 --- a/frameworks/termentry/css/termentry.css +++ b/frameworks/termentry/css/termentry.css @@ -1570,22 +1570,46 @@ /********************************************* * ANTONYMS *********************************************/ -*[class~="termentry/antonyms"]:before(10) { - content: - oxy_buttonGroup( - label, '${i18n(term.antonyms)}', - transparent, 'true', - fontInherit, 'false', - actions, - oxy_action_list( - oxy_action(id, 'term.antonym.add'), - oxy_action(id, 'term.antonyms.delete') - ) - ); - border-bottom: 0.05rem solid #767676; - display: block; - padding-bottom: 5px; - margin-bottom: 2px; +/* Oxygen Content Fusion does not support keyrefs */ +@media oxygen and (platform: 'webapp') { + *[class~="termentry/antonyms"]:before(10) { + content: + oxy_buttonGroup( + label, '${i18n(term.antonyms)}', + transparent, 'true', + fontInherit, 'false', + actions, + oxy_action_list( + oxy_action(id, 'term.antonym.add.href'), + oxy_action(id, 'term.antonyms.delete') + ) + ); + border-bottom: 0.05rem solid #767676; + display: block; + padding-bottom: 5px; + margin-bottom: 2px; + } +} +/* Oxygen XML standalone does support keyrefs and hrefs */ +@media oxygen and (platform: 'standalone') { + *[class~="termentry/antonyms"]:before(10) { + content: + oxy_buttonGroup( + label, '${i18n(term.antonyms)}', + transparent, 'true', + fontInherit, 'false', + actions, + oxy_action_list( + oxy_action(id, 'term.antonym.add'), + oxy_action(id, 'term.antonym.add.href'), + oxy_action(id, 'term.antonyms.delete') + ) + ); + border-bottom: 0.05rem solid #767676; + display: block; + padding-bottom: 5px; + margin-bottom: 2px; + } } *[class~="termentry/antonyms"] { -oxy-display-tags: none;