Hi, Rob
Am 15.05.2008 um 20:58 schrieb Rob Stevenson:
On 15-May-08, at 1:33 PM, various entities wrote:
I know I can use Find/Replace for each matching pair to clean
these up but I think that a simple switch in BBEdit would be
such a good idea that it probably exists already. Can someone
tell me where it is?
Yes.
Markup > Utilities > Translate (or Cmd+Opt+T)
Translate HTML to Text first. Then translate it again. Text to
HTML. You can choose the way that characters are encoded (by
name, hex or decimal)
While this may do the conversion of numeric entries to named ones,
it is overkill and does not preserve the HTML Markup. What was
requested was a way to scan the HTML for the numeric entries and
make them named (either automatically when you open the file or on
a request basis) without doing any other alteration to the HTML in
the file.
perhaps I misunderstand the problem and apologize if my hint is not
helpful, but on translating from HTML to Text you can *un*check the
"Remove Tags" checkbox in the Translate dialog and your markup will
not be touched. Btw, the opposite funcionalty would be "Remove
Markup" (also under Markup > Utilities) which removes the markup
but leaves encoded entities alone.
Thanks Roland for the tip. I hadn't thought of doing the Translate
backwards and then forwards. Should work fine, as you say. I may be
back to ask how to do that for a fairly large number of files in one
swell foop, but I think I'd better RTFM first -- it's been a while
since I did that. ;-)
Glad I could help. A little hint towards the big file count problem:
Just create a Text Factory. The translate commands are available there
as well.
happy translating,
Roland
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>