Rob Stevenson | 15 May 2008 20:58

Re: switching the coding of various symbols

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  
(Continue reading)

Roland Küffner | 16 May 2008 17:16
Picon

Re: switching the coding of various symbols

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  
(Continue reading)


Gmane