Thanks (was Marking up musical notes?)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark Tranchant

    Thanks (was Marking up musical notes?)

    Thanks for the input everyone. I've settled (for now) on the following:

    <abbr title="B flat">Bb</abbr>

    My magic conversion to pander to IE's non-support of <abbr> [1] has now
    been turned off as it made any music-related pages a mass of conditional
    comments. People who want abbreviations expanded can either get a
    browser or view the source.

    I understand that e.g. Bb isn't really an abbreviation, but I think it's
    probably the closest semantically. Perhaps <code> would have been
    appropriate?

    Now all I need to do is update the crazy number of occurrences.

    [1] It converted <abbr title="foo">bar </abbr> to:

    <abbr title="foo"><!--[if IE]<acronym title="(fixed abbr for IE)
    foo">bar</acronym><![endif]--></abbr>

    --
    Mark.

  • Nick Kew

    #2
    Re: Thanks (was Marking up musical notes?)

    Mark Tranchant wrote:
    [color=blue]
    > <abbr title="B flat">Bb</abbr>
    >
    > My magic conversion to pander to IE's non-support of <abbr>[/color]

    Seems OTT. Presumably users affected by that are those who don't need
    the title anyway, yesno?
    [color=blue]
    > Now all I need to do is update the crazy number of occurrences.[/color]

    That's what scripts and regexps are for!

    --
    Nick Kew

    Comment

    • Mark Tranchant

      #3
      Re: Thanks (was Marking up musical notes?)

      Nick Kew wrote:[color=blue]
      > Mark Tranchant wrote:
      >[color=green]
      >><abbr title="B flat">Bb</abbr>
      >>
      >>My magic conversion to pander to IE's non-support of <abbr>[/color]
      >
      > Seems OTT. Presumably users affected by that are those who don't need
      > the title anyway, yesno?[/color]

      In the musical note case, yes. What I've ended up doing is as follows:

      In the source XML, notes are marked up as <note title="B flat">Bb</note>
      The front-end performs the IE fix on <abbr>s first, then converts the
      <note>s to <abbr>. That way, non-note <abbr>s are still readable by the
      joke "browser", and my music pages aren't drowned in conditional comments.
      [color=blue][color=green]
      >>Now all I need to do is update the crazy number of occurrences.[/color]
      >
      > That's what scripts and regexps are for![/color]

      Yes, but they're hardly trivial given the number of cases.

      --
      Mark.

      Comment

      Working...