Selaa lähdekoodia

chore: restore calibre

C4illin 2 kuukautta sitten
vanhempi
commit
254509db5e
2 muutettua tiedostoa jossa 6 lisäystä ja 6 poistoa
  1. 1 1
      README.md
  2. 5 5
      src/converters/main.ts

+ 1 - 1
README.md

@@ -31,6 +31,7 @@ A self-hosted online file converter. Supports over a thousand different formats.
 | [Vips](https://github.com/libvips/libvips)                                   | Images        | 45            | 23          |
 | [libheif](https://github.com/strukturag/libheif)                             | HEIF          | 2             | 4           |
 | [XeLaTeX](https://tug.org/xetex/)                                            | LaTeX         | 1             | 1           |
+| [Calibre](https://calibre-ebook.com/)                                        | E-books       | 26            | 19          |
 | [Pandoc](https://pandoc.org/)                                                | Documents     | 43            | 65          |
 | [GraphicsMagick](http://www.graphicsmagick.org/)                             | Images        | 167           | 130         |
 | [Inkscape](https://inkscape.org/)                                            | Vector images | 7             | 17          |
@@ -38,7 +39,6 @@ A self-hosted online file converter. Supports over a thousand different formats.
 | [FFmpeg](https://ffmpeg.org/)                                                | Video         | ~472          | ~199        |
 | [Potrace](https://potrace.sourceforge.net/)                                  | Raster to vector | 4          | 11          |
 
-<!-- | [Calibre](https://calibre-ebook.com/)                                        | E-books       | 26            | 19          | -->
 
 <!-- many ffmpeg fileformats are duplicates -->
 

+ 5 - 5
src/converters/main.ts

@@ -8,7 +8,7 @@ import { convert as convertPandoc, properties as propertiesPandoc } from "./pand
 import { convert as convertresvg, properties as propertiesresvg } from "./resvg";
 import { convert as convertImage, properties as propertiesImage } from "./vips";
 import { convert as convertxelatex, properties as propertiesxelatex } from "./xelatex";
-// import { convert as convertCalibre, properties as propertiesCalibre } from "./calibre";
+import { convert as convertCalibre, properties as propertiesCalibre } from "./calibre";
 import { convert as convertLibheif, properties as propertiesLibheif } from "./libheif";
 import { convert as convertpotrace, properties as propertiespotrace } from "./potrace";
 
@@ -63,10 +63,10 @@ const properties: Record<
     properties: propertiesxelatex,
     converter: convertxelatex,
   },
-  // calibre: {
-  //   properties: propertiesCalibre,
-  //   converter: convertCalibre,
-  // },
+  calibre: {
+    properties: propertiesCalibre,
+    converter: convertCalibre,
+  },
   pandoc: {
     properties: propertiesPandoc,
     converter: convertPandoc,