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

lipska lipska at gmail.com
Mon Apr 28 07:41:01 PDT 2008


Hi Noel,

Thanks very much for the reply. I have tried it on the java console
interface and on the web interface with the same results. Just a note the
AIML file I attached does not cause this to happen but if its edited and a
carriage return is placed under TESTTWO ( as below) it occurs.

Lipska



Noel Bush wrote:
> 
> 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
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> _______________________________________________
> This is the alicebot-general mailing list
> Reply to alicebot-general at list.alicebot.org
> Unsubscribe and change preferences at
> http://list.alicebot.org/mailman/listinfo/alicebot-general
> Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
> Learn to read at http://www.literacy.org/
> 
> 

-- 
View this message in context: http://www.nabble.com/Newline-Carriage-Return-Issue-with-AIML-on-ProgramD-4.6-tp16930873p16940453.html
Sent from the Alicebot General mailing list archive at Nabble.com.



More information about the alicebot-general mailing list