feat: import Xournal++ and Xournal notebooks (Issue #47)
The import menu entry (formerly "Import PDF") and drag & drop now also accept .xopp and .xoj files. Each Xournal page becomes a page of a new notebook: strokes with pen pressure, highlighters, texts, embedded images, lined/squared/dotted paper, image backgrounds and PDF backgrounds (looked up at the stored path and next to the file). All layers are flattened in order; LaTeX formulas are skipped and counted in the status message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b5d9d72e79
commit
2bd697ef82
11 files changed
+902
-44
No files matched your search
+13
-7
@@ -52,7 +52,6 @@ pub const EN: &[(&str, &str)] = &[
|
||||
("Das PDF enthält keine Seiten", "The PDF has no pages"),
|
||||
("Das PDF hat {count} Seiten, höchstens {max} werden unterstützt", "The PDF has {count} pages, at most {max} are supported"),
|
||||
("Das PDF ist verschlüsselt oder passwortgeschützt und kann nicht geöffnet werden", "The PDF is encrypted or password protected and cannot be opened"),
|
||||
("Das PDF wird als neues Notizbuch angelegt, eine Seite je PDF-Seite. Beim Export liegen deine Notizen über den Originalseiten.", "The PDF becomes a new notebook, one page per PDF page. When exporting, your notes lie on top of the original pages."),
|
||||
("Datei existiert nicht", "File does not exist"),
|
||||
("Den Ordner gibt es nicht mehr", "The folder no longer exists"),
|
||||
("Den Ordner „{name}“ gibt es hier schon", "A folder “{name}” already exists here"),
|
||||
@@ -150,7 +149,6 @@ pub const EN: &[(&str, &str)] = &[
|
||||
("Keine manifest.json vorhanden", "No manifest.json present"),
|
||||
("Keine nutzbare Grafikschnittstelle gefunden.\nHäufigste Ursache: Der Benutzer darf nicht auf die Grafikkarte zugreifen (/dev/dri).\nPrüfen mit `ls -l /dev/dri` und `groups`; ggf. `sudo usermod -aG render,video $USER`\nund neu anmelden. Alternativ einen Software-Renderer installieren (Paket mesa-vulkan-drivers)\noder die Schnittstelle festlegen, z. B. `WGPU_BACKEND=vulkan ink-notes`.", "No usable graphics interface found.\nMost common cause: the user may not access the graphics card (/dev/dri).\nCheck with `ls -l /dev/dri` and `groups`; if needed `sudo usermod -aG render,video $USER`\nand log in again. Alternatively install a software renderer (package mesa-vulkan-drivers)\nor choose the interface, e.g. `WGPU_BACKEND=vulkan ink-notes`."),
|
||||
("Keine Ordner oder Bilder (PNG, JPEG, GIF, WebP, BMP)", "No folders or images (PNG, JPEG, GIF, WebP, BMP)"),
|
||||
("Keine Ordner oder PDF-Dateien", "No folders or PDF files"),
|
||||
("Keine Sicherungskopie (manifest.json.bak) vorhanden", "No backup copy (manifest.json.bak) present"),
|
||||
("Kleinere Schrift (jetzt {size} pt)", "Smaller font (now {size} pt)"),
|
||||
("Klicke auf 'Nach Updates suchen', um die neuesten Releases vom Gitea-Server abzufragen.", "Click 'Check for updates' to query the latest releases from the Gitea server."),
|
||||
@@ -234,9 +232,7 @@ pub const EN: &[(&str, &str)] = &[
|
||||
("Papierkorb-Pfad '{path}' liegt nicht im Papierkorb", "Trash path '{path}' is not in the trash"),
|
||||
("Papierkorb-Verzeichnis existiert nicht", "Trash folder does not exist"),
|
||||
("Pastell-Cyan", "Pastel cyan"),
|
||||
("PDF importieren", "Import PDF"),
|
||||
("PDF kann nicht geöffnet werden", "Cannot open PDF"),
|
||||
("PDF nicht importiert: {err}", "PDF not imported: {err}"),
|
||||
("PDF nicht lesbar: {e}", "PDF not readable: {e}"),
|
||||
("PDF ohne Seite", "PDF without a page"),
|
||||
("PDF-Export läuft…", "PDF export running…"),
|
||||
@@ -368,7 +364,6 @@ pub const EN: &[(&str, &str)] = &[
|
||||
("Verzeichnis '{path}' enthält kein manifest.json", "Folder '{path}' contains no manifest.json"),
|
||||
("Verzeichnis '{path}' existiert nicht", "Folder '{path}' does not exist"),
|
||||
("Vorherige Seite (Bild auf)", "Previous page (Page Up)"),
|
||||
("Vorlesungsfolien, Übungsblätter oder Formulare als neues Notizbuch öffnen und darauf schreiben", "Open lecture slides, worksheets or forms as a new notebook and write on them"),
|
||||
("weich", "soft"),
|
||||
("Weich: schon leichter Druck ergibt kräftige Linien.\nHart: erst fester Druck ergibt kräftige Linien.", "Soft: even light pressure gives bold lines.\nHard: only firm pressure gives bold lines."),
|
||||
("Weitere Funktionen – Update verfügbar", "More – update available"),
|
||||
@@ -430,9 +425,7 @@ pub const EN: &[(&str, &str)] = &[
|
||||
("📂 Im Dateimanager anzeigen", "📂 Show in file manager"),
|
||||
("📂 Ordner öffnen", "📂 Open folder"),
|
||||
("📄 Als PDF exportieren (Strg+E)", "📄 Export as PDF (Ctrl+E)"),
|
||||
("📄 PDF importieren …", "📄 Import PDF …"),
|
||||
("📄 Feste Seiten", "📄 Fixed pages"),
|
||||
("📄 PDF importieren", "📄 Import PDF"),
|
||||
("📋 Einfügen", "📋 Paste"),
|
||||
("📑 Inhalt", "📑 Contents"),
|
||||
("📚 Alle", "📚 All"),
|
||||
@@ -454,4 +447,17 @@ pub const EN: &[(&str, &str)] = &[
|
||||
("🚀 Update {version} verfügbar", "🚀 Update {version} available"),
|
||||
("🚀 AppImage aktualisieren & ausführen", "🚀 Update AppImage & restart"),
|
||||
("🚀 Updates & Versionen", "🚀 Updates & versions"),
|
||||
(", PDF-Hintergrund nicht gefunden: {file}", ", PDF background not found: {file}"),
|
||||
(", {count} Elemente übersprungen", ", {count} elements skipped"),
|
||||
("Nicht importiert: {err}", "Not imported: {err}"),
|
||||
("Die Datei wird als neues Notizbuch angelegt. PDF: eine Seite je PDF-Seite, beim Export liegen deine Notizen über den Originalseiten. Xournal++ (.xopp, .xoj): Striche, Texte, Bilder und PDF-Hintergründe werden übernommen.", "The file becomes a new notebook. PDF: one page per PDF page, when exporting your notes lie on top of the original pages. Xournal++ (.xopp, .xoj): strokes, texts, images and PDF backgrounds are taken over."),
|
||||
("Importieren", "Import"),
|
||||
("Keine Ordner, PDF- oder Xournal++-Dateien", "No folders, PDF or Xournal++ files"),
|
||||
("Vorlesungsfolien, Übungsblätter, Formulare oder Xournal++-Notizbücher als neues Notizbuch öffnen und darauf schreiben", "Open lecture slides, worksheets, forms or Xournal++ notebooks as a new notebook and write on them"),
|
||||
("📄 Importieren (PDF, Xournal++) …", "📄 Import (PDF, Xournal++) …"),
|
||||
("📄 Importieren", "📄 Import"),
|
||||
("Datei beschädigt: {err}", "File damaged: {err}"),
|
||||
("Datei nicht lesbar: {err}", "File not readable: {err}"),
|
||||
("Die Datei enthält keine Seiten", "The file contains no pages"),
|
||||
("Keine Xournal-Datei", "Not a Xournal file"),
|
||||
];
|
||||
Reference in new issue
Block a user