<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hello Franz-Joseph,<br>
    <br>
    Of course. In your alternate CSS file you could add something like
    the following:<br>
    <br>
    <tt>  *[keyref]<font color="#0000ff"><b>:hover</b></font>:before,</tt><tt><br>
    </tt><tt>  *[keyref][href]<font color="#0000ff"><b>:hover</b></font>:before{</tt><tt><br>
    </tt><tt>      content: url("../../img/link_keyref.png") <font
        color="#0000ff"><b>"[" attr(keyref) "]"</b></font>;</tt><tt><br>
    </tt><tt>  }<br>
      <br>
    </tt>This will display the value of the "keyref" attribute for any
    key reference. The downside is that the text starts hopping a bit...<br>
    <tt></tt><br>
    Best wishes,<br>
    Sorin Carbunaru<br>
    <br>
    <div class="moz-cite-prefix">On 8/12/2020 11:57 AM, Franz-Josef
      Knelangen wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:AM0P195MB0435E905CD9818728CB51D94D0420@AM0P195MB0435.EURP195.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        font-size:10.0pt;
        font-family:"Courier New";}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:"Consolas",serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi
            Sorin,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">cool trick. Would it be possible to hide the
            keyref label AND display it when you hover over the PNG?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">Greetings,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">Franz-Josef<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB"><o:p> </o:p></span></p>
        <p style="FONT-SIZE: 10pt; FONT-FAMILY: ARIAL"><br>
        </p>
        <div style="FONT-SIZE: 1px; BACKGROUND: #d9d9d9; LINE-HEIGHT:
          1px"> </div>
        <p style="FONT-SIZE: 10pt; FONT-FAMILY: ARIAL"><b><font size="3"
              face="Arial" color="#006600">AKG Software</font> <font
              color="#727272"><span style="FONT-SIZE: 12pt">Consulting
                GmbH</span></font><br>
            <font size="3" face="Arial" color="#000000"> Franz-Josef
              Knelangen</font></b><br>
          <br>
          <br>
          <font size="2" face="Arial" color="#7f7f7f">Uhlandstraße 12<br>
            79423 Heitersheim<br>
            Germany</font><br>
          <br>
          <font size="2" face="Arial" color="#7f7f7f">Tel.: +49 (0)7634
            5612-611<br>
            Fax: +49 (0)7634 5612-300<br>
            E-Mail: <u><a class="moz-txt-link-abbreviated" href="mailto:fjk@akgsoftware.de">fjk@akgsoftware.de</a></u> <br>
            Internet: <a href="http://www.akgsoftware.de"
              moz-do-not-send="true">www.akgsoftware.de</a></font><br>
          <br>
          <font size="2" face="Arial" color="#7f7f7f">Geschäftsführer:
            Dipl.-Ing. Artur K. Günther, Dipl.-Ing. Arno Brüggemann,
            Dipl.-Ing. (FH) Bernhard Feser, Dipl.-Ing. Jens Günther <br>
            Sitz der Gesellschaft: Heitersheim, HRB 310383 (Amtsgericht
            Freiburg)</font><br>
          <br>
        </p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b>Von:</b> oXygen-user
              <a class="moz-txt-link-rfc2396E" href="mailto:oxygen-user-bounces@oxygenxml.com"><oxygen-user-bounces@oxygenxml.com></a> <b>
                Im Auftrag von </b>oXygen XML support<br>
              <b>Gesendet:</b> Mittwoch, 12. August 2020 10:44<br>
              <b>An:</b> <a class="moz-txt-link-abbreviated" href="mailto:oxygen-user@oxygenxml.com">oxygen-user@oxygenxml.com</a><br>
              <b>Betreff:</b> Re: [oXygen-user] Hiding keyref text in
              xrefs (in Author mode)<o:p></o:p></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal"
            style="mso-line-height-alt:.75pt;background:#D9D9D9"><span
              style="font-size:1.0pt;color:black"> </span><span
              style="font-size:1.0pt"><o:p></o:p></span></p>
        </div>
        <p><span style="color:red">Externe E-Mail: Vorsicht beim Öffnen
            von Anhängen und Klicken auf Links!</span><o:p></o:p></p>
        <div>
          <p class="MsoNormal"
            style="mso-line-height-alt:.75pt;background:#D9D9D9"><span
              style="font-size:1.0pt;color:black"> </span><span
              style="font-size:1.0pt"><o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal" style="margin-bottom:12.0pt">Hello Yves,<br>
            <br>
            This comes from <tt><span style="font-size:10.0pt">frameworks\dita\css\core\-conrefs.css</span></tt><span
              style="font-size:13.5pt">,
            </span>where we have the following rule:<o:p></o:p></p>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <p class="MsoNormal"><tt><span style="font-size:10.0pt">@media
                  oxygen{</span></tt><span
                style="font-size:10.0pt;font-family:"Courier
                New""><br>
                <tt>  *[keyref]:before,</tt></span><span
                style="font-size:13.5pt"><br>
              </span><tt><span style="font-size:10.0pt"> 
                  *[keyref][href]:before{</span></tt><span
                style="font-size:13.5pt"><br>
              </span><tt><span style="font-size:10.0pt">      link:
                  oxy_concat("", attr(keyref, keyref));</span></tt><span
                style="font-size:13.5pt"><br>
              </span><tt><span style="font-size:10.0pt">      content:
                  url("../../img/link_keyref.png")
                  <b><span style="color:blue">"[" attr(keyref) "]"</span></b>;</span></tt><span
                style="font-size:13.5pt"><br>
              </span><tt><span style="font-size:10.0pt">     
                  text-decoration: none;</span></tt><span
                style="font-size:13.5pt"><br>
              </span><tt><span style="font-size:10.0pt">  }</span></tt><span
                style="font-size:10.0pt;font-family:"Courier
                New""><br>
                <tt>  ...</tt><br>
                <tt>}</tt></span><o:p></o:p></p>
          </blockquote>
          <p class="MsoNormal" style="margin-bottom:12.0pt">The elegant
            way of dealing with this would be to create an alternate CSS
            (<a
href="https://www.oxygenxml.com/doc/versions/22.0/ug-editor/glossary/alternate-css-style.html"
              moz-do-not-send="true">https://www.oxygenxml.com/doc/versions/22.0/ug-editor/glossary/alternate-css-style.html</a>)
            that contains only this rule, but without the blue text (<tt><span
                style="font-size:13.5pt">"[" attr(keyref) "]"</span></tt>),
            and then activate this CSS from the Styles dropdown that is
            found in the toolbar area when opening a file in the Author
            mode. If you want to get that key name back, you need to
            deactivate this alternate CSS. You should find enough
            information about this in the userguide.<br>
            <br>
            You could, of course, remove the blue text directly from  <tt><span
                style="font-size:10.0pt">-conrefs.css</span></tt><span
              style="font-size:13.5pt">,
            </span>but then it would not be that easy to render the key
            name again. You would have to write the blue text again...<br>
            <br>
            All the best wishes,<br>
            Sorin Carbunaru<br>
            Oxygen XML Editor<o:p></o:p></p>
          <div>
            <p class="MsoNormal">On 8/11/2020 3:00 PM, Yves Barbion
              wrote:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <div>
              <div>
                <p class="MsoNormal"><span
                    style="font-family:"Verdana",sans-serif">Hi
                    group<o:p></o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span
                    style="font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span
                    style="font-family:"Verdana",sans-serif">When
                    I insert a xref to a DITA topic with a key, I see
                    the following in Author mode:<o:p></o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span
                    style="font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span
                    style="font-family:"Verdana",sans-serif"><p><xref>[keyref_text]My
                    cross-reference display text</xref></p><o:p></o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span
                    style="font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span
                    style="font-family:"Verdana",sans-serif">The
                    keyref_text makes it a bit difficult to read my
                    cross-reference display text, so I would like to
                    hide it when I'm working in Author mode. Is there a
                    way to do this?<o:p></o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span
                    style="font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span
                    style="font-family:"Verdana",sans-serif">Thanks<o:p></o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span
                    style="font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span
                    style="font-family:"Verdana",sans-serif">Yves<o:p></o:p></span></p>
              </div>
            </div>
            <p class="MsoNormal"><br>
              <br>
              <o:p></o:p></p>
            <pre>_______________________________________________<o:p></o:p></pre>
            <pre>oXygen-user mailing list<o:p></o:p></pre>
            <pre><a href="mailto:oXygen-user@oxygenxml.com" moz-do-not-send="true">oXygen-user@oxygenxml.com</a><o:p></o:p></pre>
            <pre><a href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user" moz-do-not-send="true">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><o:p></o:p></pre>
          </blockquote>
          <p class="MsoNormal"><o:p> </o:p></p>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>