Problem with linktext and html characters

Alejandro Tejada capellan2000 at yahoo.com
Fri Jun 12 02:56:28 EDT 2009


Hi,

Many thanks to Devin and Richmond for
answering my question.

By the way, Richmond, the text field on
which i am working actually requires
htmltext for linktexts, images and colors.
Devin, i tested the sample that you posted,
but i am not getting the same results as you.
What i am missing? Just as you noted, in the
bug report #8010, anchor tags split incorrectly
into separated tags.

Paste the following htmltext strings in the
field 1 of the stack created from my first
message. Click in button 1 and compare the
results in field 2.

The main source of problems seems to be the
two characters: > (Greater than) and " (quote)
inside the "a href=" part of the tag. 

Look at these examples:
-- the original htmltext from first message
<a href="goj<font face="helvetica" lang="el">ū</font>on">goj<font face="helvetica" lang="el">ū</font>on</a>
-- produces: kon">gojūon
-- This single word contains Two linked text groups:
-- The first group is:kon">gojū
-- The second group is:gojūon (only accesible when
-- you click the letters "on" of the word "gojūon")

At last, i will use one of the following htmltext strings,
depending of the results with different languages unicode
text links converted to htmltext.
<p>
<a href="Link">goj<font face="helvetica" lang="el">ū</font>on</a>
</p>
-- Here, i simply replaced the whole htmltext unicode link
-- with a word: "Linked", but this single linked word looks
-- wrong: the letters "on" are left out of the group.

<p>
<a href="<font face="helvetica" lang="el"></font>on">goj<font face="helvetica" lang="el">ū</font>on</a>
</p>
-- Notice the odd character replacement that i had to
-- made in this htmltext string, to produce an almost
-- empty link (with a single quote).

Here is a second set of examples:
<p></p>
<a href="link"><font face="helvetica" lang="ja">り</font></a> and  
<a href="<font face="helvetica" lang="ja"></font>"><font face="helvetica" lang="ja">れ</font></a>
<p></p>

Hopefully, if reported on time, this will be an easy fix
that could be ready for the next main release.

Devin, Could you append this information to the bug 
report that you already opened?
Tell us on the list after you do, to vote for it.

Thanks in advance.!

Have a nice weekend.
alejandro

 Visit my site:
http://www.geocities.com/capellan2000/


      


More information about the use-livecode mailing list