mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-16 07:55:41 +00:00
bed546d6f6
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
27 lines
499 B
C++
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
|