| 30 | using tesseract::JUSTIFICATION_UNKNOWN; |
| 31 | |
| 32 | static STRING ParagraphJustificationToString( |
| 33 | tesseract::ParagraphJustification justification) { |
| 34 | switch (justification) { |
| 35 | case JUSTIFICATION_LEFT: |
| 36 | return "LEFT"; |
| 37 | case JUSTIFICATION_RIGHT: |
| 38 | return "RIGHT"; |
| 39 | case JUSTIFICATION_CENTER: |
| 40 | return "CENTER"; |
| 41 | default: |
| 42 | return "UNKNOWN"; |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | bool ParagraphModel::ValidFirstLine(int lmargin, int lindent, |
| 47 | int rindent, int rmargin) const { |