[alicebot-general] Matching fractions inside condition.
Dr. Rich Wallace
drwallace at alicebot.org
Wed Feb 7 07:49:02 PST 2007
Use the substitution pre-processor (normalization) to replace "/" with "
SLASH ". Strictly speaking, the pre-processor should suppress "+" and "-"
as well. Non-alphanumeric characters are not supposed to be in the AIML
input.
Best regards,
Rich
> I ran into an issue with the slash sign "/" inside condition.
>
> I want to allow users of an AIML application to use fraction like 1/3
> so that they can make probability statements.
>
> However, a user input like "1/3" will not match with a value specification
> like
> <li name="star" value="1/3"> inside condition. Masking the slash does
> not seem to work inside condition. I ran into the same problems when I
> used 1:3.
>
> Other signs (which are in this setting not appropriate) like 1-3 work
> fine. Moreover, displaying the slash sign does work in other
> conditions (e.g., displayed to the user, used as a value of a normal
> AIML variable).
>
> I use <?xml version="1.0" encoding="UTF-8"?> and ProgramE.
>
> Any ideas?
>
>
>
> Dietmar Janetzko
> _______________________________________________
> 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/
>
More information about the alicebot-general
mailing list