Ensure Noto font is installed where needed
This commit is contained in:
@@ -67,6 +67,8 @@ RUN add-apt-repository -y ppa:alex-p/tesseract-ocr5
|
|||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
ghostscript \
|
ghostscript \
|
||||||
fonts-droid-fallback \
|
fonts-droid-fallback \
|
||||||
|
fonts-noto-core \
|
||||||
|
fonts-noto-cjk \
|
||||||
jbig2dec \
|
jbig2dec \
|
||||||
pngquant \
|
pngquant \
|
||||||
tesseract-ocr \
|
tesseract-ocr \
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ RUN apk add --no-cache \
|
|||||||
tesseract-ocr-data-osd \
|
tesseract-ocr-data-osd \
|
||||||
tesseract-ocr-data-por \
|
tesseract-ocr-data-por \
|
||||||
tesseract-ocr-data-spa \
|
tesseract-ocr-data-spa \
|
||||||
|
font-noto \
|
||||||
ttf-droid \
|
ttf-droid \
|
||||||
unpaper \
|
unpaper \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|||||||
@@ -57,6 +57,8 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y --no-install-recommends \
|
sudo apt-get install -y --no-install-recommends \
|
||||||
curl \
|
curl \
|
||||||
|
fonts-noto-core \
|
||||||
|
fonts-noto-cjk \
|
||||||
ghostscript \
|
ghostscript \
|
||||||
jbig2dec \
|
jbig2dec \
|
||||||
img2pdf \
|
img2pdf \
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ official when it's tagged and posted to PyPI.
|
|||||||
- Preferred: both
|
- Preferred: both
|
||||||
- Recommended: `pypdfium2` for PDF rasterization (new dependency)
|
- Recommended: `pypdfium2` for PDF rasterization (new dependency)
|
||||||
- Recommended: `ghostscript` (used to be Required)
|
- Recommended: `ghostscript` (used to be Required)
|
||||||
|
- Recommended: Noto fonts for improved OCR text positioning
|
||||||
- Optional: `verapdf` for fast PDF/A validation (new dependency)
|
- Optional: `verapdf` for fast PDF/A validation (new dependency)
|
||||||
- Requires: `fpdf2` for text layer rendering (new dependency)
|
- Requires: `fpdf2` for text layer rendering (new dependency)
|
||||||
- Recommended: replace `typer` with `cyclopts` in misc scripts (new dependency)
|
- Recommended: replace `typer` with `cyclopts` in misc scripts (new dependency)
|
||||||
|
|||||||
Reference in New Issue
Block a user