By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,242 Members | 1,410 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,242 IT Pros & Developers. It's quick & easy.

REQ: Editor to add subscript & superscript

P: n/a
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).

Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
mark4asp wrote:
[snip]
(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. [snip] 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).


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 "intelligent" 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
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #2

P: n/a
mark4asp wrote:
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)


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
Jul 20 '05 #3

P: n/a
mark4asp wrote:
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)


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
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.