> OutputParams is used to give some context to the called methods (e.g.
> local_font, document_language...). Adding par_id ad pos would
> certainly not be a problem. I still think it is better than to
> generate an exception in two steps, but it does not ,qke q big
> difference in the end.

Encoding::latexChar does not have OutputParams so you will have to
intercept this exception in makeLaTeXFile and assign pit and pos to
OutputParams, then re-throw the exception. The process is essentially
the same, but your approach adds two rarely used variables to
OutputParams, which IMHO is not a good idea.

Cheers,
Bo

Reply via email to