REQ: Editor to add subscript & superscript

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

    REQ: Editor to add subscript & superscript

    Hello Guys,

    I find myself having to format a lot of subscript & superscript
    characters from text which is being HTMLed. This was originally OCRed
    but the OCRed work was not saved as HTML due to the vast amount of
    garbage HTML tags written to preserve formatting.

    I am looking for either:
    (a) a tool that removes nearly ALL formatting The only thing I want
    left are

    <TABLE>, <TR>, <TD>, <P>, <SUB>, <SUPER>, <B>, <I>

    I'd also like to keep special characters such as &deg; &alpha; etc.

    I prefer to add my own styles with a few classes using CSS only.


    OR

    (b) Failing (a) above I'd like an HTML editor that has a single
    keystroke allowing me to format highlighted text as superscript or
    subscript (possibly using a macro - I don't mind writing one)


    Can I have your recommendations please. As always, try to recommend
    tools that you have actually used to do what I want to do (not tools
    that you only think will work).

  • Barry Pearson

    #2
    Re: Editor to add subscript &amp; superscript

    mark4asp wrote:
    [snip][color=blue]
    > (a) a tool that removes nearly ALL formatting The only thing I want
    > left are
    >
    > <TABLE>, <TR>, <TD>, <P>, <SUB>, <SUPER>, <B>, <I>
    >
    > I'd also like to keep special characters such as &deg; &alpha; etc.[/color]
    [snip][color=blue]
    > Can I have your recommendations please. As always, try to recommend
    > tools that you have actually used to do what I want to do (not tools
    > that you only think will work).[/color]

    I use Dreamweaver. Its "Find and Replace" feature enables you, on a file or
    selected-files or site-wide basis, to edit according to tabs & attributes.

    This is called "Search: Specific Tag", and offers various options. One is
    Strip Tag. Another is Change Tag. Or you can search for a Specific Tag that
    has certain attributes, and/or certain attribute values. You can Remove
    Attributes, Set Attributes, etc. It is "intelligen t" in the sense that
    Dreamweaver understands HTML syntax, so knows how to handle tags &
    attributes - they are not just character strings.

    I have used this to remove all <font> from sets of files, and all cases of
    certain deprecated attributes such as "width" on <td> elements, etc, or
    "align" attributes. You may find it a bit tedious, because you search for one
    tag at a time, deal with that, then go on to another. But you can experiment
    on the current document, then when you are happy, it remembers the last search
    performed that session so you can repeat it across the site. You can also
    store & reload search patterns for later use.

    (Dreamweaver has various other search options, but I like this one because it
    is based on HTML syntax. Unfortunately, it is rather expensive if that is
    *all* you want it for!)

    --
    Barry Pearson


    This site provides information & analysis of child support & the Child Support Agency in the UK, mainly for lobbyists, politicians, academics & media.



    Comment

    • Brian

      #3
      Re: REQ: Editor to add subscript &amp; superscript

      mark4asp wrote:
      [color=blue]
      > I'd like an HTML editor that has a single keystroke allowing me to
      > format highlighted text as superscript or subscript (possibly using
      > a macro - I don't mind writing one)[/color]

      There are lots. I use Note Tab Light. Highlight text, select an element,
      and it puts the opening and closing tags around it. You can program them
      to add different things, too.

      --
      Brian

      Comment

      • Brian

        #4
        Re: REQ: Editor to add subscript &amp; superscript

        mark4asp wrote:
        [color=blue]
        > I'd like an HTML editor that has a single keystroke allowing me to
        > format highlighted text as superscript or subscript (possibly using
        > a macro - I don't mind writing one)[/color]

        There are lots. I use Note Tab Light. Highlight text, select an element,
        and it puts the opening and closing tags around it. You can program them
        to add different things, too.

        --
        Brian

        Comment

        Working...