Subject: switching the coding of various symbols
Posted: 2008-05-08 15:04:07
Author: Rob Stevenson
First Message | Previous Message | Next Message | Last Message
Hello,
I have dozens of HTML files which contain things like ” for
right double quote, and so on. I think this mess came out of an old
Word file conversion process. I now use a different process,
converting to the ” system, which I prefer, within BBEdit after
importing text from a Word file.
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? ;-)
Rob
"It's like those French have a different word for *everything*" -
Steve Martin
--
----------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <support@[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: <bbedit-talk-off@[Protected]>
Subject: Re: switching the coding of various symbols
Posted: 2008-05-13 06:52:42
Author: Roland Küffner
First Message | Previous Message | Next Message | Last Message
Hi, Rob
Am 08.05.2008 um 21:04 schrieb Rob Stevenson:
> 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)
greets
Roland
>
> ----------------------------------------------------------
> Have a feature request? Not sure the software's working correctly?
> If so, please send mail to <support@[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: <bbedit-talk-off@[Protected]>
>
--
----------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <support@[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: <bbedit-talk-off@[Protected]>
Subject: Re: switching the coding of various symbols
Posted: 2008-05-14 11:56:17
Author: Bob Rosenberg
First Message | Previous Message | Next Message | Last Message
At 12:52 +0200 on 05/13/2008, Roland Kffner wrote about Re:
switching the coding of various symbols:
>Hi, Rob
>
>Am 08.05.2008 um 21:04 schrieb Rob Stevenson:
>>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)
>
>
>greets
>Roland
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.
--
Bob Rosenberg
RockMUG Webmaster
Webmaster@[Protected]
www.RockMUG.org
--
----------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <support@[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: <bbedit-talk-off@[Protected]>
Subject: Re: switching the coding of various symbols
Posted: 2008-05-14 13:02:56
Author: Roland Küffner
First Message | Previous Message | Next Message | Last Message
Hi,
Am 14.05.2008 um 17:56 schrieb Bob Rosenberg:
> At 12:52 +0200 on 05/13/2008, Roland Küffner wrote about Re:
> switching the coding of various symbols:
>
>> Hi, Rob
>>
>> Am 08.05.2008 um 21:04 schrieb Rob Stevenson:
>>> 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.
-Roland
> ----------------------------------------------------------
> Have a feature request? Not sure the software's working correctly?
> If so, please send mail to <support@[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: <bbedit-talk-off@[Protected]>
>
--
----------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <support@[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: <bbedit-talk-off@[Protected]>
Subject: Re: switching the coding of various symbols
Posted: 2008-05-15 14:58:58
Author: Rob Stevenson
First Message | Previous Message | Next Message | Last Message
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. ;-)
Rob
--
----------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <support@[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: <bbedit-talk-off@[Protected]>