-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 12/7/12 5:21 PM, Ariel Constenla-Haile wrote: > On Fri, Dec 07, 2012 at 05:01:42PM +0100, Jürgen Schmidt wrote: >> B. change the existing (not published) API and replace the first >> argument "string" to "XTextRange". > > Is it a good idea to use a text range? this will allow modification > of this text range, unless you make it read-only, if possible at > all. I guess that the current approach of using a string instad of > the text range has to do with the fact that there might more than > one smart tag precessing the same string. If you give the smart tag > a text range, you cannot relay on the extension good will not to > manipulate it. >
a good point, do you have another idea? The point is that Robert has made the evaluation of the document already, the recognition if you want, and will use the SmartTag API to visualize the results and provide proper actions. I assume he has a list of text ranges already and have to provide the markups only and put it in the SmartTag context. The idea is to reuse this concepts because you get a lot of features for free, context menu, you can define your own action based on the SmartTag type, ... Juergen -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQIcBAEBCgAGBQJQwhrvAAoJEM/u8xZRtf3oGiwQAKNCX3H54+J1tCn0InkPbFCM 0qq2S4FTSxG6db7lnrYbdMHaLixyZntNnQbr88bfg6Bmt0yans4CWNp/GyPOfCmB gYWMQWZCqEEHSuR04BploxBprSCduaqQQkbKEE8ecrNVArg6EcE/xbOUnxqYPoSr XQIaxMkBdyJdr5zieO9MOKAzpcQ4khs6DuKRmUn2j6sW8O7aoWgYJ/cSUDSbkc2P 2ouXEc7XNcEqPN4+/vrYu4UTzewtUIBa4WhJ3Dd2uWrsThvWsIKIMSdGYX6zKG0M ePVyRiwq5zoAirslnYOZIkQ74Ng9d/ZmxpjS8N+nCFEV0M65AH7ToNE3lTmkr0cT QBPqrBLuTHYOJWcb08Yi8lvuy1YBhilvIIg0F97GfeQcW5dZ3NBSRV+lTKXDHwxs 2f68RPydES5BEDK+ZXNWnSwqXfAzb1+nS7PWXZh/ApDoItSIB1go9Rdm2ffLD+BB 1N5w9U/lVtW/5qCGoSPqKFtTiTSgQKJ5DFtaM/xUtl6AZNsDE8JKmkrqd9os96sq p0t43ZvKOPS2EjzRaamKlmWouO/n475aTJZBDxWTx/luTWsTrpwCS4haCshgHwD7 +PTjZAIZAhfEDEhu9XGBuVRkq6dp4bvzzbcGBPzN6usx2DAnPvikdqDSNzsEyjN1 OyILJ4r60wRUoOAlbOZF =Cge5 -----END PGP SIGNATURE-----