[alicebot-general] Newline/Carriage Return Issue with AIML on ProgramD 4.6

Noel Bush noel at aitools.org
Mon Apr 28 04:43:07 PDT 2008


Hi Lipska,

What user interface are you using?  Web interface, IM, ....?

Noel

lipska wrote:
> Hi All,
> 
> I am hoping someone can give me advice regarding the issue I am
> experiencing. I wrote AIML for one of the old programD interfaces ( 4.1.*) 
> couple of years ago. I have now upgraded to the new programd 4.6 and have
> experienced a number of issues regarding whitespace/carriage returns.
> 
> I am not sure if these are related to my incorrect usage of AIML, missing
> settings or perhaps something else.
> 
> I have a number of examples of what happens
> 
> Case 1 
>  Consider the below extract of AIML
> 
> <category>
> <pattern>TESTONE</pattern>
> <template>
> hello <srai>TESTTWO</srai>
> </template>
> </category>
> 
> <category>
> <pattern>TESTTWO</pattern>
> <template>
> Right here
> </template>
> </category>
>  
> When I type TESTONE it should print out hello and the process TESTTWO i.e. I
> would expect it to print out
> hello Right here
> 
> Instead it puts a carriage return in outputting the below
> hello 
> Right here
> 
> Now I am able to correct this by changing the AIML under TESTTWO to have the
> template all on one line
> 
> <category>
> <pattern>TESTTWO</pattern>
> <template>Right here</template>
> </category>
> 
> This outputs
> hello Right here
> 
> I have lots and lots of AIML that is written in the previous form and this
> would mean hours of work to fix. I realise this is probably related to some
> new interpretation in progamd 4.6 of carriage returns i.e. they are included
> as part of the content. Is there any easy way I can switch this off
> 
> Any help would be greatly appreciated
> 
> 
> Example of actual AIML file
> http://www.nabble.com/file/p16930873/sample1.aiml sample1.aiml 
> 
> Kind regards
> Lipska
> 
> 
> 
> 
> 
> 
> 
> 


More information about the alicebot-general mailing list