--- Tomas Frydrych <[EMAIL PROTECTED]> wrote: > > OK, so I will try to summarize the recent discussion > about how to handle smart quotes:
I just want to add some comments on which parts are specific to smart quotes, and which go beyond to cover any remapped characters. > (1) the remapping of the straight quote to a smart > quote should be done at the point of input and > stored in the document. Smart quote specific but possibly smart hypen/m-dash support is possible in the same place. > (2) the remapping needs to be reversible by simple > undo, i.e., ctrl+z. Smart quote specific. > (3) the remapping needs to be language specific Smart quote specific. > (4) we should strive for a powerful, simple to use > interface along the lines described in > http://bugzilla.abisource.com/show_bug.cgi?id=3891 Smart quote specific. > (5) The "hard" remapping should be accompanied by a > smart soft-remapping for non-existent glyphs that > should also allow to distinguish the real and the > remapped glyphs on the screen if "Show Para" is on. This goes beyond to at least a) other common symbols such as em-dash, TM, etc. (A perfect solution would even soft-remap the TM symbol to two letters which behave as a single character for selection etc - this might be too tricky for a single special case though) The "Show Para" part should go even further to let the user know about any remapped or missing character. Perhaps tooltips for completely missing characters will be possible? > (6) One of the main causes of the current problems > is the disjointed, distributed nature of the smart > quotes code. We need to extricate the existing code > from all over the place and centralize it, i.e., we > should design a class for handling smart quotes. Some of this will surely be specific to smart quotes while other parts will be more general. This is sure to be the toughest job. > I think these are the main points; I am currently > looking into (5), and I will comment out the smart > quotes processing in the shaping engine. Hope I didn't seem too overbearing or argumentative and I wish I could work on it too ): Andrew. > Tomas ===== http://linguaphile.sourceforge.net/cgi-bin/translator.pl http://www.abisource.com __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
