Mif2Go: removing CRLF from CodeStore content: Workaround

2008-11-17 Thread Jim Owens
The {HTMLOptions} setting NoWrap=Yes prevents newline characters from 
being included in output paragraphs. THis solves the problem for the 
Related Topics links.

Is there any risk that some paragraphs in the Frame source will be too 
long for the CHM browser to handle?


Jim Owens wrote:
> For "early in the paragraph", please read "early in the topic."
> 
> 
> Jim Owens wrote:
>> Thanks. I can't find anything about "CodeSource" in the manual. In the 
>> [HtmlStyles] section, I can assign pre or blockquote to the paragraph 
>> format; this changes the paragraph tag in the output from  to 
>> , for example. If I recall, this would cause the browser to 
>> honour any CRLFs in the paragraph.
>>
>> What I want to do is take some text that appears early in the 
>> paragraph, and convert it to a link in an MS HTML Help "Related Topic" 
>> button. As part of this, I have to provide text for the link. My 
>> problem is that the text contains CRLF characters, and these show up 
>> as little squares in the link. I can't get rid of them. There is no 
>> test I can find that returns 1 when a character is 0a or 0d, or when a 
>> string contains \n.
>>
>>
>>
>>
>> Art Campbell wrote:
>>> I don't have M2G on this system, so I can't check this, but I'm
>>> half-remembering that if you set up the CodeSource to output as either
>>> Blockquote, Preformatted, or Code that this won't happen, but I'm not
>>> remembering how to turn this off for other formats.
>>>
>>> Art
>>>
>>>
>>>
>>> Art Campbell
>>>   art.campbell at gmail.com
>>>   "... In my opinion, there's nothing in this world beats a '52
>>> Vincent and a redheaded girl." -- Richard Thompson
>>>   No disclaimers 
>>> apply.
>>>DoD 358
>>>
>>>
>>>
>>> On Mon, Nov 17, 2008 at 9:12 AM, JIm Owens  wrote:
 The Frame source does not contain the CRLF. It's added when Mif2Go 
 processes
 the paragraph (presumably to provide breaks in the HTML, so as not to
 overwhelm the browser with a long line).


 On Mon 17/11/08 8:41 AM , "Art Campbell" art.campbell at gmail.com sent:

 Have you tried a simple S&R in Frame? \P and or \p in the Find field
 usually work to locate the end\beginning of a para
 You may also be able to select a CR-LF combination, copy it, and Find
 characters on the clipboard.
 Art


 Art Campbell
 art.campbell at gmail.com
 "... In my opinion, there's nothing in this world beats a '52
 Vincent and a redheaded girl." -- Richard Thompson
 No disclaimers apply.
 DoD 358



 On Mon, Nov 17, 2008 at 8:10 AM, JIm Owens  wrote:
> I'm processing the content of a CodeStore. The content contains CRLF.
> I need to remove the CRLF. Should be simple, right? Just find and
> remove 0a and 0d, or replace n or r or some combination thereof.
> I have read the Mif2Go manual and tried everything I can think
> of,and two days later I am defeated. Is there a way to do this?
> ___
>
>
> You are currently subscribed to Framers as art.campbell at gmail.com.
>
> Send list messages to framers at lists.frameusers.com.
>
> To unsubscribe send a blank email to
> framers-unsubscribe at lists.frameusers.com
> or visit
> http://lists.frameusers.com/mailman/options/framers/art.campbell%40gmail.com
>  
>
>
> Send administrative questions to listadmin at frameusers.com. Visit
> http://www.frameusers.com/ for more resources and info.
>

>>>
>>
>> ___
>>
>>
>> You are currently subscribed to Framers as jowens at magma.ca.
>>
>> Send list messages to framers at lists.frameusers.com.
>>
>> To unsubscribe send a blank email to 
>> framers-unsubscribe at lists.frameusers.com
>> or visit 
>> http://lists.frameusers.com/mailman/options/framers/jowens%40magma.ca
>>
>> Send administrative questions to listadmin at frameusers.com. Visit
>> http://www.frameusers.com/ for more resources and info.
>>
>>
> 
> 
> 



Re: Mif2Go: removing CRLF from CodeStore content: Workaround

2008-11-17 Thread Jim Owens
The {HTMLOptions} setting NoWrap=Yes prevents newline characters from 
being included in output paragraphs. THis solves the problem for the 
Related Topics links.

Is there any risk that some paragraphs in the Frame source will be too 
long for the CHM browser to handle?


Jim Owens wrote:
> For "early in the paragraph", please read "early in the topic."
> 
> 
> Jim Owens wrote:
>> Thanks. I can't find anything about "CodeSource" in the manual. In the 
>> [HtmlStyles] section, I can assign pre or blockquote to the paragraph 
>> format; this changes the paragraph tag in the output from  to 
>> , for example. If I recall, this would cause the browser to 
>> honour any CRLFs in the paragraph.
>>
>> What I want to do is take some text that appears early in the 
>> paragraph, and convert it to a link in an MS HTML Help "Related Topic" 
>> button. As part of this, I have to provide text for the link. My 
>> problem is that the text contains CRLF characters, and these show up 
>> as little squares in the link. I can't get rid of them. There is no 
>> test I can find that returns 1 when a character is 0a or 0d, or when a 
>> string contains \n.
>>
>>
>>
>>
>> Art Campbell wrote:
>>> I don't have M2G on this system, so I can't check this, but I'm
>>> half-remembering that if you set up the CodeSource to output as either
>>> Blockquote, Preformatted, or Code that this won't happen, but I'm not
>>> remembering how to turn this off for other formats.
>>>
>>> Art
>>>
>>>
>>>
>>> Art Campbell
>>>   [EMAIL PROTECTED]
>>>   "... In my opinion, there's nothing in this world beats a '52
>>> Vincent and a redheaded girl." -- Richard Thompson
>>>   No disclaimers 
>>> apply.
>>>DoD 358
>>>
>>>
>>>
>>> On Mon, Nov 17, 2008 at 9:12 AM, JIm Owens <[EMAIL PROTECTED]> wrote:
 The Frame source does not contain the CRLF. It's added when Mif2Go 
 processes
 the paragraph (presumably to provide breaks in the HTML, so as not to
 overwhelm the browser with a long line).


 On Mon 17/11/08 8:41 AM , "Art Campbell" [EMAIL PROTECTED] sent:

 Have you tried a simple S&R in Frame? \P and or \p in the Find field
 usually work to locate the end\beginning of a para
 You may also be able to select a CR-LF combination, copy it, and Find
 characters on the clipboard.
 Art


 Art Campbell
 [EMAIL PROTECTED]
 "... In my opinion, there's nothing in this world beats a '52
 Vincent and a redheaded girl." -- Richard Thompson
 No disclaimers apply.
 DoD 358



 On Mon, Nov 17, 2008 at 8:10 AM, JIm Owens <[EMAIL PROTECTED]> wrote:
> I'm processing the content of a CodeStore. The content contains CRLF.
> I need to remove the CRLF. Should be simple, right? Just find and
> remove 0a and 0d, or replace n or r or some combination thereof.
> I have read the Mif2Go manual and tried everything I can think
> of,and two days later I am defeated. Is there a way to do this?
> ___
>
>
> You are currently subscribed to Framers as [EMAIL PROTECTED]
>
> Send list messages to [EMAIL PROTECTED]
>
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> or visit
> http://lists.frameusers.com/mailman/options/framers/art.campbell%40gmail.com
>  
>
>
> Send administrative questions to [EMAIL PROTECTED] Visit
> http://www.frameusers.com/ for more resources and info.
>

>>>
>>
>> ___
>>
>>
>> You are currently subscribed to Framers as [EMAIL PROTECTED]
>>
>> Send list messages to [EMAIL PROTECTED]
>>
>> To unsubscribe send a blank email to 
>> [EMAIL PROTECTED]
>> or visit 
>> http://lists.frameusers.com/mailman/options/framers/jowens%40magma.ca
>>
>> Send administrative questions to [EMAIL PROTECTED] Visit
>> http://www.frameusers.com/ for more resources and info.
>>
>>
> 
> 
> 

___


You are currently subscribed to Framers as [EMAIL PROTECTED]

Send list messages to [EMAIL PROTECTED]

To unsubscribe send a blank email to 
[EMAIL PROTECTED]
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to [EMAIL PROTECTED] Visit
http://www.frameusers.com/ for more resources and info.