Skip to content

Commit

Permalink
Try to add non-keyref linking
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-jung committed Jul 23, 2024
1 parent 5a7b703 commit b12f0fa
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 16 deletions.
62 changes: 62 additions & 0 deletions Terminology_Termentry.framework
Original file line number Diff line number Diff line change
Expand Up @@ -7461,6 +7461,68 @@
<null/>
</field>
</poPatch>
<poPatch>
<field name="fieldPath">
<String>authorExtensionDescriptor/actionDescriptors</String>
</field>
<field name="index">
<Integer>193</Integer>
</field>
<field name="value">
<action>
<field name="id">
<String>term.antonym.add.href</String>
</field>
<field name="name">
<String>${i18n(term.antonym.add)} href</String>
</field>
<field name="description">
<String>${i18n(term.antonym.add_description)} href</String>
</field>
<field name="largeIconPath">
<String>${framework}/frameworks/termentry/icons/add_20.png</String>
</field>
<field name="smallIconPath">
<String>${framework}/frameworks/termentry/icons/add_16.png</String>
</field>
<field name="accessKey">
<String></String>
</field>
<field name="accelerator">
<null/>
</field>
<field name="actionModes">
<actionMode-array>
<actionMode>
<field name="xpathCondition">
<String></String>
</field>
<field name="argValues">
<serializableOrderedMap>
<entry>
<String>preferred element name</String>
<String>antonym</String>
</entry>
</serializableOrderedMap>
</field>
<field name="operationID">
<String>ro.sync.ecss.extensions.dita.link.InsertLinkOperation</String>
</field>
</actionMode>
</actionMode-array>
</field>
<field name="enabledInReadOnlyContext">
<Boolean>false</Boolean>
</field>
</action>
</field>
<field name="patchHandling">
<String>addIndex</String>
</field>
<field name="anchor">
<null/>
</field>
</poPatch>
<poPatch>
<field name="fieldPath">
<String>authorExtensionDescriptor/menubarDescriptor/menuEntriesDescriptorList</String>
Expand Down
56 changes: 40 additions & 16 deletions frameworks/termentry/css/termentry.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b12f0fa

Please sign in to comment.