AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

punctuation and spacing - spaces before ? ! and :
 
 

Still into punctuation and spacing.

In French there are spaces before “?”, “!” and “:” (non breaking spaces to precise - but this doesn’t really matter).

Is there a convenient way to achieve this?

outputmacro: ^qm()
  ^
" ?"

...

tqui êtes-vous ^qm() 

works but is not scalable.

I have been looking around

^print 

but didn’t find anything relevant for that.

Any idea but hacking the src?

 

 
  [ # 1 ]

I will hack the source appropriately.

 

 
  [ # 2 ]

Is it scalable enough that you can just separate your punctuation currently…


t: qui êtes-vous : oui ?
t: merde !

 

 
  [ # 3 ]

By the way, if it is not, you can easily write simple code in postprocessing topic that substitutes ? with space? and so on.

 

 
  [ # 4 ]

When I presently put spaces before ?!: in the code, like:

tqui êtes-vous oui ?
tzut 

they are automatically removed in the output.

It would be a perfect solution if they were just kept when present.


(sure I could also write a postprocessing topic)

btw “;” also takes a space before in French - I forgot this one.

 

 
  [ # 5 ]

Your examples work fine for me in the internal version of CS. Since this will release this weekend, try it then and see.

 

 
  login or register to react