Text to speech engine implementation

This commit is contained in:
Jakub Melka
2020-02-18 20:21:18 +01:00
parent 7df807470b
commit ca9e2f3149
15 changed files with 1125 additions and 8 deletions

View File

@ -272,7 +272,7 @@ using PDFTextFlows = std::vector<PDFTextFlow>;
/// This class represents a portion of continuous text on the page. It can
/// consists of multiple blocks (which follow reading order).
class PDFTextFlow
class PDFFORQTLIBSHARED_EXPORT PDFTextFlow
{
public:
@ -294,6 +294,9 @@ public:
/// \param expression Regular expression to be matched
PDFFindResults find(const QRegularExpression& expression) const;
/// Returns whole text for this text flow
QString getText() const { return m_text; }
/// Returns text form character pointers
/// \param begin Begin character
/// \param end End character
@ -327,7 +330,7 @@ private:
/// Text layout of single page. Can handle various fonts, various angles of lines
/// and vertically oriented text. It performs the "docstrum" algorithm.
class PDFTextLayout
class PDFFORQTLIBSHARED_EXPORT PDFTextLayout
{
public:
explicit PDFTextLayout();
@ -498,4 +501,6 @@ private:
} // namespace pdf
Q_DECLARE_OPERATORS_FOR_FLAGS(pdf::PDFTextFlow::FlowFlags)
#endif // PDFTEXTLAYOUT_H