saulalbert / unixclan

Utility scripts for TalkBank's CLAN
0 stars 0 forks source link

CAlite2CHAT Converts a single 'less than' symbol < into a '◁' symbol #30

Closed saulalbert closed 6 years ago

saulalbert commented 6 years ago

CAlite uses an unmatched less than sign '<' to indicate a 'fast start' when placed before a word.

The ambiguity here is that it also means when it is matched.

A reasonable heuristic would be to convert '<' signs into the unicode symbol '◁' only where:

  1. There is no matching '>' sign in the same line (i.e. before the utterance terminator).
  2. There is no extra '<' sign next to the first '<', (which would mean >>very fast talk<<).

(U+25C1 : WHITE LEFT-POINTING TRIANGLE {z notation domain restriction})

So

hello ◁how are you .

becomes

hello <how are you