Commit 7624d81df5
Verified · cmc
Layout: unified · split
Sources/OrgApp/AppStoreCommands.swift +1 −1
| @@ -4,7 +4,7 @@ import Foundation | ||
| 4 | 4 | /// Emacs, and attaching by link, which the sandbox doesn't allow. |
| 5 | 5 | public enum AppStoreCommands { |
| 6 | 6 | public static let hidden: Set<String> = [ |
| 7 | "app.export.pdf", "app.export.odt", "app.export.latex", "app.export.text", | |
| 7 | "app.export.pdf", "app.export.odt", "app.export.text", | |
| 8 | 8 | "app.attach.link", "app.attach.symlink", |
| 9 | 9 | ] |
| 10 | 10 | |
Sources/OrgApp/CommandTitles.swift +1 −1
| @@ -88,7 +88,7 @@ enum CommandTitles { | ||
| 88 | 88 | String(localized: "Export Table to File…", comment: "Command title"), |
| 89 | 89 | String(localized: "Export to HTML", comment: "Command title"), |
| 90 | 90 | String(localized: "Export to HTML and Open", comment: "Command title"), |
| 91 | String(localized: "Export to LaTeX with Emacs", comment: "Command title"), | |
| 91 | String(localized: "Export to LaTeX", comment: "Command title"), | |
| 92 | 92 | String(localized: "Export to Markdown", comment: "Command title"), |
| 93 | 93 | String(localized: "Export to ODT with Emacs", comment: "Command title"), |
| 94 | 94 | String(localized: "Export to PDF", comment: "Command title"), |
Sources/OrgApp/Publish.swift +5 −5
| @@ -40,7 +40,7 @@ public struct PublishProject: Sendable, Equatable { | ||
| 40 | 40 | |
| 41 | 41 | public init(name: String) { self.name = name } |
| 42 | 42 | |
| 43 | public static let functions = ["org-html-publish-to-html", "org-md-publish-to-md", "org-publish-attachment"] | |
| 43 | public static let functions = ["org-html-publish-to-html", "org-md-publish-to-md", "org-latex-publish-to-latex", "org-publish-attachment"] | |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | public enum Publish { |
| @@ -252,10 +252,10 @@ public enum Publish { | ||
| 252 | 252 | |
| 253 | 253 | /// `org-publish-projects`: each project's sitemap, when it has one, then its files, through |
| 254 | 254 | /// its publishing functions. A file whose output is newer than it is skipped unless `force`. |
| 255 | /// `export` turns an Org file's text into the HTML or Markdown to write. | |
| 255 | /// `export` turns an Org file's text into the HTML, Markdown or LaTeX to write. | |
| 256 | 256 | public static func publish( |
| 257 | 257 | _ chosen: [PublishProject], all: [PublishProject], force: Bool = false, only: String? = nil, |
| 258 | read: (String) -> String?, export: (_ function: String, _ text: String, _ path: String, _ bodyOnly: Bool) -> String | |
| 258 | read: (String) -> String?, export: (_ function: String, _ text: String, _ path: String, _ bodyOnly: Bool) throws -> String | |
| 259 | 259 | ) throws -> Report { |
| 260 | 260 | var report = Report() |
| 261 | 261 | let fm = FileManager.default |
| @@ -290,7 +290,7 @@ public enum Publish { | ||
| 290 | 290 | if directory((file as NSString).deletingLastPathComponent) == outputDirectory { return nil } |
| 291 | 291 | return outputDirectory + (file as NSString).lastPathComponent |
| 292 | 292 | } |
| 293 | let ext = function == "org-md-publish-to-md" ? "md" : "html" | |
| 293 | let ext = ["org-md-publish-to-md": "md", "org-latex-publish-to-latex": "tex"][function] ?? "html" | |
| 294 | 294 | guard let text = read(file) else { throw Failure(description: "Can't read \(file)") } |
| 295 | 295 | return ExportScope.output(for: URL(fileURLWithPath: outputDirectory + (file as NSString).lastPathComponent), |
| 296 | 296 | name: ExportScope.fileName(text), extension: ext).path |
| @@ -299,7 +299,7 @@ public enum Publish { | ||
| 299 | 299 | /// Copies an attachment to `output`, or writes what `function` exports from `file`. |
| 300 | 300 | private static func write( |
| 301 | 301 | _ file: String, to output: String, function: String, bodyOnly: Bool, |
| 302 | read: (String) -> String?, export: (_ function: String, _ text: String, _ path: String, _ bodyOnly: Bool) -> String | |
| 302 | read: (String) -> String?, export: (_ function: String, _ text: String, _ path: String, _ bodyOnly: Bool) throws -> String | |
| 303 | 303 | ) throws { |
| 304 | 304 | let fm = FileManager.default |
| 305 | 305 | if function == "org-publish-attachment" { |
Sources/OrgCore/Export/LaTeXExport.swift +8 −6
| @@ -5,9 +5,10 @@ import Foundation | ||
| 5 | 5 | /// can't write as Emacs would throws `Unsupported`, naming the construct, instead of writing |
| 6 | 6 | /// something else. Labels are made from the document, where Emacs picks them at random. |
| 7 | 7 | public enum LaTeXExport { |
| 8 | public struct Unsupported: Error, LocalizedError, Equatable { | |
| 8 | public struct Unsupported: Error, LocalizedError, Equatable, CustomStringConvertible { | |
| 9 | 9 | public let reason: String |
| 10 | 10 | public var errorDescription: String? { reason } |
| 11 | public var description: String { reason } | |
| 11 | 12 | } |
| 12 | 13 | |
| 13 | 14 | /// `org-latex-classes`: each class's header and its sectioning, numbered and not. |
| @@ -36,18 +37,19 @@ public enum LaTeXExport { | ||
| 36 | 37 | |
| 37 | 38 | /// A `.tex` document, or with `bodyOnly` what goes between `\begin{document}` and |
| 38 | 39 | /// `\end{document}` without the title and contents. `author` stands for `user-full-name`, |
| 39 | /// `language` for `org-export-default-language`, `now` for the `% Created` line. | |
| 40 | /// `language` for `org-export-default-language`, `now` for the `% Created` line. `file` adds | |
| 41 | /// the final newline `org-export-to-file` writes. | |
| 40 | 42 | public static func document( |
| 41 | 43 | _ text: String, settings: OrgSettings = .default, path: String? = nil, now: Date = Date(), bodyOnly: Bool = false, |
| 42 | author: String = "", language: String = "en", timeZone: TimeZone = .current | |
| 44 | author: String = "", language: String = "en", timeZone: TimeZone = .current, file: Bool = false | |
| 43 | 45 | ) throws -> String { |
| 44 | 46 | let directory = path.map { URL(fileURLWithPath: $0).deletingLastPathComponent() } |
| 45 | 47 | let included = ExportPreprocess.includes(text, directory: directory) |
| 46 | 48 | // Org expands macro objects only: `{{{…}}}` in verbatim text and blocks stays. |
| 47 | 49 | let marker = "\u{E000}" |
| 48 | if included.contains(marker) { throw LaTeXExport.Unsupported(reason: "U+E000 in the text") } | |
| 49 | 50 | var literal = included |
| 50 | 51 | if included.contains("{{{") { |
| 52 | if included.contains(marker) { throw LaTeXExport.Unsupported(reason: "U+E000 in the text") } | |
| 51 | 53 | let ns = included as NSString |
| 52 | 54 | let kept = OrgParser.parse(included, defaults: settings).root.descendants() |
| 53 | 55 | .filter { [.verbatim, .code, .block, .fixedWidth, .comment, .latexEnvironment, .exportSnippet].contains($0.kind) }.map(\.range) |
| @@ -66,8 +68,8 @@ public enum LaTeXExport { | ||
| 66 | 68 | + tree.root.descendants().filter { $0.kind == .keyword }.map { $0.text.trimmingCharacters(in: .newlines) } |
| 67 | 69 | let renderer = try LaTeXRenderer(tree: tree, text: text, settings: settings, keywords: keywords, language: language) |
| 68 | 70 | let body = try renderer.body() |
| 69 | if bodyOnly { return body } | |
| 70 | return try renderer.template(body, author: author, now: now, timeZone: timeZone) | |
| 71 | let output = bodyOnly ? body : try renderer.template(body, author: author, now: now, timeZone: timeZone) | |
| 72 | return file && !output.isEmpty && !output.hasSuffix("\n") ? output + "\n" : output | |
| 71 | 73 | } |
| 72 | 74 | } |
| 73 | 75 | |
Sources/OrgEditorAppKit/EditorCommands.swift +1 −1
| @@ -175,7 +175,7 @@ public enum EditorCommands { | ||
| 175 | 175 | EditorCommand(id: "app.copy-rich-text", title: "Copy as Rich Text", action: .app), |
| 176 | 176 | EditorCommand(id: "app.export.pdf", title: "Export to PDF with Emacs", action: .app), |
| 177 | 177 | EditorCommand(id: "app.export.odt", title: "Export to ODT with Emacs", action: .app), |
| 178 | EditorCommand(id: "app.export.latex", title: "Export to LaTeX with Emacs", action: .app), | |
| 178 | EditorCommand(id: "app.export.latex", title: "Export to LaTeX", action: .app), | |
| 179 | 179 | EditorCommand(id: "app.export.text", title: "Export to Plain Text with Emacs", action: .app), |
| 180 | 180 | EditorCommand(id: "app.export.icalendar", title: "Export to iCalendar", action: .app), |
| 181 | 181 | EditorCommand(id: "app.export.icalendar-agenda", title: "Export Agenda Files to iCalendar", action: .app), |
Sources/Orgstar/ContentView.swift +31
| @@ -628,6 +628,8 @@ struct ContentView: View { | ||
| 628 | 628 | } catch { |
| 629 | 629 | commands.show("Can't write \(target.lastPathComponent): \(error.localizedDescription)") |
| 630 | 630 | } |
| 631 | case "latex" where exportLaTeX(text, whole: whole, url: url, to: destination, open: open, subtree: subtree ? caret : nil, bodyOnly: bodyOnly, settings: defaults): | |
| 632 | break | |
| 631 | 633 | case "print-pdf", "docx", "rtf", "plain-text": |
| 632 | 634 | let ext = ["print-pdf": "pdf", "plain-text": "txt"][format] ?? format |
| 633 | 635 | let name = ExportScope.fileName(whole, subtreeAt: subtree ? caret : nil, settings: defaults) |
| @@ -689,6 +691,32 @@ struct ContentView: View { | ||
| 689 | 691 | } |
| 690 | 692 | } |
| 691 | 693 | |
| 694 | /// Writes `text` as LaTeX, as ox-latex does. False when the native export can't match Emacs | |
| 695 | /// and Emacs is installed to export instead; otherwise the reason is shown. | |
| 696 | private func exportLaTeX(_ text: String, whole: String, url: URL, to destination: URL?, open: Bool, subtree: Int?, bodyOnly: Bool, settings: OrgSettings) -> Bool { | |
| 697 | let content: String | |
| 698 | do { | |
| 699 | content = try LaTeXExport.document(text, settings: settings, path: url.path, bodyOnly: bodyOnly, author: NSFullUserName(), language: OrgPreferences.exportLanguage(), file: true) | |
| 700 | } catch { | |
| 701 | #if !APPSTORE | |
| 702 | if EmacsRunner.executable() != nil { return false } | |
| 703 | #endif | |
| 704 | commands.show("Can't export to LaTeX: \(error.localizedDescription)") | |
| 705 | return true | |
| 706 | } | |
| 707 | let name = ExportScope.fileName(whole, subtreeAt: subtree, settings: settings) | |
| 708 | guard let target = destination ?? writable(ExportScope.output(for: url, name: name, extension: "tex")) else { return true } | |
| 709 | do { | |
| 710 | try FileManager.default.createDirectory(at: target.deletingLastPathComponent(), withIntermediateDirectories: true) | |
| 711 | try content.write(to: target, atomically: true, encoding: .utf8) | |
| 712 | commands.show("Exported to \(target.lastPathComponent)") | |
| 713 | if open { NSWorkspace.shared.open(target) } | |
| 714 | } catch { | |
| 715 | commands.show("Can't write \(target.lastPathComponent): \(error.localizedDescription)") | |
| 716 | } | |
| 717 | return true | |
| 718 | } | |
| 719 | ||
| 692 | 720 | /// `url`; in the App Store build, when the sandbox keeps orgstar out of its folder, `url` once |
| 693 | 721 | /// that folder is granted, or where a save panel puts it instead. Nil when canceled. |
| 694 | 722 | private func writable(_ url: URL) -> URL? { |
| @@ -953,6 +981,9 @@ struct ContentView: View { | ||
| 953 | 981 | let report = try Publish.publish(chosen, all: loaded.projects, only: only, read: read) { function, text, path, bodyOnly in |
| 954 | 982 | let settings = Preferences.orgSettings.resolvingSetupFiles(in: text, path: path, read: OrgSettings.readFile) |
| 955 | 983 | if function == "org-md-publish-to-md" { return MarkdownExport.document(text, settings: settings, path: path, bodyOnly: bodyOnly) } |
| 984 | if function == "org-latex-publish-to-latex" { | |
| 985 | return try LaTeXExport.document(text, settings: settings, path: path, bodyOnly: bodyOnly, author: NSFullUserName(), language: OrgPreferences.exportLanguage(), file: true) | |
| 986 | } | |
| 956 | 987 | let base = ((path as NSString).lastPathComponent as NSString).deletingPathExtension |
| 957 | 988 | return HTMLExport.page(text, fallbackTitle: base, settings: settings, path: path, bodyOnly: bodyOnly, codeStyle: codeStyle, language: OrgPreferences.exportLanguage()) |
| 958 | 989 | } |
Sources/Orgstar/ExportSheet.swift +2 −1
| @@ -25,12 +25,13 @@ struct ExportSheet: View { | ||
| 25 | 25 | static let formats: [(id: String, title: String, ext: String)] = [ |
| 26 | 26 | ("html", "HTML", "html"), ("markdown", "Markdown", "md"), ("print-pdf", "PDF", "pdf"), ("docx", "Word", "docx"), |
| 27 | 27 | ("rtf", "Rich Text (RTF)", "rtf"), ("plain-text", "Plain text", "txt"), ("icalendar", "iCalendar", "ics"), |
| 28 | ("latex", "LaTeX", "tex"), | |
| 28 | 29 | ] |
| 29 | 30 | #else |
| 30 | 31 | static let formats: [(id: String, title: String, ext: String)] = [ |
| 31 | 32 | ("html", "HTML", "html"), ("markdown", "Markdown", "md"), ("print-pdf", "PDF", "pdf"), ("docx", "Word", "docx"), |
| 32 | 33 | ("rtf", "Rich Text (RTF)", "rtf"), ("plain-text", "Plain text", "txt"), ("pdf", "PDF via LaTeX (Emacs)", "pdf"), |
| 33 | ("odt", "ODT (Emacs)", "odt"), ("latex", "LaTeX (Emacs)", "tex"), ("text", "Plain text, ASCII (Emacs)", "txt"), | |
| 34 | ("odt", "ODT (Emacs)", "odt"), ("latex", "LaTeX", "tex"), ("text", "Plain text, ASCII (Emacs)", "txt"), | |
| 34 | 35 | ("icalendar", "iCalendar", "ics"), |
| 35 | 36 | ] |
| 36 | 37 | #endif |
Sources/OrgstarMobile/ExportMenu.swift +9 −2
| @@ -6,11 +6,12 @@ import OrgPresentation | ||
| 6 | 6 | import SwiftUI |
| 7 | 7 | import UniformTypeIdentifiers |
| 8 | 8 | |
| 9 | /// A file exported as HTML, Markdown, PDF, Word, RTF, plain text or iCalendar, written when the | |
| 9 | /// A file exported as HTML, Markdown, PDF, Word, RTF, plain text, iCalendar or LaTeX, written when the | |
| 10 | 10 | /// share sheet takes it. |
| 11 | 11 | struct OrgExport: Transferable { |
| 12 | 12 | enum Format: CaseIterable { |
| 13 | 13 | case html, markdown, pdf, docx, rtf, plainText, icalendar |
| 14 | case latex | |
| 14 | 15 | |
| 15 | 16 | /// Whether it needs Pro now: every format but HTML and Markdown, until Pro is unlocked. |
| 16 | 17 | @MainActor var locked: Bool { self != .html && self != .markdown && !ProAccess.shared.isUnlocked } |
| @@ -24,6 +25,7 @@ struct OrgExport: Transferable { | ||
| 24 | 25 | case .rtf: "Rich Text (RTF)" |
| 25 | 26 | case .plainText: "Plain Text" |
| 26 | 27 | case .icalendar: "iCalendar" |
| 28 | case .latex: "LaTeX" | |
| 27 | 29 | } |
| 28 | 30 | } |
| 29 | 31 | |
| @@ -36,6 +38,7 @@ struct OrgExport: Transferable { | ||
| 36 | 38 | case .rtf: "rtf" |
| 37 | 39 | case .plainText: "txt" |
| 38 | 40 | case .icalendar: "ics" |
| 41 | case .latex: "tex" | |
| 39 | 42 | } |
| 40 | 43 | } |
| 41 | 44 | } |
| @@ -72,6 +75,8 @@ struct OrgExport: Transferable { | ||
| 72 | 75 | .exportingCondition { $0.format == .plainText } |
| 73 | 76 | FileRepresentation(exportedContentType: .calendarEvent) { try await $0.write() } |
| 74 | 77 | .exportingCondition { $0.format == .icalendar } |
| 78 | FileRepresentation(exportedContentType: UTType(filenameExtension: "tex") ?? .plainText) { try await $0.write() } | |
| 79 | .exportingCondition { $0.format == .latex } | |
| 75 | 80 | } |
| 76 | 81 | |
| 77 | 82 | private func write() async throws -> SentTransferredFile { |
| @@ -87,6 +92,8 @@ struct OrgExport: Transferable { | ||
| 87 | 92 | .write(to: url, atomically: true, encoding: .utf8) |
| 88 | 93 | case .markdown: |
| 89 | 94 | try MarkdownExport.document(text, settings: settings, path: path).write(to: url, atomically: true, encoding: .utf8) |
| 95 | case .latex: | |
| 96 | try LaTeXExport.document(text, settings: settings, path: path, language: OrgPreferences.exportLanguage(), file: true).write(to: url, atomically: true, encoding: .utf8) | |
| 90 | 97 | case .icalendar: |
| 91 | 98 | try ICalendarFiles.export(self.text, path: path, settings: settings, options: OrgPreferences.icalendarOptions(), |
| 92 | 99 | subtree: subtree, destination: url) |
| @@ -107,7 +114,7 @@ struct OrgExport: Transferable { | ||
| 107 | 114 | } |
| 108 | 115 | } |
| 109 | 116 | |
| 110 | /// Sharing the file as HTML, Markdown, PDF, Word, RTF, plain text or iCalendar: to another app, or saved with | |
| 117 | /// Sharing the file as HTML, Markdown, PDF, Word, RTF, plain text, iCalendar or LaTeX: to another app, or saved with | |
| 111 | 118 | /// Save to Files; or copying it as rich text. |
| 112 | 119 | struct ExportMenu: View { |
| 113 | 120 | let path: String |
Tests/OrgAppTests/PublishTests.swift +59
| @@ -136,6 +136,65 @@ struct PublishTests { | ||
| 136 | 136 | #expect(Self.listing(ourFolder) == Self.listing(emacsFolder)) |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | /// `org-latex-publish-to-latex`: the same `.tex` files as Emacs writes, the `% Created` | |
| 140 | /// line and the labels aside. | |
| 141 | @Test(.enabled(if: ProcessInfo.processInfo.environment["ORGSTAR_SKIP_ORACLE"] == nil)) | |
| 142 | func publishesLaTeXLikeOrg() throws { | |
| 143 | let folder = FileManager.default.temporaryDirectory.appendingPathComponent("orgstar-publish-tex-\(UUID().uuidString)").resolvingSymlinksInPath() | |
| 144 | defer { try? FileManager.default.removeItem(at: folder) } | |
| 145 | let sources = ["a.org": "#+TITLE: A\n* One\nText with a [[https://orgmode.org][link]].\n", "sub/b.org": "#+OPTIONS: toc:nil\n- item\n- [X] done\n"] | |
| 146 | for (path, text) in sources { | |
| 147 | let url = folder.appendingPathComponent("src/" + path) | |
| 148 | try FileManager.default.createDirectory(at: url.deletingLastPathComponent(), withIntermediateDirectories: true) | |
| 149 | try text.write(to: url, atomically: true, encoding: .utf8) | |
| 150 | } | |
| 151 | let form = """ | |
| 152 | (progn | |
| 153 | (require 'ox-publish) (require 'ox-latex) | |
| 154 | (setq user-full-name "A. Writer" | |
| 155 | org-publish-timestamp-directory "\(folder.path)/ts/" | |
| 156 | org-publish-project-alist '(("tex" :base-directory "\(folder.path)/src" :publishing-directory "\(folder.path)/emacs" | |
| 157 | :recursive t :publishing-function org-latex-publish-to-latex))) | |
| 158 | (org-publish "tex" t)) | |
| 159 | """ | |
| 160 | let process = Process() | |
| 161 | process.executableURL = URL(fileURLWithPath: "/usr/bin/env") | |
| 162 | process.arguments = [ProcessInfo.processInfo.environment["ORGSTAR_EMACS"] ?? "emacs", "-Q", "--batch", "--eval", form] | |
| 163 | process.standardOutput = FileHandle.nullDevice | |
| 164 | process.standardError = FileHandle.nullDevice | |
| 165 | try process.run() | |
| 166 | process.waitUntilExit() | |
| 167 | ||
| 168 | let toml = """ | |
| 169 | [[publish]] | |
| 170 | name = "tex" | |
| 171 | base-directory = "\(folder.path)/src" | |
| 172 | publishing-directory = "\(folder.path)/ours" | |
| 173 | recursive = true | |
| 174 | publishing-function = "org-latex-publish-to-latex" | |
| 175 | """ | |
| 176 | let loaded = Publish.projects(fromConfig: toml, root: nil) | |
| 177 | #expect(loaded.problems.isEmpty, "\(loaded.problems)") | |
| 178 | let read = { (path: String) in try? String(contentsOfFile: path, encoding: .utf8) } | |
| 179 | let report = try Publish.publish(loaded.projects, all: loaded.projects, force: true, read: read) { _, text, path, bodyOnly in | |
| 180 | try LaTeXExport.document(text, path: path, bodyOnly: bodyOnly, author: "A. Writer", file: true) | |
| 181 | } | |
| 182 | #expect(report.published.count == 2) | |
| 183 | func normalized(_ s: String) -> String { | |
| 184 | var labels: [String: String] = [:] | |
| 185 | return s.replacing(#/(?m)^% Created .*\n/#, with: "").replacing(#/org[0-9a-f]{7}/#) { m in | |
| 186 | let key = String(m.output) | |
| 187 | if labels[key] == nil { labels[key] = "org\(labels.count + 1)" } | |
| 188 | return labels[key]! | |
| 189 | } | |
| 190 | } | |
| 191 | for path in ["a.tex", "sub/b.tex"] { | |
| 192 | let theirs = try String(contentsOf: folder.appendingPathComponent("emacs/" + path), encoding: .utf8) | |
| 193 | let ours = try String(contentsOf: folder.appendingPathComponent("ours/" + path), encoding: .utf8) | |
| 194 | #expect(normalized(ours) == normalized(theirs), "\(path)\nours:\n\(ours)\nemacs:\n\(theirs)") | |
| 195 | } | |
| 196 | } | |
| 197 | ||
| 139 | 198 | @Test func skipsUpToDateFilesAndFindsProjects() throws { |
| 140 | 199 | let folder = FileManager.default.temporaryDirectory.appendingPathComponent("orgstar-publish-\(UUID().uuidString)").resolvingSymlinksInPath() |
| 141 | 200 | defer { try? FileManager.default.removeItem(at: folder) } |
Tests/OrgEditorAppKitTests/AppStoreCommandsTests.swift +6
| @@ -9,6 +9,12 @@ struct AppStoreCommandsTests { | ||
| 9 | 9 | #expect(AppStoreCommands.hidden.isSubset(of: ids)) |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | /// LaTeX export is native, so the sandboxed build has it. | |
| 13 | @Test func latexExportIsShown() { | |
| 14 | #expect(!AppStoreCommands.hidden.contains("app.export.latex")) | |
| 15 | #expect(EditorCommands.all.first { $0.id == "app.export.latex" }?.title == "Export to LaTeX") | |
| 16 | } | |
| 17 | ||
| 12 | 18 | @Test func pdfKeysExportThroughWebKit() throws { |
| 13 | 19 | let replacement = try #require(AppStoreCommands.replacement(for: "app.export.pdf")) |
| 14 | 20 | #expect(replacement == "app.export.print-pdf") |
l10n/Localizable.xcstrings +6 −6
| @@ -11644,37 +11644,37 @@ | ||
| 11644 | 11644 | } |
| 11645 | 11645 | } |
| 11646 | 11646 | }, |
| 11647 | "Export to LaTeX with Emacs": { | |
| 11647 | "Export to LaTeX": { | |
| 11648 | 11648 | "comment": "Command title", |
| 11649 | 11649 | "localizations": { |
| 11650 | 11650 | "de": { |
| 11651 | 11651 | "stringUnit": { |
| 11652 | 11652 | "state": "translated", |
| 11653 | "value": "Mit Emacs als LaTeX exportieren" | |
| 11653 | "value": "Als LaTeX exportieren" | |
| 11654 | 11654 | } |
| 11655 | 11655 | }, |
| 11656 | 11656 | "es": { |
| 11657 | 11657 | "stringUnit": { |
| 11658 | 11658 | "state": "translated", |
| 11659 | "value": "Exportar a LaTeX con Emacs" | |
| 11659 | "value": "Exportar a LaTeX" | |
| 11660 | 11660 | } |
| 11661 | 11661 | }, |
| 11662 | 11662 | "fr": { |
| 11663 | 11663 | "stringUnit": { |
| 11664 | 11664 | "state": "translated", |
| 11665 | "value": "Exporter en LaTeX avec Emacs" | |
| 11665 | "value": "Exporter en LaTeX" | |
| 11666 | 11666 | } |
| 11667 | 11667 | }, |
| 11668 | 11668 | "ja": { |
| 11669 | 11669 | "stringUnit": { |
| 11670 | 11670 | "state": "translated", |
| 11671 | "value": "EmacsでLaTeXに書き出す" | |
| 11671 | "value": "LaTeXに書き出す" | |
| 11672 | 11672 | } |
| 11673 | 11673 | }, |
| 11674 | 11674 | "pt-BR": { |
| 11675 | 11675 | "stringUnit": { |
| 11676 | 11676 | "state": "translated", |
| 11677 | "value": "Exportar para LaTeX com o Emacs" | |
| 11677 | "value": "Exportar para LaTeX" | |
| 11678 | 11678 | } |
| 11679 | 11679 | } |
| 11680 | 11680 | } |