Soft hyphens in LC

Devin Asay devin_asay at
Fri Jun 12 12:45:07 EDT 2015

On Jun 12, 2015, at 10:34 AM, Richmond <richmondmathewson at> wrote:

> On 12/06/15 18:50, Devin Asay wrote:
>> I think I know the answer to this (“No."), but thought I’d ask. Is there any way to implement soft hyphens in a LiveCode field? What about zero-width spaces? I’m working on a project in LC 6.7, but will probably be moving it to 7.0 soon. I haven’t been able to get it to work in 6.7.

> Sorry for my stupidity: but what is a 'soft hyphen', and, by extension, what is a 'hard hyphen’?

Oh, sorry, a soft hyphen is a hyphen that is shown optionally. If a word with a soft hyphen embedded in it occurs close to the end of a line of text, the word may be broken at the soft hyphen and a hyphen will be shown. Anywhere else in the line of text, the word will be displayed normally, with no break or hyphen. The html entity for a soft hyphen is ­ or ­. I have tested this in LC, and the engine’s HTML rendering just ignores it.


A hard hyphen would be one that is typed by the person entering the text, and would be followed by a hard return—a return or cr constant in LiveCode parlance.


Devin Asay
Office of Digital Humanities
Brigham Young University

More information about the Use-livecode mailing list