You could sort of tag-abusing <g> element to isolate the highlighted
characters and use @rend with it. <g> should be used for non standard
characters (that is non in the Unicode set) but taking the notion of
non standard largely, this could be a viable solution. But in this
case should not the "D" go outside <am> and <ex> since it is preserved
in both forms (if so you could use <hi>)? Anyway I see solid reasons
to raise a ticket for this, even if I cannot foresee all the possible
consequences at a glance.
2015-02-16 12:43 GMT+01:00 Jakub Simek <[log in to unmask]>:
> Dear list,
> Is there a reason why <hi> isn’t allowed inside of <am> or <ex>?
> In our edition project, we have the following policy for encoding abbreviations:
> 1) The whole abbreviated word is put inside of <abbr>, the whole expanded version of this word is put inside of <expan> and both versions go into <choice>.
> 2) The abbreviated part of the word is put into <am>, the expanded part into <ex>.
> 3) If superscripts and other superscript-like characters are used for an abbreviation, we consider the preceding „base“ character as part of the abbreviation.
> Now I have a case where the „er“ in the German article „Der“ is abbreviated by a hook (encoded by us presently with U+02C0). Additionally, the „D“ is decorated by a red stroke. According to our project rules, I would use the following encoding:
> <abbr><am><hi rend="decoration-color:red">D</hi>ˀ</am></abbr>
> <expan><ex><hi rend="decoration-color:red">D</hi>er</ex></expan>
> But unfortunately, <hi> isn’t allowed inside of <am> or <ex>. Perhaps it should be? I am sure there would be other examples where a part of an abbreviation could be highlighted in some way.
> Kind regards
> Dr. Jakub Simek
> Welscher Gast digital
> Germanistisches Seminar
> SFB 933 "Materiale Textkulturen", B06 "Thomasin-Projekt"
> Universität Heidelberg
> Hauptstraße 207-209
> D-69117 Heidelberg
> [log in to unmask]