On Sun, Dec 23, 2007 at 03:14:48PM -0600, Bo Peng wrote:

> > Like this.
> 
> The patch looks fine to me, but I still can not see the offending
> characters in the view source dialog. (chaning os << a to os.put(a)
> does not help)...
> 
> If Enrico and you can see them, you can commit the patch and leave the
> issue for later.

I think that it is also useful to know the character code point. This
could be achieved by also giving a warning to the console. Something
like:

        if (runparams.dryrun) {
                os << _("<LyX Warning: uncodable character>");
                os.put(c);
                os << _("</LyX Warning>");
                docstring s;
                s.resize(1);
                s[0] = c;
                lyxerr << "Could not find LaTeX command for character '"
                       << to_utf8(s) << "' (0x"
                       << std::hex << c << std::dec
                       << ").\nLaTeX export will fail." << endl;
        } else {
                ...
        }

-- 
Enrico

Reply via email to