Genii Weblog


Civility in critiquing the ideas of others is no vice. Rudeness in defending your own ideas is no virtue.


Thu 18 Nov 2010, 11:20 AM
Sorry about the typo in the title earlier.

A customer asked whether it was possible to use our Midas Rich Text technology to search through rich text, inside tables, in different fonts and with different attributes, and replace a specified pattern with a string of X's.

It couldn't be much easier. The Midas Rich Text LSX and Midas Rich Text C++ API both support regular expressions (mostly consistent with Perl expressions), and contain a number of methods to allow their use.  In this case, let's say the pattern was ORDnnnnnnnnnnnn where the n's may be any twelve digit number.  The code would simply be:

Call rtitem.ConnectBackend(doc.Handle, "Body", True)
Call rtitem.Everything.RegexReplace("ORD([0-9]{12})", "XXXXXXXXXXXXXXX")

but, let's say that isn't specific enough, as it could turn CHORD1234567890123456 into CHXXXXXXXXXXXXXXX3456, so let's say that the string must either be separated by whitespace or by the beginning/end of the text, so that "CHORD1234567890123456" would not match but "The order# is ORD123456789012" would.  Simple enough, just change the regular expression as below:

Call rtitem.ConnectBackend(doc.Handle, "Body", True)
Call rtitem.Everything.RegexReplace("(^|[\s*])ORD([0-9]{12})([\s*]|$)", "$1XXXXXXXXXXXXXXX$3")

and that's all it takes.  We could make it easier, but we'd probably have to read your mind.

Copyright © 2010 Genii Software Ltd.

Tags:

Thu 18 Nov 2010, 08:39 AM
My recent examination of the Notes/Domino 8.5.2 combined discussion database confirms a prediction a number of folks have made, that IBM wants an xPages-only future.  Even the simplest web to Notes rich text conversions have been ignored (hint to the IBMers, in the CKEditor config file, check on quotes around the font names with spaces like Lucida Sans Unicode).  Stephan Wissel points out that a change to the Launch properties will make the Notes client use xPages too.

Hence the TSA comparison.  For those who don't know, the TSA is the authority tasked with security at airports in the United States.  Poorly paid, poorly trained, but given massive power over the civil liberties of travelers, these men and women are supposed to stop terrorists by checking your name, frisking, scanning and stripping (if need be), but without any hint of profiling or actually looking at the suspects, er, passengers.  Carry a gun into security, andd they are supposed to make you drop it in a bin, but not stop you from boarding.  The suspicious Somali man with the name Fred Rogers is waved through, while the six month old child in a stroller whose name matches a watch list is stopped.

Insane, but any inconvenience, any expense, any delay is justified rather than have TSA take advice from the Israelis, for example, who seem to have a clue or two about security on their airlines. Don't fix the process, put the pain on the users.

IBM has had numerous problems with conversion of HTML to rich text and vice-versa.  Most of its problems are easy to fix.  A few are difficult.  But instead, IBM is happy to add any inconvenience, any expense, any delay, even cripple its Notes client completely, rather than either buy technology (such as mine) or develop technology to make the solution easier.

Enabling xPages in the Notes client solves two small problems, MIME conversion and lack of time spent on UI design in Notes discussion, by crippling the user experience.  It simply runs the browser experience on the client, with exactly the issues you might expect.  I thought about coming up with my own list, but how about using the list Mary Beth Raven listed on her blog as the Top 10 enhancements people want to see in the CKEditor:


  1. Pictures (embedded and stored locally) 
  2. Inline attachments 
  3. Spellcheck
  4. Automatic correction 
  5. Sections 
  6. Tabbed tables 
  7. Double, Single, and ½ spacing 
  8. Live text 
  9. Permanent pen 
  10. Automatic capitalization

In other words, they want the capabilities the Notes client has had for years.  But because IBM doesn't want to bother fixing a problem that I, by myself, have fixed fairly well, they want you to give up these and more (such as adding doclinks, adding buttons, running agents, copy and pasting documents, easily acting on sets of documents, etc.) so that they are saved a bit of effort.

Really, IBM?  You want to be more like the TSA?

Copyright © 2010 Genii Software Ltd.

Tags: