lyx_mirror/src/mathed/MathAutoCorrect.h
Isaac bed546d6f6 Make math autocorrrect work with more than 2 chars
Currently, math autocorrect allows to transform a couple of characters
to a new one. This patch allows to transform a couple (sequence,
character) to a new character.

No example are implemented right now. One possible idea would be
"--" + ">" => \longrightarrow
2019-06-02 21:12:12 +02:00

27 lines
499 B
C++

// -*- C++ -*-
/**
* \file MathAutoCorrect.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
#ifndef MATHAUTOCORRECT_H
#define MATHAUTOCORRECT_H
#include "support/strfwd.h"
namespace lyx {
class Cursor;
// make "corrections" according to file lib/autocorrect
bool math_autocorrect(Cursor & cur, char_type c);
} // namespace lyx
#endif