how to handle some signs?

8 views
Skip to first unread message

ole

unread,
Oct 14, 2013, 12:57:29 PM10/14/13
to symbolic...@googlegroups.com
Hi,

How can I handle special signs in SCOM?

(filter-pass '(» « \. ) '(» s c h o e n e r w i t z \. « » u n b e d e u t e n d \. «))
;this works fine

(filter-pass '(» « \. - ) '(» s c h o e n e r w i t z \. « - » u n b e d e u t e n d \. «))
; this does not, there seems to be a problem with the "-", also with the "–"

thanks!

ole





ole

unread,
Oct 14, 2013, 1:09:24 PM10/14/13
to symbolic...@googlegroups.com
and is there a way that SCOM can make a difference between "r" and "R" or is it not case sensitiv per se?
> --
> You received this message because you are subscribed to the Google Groups "Symbolic Composer" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to symboliccompos...@googlegroups.com.
> To post to this group, send email to symbolic...@googlegroups.com.
> Visit this group at http://groups.google.com/group/symboliccomposer.
> For more options, visit https://groups.google.com/groups/opt_out.

pstone imap

unread,
Oct 16, 2013, 5:09:03 AM10/16/13
to symbolic...@googlegroups.com
use this for cases: \r \R

filter-pass seems to want - in symbols -a -1/2 but not separately
use some other symbol instead
(filter-pass '(» « \. ! ) '(» s c h o e n e r w i t z \. « ! » u n b e d e u t e n d \. «))
(filter-pass '(» « \. _ ) '(» s c h o e n e r w i t z \. « _ » u n b e d e u t e n d \. «))

see extended symbols, try out what other symbols are saveable, editor complains if it finds wrong one, it appears in listener

Peter

ole

unread,
Oct 16, 2013, 10:11:45 AM10/16/13
to symbolic...@googlegroups.com
>
>

> (filter-pass '(» « \. _ ) '(» s c h o e n e r w i t z \. « _ » u n b e d e u t e n d \. «))
>
I have tried to build a function to replace symbols with no success, like

(sym-replace '» '? ''(» s c h o e n e r w i t z \. « _ » u n b e d e u t e n d \. «))
-->'(? s c h o e n e r w i t z \. « _ ? u n b e d e u t e n d \. «))

how can I do that?

thanks


ole

ole

unread,
Oct 16, 2013, 11:13:59 AM10/16/13
to symbolic...@googlegroups.com
to answer my own question, after a long search I found substitute,
that should do what I want..


ole

pstone imap

unread,
Oct 16, 2013, 11:19:13 AM10/16/13
to symbolic...@googlegroups.com
go through list with dolist and test items

(defun sym-replace (what with list)
(let (out)
(dolist (x list)
(if (equal x what)
(push with out)
(push x out)))
(nreverse out)))

Peter
Reply all
Reply to author
Forward
0 new messages