From de0da19fe66800ab5475f12601096de3a2ca2d87 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 20 Nov 2026 16:02:12 +0000 Subject: [PATCH] Show the text in one flow as wide as the window in Screen View View > Screen View (Ctrl+Shift+R) lays the document out as one page as wide as the window and as tall as its text: no page edges, margins, headers or footers, no page, column or section breaks, one column, and notes at the end. Floating objects show in the flow after their paragraph, and those fixed on a page after the last paragraph that starts there; the objects of the masters are hidden, and a notice says so. The flow follows the width of the window, and the zoom sets the size of its text, as View > Text Size (Auto, Bigger, Smaller) does. Rulers, thumbnails and the layout view are off while it shows, and the Preferences can open new documents in it (PXV-01, W043, B-038). The UI test also checks that the table of contents of the sidebar follows a heading as it is typed (W041). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01NiPLVSJ4urMWCnygLAWw8C --- README.md | 2 +- crates/desk-layout/src/lib.rs | 2 + crates/desk-layout/src/screen.rs | 187 +++++++++ crates/desk-layout/tests/screen.rs | 89 ++++ crates/desk-ui/src/editing.rs | 24 +- crates/desk-ui/src/editing/guides.rs | 3 +- crates/desk-ui/src/editing/objects.rs | 9 + crates/desk-ui/src/editing/screen.rs | 78 ++++ crates/desk-ui/src/editing/stories.rs | 3 +- crates/desk-ui/src/lib.rs | 6 + crates/desk-ui/src/preferences.rs | 17 + crates/desk-ui/src/shortcuts.rs | 1 + crates/desk-ui/src/view.rs | 88 +++- crates/desk-ui/src/window.rs | 146 ++++++- crates/desk-ui/src/window/header.rs | 7 + docs/interface/README.md | 1 + po/desk.pot | 575 ++++++++++++++------------ po/pt_BR.po | 575 ++++++++++++++------------ tests/ui/writer.py | 65 +++ 19 files changed, 1323 insertions(+), 555 deletions(-) create mode 100644 crates/desk-layout/src/screen.rs create mode 100644 crates/desk-layout/tests/screen.rs create mode 100644 crates/desk-ui/src/editing/screen.rs diff --git a/README.md b/README.md index c748f1d0..b1a7d153 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ its reason is in [docs/decisions.md](docs/decisions.md). Desk Writer came first, because the text engine is the hardest part and the other two apps depend on it. It has its text engine, document structure, writing tools, objects, tables and charts -(242 of the 329 rows of its parity matrix have tests, 88 of them against what Pages itself laid out, all of them alike): +(243 of the 329 rows of its parity matrix have tests, 88 of them against what Pages itself laid out, all of them alike): it opens ODT and Pages '09 documents and saves ODT, edits and formats text with styles and a screen reader, checks spelling and grammar, lays out sections, headers, footers, notes and tables of contents as Pages does, diff --git a/crates/desk-layout/src/lib.rs b/crates/desk-layout/src/lib.rs index 2d5e217e..7b7dd11b 100644 --- a/crates/desk-layout/src/lib.rs +++ b/crates/desk-layout/src/lib.rs @@ -26,10 +26,12 @@ mod notes; mod objects; mod outline; mod pages; +mod screen; mod tables; pub use objects::{PlacedObject, flow_text_boxes, object_at, place_object_text, text_box_lines}; pub use outline::{outline_document, paginate_outline, paginate_view}; +pub use screen::{SCREEN_MARGIN, paginate_screen, screen_document}; pub use tables::{ CellLayout, ChartLabel, ChartLayout, TableLayout, document_locale, lay_out_chart, lay_out_table, table_size, today, diff --git a/crates/desk-layout/src/screen.rs b/crates/desk-layout/src/screen.rs new file mode 100644 index 00000000..d6f9332b --- /dev/null +++ b/crates/desk-layout/src/screen.rs @@ -0,0 +1,187 @@ +// SPDX-FileCopyrightText: 2026 Desk contributors +// SPDX-License-Identifier: GPL-3.0-or-later + +//! Screen View, as Pages 15.4 shows a document (PXV-01): the text in one +//! continuous flow as wide as the window, without the edges of pages, +//! their margins, headers and footers. Page, column and section breaks +//! do not start a new page, the columns of a layout become one, and notes +//! go to the end. A floating object shows in the flow, across the column, +//! after the paragraph it is anchored to; an object fixed on a page goes +//! after the last paragraph that starts on that page. Objects of the +//! masters do not show. +//! +//! The paragraphs and their text are those of the document, so a place +//! in the text is the same in both; only how they are laid out changes. + +use desk_model::{Anchor, Document, Layout, Length, NoteKind, Op, ParaAttrs, TextSettings, Wrap}; +use desk_text::TextSystem; + +use crate::pages::{DocumentLayout, paginate}; + +/// The room between the edges of the flow and its text, in points. +pub const SCREEN_MARGIN: f64 = 24.0; + +/// The height of the one page that holds the flow while it is laid out: +/// more than any document needs, and small enough that points keep their +/// fractions in an `f32`. +const FLOW_HEIGHT: f64 = 2_000_000.0; + +/// The room between two objects in the flow, in points. +const OBJECT_GAP: f64 = 6.0; + +/// The narrowest flow, in points. +const NARROWEST: f64 = 144.0; + +/// Lays out a document in Screen View, `width` points wide: one page as +/// tall as its text, whose `setup` gives that size. +pub fn paginate_screen(document: &Document, width: f64, system: &mut TextSystem) -> DocumentLayout { + let screen = screen_document(document, width, system); + let mut layout = paginate(&screen, system); + // The flow ends below the last thing in it. + let bottom = layout + .pages + .iter() + .flat_map(|page| { + page.lines + .iter() + .map(|l| l.bottom()) + .chain(page.note_lines.iter().map(|l| l.bottom())) + .chain(page.objects.iter().map(|o| o.y + o.height)) + }) + .fold(0.0f32, f32::max); + layout.setup.height = Length::from_pt(f64::from(bottom) + SCREEN_MARGIN); + layout +} + +/// The document as Screen View lays it out: see the module. +pub fn screen_document(document: &Document, width: f64, system: &mut TextSystem) -> Document { + let mut screen = document.clone(); + let mut page = *screen.page_setup(); + // Where the objects fixed on pages go: after the last paragraph that + // starts on their page, as the pages lay it out. + let fixed_on_pages = screen + .objects() + .iter() + .any(|o| matches!(o.anchor, Anchor::Page(_))); + let last_on_page: Vec> = if fixed_on_pages && page.layout_pages.is_none() { + let pages = paginate(document, system); + pages + .pages + .iter() + .map(|p| p.lines.iter().map(|l| l.paragraph).max()) + .collect() + } else { + Vec::new() + }; + + page.width = Length::from_pt(width.max(NARROWEST)); + page.height = Length::from_pt(FLOW_HEIGHT); + let margin = Length::from_pt(SCREEN_MARGIN); + page.margin_top = margin; + page.margin_bottom = margin; + page.margin_left = margin; + page.margin_right = margin; + page.facing_pages = false; + page.headers = false; + page.footers = false; + page.layout_pages = None; + page.layout = Layout { + columns: desk_model::Columns::ONE, + before: Length::ZERO, + after: Length::ZERO, + left: Length::ZERO, + right: Length::ZERO, + new_page: false, + balanced: false, + }; + apply(&mut screen, Op::SetPageSetup { page }); + + // Notes go to the end, since the flow has no foot. + let settings = screen.text_settings(); + if settings.notes.kind == NoteKind::Footnotes + || settings.notes.kind == NoteKind::SectionEndnotes + { + let mut notes = settings.notes; + notes.kind = NoteKind::DocumentEndnotes; + let settings = TextSettings { + notes, + ..settings.clone() + }; + apply(&mut screen, Op::SetTextSettings { settings }); + } + + // Nothing breaks the flow. + let formats: Vec = screen + .body() + .iter() + .filter_map(|paragraph| { + let mut attrs = paragraph.attrs().clone(); + attrs.merge(&ParaAttrs { + start: Some(None), + page_break_before: Some(false), + column_break_before: Some(false), + ..ParaAttrs::default() + }); + (&attrs != paragraph.attrs()).then(|| Op::SetParagraphFormat { + paragraph: paragraph.id(), + style: paragraph.style(), + attrs, + }) + }) + .collect(); + for op in formats { + apply(&mut screen, op); + } + + // Floating objects go in the flow, after their paragraph; those of + // the masters do not show. + let body: Vec<_> = screen.body().iter().map(|p| p.id()).collect(); + let index_of = |id| body.iter().position(|p| *p == id); + let column = width.max(NARROWEST) - 2.0 * SCREEN_MARGIN; + let objects: Vec<_> = screen.objects().iter().cloned().collect(); + // How far down the objects already above the text of each paragraph + // reach, so that the next goes under them. + let mut stacked: std::collections::HashMap = Default::default(); + for mut object in objects { + let after = match object.anchor { + Anchor::InText => continue, + Anchor::Master(..) => { + apply(&mut screen, Op::RemoveObject { object: object.id }); + continue; + } + Anchor::Paragraph(id) => index_of(id), + Anchor::Page(n) => last_on_page + .get(n as usize) + .or(last_on_page.last()) + .copied() + .flatten(), + }; + let Some(after) = after.or(if body.is_empty() { None } else { Some(0) }) else { + continue; + }; + // The paragraph after it holds the object above its text; the + // last paragraph holds those after it. + let holder = body.get(after + 1).copied().unwrap_or(body[after]); + let (w, h) = (object.frame.width.to_pt(), object.frame.height.to_pt()); + let scale = if w > column && w > 0.0 { + column / w + } else { + 1.0 + }; + object.frame.width = Length::from_pt(w * scale); + object.frame.height = Length::from_pt(h * scale); + object.frame.x = Length::from_pt(SCREEN_MARGIN); + let top = stacked.entry(holder).or_insert(0.0); + object.frame.y = Length::from_pt(*top); + *top += h * scale + OBJECT_GAP; + object.anchor = Anchor::Paragraph(holder); + object.wrap = Wrap::AboveAndBelow; + apply(&mut screen, Op::ReplaceObject { object }); + } + screen +} + +fn apply(document: &mut Document, op: Op) { + // The operations come from the document itself, so they apply. + let _ = document.apply(op); +} diff --git a/crates/desk-layout/tests/screen.rs b/crates/desk-layout/tests/screen.rs new file mode 100644 index 00000000..6f7ebb9a --- /dev/null +++ b/crates/desk-layout/tests/screen.rs @@ -0,0 +1,89 @@ +// SPDX-FileCopyrightText: 2026 Desk contributors +// SPDX-License-Identifier: GPL-3.0-or-later + +//! Screen View (PXV-01): the text in one flow as wide as the window. + +use desk_layout::{SCREEN_MARGIN, paginate, paginate_screen}; +use desk_model::{ + Anchor, Document, Editor, Frame, Length, MarginPages, Object, ObjectKind, ParaAttrs, Shape, +}; +use desk_text::TextSystem; + +#[test] +fn pxv_01_screen_view_flows_the_text_without_pages() { + let mut editor = Editor::new(Document::new_word_processing()); + let start = editor.document().start(); + let (fixed, wide, master) = editor + .edit("Text", |edit| { + let end = edit.insert_text(start, &"words of text that wrap ".repeat(300))?; + let second = edit.split_paragraph(end)?; + let end = edit.insert_text(second, &"more words after a break ".repeat(100))?; + // The second paragraph starts a new page. + edit.set_paragraph_attrs( + second, + end, + &ParaAttrs { + page_break_before: Some(true), + ..ParaAttrs::default() + }, + )?; + let mut add = |anchor, width| { + let mut object = Object::new( + edit.new_id(), + ObjectKind::Shape(Shape::Rectangle), + Frame::from_pt(300.0, 400.0, width, 80.0), + ); + object.anchor = anchor; + let id = object.id; + edit.add_object(object).map(|()| id) + }; + let fixed = add(Anchor::Page(0), 100.0)?; + let wide = add(Anchor::Page(0), 2000.0)?; + let master = add(Anchor::Master(None, MarginPages::Default), 50.0)?; + Ok((fixed, wide, master)) + }) + .unwrap(); + let document = editor.document(); + let mut system = TextSystem::new(); + let pages = paginate(document, &mut system); + assert!(pages.pages.len() >= 3, "{}", pages.pages.len()); + + let screen = paginate_screen(document, 500.0, &mut system); + // One page as wide as asked, as tall as its text. + assert_eq!(screen.pages.len(), 1); + assert_eq!(screen.setup.width, Length::from_pt(500.0)); + let page = &screen.pages[0]; + let last = page.lines.last().unwrap().bottom(); + let height = screen.setup.height.to_pt() as f32; + assert!(height > last && height < last + 200.0, "{height} {last}"); + // Both paragraphs, without the page break between them, and no + // headers or footers. + let second = page.lines.iter().position(|l| l.paragraph == 1).unwrap(); + let objects: f32 = page.objects.iter().map(|o| o.height).sum(); + let gap = page.lines[second].top() - page.lines[second - 1].bottom(); + assert!(gap < objects + 40.0, "{gap}"); + assert!(page.margin_lines.is_empty()); + for line in &page.lines { + assert!((line.origin.0 - SCREEN_MARGIN as f32).abs() < 0.01); + } + // The objects fixed on the first page show in the flow, after the + // last paragraph that starts there, across the column at most; the + // object of the masters does not show. + let shown: Vec<_> = page.objects.iter().map(|o| o.object.id).collect(); + assert!(shown.contains(&fixed) && shown.contains(&wide)); + assert!(!shown.contains(&master)); + let wide = page.objects.iter().find(|o| o.object.id == wide).unwrap(); + assert!((wide.width - (500.0 - 2.0 * SCREEN_MARGIN as f32)).abs() < 0.5); + assert!((wide.x - SCREEN_MARGIN as f32).abs() < 0.5); + // The text goes around them: no line runs under an object. + for object in &page.objects { + for line in &page.lines { + assert!( + line.bottom() <= object.y + 0.5 || line.top() >= object.y + object.height - 0.5, + "a line at {} under an object at {}", + line.top(), + object.y + ); + } + } +} diff --git a/crates/desk-ui/src/editing.rs b/crates/desk-ui/src/editing.rs index 7b4bf02a..96f4ad11 100644 --- a/crates/desk-ui/src/editing.rs +++ b/crates/desk-ui/src/editing.rs @@ -40,6 +40,7 @@ mod objects; mod outline; mod pen; mod points; +mod screen; mod sections; mod slides; mod stories; @@ -459,6 +460,25 @@ struct State { cells: Option, /// The field that edits the text of a cell. cell_editor: Option, + /// How wide the text flows in Screen View, in points, while it is on + /// (PXV-01). + screen: Option, +} + +impl State { + /// Lays out a document as the view shows it: as pages, or in Screen + /// View. + fn lay_out(&self, document: &Document) -> DocumentLayout { + lay_out_in(self.screen, document) + } +} + +/// Lays out a document as pages, or in Screen View `screen` points wide. +fn lay_out_in(screen: Option, document: &Document) -> DocumentLayout { + match screen { + Some(width) => crate::lay_out_screen(document, width), + None => crate::lay_out(document), + } } #[derive(Clone, Copy, PartialEq, Eq)] @@ -606,10 +626,12 @@ impl TextEditor { guides: Vec::new(), cells: None, cell_editor: None, + screen: None, })), }; this.show_pages(); this.update_squiggles(); + this.follow_screen_width(); this.connect_keyboard(); this.connect_pointer(); this.connect_drop(); @@ -2358,7 +2380,7 @@ impl TextEditor { fn after_change(&self, selection: Selection) { if !self.sync_story() { let mut state = self.state.borrow_mut(); - state.layout = crate::lay_out(state.editor.document()); + state.layout = state.lay_out(state.editor.document()); } if self.story().is_some_and(|story| !self.story_exists(story)) { self.leave_story(None); diff --git a/crates/desk-ui/src/editing/guides.rs b/crates/desk-ui/src/editing/guides.rs index bd69b4d0..aed85e93 100644 --- a/crates/desk-ui/src/editing/guides.rs +++ b/crates/desk-ui/src/editing/guides.rs @@ -110,7 +110,8 @@ impl TextEditor { pub(super) fn show_outlines(&self) { let outlines = { let state = self.state.borrow(); - if state.show_layout { + // Screen View has no layout to show (PXV-01). + if state.show_layout && state.screen.is_none() { outlines(Self::main_document(&state), Self::main_layout(&state)) } else { Vec::new() diff --git a/crates/desk-ui/src/editing/objects.rs b/crates/desk-ui/src/editing/objects.rs index 454c960e..21719fe7 100644 --- a/crates/desk-ui/src/editing/objects.rs +++ b/crates/desk-ui/src/editing/objects.rs @@ -873,6 +873,11 @@ impl TextEditor { .filter(|id| ids.contains(id)) .collect(); ids.dedup(); + // The objects in the flow of Screen View are not selected + // (PXV-01). + if state.screen.is_some() { + ids.clear(); + } state.objects = ids; } self.show_objects(); @@ -1995,6 +2000,10 @@ impl TextEditor { y: f64, modifiers: gdk::ModifierType, ) -> bool { + // The objects in the flow of Screen View are not moved (PXV-01). + if self.screen_view() { + return false; + } let Some((page, px, py)) = self.view.page_at(x, y) else { return false; }; diff --git a/crates/desk-ui/src/editing/screen.rs b/crates/desk-ui/src/editing/screen.rs new file mode 100644 index 00000000..4ef554bf --- /dev/null +++ b/crates/desk-ui/src/editing/screen.rs @@ -0,0 +1,78 @@ +// SPDX-FileCopyrightText: 2026 Desk contributors +// SPDX-License-Identifier: GPL-3.0-or-later + +//! Screen View (PXV-01): the text in one flow as wide as the window, +//! without the edges of pages, their margins, headers and footers. The +//! objects show in the flow, where they cannot be moved; the flow follows +//! the width of the window and its zoom, which sets the size of the text. + +use desk_model::Anchor; + +use super::TextEditor; + +impl TextEditor { + /// Shows the text in one flow as wide as the view, or as pages. + pub fn set_screen_view(&self, on: bool) { + if on == self.screen_view() { + self.view.set_screen(on); + return; + } + if self.story().is_some() { + self.leave_story(None); + } + if on && self.has_selected_objects() { + self.select_objects(Vec::new()); + } + self.view.set_screen(on); + self.state.borrow_mut().screen = on.then(|| self.view.screen_width()); + self.lay_out_again(); + } + + /// Whether Screen View is on. + pub fn screen_view(&self) -> bool { + self.state.borrow().screen.is_some() + } + + /// Whether Screen View hides something of the document: its headers + /// and footers, or the objects of its masters. + pub fn screen_hides_content(&self) -> bool { + let state = self.state.borrow(); + let document = Self::main_document(&state); + let pages = crate::lay_out(document); + pages.pages.iter().any(|p| !p.margin_lines.is_empty()) + || document + .objects() + .iter() + .any(|o| matches!(o.anchor, Anchor::Master(..))) + } + + /// Lays out the flow again when the view changes width or zoom. + pub(super) fn follow_screen_width(&self) { + let weak = self.downgrade(); + self.view.connect_width_changed(move || { + let Some(this) = weak.upgrade() else { return }; + let Some(width) = this.state.borrow().screen else { + return; + }; + let now = this.view.screen_width(); + if (now - width).abs() >= 0.5 { + this.state.borrow_mut().screen = Some(now); + this.lay_out_again(); + } + }); + } + + /// Lays out the document again as the view shows it, keeping the + /// selection. + fn lay_out_again(&self) { + { + let mut guard = self.state.borrow_mut(); + let state = &mut *guard; + state.layout = state.lay_out(state.editor.document()); + } + self.show_pages(); + self.show_objects(); + self.update_squiggles(); + self.show_selection(); + } +} diff --git a/crates/desk-ui/src/editing/stories.rs b/crates/desk-ui/src/editing/stories.rs index eacc7c44..98e1a59e 100644 --- a/crates/desk-ui/src/editing/stories.rs +++ b/crates/desk-ui/src/editing/stories.rs @@ -540,6 +540,7 @@ impl TextEditor { pub(super) fn sync_story(&self) -> bool { let mut guard = self.state.borrow_mut(); let state = &mut *guard; + let screen = state.screen; let Some(mode) = state.story.as_mut() else { return false; }; @@ -562,7 +563,7 @@ impl TextEditor { if let Err(error) = result { gtk::glib::g_warning!("desk", "cannot write the text back: {error}"); } - mode.main_layout = crate::lay_out(mode.main.document()); + mode.main_layout = super::lay_out_in(screen, mode.main.document()); state.layout = story_layout(&mode.main_layout, story, mode.page, ©); true } diff --git a/crates/desk-ui/src/lib.rs b/crates/desk-ui/src/lib.rs index b1bf399c..743fe578 100644 --- a/crates/desk-ui/src/lib.rs +++ b/crates/desk-ui/src/lib.rs @@ -288,6 +288,11 @@ pub(crate) fn lay_out(document: &Document) -> desk_layout::DocumentLayout { TEXT.with(|text| desk_layout::paginate(document, &mut text.borrow_mut())) } +/// Lays out a document in Screen View, `width` points wide (PXV-01). +pub(crate) fn lay_out_screen(document: &Document, width: f64) -> desk_layout::DocumentLayout { + TEXT.with(|text| desk_layout::paginate_screen(document, width, &mut text.borrow_mut())) +} + /// The document a path names. A Pages document can be a package folder, /// which the Open dialog cannot pick, so picking the index inside it opens /// the package. @@ -391,6 +396,7 @@ pub fn run(info: AppInfo, opener: Option<&'static Opener>) -> gtk::glib::ExitCod ("win.align('right')", &["braceright"]), ("win.invisibles", &["i"]), ("win.show-layout", &["l"]), + ("win.screen-view", &["r"]), ("win.styles-drawer", &["t"]), ("win.copy-paragraph-style", &["c"]), ("win.copy-character-style", &["c"]), diff --git a/crates/desk-ui/src/preferences.rs b/crates/desk-ui/src/preferences.rs index 1af67077..9e3ee1dd 100644 --- a/crates/desk-ui/src/preferences.rs +++ b/crates/desk-ui/src/preferences.rs @@ -169,6 +169,8 @@ pub struct Preferences { /// Whether a banner says so when a document opens with problems, as /// the Warnings window of Pages shows itself (INT-22). pub show_warnings: bool, + /// Whether a new document opens in Screen View (PXV-01). + pub screen_view: bool, /// The font families of the Favorites collection of the Fonts /// popover (INT-15). pub font_favorites: Vec, @@ -239,6 +241,7 @@ impl Default for Preferences { show_counts: true, count: "words".into(), show_warnings: true, + screen_view: false, font_favorites: Vec::new(), include_preview: true, // What the sheet of Pages 15.4 offers first. @@ -336,6 +339,9 @@ impl Preferences { out.show_warnings = file .boolean(WINDOW, "show-warnings") .unwrap_or(out.show_warnings); + out.screen_view = file + .boolean(WINDOW, "screen-view") + .unwrap_or(out.screen_view); out.set_default_font = editing("set-default-font", out.set_default_font); if let Ok(font) = file.string(EDITING, "default-font") && !font.is_empty() @@ -415,6 +421,7 @@ impl Preferences { file.set_boolean(WINDOW, "show-counts", self.show_counts); file.set_string(WINDOW, "count", &self.count); file.set_boolean(WINDOW, "show-warnings", self.show_warnings); + file.set_boolean(WINDOW, "screen-view", self.screen_view); // As a list of the key file: names, each ended by a semicolon. let favorites: String = self .font_favorites @@ -716,6 +723,14 @@ pub fn show_for(parent: &impl IsA, tables: bool) { current.show_warnings, |p, on| p.show_warnings = on, )); + if !tables { + window.add(&switch( + &tr("Open New Documents in Screen View"), + &tr("The text flows to the width of the window, without pages"), + current.screen_view, + |p, on| p.screen_view = on, + )); + } let color = gtk::ColorDialogButton::builder() .dialog(>k::ColorDialog::new()) .rgba(&crate::formatting::to_gdk(current.invisibles_color)) @@ -1003,6 +1018,7 @@ mod tests { show_counts: false, count: "paragraphs".into(), show_warnings: false, + screen_view: true, font_favorites: vec!["Liberation Serif".into(), "DejaVu Sans".into()], include_preview: false, set_default_font: true, @@ -1023,6 +1039,7 @@ mod tests { assert!(Preferences::read(&empty).automatic_lists); assert!(Preferences::read(&empty).show_counts); assert!(Preferences::read(&empty).show_warnings); + assert!(!Preferences::read(&empty).screen_view); assert!(Preferences::read(&empty).detect_links); assert!(Preferences::read(&empty).include_preview); assert_eq!(Preferences::read(&empty).zoom, 125); diff --git a/crates/desk-ui/src/shortcuts.rs b/crates/desk-ui/src/shortcuts.rs index 0203269e..94d13afd 100644 --- a/crates/desk-ui/src/shortcuts.rs +++ b/crates/desk-ui/src/shortcuts.rs @@ -95,6 +95,7 @@ const SECTIONS: &[Section] = &[ ("bar", n_("Center")), ("braceright", n_("Align right")), ("i", n_("Show invisibles")), + ("r", n_("Screen View")), ("i", n_("Inspector")), ("F9", n_("Show the sidebar")), ("c", n_("Show colors")), diff --git a/crates/desk-ui/src/view.rs b/crates/desk-ui/src/view.rs index 3c51bc34..4426b192 100644 --- a/crates/desk-ui/src/view.rs +++ b/crates/desk-ui/src/view.rs @@ -34,6 +34,11 @@ struct State { painter: Option, on_zoom: Vec>, on_pages: Vec>, + /// Whether it shows the text in one flow as wide as the view, without + /// the edges of pages (Screen View, PXV-01). + screen: bool, + /// What to call when the width of the flow in Screen View changes. + on_width: Vec>, /// The selection and the cursor, drawn over the pages. selection: Vec, caret: Option, @@ -241,6 +246,8 @@ impl DocumentView { painter: Painter::new().ok(), on_zoom: Vec::new(), on_pages: Vec::new(), + screen: false, + on_width: Vec::new(), selection: Vec::new(), caret: None, caret_on: true, @@ -275,6 +282,7 @@ impl DocumentView { adjustment.connect_page_size_notify(move |_| { if let Some(view) = weak.upgrade() { view.refit(); + view.width_changed(); } }); } @@ -788,6 +796,7 @@ impl DocumentView { callback(zoom); } self.state.borrow_mut().on_zoom = callbacks; + self.width_changed(); } /// Calls `f` with the new zoom whenever it changes. @@ -834,8 +843,45 @@ impl DocumentView { } fn layout(&self, area_width: f64) -> (Vec, f64, f64) { - let book = self.state.borrow().book; - geometry::place_pages(&self.sizes(), self.zoom(), area_width, self.columns(), book) + let state = self.state.borrow(); + place(&self.sizes(), &state, area_width) + } + + /// Shows the text in one flow without the edges of pages, or the + /// pages (Screen View, PXV-01). + pub fn set_screen(&self, on: bool) { + self.state.borrow_mut().screen = on; + self.resize(); + } + + /// How wide the flow of Screen View is, in points: as wide as the + /// view, at its zoom. + pub fn screen_width(&self) -> f64 { + let page = self.scrolled.hadjustment().page_size(); + let pixels = if page > 0.0 { + page + } else { + f64::from(self.scrolled.width()) + }; + pixels.floor().max(1.0) / self.scale() + } + + /// Calls `f` whenever the width of the flow of Screen View may have + /// changed: when the view is resized or zoomed. + pub fn connect_width_changed(&self, f: impl Fn() + 'static) { + self.state.borrow_mut().on_width.push(Box::new(f)); + } + + fn width_changed(&self) { + // The callbacks may read the view, so they run without the borrow. + let callbacks = std::mem::take(&mut self.state.borrow_mut().on_width); + for callback in &callbacks { + callback(); + } + let mut state = self.state.borrow_mut(); + let added = std::mem::take(&mut state.on_width); + state.on_width = callbacks; + state.on_width.extend(added); } fn resize(&self) { @@ -858,13 +904,7 @@ impl DocumentView { .iter() .map(|p| (f64::from(p.width), f64::from(p.height))) .collect(); - let (rects, _, _) = geometry::place_pages( - &sizes, - state.zoom, - f64::from(width), - state.columns, - state.book, - ); + let (rects, _, _) = place(&sizes, &state, f64::from(width)); let vadj = scrolled.vadjustment(); let (top, bottom) = (vadj.value(), vadj.value() + vadj.page_size()); let scale = state.zoom * PIXELS_PER_POINT; @@ -878,11 +918,18 @@ impl DocumentView { ); cr.paint().ok(); } + // Screen View shows the text on white, without a sheet. + if state.screen { + cr.set_source_rgb(1.0, 1.0, 1.0); + cr.paint().ok(); + } for (index, rect) in rects.iter().enumerate() { if rect.y + rect.height < top || rect.y > bottom { continue; } - draw_page_frame(cr, rect, dark); + if !state.screen { + draw_page_frame(cr, rect, dark); + } let State { pages, painter, .. } = &mut *state; if let Some(painter) = painter.as_mut() { cr.save().ok(); @@ -1461,6 +1508,27 @@ fn draw_break(cr: >k::cairo::Context, kind: Invisible, x: f64, baseline: f64, cr.stroke().ok(); } +/// Where the pages go in the area: as `geometry::place_pages` places +/// them, or the one page of Screen View in its top left corner. +fn place(sizes: &[(f64, f64)], state: &State, area_width: f64) -> (Vec, f64, f64) { + if state.screen { + let scale = state.zoom * PIXELS_PER_POINT; + let rects: Vec = sizes + .iter() + .map(|&(w, h)| PageRect { + x: 0.0, + y: 0.0, + width: w * scale, + height: h * scale, + }) + .collect(); + let width = rects.iter().map(|r| r.width).fold(0.0, f64::max); + let height = rects.iter().map(|r| r.height).fold(0.0, f64::max); + return (rects, width, height); + } + geometry::place_pages(sizes, state.zoom, area_width, state.columns, state.book) +} + /// The shadow and white sheet of a page. fn draw_page_frame(cr: >k::cairo::Context, rect: &PageRect, dark: bool) { let shadow = if dark { 0.5 } else { 0.18 }; diff --git a/crates/desk-ui/src/window.rs b/crates/desk-ui/src/window.rs index 447925a0..018e4988 100644 --- a/crates/desk-ui/src/window.rs +++ b/crates/desk-ui/src/window.rs @@ -159,6 +159,11 @@ pub struct DocumentWindow { slides: Option>, /// Whether the document changed since the last draft. draft_due: Cell, + /// The notices over the pages, such as what Screen View hides. + toasts: adw::ToastOverlay, + /// How the pages showed before Screen View: the zoom, how it + /// followed the window, and whether the thumbnails showed (PXV-01). + before_screen: Cell, bool)>>, /// The save that waits for a pause in the editing (DOC-11). autosave_source: RefCell>, /// Whether the file as it was opened is kept as a version yet. @@ -176,8 +181,10 @@ thread_local! { } /// The actions that need a document. -const DOCUMENT_ACTIONS: [&str; 76] = [ +const DOCUMENT_ACTIONS: [&str; 78] = [ "outline", + "screen-view", + "text-size", "contents", "edit-toc", "go-to-page-end", @@ -412,6 +419,7 @@ impl DocumentWindow { // Desk Slides has the presenter notes under the slide, and the // light table in its place (KINT-05, KINT-09). let slides = is_slides.then(|| slides::Slides::new(editor_of())); + let toasts = adw::ToastOverlay::new(); if let Some(slides) = &slides { let column = gtk::Box::builder() .orientation(gtk::Orientation::Vertical) @@ -423,7 +431,8 @@ impl DocumentWindow { stack.add_named(slides.light_table.widget(), Some("light-table")); controls.add_to_zoom(&slides.size); } else { - stack.add_named(&pages, Some("document")); + toasts.set_child(Some(&pages)); + stack.add_named(&toasts, Some("document")); } // The document as an outline (TXT-14). let outline = crate::outline_view::OutlineView::new(editor_of()); @@ -640,6 +649,8 @@ impl DocumentWindow { ruler_corner, draft: RefCell::new(None), draft_due: Cell::new(false), + toasts, + before_screen: Cell::new(None), autosave_source: RefCell::new(None), opened_kept: Cell::new(false), slides, @@ -981,6 +992,12 @@ impl DocumentWindow { *self.path.borrow_mut() = None; *self.name.borrow_mut() = name; self.show_document(document); + // A new document opens in Screen View, if the preferences ask + // (PXV-01). + if preferences::get().screen_view && self.slides.is_none() { + self.actions + .change_action_state("screen-view", &true.to_variant()); + } } /// How the document shows now. @@ -1046,12 +1063,24 @@ impl DocumentWindow { editor.set_show_invisibles(self.action_state("invisibles")); editor.set_show_connection_lines(self.action_state("connection-lines")); editor.set_show_layout(self.action_state("show-layout")); + let screen = self.action_state("screen-view"); *self.editor.borrow_mut() = Some(editor); self.stack.set_visible_child_name("document"); // A document saved as an outline opens as one (DOC-16). if self.action_state("outline") { self.show_outline(true); } + // Screen View stays on for the next document, if it can show it + // (PXV-01). + if screen && let Some(editor) = self.editor() { + if editor.is_page_layout() || editor.is_presentation() { + self.actions + .change_action_state("screen-view", &false.to_variant()); + } else { + editor.set_screen_view(true); + self.show_rulers(); + } + } // A page layout document opens with its thumbnails and both // rulers, as in Pages (INT-03). let presentation = self.editor().is_some_and(|e| e.is_presentation()); @@ -1141,7 +1170,9 @@ impl DocumentWindow { /// Shows the rulers that Show Ruler and the preferences ask for. fn show_rulers(&self) { - let on = self.action_state("ruler"); + // Screen View has no rulers (PXV-01). + let screen = self.editor().is_some_and(|e| e.screen_view()); + let on = self.action_state("ruler") && !screen; let page_layout = self.editor().is_some_and(|e| e.is_page_layout()); let vertical = on && (page_layout || preferences::get().vertical_ruler); self.ruler.widget().set_visible(on); @@ -1308,6 +1339,18 @@ impl DocumentWindow { // Paste Style is off until a style is copied, as in Pages. let copied = COPIED_STYLE.with(|c| c.borrow().is_some()); self.enable("paste-style", has_document && copied); + // Screen View is for word processing documents, and while it is + // on the pages, their thumbnails and their layout do not show + // (PXV-01). + let screen = editor.as_ref().is_some_and(TextEditor::screen_view); + let words = editor + .as_ref() + .is_some_and(|e| !e.is_page_layout() && !e.is_presentation()); + self.enable("screen-view", has_document && words); + self.enable("text-size", has_document && screen); + for action in ["thumbnails", "show-layout", "ruler", "page-layout"] { + self.enable(action, has_document && !screen); + } } fn enable(&self, name: &str, enabled: bool) { @@ -1829,6 +1872,58 @@ impl DocumentWindow { } } + /// Shows the text in one flow as wide as the window, or as pages + /// again as they showed before (PXV-01). + fn show_screen_view(&self, on: bool) { + let Some(editor) = self.editor() else { + return; + }; + if on && editor.screen_view() { + return; + } + if on { + if editor.is_page_layout() || editor.is_presentation() { + formatting::set_state(&self.actions, "screen-view", false.to_variant()); + return; + } + if self.action_state("outline") { + self.actions + .change_action_state("outline", &false.to_variant()); + } + let thumbnails = self.action_state("thumbnails"); + self.before_screen + .set(Some((self.view.zoom(), self.view.fit(), thumbnails))); + if thumbnails { + self.actions + .change_action_state("thumbnails", &false.to_variant()); + } + // The text starts at its own size: Text Size ▸ Auto. + self.view.set_zoom(geometry::DEFAULT_ZOOM); + editor.set_screen_view(true); + if editor.screen_hides_content() { + self.toasts.add_toast(adw::Toast::new(&tr( + "Some content, such as headers and footers, is hidden in Screen View", + ))); + } + } else { + editor.set_screen_view(false); + if let Some((zoom, fit, thumbnails)) = self.before_screen.take() { + match fit { + Some(fit) => self.view.set_fit(Some(fit)), + None => self.view.set_zoom(zoom), + } + if thumbnails { + self.actions + .change_action_state("thumbnails", &true.to_variant()); + } + } + } + self.show_rulers(); + self.refresh(); + editor.show_selection(); + editor.focus(); + } + /// Deletes the page the cursor is on, after asking (TXT-02). fn delete_page(self: &Rc) { let Some(editor) = self.editor() else { @@ -2287,6 +2382,15 @@ impl DocumentWindow { return; }; let view = &this.view; + // In Screen View the zoom sets the size of the text, and the + // flow is always as wide as the window (PXV-01). + let screen = this.editor().is_some_and(|e| e.screen_view()); + let value = match value.as_str() { + "fit-width" | "fit-page" | "selection" | "content" if screen => { + geometry::DEFAULT_ZOOM.to_string() + } + _ => value, + }; let zoom = match value.as_str() { "in" => geometry::zoom_in(view.zoom()), "out" => geometry::zoom_out(view.zoom()), @@ -2642,10 +2746,46 @@ impl DocumentWindow { return; }; action.set_state(&on.to_variant()); + if on { + this.actions + .change_action_state("screen-view", &false.to_variant()); + } this.show_outline(on); }); self.actions.add_action(&outline); + // View ▸ Screen View: the text in one flow as wide as the window, + // without pages (PXV-01). + let screen = gio::SimpleAction::new_stateful("screen-view", None, &false.to_variant()); + let weak = Rc::downgrade(self); + screen.connect_change_state(move |action, value| { + let (Some(this), Some(on)) = (weak.upgrade(), value.and_then(|v| v.get::())) + else { + return; + }; + action.set_state(&on.to_variant()); + this.show_screen_view(on); + }); + self.actions.add_action(&screen); + + // View ▸ Text Size, in Screen View: Auto, Bigger and Smaller. + let text_size = gio::SimpleAction::new("text-size", Some(glib::VariantTy::STRING)); + let weak = Rc::downgrade(self); + text_size.connect_activate(move |_, parameter| { + let (Some(this), Some(value)) = + (weak.upgrade(), parameter.and_then(|p| p.get::())) + else { + return; + }; + let zoom = this.view.zoom(); + this.view.set_zoom(match value.as_str() { + "bigger" => geometry::zoom_in(zoom), + "smaller" => geometry::zoom_out(zoom), + _ => geometry::DEFAULT_ZOOM, + }); + }); + self.actions.add_action(&text_size); + // Edit ▸ Delete Page, after asking (TXT-02). let delete_page = gio::SimpleAction::new("delete-page", None); let weak = Rc::downgrade(self); diff --git a/crates/desk-ui/src/window/header.rs b/crates/desk-ui/src/window/header.rs index 5ee7e2d3..a7cca21f 100644 --- a/crates/desk-ui/src/window/header.rs +++ b/crates/desk-ui/src/window/header.rs @@ -292,6 +292,13 @@ pub(super) fn view_menu(navigation: &gio::Menu) -> gio::Menu { document.append(Some(&tr("Document _Warnings")), Some("win.warnings")); let window = gio::Menu::new(); window.append(Some(&tr("As _Outline")), Some("win.outline")); + // Screen View, and the size of its text (PXV-01). + window.append(Some(&tr("Scr_een View")), Some("win.screen-view")); + let text_size = gio::Menu::new(); + text_size.append(Some(&tr("_Auto")), Some("win.text-size('auto')")); + text_size.append(Some(&tr("_Bigger")), Some("win.text-size('bigger')")); + text_size.append(Some(&tr("_Smaller")), Some("win.text-size('smaller')")); + window.append_submenu(Some(&tr("Te_xt Size")), &text_size); window.append(Some(&tr("_Fullscreen")), Some("win.fullscreen")); window.append_submenu( Some(&tr("_Zoom")), diff --git a/docs/interface/README.md b/docs/interface/README.md index 3857fc3a..41d5ed5d 100644 --- a/docs/interface/README.md +++ b/docs/interface/README.md @@ -253,6 +253,7 @@ the Mac on 2026-11-16. Where the two agree, the table gives one column. | Insert, Choose | ⇧⌘V | Ctrl+Alt+P | 3 | Ctrl+Shift+V is paste and match style | | Inspector | ⌥⌘I | Ctrl+Alt+I | 2 | | | Ruler, layout, invisibles | ⌘R, ⇧⌘L, ⇧⌘I | Ctrl+R, Ctrl+Shift+L, Ctrl+Shift+I | 2 | | +| Screen View | ⇧⌘R | Ctrl+Shift+R | 2 | In the View menu, with Text Size | | Fonts | ⌘T | None | 3 | Ctrl+T is a new tab in GNOME (D-024); Fonts opens from the Font row of the Format pane and from Search Commands | | Colors | ⇧⌘C | Ctrl+Shift+C | 2 | It opens as a popover | | New document in a tab | ⌘N | Ctrl+N or Ctrl+T | 1 | Ctrl+Shift+N opens a new window | diff --git a/po/desk.pot b/po/desk.pot index 7e39b6bb..a2f782b8 100644 --- a/po/desk.pot +++ b/po/desk.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Desk\n" "Report-Msgid-Bugs-To: https://github.com/brahm/desk/issues\n" -"POT-Creation-Date: 2026-11-20 04:09+0000\n" +"POT-Creation-Date: 2026-11-20 15:58+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -113,8 +113,8 @@ msgstr "" #: crates/desk-ui/src/styles_drawer.rs:824 #: crates/desk-ui/src/styles_drawer.rs:897 #: crates/desk-ui/src/tables/window.rs:754 crates/desk-ui/src/thumbnails.rs:395 -#: crates/desk-ui/src/window.rs:1696 crates/desk-ui/src/window.rs:1859 -#: crates/desk-ui/src/window.rs:1981 +#: crates/desk-ui/src/window.rs:1739 crates/desk-ui/src/window.rs:1954 +#: crates/desk-ui/src/window.rs:2076 #: crates/desk-ui/src/window/format_actions.rs:377 msgid "_Cancel" msgstr "" @@ -256,8 +256,8 @@ msgid "2-Axis" msgstr "" #: crates/desk-ui/src/chart_pane.rs:41 -#: crates/desk-ui/src/editing/objects.rs:1641 -#: crates/desk-ui/src/editing/objects.rs:1669 crates/desk-ui/src/effects.rs:46 +#: crates/desk-ui/src/editing/objects.rs:1646 +#: crates/desk-ui/src/editing/objects.rs:1674 crates/desk-ui/src/effects.rs:46 msgid "Default" msgstr "" @@ -700,7 +700,7 @@ msgid "s" msgstr "" #: crates/desk-ui/src/contents_page.rs:100 crates/desk-ui/src/links_pane.rs:399 -#: crates/desk-ui/src/window.rs:468 +#: crates/desk-ui/src/window.rs:477 msgid "Table of Contents" msgstr "" @@ -739,7 +739,7 @@ msgstr "" #: crates/desk-ui/src/custom_format.rs:18 #: crates/desk-ui/src/custom_format.rs:44 #: crates/desk-ui/src/custom_format.rs:72 -#: crates/desk-ui/src/editing/objects.rs:1752 crates/desk-ui/src/fonts.rs:367 +#: crates/desk-ui/src/editing/objects.rs:1757 crates/desk-ui/src/fonts.rs:367 #: crates/desk-ui/src/formatting.rs:305 crates/desk-ui/src/formatting.rs:338 #: crates/desk-ui/src/function_browser.rs:23 crates/desk-ui/src/inspector.rs:59 #: crates/desk-ui/src/outline_view.rs:359 crates/desk-ui/src/table_pane.rs:35 @@ -818,7 +818,7 @@ msgstr "" #: crates/desk-ui/src/custom_format.rs:94 crates/desk-ui/src/format_pane.rs:189 #: crates/desk-ui/src/inspector.rs:260 crates/desk-ui/src/notes_pane.rs:142 #: crates/desk-ui/src/tables/bars.rs:63 -#: crates/desk-ui/src/tables/inspector.rs:141 crates/desk-ui/src/window.rs:2207 +#: crates/desk-ui/src/tables/inspector.rs:141 crates/desk-ui/src/window.rs:2302 msgid "Format" msgstr "" @@ -845,7 +845,7 @@ msgstr "" #: crates/desk-ui/src/custom_format.rs:210 #: crates/desk-ui/src/tables/window.rs:934 crates/desk-ui/src/undo_names.rs:29 -#: crates/desk-ui/src/window.rs:3435 +#: crates/desk-ui/src/window.rs:3575 msgid "Delete" msgstr "" @@ -958,7 +958,7 @@ msgid "Link" msgstr "" #: crates/desk-ui/src/document_controls.rs:149 -#: crates/desk-ui/src/editing.rs:1914 crates/desk-ui/src/links_pane.rs:71 +#: crates/desk-ui/src/editing.rs:1936 crates/desk-ui/src/links_pane.rs:71 #: crates/desk-ui/src/links_pane.rs:276 crates/desk-ui/src/links_pane.rs:337 msgid "Bookmark" msgstr "" @@ -1046,7 +1046,7 @@ msgid "Navigate _By" msgstr "" #: crates/desk-ui/src/document_controls.rs:234 -#: crates/desk-ui/src/window.rs:3752 +#: crates/desk-ui/src/window.rs:3892 msgid "Show _Statistics" msgstr "" @@ -1222,7 +1222,7 @@ msgstr "" msgid "Delete Style" msgstr "" -#: crates/desk-ui/src/editing/objects.rs:1626 +#: crates/desk-ui/src/editing/objects.rs:1631 #: crates/desk-ui/src/formatting.rs:266 crates/desk-ui/src/formatting.rs:273 #: crates/desk-ui/src/formatting.rs:295 crates/desk-ui/src/formatting.rs:314 #: crates/desk-ui/src/object_text_pane.rs:133 @@ -1630,7 +1630,7 @@ msgid "Find" msgstr "" #: crates/desk-ui/src/find.rs:212 crates/desk-ui/src/find.rs:216 -#: crates/desk-ui/src/find.rs:271 crates/desk-ui/src/shortcuts.rs:140 +#: crates/desk-ui/src/find.rs:271 crates/desk-ui/src/shortcuts.rs:141 #: crates/desk-ui/src/undo_names.rs:97 msgid "Replace" msgstr "" @@ -1679,7 +1679,7 @@ msgstr "" msgid "Show Replace" msgstr "" -#: crates/desk-ui/src/find.rs:309 crates/desk-ui/src/shortcuts.rs:139 +#: crates/desk-ui/src/find.rs:309 crates/desk-ui/src/shortcuts.rs:140 msgid "Find & Replace" msgstr "" @@ -1703,7 +1703,7 @@ msgid "Recent Searches" msgstr "" #: crates/desk-ui/src/find.rs:593 crates/desk-ui/src/tables/window.rs:55 -#: crates/desk-ui/src/window.rs:486 +#: crates/desk-ui/src/window.rs:495 msgid "Search Results" msgstr "" @@ -1888,7 +1888,7 @@ msgstr "" msgid "Size" msgstr "" -#: crates/desk-ui/src/fonts.rs:306 crates/desk-ui/src/preferences.rs:840 +#: crates/desk-ui/src/fonts.rs:306 crates/desk-ui/src/preferences.rs:855 #: crates/desk-ui/src/tables/bars.rs:121 msgid "Font Size" msgstr "" @@ -2081,7 +2081,7 @@ msgstr "" #: crates/desk-ui/src/format_pane.rs:348 crates/desk-ui/src/format_pane.rs:375 #: crates/desk-ui/src/format_pane.rs:378 crates/desk-ui/src/formatting.rs:264 -#: crates/desk-ui/src/window.rs:2208 +#: crates/desk-ui/src/window.rs:2303 msgid "Arrange" msgstr "" @@ -2285,7 +2285,7 @@ msgstr "" #: crates/desk-ui/src/function_browser.rs:139 #: crates/desk-ui/src/tables/header.rs:49 -#: crates/desk-ui/src/tables/window.rs:1173 crates/desk-ui/src/window.rs:2205 +#: crates/desk-ui/src/tables/window.rs:1173 crates/desk-ui/src/window.rs:2300 #: crates/desk-ui/src/window/header.rs:68 msgid "Insert" msgstr "" @@ -2449,8 +2449,8 @@ msgctxt "inspector title" msgid "Group" msgstr "" -#: crates/desk-ui/src/inspector.rs:69 crates/desk-ui/src/window.rs:499 -#: crates/desk-ui/src/window.rs:2216 crates/desk-ui/src/window/slides.rs:345 +#: crates/desk-ui/src/inspector.rs:69 crates/desk-ui/src/window.rs:508 +#: crates/desk-ui/src/window.rs:2311 crates/desk-ui/src/window/slides.rs:345 msgid "Slide" msgstr "" @@ -2706,34 +2706,34 @@ msgstr "" msgid "Outside Margin" msgstr "" -#: crates/desk-ui/src/lib.rs:315 +#: crates/desk-ui/src/lib.rs:320 msgid "" "The font {requested} is not installed, so {used} is used, which has the same " "metrics." msgstr "" -#: crates/desk-ui/src/lib.rs:318 +#: crates/desk-ui/src/lib.rs:323 msgid "" "The font {requested} is not installed, so {used} is used, which looks alike; " "lines may break elsewhere." msgstr "" -#: crates/desk-ui/src/lib.rs:321 +#: crates/desk-ui/src/lib.rs:326 msgid "" "The font {requested} is not installed, so {used} is used; lines may break " "elsewhere." msgstr "" -#: crates/desk-ui/src/lib.rs:627 crates/desk-ui/src/tables/window.rs:430 -#: crates/desk-ui/src/window.rs:1510 crates/desk-ui/src/window.rs:2266 +#: crates/desk-ui/src/lib.rs:633 crates/desk-ui/src/tables/window.rs:430 +#: crates/desk-ui/src/window.rs:1553 crates/desk-ui/src/window.rs:2361 msgid "Untitled" msgstr "" -#: crates/desk-ui/src/lib.rs:630 +#: crates/desk-ui/src/lib.rs:636 msgid "Recover Unsaved Changes?" msgstr "" -#: crates/desk-ui/src/lib.rs:633 +#: crates/desk-ui/src/lib.rs:639 msgid "" "{app} closed unexpectedly. The changes to this document were kept: {names}." msgid_plural "" @@ -2741,19 +2741,19 @@ msgid_plural "" msgstr[0] "" msgstr[1] "" -#: crates/desk-ui/src/lib.rs:641 crates/desk-ui/src/window.rs:1982 +#: crates/desk-ui/src/lib.rs:647 crates/desk-ui/src/window.rs:2077 msgid "_Discard" msgstr "" -#: crates/desk-ui/src/lib.rs:642 +#: crates/desk-ui/src/lib.rs:648 msgid "_Recover" msgstr "" -#: crates/desk-ui/src/lib.rs:677 +#: crates/desk-ui/src/lib.rs:683 msgid "Open a Document" msgstr "" -#: crates/desk-ui/src/lib.rs:699 +#: crates/desk-ui/src/lib.rs:705 msgid "All Documents" msgstr "" @@ -3191,7 +3191,7 @@ msgid "No style" msgstr "" #: crates/desk-ui/src/object_text_pane.rs:93 -#: crates/desk-ui/src/preferences.rs:835 crates/desk-ui/src/table_pane.rs:356 +#: crates/desk-ui/src/preferences.rs:850 crates/desk-ui/src/table_pane.rs:356 #: crates/desk-ui/src/tables/bars.rs:116 crates/desk-ui/src/tables/bars.rs:137 msgid "Font" msgstr "" @@ -3395,8 +3395,8 @@ msgstr "" msgid "Topic, level {n}" msgstr "" -#: crates/desk-ui/src/outline_view.rs:599 crates/desk-ui/src/preferences.rs:745 -#: crates/desk-ui/src/window.rs:2213 +#: crates/desk-ui/src/outline_view.rs:599 crates/desk-ui/src/preferences.rs:760 +#: crates/desk-ui/src/window.rs:2308 msgid "Objects" msgstr "" @@ -3526,234 +3526,242 @@ msgstr "" msgid "Keeps only the part of the picture that shows, at the size it is shown" msgstr "" -#: crates/desk-ui/src/preferences.rs:571 +#: crates/desk-ui/src/preferences.rs:578 msgid "Ruler Units" msgstr "" -#: crates/desk-ui/src/preferences.rs:594 +#: crates/desk-ui/src/preferences.rs:601 msgid "Rulers" msgstr "" -#: crates/desk-ui/src/preferences.rs:595 +#: crates/desk-ui/src/preferences.rs:602 msgid "For every document" msgstr "" -#: crates/desk-ui/src/preferences.rs:599 +#: crates/desk-ui/src/preferences.rs:606 msgid "Show Units as Percentage" msgstr "" -#: crates/desk-ui/src/preferences.rs:600 +#: crates/desk-ui/src/preferences.rs:607 msgid "Rulers count in percentages of the width of the text" msgstr "" -#: crates/desk-ui/src/preferences.rs:605 +#: crates/desk-ui/src/preferences.rs:612 msgid "Place Origin at Center" msgstr "" -#: crates/desk-ui/src/preferences.rs:606 +#: crates/desk-ui/src/preferences.rs:613 msgid "Rulers count from the middle of the text" msgstr "" -#: crates/desk-ui/src/preferences.rs:611 +#: crates/desk-ui/src/preferences.rs:618 msgid "Show Vertical Ruler" msgstr "" -#: crates/desk-ui/src/preferences.rs:612 +#: crates/desk-ui/src/preferences.rs:619 msgid "Along with the horizontal ruler" msgstr "" -#: crates/desk-ui/src/preferences.rs:621 +#: crates/desk-ui/src/preferences.rs:628 msgid "Default Zoom" msgstr "" -#: crates/desk-ui/src/preferences.rs:622 +#: crates/desk-ui/src/preferences.rs:629 msgid "Of new windows" msgstr "" -#: crates/desk-ui/src/preferences.rs:640 crates/desk-ui/src/shortcuts.rs:48 +#: crates/desk-ui/src/preferences.rs:647 crates/desk-ui/src/shortcuts.rs:48 #: crates/desk-ui/src/tables/shortcuts.rs:45 msgid "Editing" msgstr "" -#: crates/desk-ui/src/preferences.rs:643 +#: crates/desk-ui/src/preferences.rs:650 msgid "Automatically Detect Lists" msgstr "" -#: crates/desk-ui/src/preferences.rs:644 +#: crates/desk-ui/src/preferences.rs:651 msgid "“1.”, “a.”, “I.”, “•”, “-” or “*” and a space start a list on Return" msgstr "" -#: crates/desk-ui/src/preferences.rs:652 +#: crates/desk-ui/src/preferences.rs:659 msgid "Auto-Correction" msgstr "" -#: crates/desk-ui/src/preferences.rs:653 +#: crates/desk-ui/src/preferences.rs:660 msgid "While typing, in every document" msgstr "" -#: crates/desk-ui/src/preferences.rs:656 +#: crates/desk-ui/src/preferences.rs:663 msgid "Use Smart Quotes and Dashes" msgstr "" -#: crates/desk-ui/src/preferences.rs:657 +#: crates/desk-ui/src/preferences.rs:664 msgid "Straight quotes become curly quotes, and two hyphens a dash" msgstr "" -#: crates/desk-ui/src/preferences.rs:662 +#: crates/desk-ui/src/preferences.rs:669 msgid "Double Quotes" msgstr "" -#: crates/desk-ui/src/preferences.rs:668 +#: crates/desk-ui/src/preferences.rs:675 msgid "Single Quotes" msgstr "" -#: crates/desk-ui/src/preferences.rs:674 +#: crates/desk-ui/src/preferences.rs:681 msgid "Fix Capitalization" msgstr "" -#: crates/desk-ui/src/preferences.rs:675 +#: crates/desk-ui/src/preferences.rs:682 msgid "Sentences start with a capital" msgstr "" -#: crates/desk-ui/src/preferences.rs:680 +#: crates/desk-ui/src/preferences.rs:687 msgid "Superscript Numerical Suffixes" msgstr "" -#: crates/desk-ui/src/preferences.rs:681 +#: crates/desk-ui/src/preferences.rs:688 msgid "As in 1st and 2nd" msgstr "" -#: crates/desk-ui/src/preferences.rs:686 +#: crates/desk-ui/src/preferences.rs:693 msgid "Format Fractions Automatically" msgstr "" -#: crates/desk-ui/src/preferences.rs:687 +#: crates/desk-ui/src/preferences.rs:694 msgid "1/2 becomes ½, where there is such a character" msgstr "" -#: crates/desk-ui/src/preferences.rs:692 +#: crates/desk-ui/src/preferences.rs:699 msgid "Detect Email and Web Addresses" msgstr "" -#: crates/desk-ui/src/preferences.rs:693 +#: crates/desk-ui/src/preferences.rs:700 msgid "They become links as they are typed" msgstr "" -#: crates/desk-ui/src/preferences.rs:698 +#: crates/desk-ui/src/preferences.rs:705 msgid "Use Spelling Suggestion" msgstr "" -#: crates/desk-ui/src/preferences.rs:699 +#: crates/desk-ui/src/preferences.rs:706 msgid "A misspelled word with one suggestion is corrected" msgstr "" -#: crates/desk-ui/src/preferences.rs:704 +#: crates/desk-ui/src/preferences.rs:711 msgid "Window" msgstr "" -#: crates/desk-ui/src/preferences.rs:707 +#: crates/desk-ui/src/preferences.rs:714 msgid "Show Word and Page Count" msgstr "" -#: crates/desk-ui/src/preferences.rs:708 +#: crates/desk-ui/src/preferences.rs:715 msgid "At the bottom of the window" msgstr "" -#: crates/desk-ui/src/preferences.rs:714 +#: crates/desk-ui/src/preferences.rs:721 msgid "Show Document Warnings" msgstr "" -#: crates/desk-ui/src/preferences.rs:715 +#: crates/desk-ui/src/preferences.rs:722 msgid "When a document opens with problems" msgstr "" +#: crates/desk-ui/src/preferences.rs:728 +msgid "Open New Documents in Screen View" +msgstr "" + #: crates/desk-ui/src/preferences.rs:729 +msgid "The text flows to the width of the window, without pages" +msgstr "" + +#: crates/desk-ui/src/preferences.rs:744 msgid "Invisibles Color" msgstr "" -#: crates/desk-ui/src/preferences.rs:730 +#: crates/desk-ui/src/preferences.rs:745 msgid "Of spaces, tabs and breaks when they are shown" msgstr "" -#: crates/desk-ui/src/preferences.rs:738 +#: crates/desk-ui/src/preferences.rs:753 msgid "Include Preview in Document" msgstr "" -#: crates/desk-ui/src/preferences.rs:739 +#: crates/desk-ui/src/preferences.rs:754 msgid "A picture of the first page, which file managers show" msgstr "" -#: crates/desk-ui/src/preferences.rs:757 +#: crates/desk-ui/src/preferences.rs:772 msgid "Alignment Guides Color" msgstr "" -#: crates/desk-ui/src/preferences.rs:758 +#: crates/desk-ui/src/preferences.rs:773 msgid "Of the guides that show while objects are dragged" msgstr "" -#: crates/desk-ui/src/preferences.rs:764 +#: crates/desk-ui/src/preferences.rs:779 msgid "Show Guides at Object Center" msgstr "" -#: crates/desk-ui/src/preferences.rs:765 +#: crates/desk-ui/src/preferences.rs:780 msgid "A dragged object snaps to the middles of the page and of other objects" msgstr "" -#: crates/desk-ui/src/preferences.rs:770 +#: crates/desk-ui/src/preferences.rs:785 msgid "Show Guides at Object Edges" msgstr "" -#: crates/desk-ui/src/preferences.rs:771 +#: crates/desk-ui/src/preferences.rs:786 msgid "" "A dragged object snaps to the edges of the page, its margins and other " "objects" msgstr "" -#: crates/desk-ui/src/preferences.rs:776 +#: crates/desk-ui/src/preferences.rs:791 msgid "Show Size and Position When Moving Objects" msgstr "" -#: crates/desk-ui/src/preferences.rs:777 +#: crates/desk-ui/src/preferences.rs:792 msgid "Next to the pointer, while an object is dragged" msgstr "" -#: crates/desk-ui/src/preferences.rs:783 +#: crates/desk-ui/src/preferences.rs:798 msgid "Move Objects Aside as Tables Grow" msgstr "" -#: crates/desk-ui/src/preferences.rs:784 +#: crates/desk-ui/src/preferences.rs:799 msgid "Rows and columns added to a table push the objects beside and under it" msgstr "" -#: crates/desk-ui/src/preferences.rs:790 +#: crates/desk-ui/src/preferences.rs:805 msgid "General" msgstr "" -#: crates/desk-ui/src/preferences.rs:801 crates/desk-ui/src/shortcuts.rs:41 +#: crates/desk-ui/src/preferences.rs:816 crates/desk-ui/src/shortcuts.rs:41 msgid "Preferences" msgstr "" -#: crates/desk-ui/src/preferences.rs:812 +#: crates/desk-ui/src/preferences.rs:827 msgid "Default Font" msgstr "" -#: crates/desk-ui/src/preferences.rs:813 +#: crates/desk-ui/src/preferences.rs:828 msgid "Of new documents from the Blank templates" msgstr "" -#: crates/desk-ui/src/preferences.rs:879 +#: crates/desk-ui/src/preferences.rs:894 msgid "Symbol and Text Substitution" msgstr "" -#: crates/desk-ui/src/preferences.rs:880 +#: crates/desk-ui/src/preferences.rs:895 msgid "Such as “(c)” for “©”, when typed as a word" msgstr "" -#: crates/desk-ui/src/preferences.rs:926 crates/desk-ui/src/preferences.rs:930 +#: crates/desk-ui/src/preferences.rs:941 crates/desk-ui/src/preferences.rs:945 msgid "Remove" msgstr "" -#: crates/desk-ui/src/preferences.rs:945 +#: crates/desk-ui/src/preferences.rs:960 msgid "Add: text, a space and its replacement" msgstr "" @@ -3847,7 +3855,7 @@ msgstr "" msgid "Open a document" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:19 crates/desk-ui/src/window.rs:1434 +#: crates/desk-ui/src/shortcuts.rs:19 crates/desk-ui/src/window.rs:1477 msgid "Save" msgstr "" @@ -3901,7 +3909,7 @@ msgstr "" msgid "Quit" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:40 crates/desk-ui/src/shortcuts.rs:160 +#: crates/desk-ui/src/shortcuts.rs:40 crates/desk-ui/src/shortcuts.rs:161 #: crates/desk-ui/src/tables/shortcuts.rs:24 msgid "Fullscreen" msgstr "" @@ -4010,7 +4018,11 @@ msgstr "" msgid "Show invisibles" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:98 crates/desk-ui/src/tables/header.rs:89 +#: crates/desk-ui/src/shortcuts.rs:98 +msgid "Screen View" +msgstr "" + +#: crates/desk-ui/src/shortcuts.rs:99 crates/desk-ui/src/tables/header.rs:89 #: crates/desk-ui/src/tables/header.rs:91 #: crates/desk-ui/src/tables/shortcuts.rs:85 #: crates/desk-ui/src/window/header.rs:123 @@ -4018,167 +4030,168 @@ msgstr "" msgid "Inspector" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:99 crates/desk-ui/src/tables/shortcuts.rs:75 +#: crates/desk-ui/src/shortcuts.rs:100 +#: crates/desk-ui/src/tables/shortcuts.rs:75 msgid "Show the sidebar" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:100 +#: crates/desk-ui/src/shortcuts.rs:101 msgid "Show colors" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:101 +#: crates/desk-ui/src/shortcuts.rs:102 msgid "Show the styles in the sidebar" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:102 +#: crates/desk-ui/src/shortcuts.rs:103 msgid "Copy paragraph style" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:103 +#: crates/desk-ui/src/shortcuts.rs:104 msgid "Copy character style" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:104 +#: crates/desk-ui/src/shortcuts.rs:105 msgid "Paste style" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:107 +#: crates/desk-ui/src/shortcuts.rs:108 msgid "Apply the style of the key" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:111 +#: crates/desk-ui/src/shortcuts.rs:112 msgid "Apply a style and drop the formatting over it" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:113 +#: crates/desk-ui/src/shortcuts.rs:114 msgid "Show ruler" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:114 +#: crates/desk-ui/src/shortcuts.rs:115 msgid "Show layout" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:118 +#: crates/desk-ui/src/shortcuts.rs:119 msgid "Arranging" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:121 +#: crates/desk-ui/src/shortcuts.rs:122 msgid "Choose an image, movie or sound" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:122 +#: crates/desk-ui/src/shortcuts.rs:123 msgid "Mask the picture" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:123 +#: crates/desk-ui/src/shortcuts.rs:124 msgid "Bring to front" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:124 +#: crates/desk-ui/src/shortcuts.rs:125 msgid "Bring forward" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:125 +#: crates/desk-ui/src/shortcuts.rs:126 msgid "Send backward" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:126 +#: crates/desk-ui/src/shortcuts.rs:127 msgid "Send to back" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:127 +#: crates/desk-ui/src/shortcuts.rs:128 msgid "Group" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:128 +#: crates/desk-ui/src/shortcuts.rs:129 msgid "Ungroup" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:129 +#: crates/desk-ui/src/shortcuts.rs:130 msgid "Lock" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:130 +#: crates/desk-ui/src/shortcuts.rs:131 msgid "Unlock" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:131 +#: crates/desk-ui/src/shortcuts.rs:132 msgid "Nudge the selected objects" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:132 +#: crates/desk-ui/src/shortcuts.rs:133 msgid "Deselect the objects" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:136 +#: crates/desk-ui/src/shortcuts.rs:137 msgid "Finding" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:141 +#: crates/desk-ui/src/shortcuts.rs:142 msgid "Find next" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:142 +#: crates/desk-ui/src/shortcuts.rs:143 msgid "Find previous" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:143 +#: crates/desk-ui/src/shortcuts.rs:144 msgid "Use selection for Find" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:144 +#: crates/desk-ui/src/shortcuts.rs:145 msgid "Jump to the selection" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:147 +#: crates/desk-ui/src/shortcuts.rs:148 #: crates/desk-ui/src/tables/shortcuts.rs:82 msgid "Show the search results in the sidebar" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:149 +#: crates/desk-ui/src/shortcuts.rs:150 msgid "Find the next misspelled word" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:150 +#: crates/desk-ui/src/shortcuts.rs:151 #: crates/desk-ui/src/spelling_window.rs:103 #: crates/desk-ui/src/spelling_window.rs:109 msgid "Spelling and Grammar" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:154 +#: crates/desk-ui/src/shortcuts.rs:155 #: crates/desk-ui/src/tables/shortcuts.rs:73 -#: crates/desk-ui/src/tables/window.rs:1171 crates/desk-ui/src/window.rs:2204 +#: crates/desk-ui/src/tables/window.rs:1171 crates/desk-ui/src/window.rs:2299 msgid "View" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:157 +#: crates/desk-ui/src/shortcuts.rs:158 #: crates/desk-ui/src/tables/shortcuts.rs:86 msgid "Zoom in" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:158 +#: crates/desk-ui/src/shortcuts.rs:159 #: crates/desk-ui/src/tables/shortcuts.rs:87 msgid "Zoom out" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:159 +#: crates/desk-ui/src/shortcuts.rs:160 #: crates/desk-ui/src/tables/shortcuts.rs:88 msgid "Actual size" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:185 +#: crates/desk-ui/src/shortcuts.rs:186 msgid "Slides" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:188 +#: crates/desk-ui/src/shortcuts.rs:189 msgid "New slide" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:189 +#: crates/desk-ui/src/shortcuts.rs:190 msgid "Skip the slide" msgstr "" -#: crates/desk-ui/src/shortcuts.rs:190 +#: crates/desk-ui/src/shortcuts.rs:191 msgid "Play the presentation" msgstr "" @@ -4263,22 +4276,22 @@ msgid "(Delete)" msgstr "" #: crates/desk-ui/src/styles_drawer.rs:183 crates/desk-ui/src/undo_names.rs:107 -#: crates/desk-ui/src/window.rs:472 +#: crates/desk-ui/src/window.rs:481 msgid "Styles" msgstr "" #: crates/desk-ui/src/styles_drawer.rs:185 -#: crates/desk-ui/src/styles_drawer.rs:196 crates/desk-ui/src/window.rs:1618 +#: crates/desk-ui/src/styles_drawer.rs:196 crates/desk-ui/src/window.rs:1661 msgid "Paragraph Styles" msgstr "" #: crates/desk-ui/src/styles_drawer.rs:198 -#: crates/desk-ui/src/styles_drawer.rs:209 crates/desk-ui/src/window.rs:1619 +#: crates/desk-ui/src/styles_drawer.rs:209 crates/desk-ui/src/window.rs:1662 msgid "Character Styles" msgstr "" #: crates/desk-ui/src/styles_drawer.rs:216 -#: crates/desk-ui/src/styles_drawer.rs:227 crates/desk-ui/src/window.rs:1620 +#: crates/desk-ui/src/styles_drawer.rs:227 crates/desk-ui/src/window.rs:1663 msgid "List Styles" msgstr "" @@ -4350,8 +4363,8 @@ msgid "Another style is already named “{name}”." msgstr "" #: crates/desk-ui/src/styles_drawer.rs:573 -#: crates/desk-ui/src/tables/window.rs:206 crates/desk-ui/src/window.rs:352 -#: crates/desk-ui/src/window.rs:1361 +#: crates/desk-ui/src/tables/window.rs:206 crates/desk-ui/src/window.rs:359 +#: crates/desk-ui/src/window.rs:1404 #: crates/desk-ui/src/window/format_actions.rs:399 msgid "_Close" msgstr "" @@ -4980,7 +4993,7 @@ msgstr "" #: crates/desk-ui/src/tables/header.rs:178 #: crates/desk-ui/src/window/header.rs:57 #: crates/desk-ui/src/window/header.rs:59 -#: crates/desk-ui/src/window/header.rs:301 +#: crates/desk-ui/src/window/header.rs:308 #: crates/desk-ui/src/window/slides.rs:271 msgid "Sidebar" msgstr "" @@ -4988,8 +5001,8 @@ msgstr "" #: crates/desk-ui/src/tables/header.rs:82 #: crates/desk-ui/src/tables/header.rs:84 #: crates/desk-ui/src/tables/window.rs:1169 -#: crates/desk-ui/src/tables/window.rs:1170 crates/desk-ui/src/window.rs:2200 -#: crates/desk-ui/src/window.rs:2203 crates/desk-ui/src/window/header.rs:116 +#: crates/desk-ui/src/tables/window.rs:1170 crates/desk-ui/src/window.rs:2295 +#: crates/desk-ui/src/window.rs:2298 crates/desk-ui/src/window/header.rs:116 #: crates/desk-ui/src/window/header.rs:118 msgid "Main Menu" msgstr "" @@ -5051,8 +5064,8 @@ msgstr "" msgid "_Redo" msgstr "" -#: crates/desk-ui/src/tables/header.rs:154 crates/desk-ui/src/window.rs:1661 -#: crates/desk-ui/src/window.rs:3237 crates/desk-ui/src/window.rs:3692 +#: crates/desk-ui/src/tables/header.rs:154 crates/desk-ui/src/window.rs:1704 +#: crates/desk-ui/src/window.rs:3377 crates/desk-ui/src/window.rs:3832 msgid "_Deselect All" msgstr "" @@ -5108,51 +5121,51 @@ msgid "For_mula Bar" msgstr "" #: crates/desk-ui/src/tables/header.rs:175 -#: crates/desk-ui/src/window/header.rs:295 +#: crates/desk-ui/src/window/header.rs:302 #: crates/desk-ui/src/window/slides.rs:265 msgid "_Fullscreen" msgstr "" #: crates/desk-ui/src/tables/header.rs:176 -#: crates/desk-ui/src/window/header.rs:297 +#: crates/desk-ui/src/window/header.rs:304 #: crates/desk-ui/src/window/slides.rs:267 msgid "_Zoom" msgstr "" #: crates/desk-ui/src/tables/header.rs:208 #: crates/desk-ui/src/tables/header.rs:247 -#: crates/desk-ui/src/window/header.rs:317 +#: crates/desk-ui/src/window/header.rs:324 #: crates/desk-ui/src/window/slides.rs:286 msgid "_Table" msgstr "" #: crates/desk-ui/src/tables/header.rs:209 #: crates/desk-ui/src/tables/header.rs:248 -#: crates/desk-ui/src/window/header.rs:318 +#: crates/desk-ui/src/window/header.rs:325 #: crates/desk-ui/src/window/slides.rs:287 msgid "C_hart" msgstr "" #: crates/desk-ui/src/tables/header.rs:210 -#: crates/desk-ui/src/window/header.rs:319 +#: crates/desk-ui/src/window/header.rs:326 #: crates/desk-ui/src/window/slides.rs:288 msgid "Te_xt Box" msgstr "" #: crates/desk-ui/src/tables/header.rs:211 -#: crates/desk-ui/src/window/header.rs:320 +#: crates/desk-ui/src/window/header.rs:327 #: crates/desk-ui/src/window/slides.rs:289 msgid "S_hape" msgstr "" #: crates/desk-ui/src/tables/header.rs:213 -#: crates/desk-ui/src/window/header.rs:322 +#: crates/desk-ui/src/window/header.rs:329 #: crates/desk-ui/src/window/slides.rs:291 msgid "_Image, Movie or Sound…" msgstr "" #: crates/desk-ui/src/tables/header.rs:216 -#: crates/desk-ui/src/window/header.rs:325 +#: crates/desk-ui/src/window/header.rs:332 #: crates/desk-ui/src/window/slides.rs:294 msgid "Co_mment" msgstr "" @@ -5204,7 +5217,7 @@ msgstr "" #: crates/desk-ui/src/tables/header.rs:265 #: crates/desk-ui/src/tables/header.rs:288 crates/desk-ui/src/thumbnails.rs:396 -#: crates/desk-ui/src/thumbnails.rs:493 crates/desk-ui/src/window.rs:1860 +#: crates/desk-ui/src/thumbnails.rs:493 crates/desk-ui/src/window.rs:1955 msgid "_Delete" msgstr "" @@ -5357,7 +5370,7 @@ msgstr "" msgid "Tables and Charts" msgstr "" -#: crates/desk-ui/src/tables/window.rs:54 crates/desk-ui/src/window.rs:480 +#: crates/desk-ui/src/tables/window.rs:54 crates/desk-ui/src/window.rs:489 msgid "Comments" msgstr "" @@ -5394,12 +5407,12 @@ msgid "Blue Fill" msgstr "" #: crates/desk-ui/src/tables/window.rs:196 -#: crates/desk-ui/src/tables/window.rs:200 crates/desk-ui/src/window.rs:330 -#: crates/desk-ui/src/window.rs:334 +#: crates/desk-ui/src/tables/window.rs:200 crates/desk-ui/src/window.rs:337 +#: crates/desk-ui/src/window.rs:341 msgid "Leave Fullscreen" msgstr "" -#: crates/desk-ui/src/tables/window.rs:204 crates/desk-ui/src/window.rs:350 +#: crates/desk-ui/src/tables/window.rs:204 crates/desk-ui/src/window.rs:357 msgid "" "The screen is smaller than 1280 × 720, so parts of the window might not fit" msgstr "" @@ -5408,7 +5421,7 @@ msgstr "" msgid "Add Table or Chart" msgstr "" -#: crates/desk-ui/src/tables/window.rs:236 crates/desk-ui/src/window.rs:3641 +#: crates/desk-ui/src/tables/window.rs:236 crates/desk-ui/src/window.rs:3781 msgid "No Comments" msgstr "" @@ -5510,11 +5523,11 @@ msgstr "" msgid "{slide}, skipped" msgstr "" -#: crates/desk-ui/src/thumbnails.rs:371 crates/desk-ui/src/window.rs:1846 +#: crates/desk-ui/src/thumbnails.rs:371 crates/desk-ui/src/window.rs:1941 msgid "Delete Page?" msgstr "" -#: crates/desk-ui/src/thumbnails.rs:373 crates/desk-ui/src/window.rs:1852 +#: crates/desk-ui/src/thumbnails.rs:373 crates/desk-ui/src/window.rs:1947 msgid "Delete Pages?" msgstr "" @@ -5536,16 +5549,16 @@ msgid_plural "The {n} sections and all their pages will be deleted." msgstr[0] "" msgstr[1] "" -#: crates/desk-ui/src/thumbnails.rs:489 crates/desk-ui/src/window.rs:3228 +#: crates/desk-ui/src/thumbnails.rs:489 crates/desk-ui/src/window.rs:3368 msgid "Cu_t" msgstr "" #: crates/desk-ui/src/thumbnails.rs:490 crates/desk-ui/src/warnings.rs:82 -#: crates/desk-ui/src/window.rs:3229 +#: crates/desk-ui/src/window.rs:3369 msgid "_Copy" msgstr "" -#: crates/desk-ui/src/thumbnails.rs:491 crates/desk-ui/src/window.rs:3230 +#: crates/desk-ui/src/thumbnails.rs:491 crates/desk-ui/src/window.rs:3370 msgid "_Paste" msgstr "" @@ -5553,8 +5566,8 @@ msgstr "" msgid "D_uplicate" msgstr "" -#: crates/desk-ui/src/thumbnails.rs:495 crates/desk-ui/src/window.rs:3236 -#: crates/desk-ui/src/window.rs:3691 +#: crates/desk-ui/src/thumbnails.rs:495 crates/desk-ui/src/window.rs:3376 +#: crates/desk-ui/src/window.rs:3831 msgid "Select _All" msgstr "" @@ -5654,8 +5667,8 @@ msgstr "" msgid "Guides" msgstr "" -#: crates/desk-ui/src/undo_names.rs:62 crates/desk-ui/src/window.rs:1583 -#: crates/desk-ui/src/window.rs:1607 crates/desk-ui/src/window.rs:1726 +#: crates/desk-ui/src/undo_names.rs:62 crates/desk-ui/src/window.rs:1626 +#: crates/desk-ui/src/window.rs:1650 crates/desk-ui/src/window.rs:1769 msgid "Import Styles" msgstr "" @@ -5787,323 +5800,327 @@ msgstr "" msgid "Document Warnings" msgstr "" -#: crates/desk-ui/src/window.rs:338 crates/desk-ui/src/window.rs:340 -#: crates/desk-ui/src/window.rs:344 +#: crates/desk-ui/src/window.rs:345 crates/desk-ui/src/window.rs:347 +#: crates/desk-ui/src/window.rs:351 msgid "Background" msgstr "" -#: crates/desk-ui/src/window.rs:356 +#: crates/desk-ui/src/window.rs:363 msgid "Some of the document might not show as it was made" msgstr "" -#: crates/desk-ui/src/window.rs:357 +#: crates/desk-ui/src/window.rs:364 msgid "_See Warnings" msgstr "" -#: crates/desk-ui/src/window.rs:369 +#: crates/desk-ui/src/window.rs:376 msgid "Choose a Template" msgstr "" -#: crates/desk-ui/src/window.rs:371 +#: crates/desk-ui/src/window.rs:378 msgid "Start a new document, or open an OpenDocument text or a Pages document." msgstr "" -#: crates/desk-ui/src/window.rs:376 +#: crates/desk-ui/src/window.rs:383 msgid "" "This app is at an early stage of development and cannot open documents yet." msgstr "" -#: crates/desk-ui/src/window.rs:438 +#: crates/desk-ui/src/window.rs:447 msgid "Add Slide" msgstr "" -#: crates/desk-ui/src/window.rs:441 +#: crates/desk-ui/src/window.rs:450 msgid "Navigator" msgstr "" -#: crates/desk-ui/src/window.rs:447 crates/desk-ui/src/window/slides.rs:388 +#: crates/desk-ui/src/window.rs:456 crates/desk-ui/src/window/slides.rs:388 msgctxt "slides" msgid "Outline" msgstr "" -#: crates/desk-ui/src/window.rs:453 +#: crates/desk-ui/src/window.rs:462 msgid "Master Slides" msgstr "" -#: crates/desk-ui/src/window.rs:459 +#: crates/desk-ui/src/window.rs:468 msgid "Add Page" msgstr "" -#: crates/desk-ui/src/window.rs:462 crates/desk-ui/src/writing_tools.rs:85 +#: crates/desk-ui/src/window.rs:471 crates/desk-ui/src/writing_tools.rs:85 msgid "Pages" msgstr "" -#: crates/desk-ui/src/window.rs:506 +#: crates/desk-ui/src/window.rs:515 msgid "Animation" msgstr "" -#: crates/desk-ui/src/window.rs:972 crates/desk-ui/src/window.rs:1597 +#: crates/desk-ui/src/window.rs:983 crates/desk-ui/src/window.rs:1640 #: crates/desk-ui/src/window/objects.rs:187 msgid "Cannot open {name}" msgstr "" -#: crates/desk-ui/src/window.rs:1396 +#: crates/desk-ui/src/window.rs:1439 msgid "Cannot save {name}" msgstr "" -#: crates/desk-ui/src/window.rs:1450 +#: crates/desk-ui/src/window.rs:1493 msgid "Save a Copy" msgstr "" -#: crates/desk-ui/src/window.rs:1516 +#: crates/desk-ui/src/window.rs:1559 msgid "{name} (recovered)" msgstr "" -#: crates/desk-ui/src/window.rs:1608 +#: crates/desk-ui/src/window.rs:1651 msgid "Choose the styles of “{name}” to import." msgstr "" -#: crates/desk-ui/src/window.rs:1657 +#: crates/desk-ui/src/window.rs:1700 msgid "_Select All" msgstr "" -#: crates/desk-ui/src/window.rs:1680 +#: crates/desk-ui/src/window.rs:1723 msgid "Replace Duplicates" msgstr "" -#: crates/desk-ui/src/window.rs:1681 +#: crates/desk-ui/src/window.rs:1724 msgid "Styles with the same names take the imported ones" msgstr "" -#: crates/desk-ui/src/window.rs:1697 +#: crates/desk-ui/src/window.rs:1740 msgid "_Import" msgstr "" -#: crates/desk-ui/src/window.rs:1729 +#: crates/desk-ui/src/window.rs:1772 msgid "Cannot Import the Styles" msgstr "" -#: crates/desk-ui/src/window.rs:1758 +#: crates/desk-ui/src/window.rs:1801 msgid "Cannot Follow Link" msgstr "" -#: crates/desk-ui/src/window.rs:1759 +#: crates/desk-ui/src/window.rs:1802 msgid "Save this document first: the link names a file from its folder." msgstr "" -#: crates/desk-ui/src/window.rs:1847 +#: crates/desk-ui/src/window.rs:1905 +msgid "Some content, such as headers and footers, is hidden in Screen View" +msgstr "" + +#: crates/desk-ui/src/window.rs:1942 msgid "Everything on page {n} will be deleted." msgstr "" -#: crates/desk-ui/src/window.rs:1853 +#: crates/desk-ui/src/window.rs:1948 msgid "Pages {first} to {last}, the section of this page, will be deleted." msgstr "" -#: crates/desk-ui/src/window.rs:1926 +#: crates/desk-ui/src/window.rs:2021 msgid "Cannot Restore the Version" msgstr "" -#: crates/desk-ui/src/window.rs:1947 +#: crates/desk-ui/src/window.rs:2042 msgid "Cannot Open the Version" msgstr "" -#: crates/desk-ui/src/window.rs:1975 +#: crates/desk-ui/src/window.rs:2070 msgid "Save Changes?" msgstr "" -#: crates/desk-ui/src/window.rs:1977 +#: crates/desk-ui/src/window.rs:2072 msgid "" "“{name}” contains unsaved changes. Changes which are not saved will be " "permanently lost." msgstr "" -#: crates/desk-ui/src/window.rs:1983 crates/desk-ui/src/window/header.rs:225 +#: crates/desk-ui/src/window.rs:2078 crates/desk-ui/src/window/header.rs:225 msgid "_Save" msgstr "" -#: crates/desk-ui/src/window.rs:2206 +#: crates/desk-ui/src/window.rs:2301 msgid "Edit" msgstr "" -#: crates/desk-ui/src/window.rs:3231 +#: crates/desk-ui/src/window.rs:3371 msgid "Dupl_icate" msgstr "" -#: crates/desk-ui/src/window.rs:3233 crates/desk-ui/src/window.rs:3678 +#: crates/desk-ui/src/window.rs:3373 crates/desk-ui/src/window.rs:3818 msgid "Paste and _Match Style" msgstr "" -#: crates/desk-ui/src/window.rs:3240 +#: crates/desk-ui/src/window.rs:3380 msgid "_Bold" msgstr "" -#: crates/desk-ui/src/window.rs:3241 +#: crates/desk-ui/src/window.rs:3381 msgid "_Italic" msgstr "" -#: crates/desk-ui/src/window.rs:3242 +#: crates/desk-ui/src/window.rs:3382 msgid "_Underline" msgstr "" -#: crates/desk-ui/src/window.rs:3246 crates/desk-ui/src/window.rs:3669 +#: crates/desk-ui/src/window.rs:3386 crates/desk-ui/src/window.rs:3809 msgid "Copy _Paragraph Style" msgstr "" -#: crates/desk-ui/src/window.rs:3250 crates/desk-ui/src/window.rs:3673 +#: crates/desk-ui/src/window.rs:3390 crates/desk-ui/src/window.rs:3813 msgid "Copy C_haracter Style" msgstr "" -#: crates/desk-ui/src/window.rs:3253 crates/desk-ui/src/window.rs:3676 +#: crates/desk-ui/src/window.rs:3393 crates/desk-ui/src/window.rs:3816 msgid "Paste Sty_le" msgstr "" -#: crates/desk-ui/src/window.rs:3256 +#: crates/desk-ui/src/window.rs:3396 msgid "_Writing Tools" msgstr "" -#: crates/desk-ui/src/window.rs:3257 +#: crates/desk-ui/src/window.rs:3397 msgid "T_ransformations" msgstr "" -#: crates/desk-ui/src/window.rs:3258 +#: crates/desk-ui/src/window.rs:3398 msgid "Su_bstitutions" msgstr "" -#: crates/desk-ui/src/window.rs:3259 crates/desk-ui/src/window/header.rs:286 +#: crates/desk-ui/src/window.rs:3399 crates/desk-ui/src/window/header.rs:286 #: crates/desk-ui/src/window/slides.rs:255 msgid "Spe_lling and Grammar" msgstr "" -#: crates/desk-ui/src/window.rs:3260 +#: crates/desk-ui/src/window.rs:3400 msgid "_Arrange" msgstr "" -#: crates/desk-ui/src/window.rs:3263 +#: crates/desk-ui/src/window.rs:3403 msgid "Delete _Page…" msgstr "" -#: crates/desk-ui/src/window.rs:3431 +#: crates/desk-ui/src/window.rs:3571 msgid "No Guesses Found" msgstr "" -#: crates/desk-ui/src/window.rs:3445 +#: crates/desk-ui/src/window.rs:3585 msgid "_Ignore Spelling" msgstr "" -#: crates/desk-ui/src/window.rs:3446 +#: crates/desk-ui/src/window.rs:3586 msgid "_Learn Spelling" msgstr "" -#: crates/desk-ui/src/window.rs:3464 +#: crates/desk-ui/src/window.rs:3604 msgid "Never _Hyphenate" msgstr "" -#: crates/desk-ui/src/window.rs:3466 +#: crates/desk-ui/src/window.rs:3606 msgid "Allow _Hyphenation" msgstr "" -#: crates/desk-ui/src/window.rs:3500 +#: crates/desk-ui/src/window.rs:3640 msgid "Number _Format" msgstr "" -#: crates/desk-ui/src/window.rs:3519 +#: crates/desk-ui/src/window.rs:3659 msgid "Date and Time _Format" msgstr "" -#: crates/desk-ui/src/window.rs:3521 +#: crates/desk-ui/src/window.rs:3661 msgid "_Automatically Update on Open" msgstr "" -#: crates/desk-ui/src/window.rs:3531 +#: crates/desk-ui/src/window.rs:3671 msgid "Show _Directory Path" msgstr "" -#: crates/desk-ui/src/window.rs:3535 +#: crates/desk-ui/src/window.rs:3675 msgid "Always Show File_name Extension" msgstr "" -#: crates/desk-ui/src/window.rs:3563 +#: crates/desk-ui/src/window.rs:3703 msgid "{name} copy" msgstr "" -#: crates/desk-ui/src/window.rs:3567 crates/desk-ui/src/window/slides.rs:347 +#: crates/desk-ui/src/window.rs:3707 crates/desk-ui/src/window/slides.rs:347 msgid "Blank" msgstr "" -#: crates/desk-ui/src/window.rs:3567 +#: crates/desk-ui/src/window.rs:3707 msgid "Blank Layout" msgstr "" -#: crates/desk-ui/src/window.rs:3603 +#: crates/desk-ui/src/window.rs:3743 msgid "_Open a Document…" msgstr "" -#: crates/desk-ui/src/window.rs:3642 +#: crates/desk-ui/src/window.rs:3782 msgid "The comments of the document show here." msgstr "" -#: crates/desk-ui/src/window.rs:3649 +#: crates/desk-ui/src/window.rs:3789 msgid "_Blank Page" msgstr "" -#: crates/desk-ui/src/window.rs:3651 crates/desk-ui/src/window/header.rs:333 +#: crates/desk-ui/src/window.rs:3791 crates/desk-ui/src/window/header.rs:340 msgid "_Section Break" msgstr "" -#: crates/desk-ui/src/window.rs:3661 +#: crates/desk-ui/src/window.rs:3801 msgid "_Fonts…" msgstr "" -#: crates/desk-ui/src/window.rs:3662 +#: crates/desk-ui/src/window.rs:3802 msgid "_Colors…" msgstr "" -#: crates/desk-ui/src/window.rs:3664 crates/desk-ui/src/window/header.rs:365 +#: crates/desk-ui/src/window.rs:3804 crates/desk-ui/src/window/header.rs:372 #: crates/desk-ui/src/window/slides.rs:311 msgid "Special _Characters…" msgstr "" -#: crates/desk-ui/src/window.rs:3704 +#: crates/desk-ui/src/window.rs:3844 msgid "Convert _Quotes" msgstr "" -#: crates/desk-ui/src/window.rs:3713 +#: crates/desk-ui/src/window.rs:3853 msgid "Make _Upper Case" msgstr "" -#: crates/desk-ui/src/window.rs:3714 +#: crates/desk-ui/src/window.rs:3854 msgid "Make _Lower Case" msgstr "" -#: crates/desk-ui/src/window.rs:3715 +#: crates/desk-ui/src/window.rs:3855 msgid "_Capitalize" msgstr "" -#: crates/desk-ui/src/window.rs:3723 +#: crates/desk-ui/src/window.rs:3863 msgid "Show _Spelling and Grammar" msgstr "" -#: crates/desk-ui/src/window.rs:3726 +#: crates/desk-ui/src/window.rs:3866 msgid "_Check Document Now" msgstr "" -#: crates/desk-ui/src/window.rs:3729 +#: crates/desk-ui/src/window.rs:3869 msgid "Check Spelling While _Typing" msgstr "" -#: crates/desk-ui/src/window.rs:3733 +#: crates/desk-ui/src/window.rs:3873 msgid "Check _Grammar While Typing" msgstr "" -#: crates/desk-ui/src/window.rs:3744 +#: crates/desk-ui/src/window.rs:3884 msgid "Look Up in _Dictionary and Thesaurus" msgstr "" -#: crates/desk-ui/src/window.rs:3747 +#: crates/desk-ui/src/window.rs:3887 msgid "Search the _Web" msgstr "" -#: crates/desk-ui/src/window.rs:3749 +#: crates/desk-ui/src/window.rs:3889 msgid "Search in Wi_kipedia" msgstr "" @@ -6190,101 +6207,121 @@ msgstr "" msgid "As _Outline" msgstr "" -#: crates/desk-ui/src/window/header.rs:329 +#: crates/desk-ui/src/window/header.rs:296 +msgid "Scr_een View" +msgstr "" + +#: crates/desk-ui/src/window/header.rs:298 +msgid "_Auto" +msgstr "" + +#: crates/desk-ui/src/window/header.rs:299 +msgid "_Bigger" +msgstr "" + +#: crates/desk-ui/src/window/header.rs:300 +msgid "_Smaller" +msgstr "" + +#: crates/desk-ui/src/window/header.rs:301 +msgid "Te_xt Size" +msgstr "" + +#: crates/desk-ui/src/window/header.rs:336 msgid "_Page Break" msgstr "" -#: crates/desk-ui/src/window/header.rs:330 +#: crates/desk-ui/src/window/header.rs:337 msgid "_Column Break" msgstr "" -#: crates/desk-ui/src/window/header.rs:331 +#: crates/desk-ui/src/window/header.rs:338 msgid "_Layout Break" msgstr "" -#: crates/desk-ui/src/window/header.rs:338 +#: crates/desk-ui/src/window/header.rs:345 msgid "_Auto Page Numbers…" msgstr "" -#: crates/desk-ui/src/window/header.rs:341 +#: crates/desk-ui/src/window/header.rs:348 msgid "Page _Number" msgstr "" -#: crates/desk-ui/src/window/header.rs:342 +#: crates/desk-ui/src/window/header.rs:349 msgid "Page Co_unt" msgstr "" -#: crates/desk-ui/src/window/header.rs:343 +#: crates/desk-ui/src/window/header.rs:350 #: crates/desk-ui/src/window/slides.rs:303 msgid "_Date" msgstr "" -#: crates/desk-ui/src/window/header.rs:344 +#: crates/desk-ui/src/window/header.rs:351 #: crates/desk-ui/src/window/slides.rs:304 msgid "_File Name" msgstr "" -#: crates/desk-ui/src/window/header.rs:346 +#: crates/desk-ui/src/window/header.rs:353 msgid "_Break" msgstr "" -#: crates/desk-ui/src/window/header.rs:347 +#: crates/desk-ui/src/window/header.rs:354 #: crates/desk-ui/src/window/slides.rs:306 msgid "_Field" msgstr "" -#: crates/desk-ui/src/window/header.rs:350 +#: crates/desk-ui/src/window/header.rs:357 msgid "Foot_note" msgstr "" -#: crates/desk-ui/src/window/header.rs:351 +#: crates/desk-ui/src/window/header.rs:358 msgid "Ne_xt Note" msgstr "" -#: crates/desk-ui/src/window/header.rs:352 +#: crates/desk-ui/src/window/header.rs:359 msgid "Pre_vious Note" msgstr "" -#: crates/desk-ui/src/window/header.rs:355 +#: crates/desk-ui/src/window/header.rs:362 msgid "_Table of Contents" msgstr "" -#: crates/desk-ui/src/window/header.rs:357 +#: crates/desk-ui/src/window/header.rs:364 msgid "Update Table of C_ontents" msgstr "" -#: crates/desk-ui/src/window/header.rs:360 +#: crates/desk-ui/src/window/header.rs:367 msgid "_Bookmark" msgstr "" -#: crates/desk-ui/src/window/header.rs:361 +#: crates/desk-ui/src/window/header.rs:368 #: crates/desk-ui/src/window/slides.rs:307 msgid "_Hyperlink" msgstr "" -#: crates/desk-ui/src/window/header.rs:369 +#: crates/desk-ui/src/window/header.rs:376 #: crates/desk-ui/src/window/slides.rs:315 msgid "Add _Linked Text Box" msgstr "" -#: crates/desk-ui/src/window/header.rs:372 +#: crates/desk-ui/src/window/header.rs:379 #: crates/desk-ui/src/window/slides.rs:318 msgid "C_hoose…" msgstr "" -#: crates/desk-ui/src/window/header.rs:384 +#: crates/desk-ui/src/window/header.rs:391 msgid "_Line" msgstr "" -#: crates/desk-ui/src/window/header.rs:390 +#: crates/desk-ui/src/window/header.rs:397 msgid "Pe_n" msgstr "" -#: crates/desk-ui/src/window/header.rs:391 +#: crates/desk-ui/src/window/header.rs:398 msgid "Connection L_ine" msgstr "" -#: crates/desk-ui/src/window/header.rs:406 +#: crates/desk-ui/src/window/header.rs:413 msgid "Choose _File…" msgstr "" diff --git a/po/pt_BR.po b/po/pt_BR.po index 6ddb9049..2a2dc4ec 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Desk\n" "Report-Msgid-Bugs-To: https://github.com/brahm/desk/issues\n" -"POT-Creation-Date: 2026-11-20 04:09+0000\n" +"POT-Creation-Date: 2026-11-20 15:57+0000\n" "PO-Revision-Date: 2026-11-02 00:54+0000\n" "Last-Translator: Desk contributors\n" "Language-Team: Brazilian Portuguese\n" @@ -112,8 +112,8 @@ msgstr "Documento inteiro" #: crates/desk-ui/src/styles_drawer.rs:824 #: crates/desk-ui/src/styles_drawer.rs:897 #: crates/desk-ui/src/tables/window.rs:754 crates/desk-ui/src/thumbnails.rs:395 -#: crates/desk-ui/src/window.rs:1696 crates/desk-ui/src/window.rs:1859 -#: crates/desk-ui/src/window.rs:1981 +#: crates/desk-ui/src/window.rs:1739 crates/desk-ui/src/window.rs:1954 +#: crates/desk-ui/src/window.rs:2076 #: crates/desk-ui/src/window/format_actions.rs:377 msgid "_Cancel" msgstr "_Cancelar" @@ -255,8 +255,8 @@ msgid "2-Axis" msgstr "2 eixos" #: crates/desk-ui/src/chart_pane.rs:41 -#: crates/desk-ui/src/editing/objects.rs:1641 -#: crates/desk-ui/src/editing/objects.rs:1669 crates/desk-ui/src/effects.rs:46 +#: crates/desk-ui/src/editing/objects.rs:1646 +#: crates/desk-ui/src/editing/objects.rs:1674 crates/desk-ui/src/effects.rs:46 msgid "Default" msgstr "Padrão" @@ -699,7 +699,7 @@ msgid "s" msgstr "s" #: crates/desk-ui/src/contents_page.rs:100 crates/desk-ui/src/links_pane.rs:399 -#: crates/desk-ui/src/window.rs:468 +#: crates/desk-ui/src/window.rs:477 msgid "Table of Contents" msgstr "Sumário" @@ -738,7 +738,7 @@ msgstr "Número" #: crates/desk-ui/src/custom_format.rs:18 #: crates/desk-ui/src/custom_format.rs:44 #: crates/desk-ui/src/custom_format.rs:72 -#: crates/desk-ui/src/editing/objects.rs:1752 crates/desk-ui/src/fonts.rs:367 +#: crates/desk-ui/src/editing/objects.rs:1757 crates/desk-ui/src/fonts.rs:367 #: crates/desk-ui/src/formatting.rs:305 crates/desk-ui/src/formatting.rs:338 #: crates/desk-ui/src/function_browser.rs:23 crates/desk-ui/src/inspector.rs:59 #: crates/desk-ui/src/outline_view.rs:359 crates/desk-ui/src/table_pane.rs:35 @@ -817,7 +817,7 @@ msgstr "Tipo" #: crates/desk-ui/src/custom_format.rs:94 crates/desk-ui/src/format_pane.rs:189 #: crates/desk-ui/src/inspector.rs:260 crates/desk-ui/src/notes_pane.rs:142 #: crates/desk-ui/src/tables/bars.rs:63 -#: crates/desk-ui/src/tables/inspector.rs:141 crates/desk-ui/src/window.rs:2207 +#: crates/desk-ui/src/tables/inspector.rs:141 crates/desk-ui/src/window.rs:2302 msgid "Format" msgstr "Formato" @@ -844,7 +844,7 @@ msgstr "Mover para baixo" #: crates/desk-ui/src/custom_format.rs:210 #: crates/desk-ui/src/tables/window.rs:934 crates/desk-ui/src/undo_names.rs:29 -#: crates/desk-ui/src/window.rs:3435 +#: crates/desk-ui/src/window.rs:3575 msgid "Delete" msgstr "Excluir" @@ -957,7 +957,7 @@ msgid "Link" msgstr "Link" #: crates/desk-ui/src/document_controls.rs:149 -#: crates/desk-ui/src/editing.rs:1914 crates/desk-ui/src/links_pane.rs:71 +#: crates/desk-ui/src/editing.rs:1936 crates/desk-ui/src/links_pane.rs:71 #: crates/desk-ui/src/links_pane.rs:276 crates/desk-ui/src/links_pane.rs:337 msgid "Bookmark" msgstr "Marcador" @@ -1045,7 +1045,7 @@ msgid "Navigate _By" msgstr "_Navegar por" #: crates/desk-ui/src/document_controls.rs:234 -#: crates/desk-ui/src/window.rs:3752 +#: crates/desk-ui/src/window.rs:3892 msgid "Show _Statistics" msgstr "Mostrar _estatísticas" @@ -1221,7 +1221,7 @@ msgstr "Redefinir estilo a partir da seleção" msgid "Delete Style" msgstr "Excluir estilo" -#: crates/desk-ui/src/editing/objects.rs:1626 +#: crates/desk-ui/src/editing/objects.rs:1631 #: crates/desk-ui/src/formatting.rs:266 crates/desk-ui/src/formatting.rs:273 #: crates/desk-ui/src/formatting.rs:295 crates/desk-ui/src/formatting.rs:314 #: crates/desk-ui/src/object_text_pane.rs:133 @@ -1629,7 +1629,7 @@ msgid "Find" msgstr "Buscar" #: crates/desk-ui/src/find.rs:212 crates/desk-ui/src/find.rs:216 -#: crates/desk-ui/src/find.rs:271 crates/desk-ui/src/shortcuts.rs:140 +#: crates/desk-ui/src/find.rs:271 crates/desk-ui/src/shortcuts.rs:141 #: crates/desk-ui/src/undo_names.rs:97 msgid "Replace" msgstr "Substituir" @@ -1678,7 +1678,7 @@ msgstr "Próximo" msgid "Show Replace" msgstr "Mostrar substituir" -#: crates/desk-ui/src/find.rs:309 crates/desk-ui/src/shortcuts.rs:139 +#: crates/desk-ui/src/find.rs:309 crates/desk-ui/src/shortcuts.rs:140 msgid "Find & Replace" msgstr "Buscar e substituir" @@ -1702,7 +1702,7 @@ msgid "Recent Searches" msgstr "Buscas recentes" #: crates/desk-ui/src/find.rs:593 crates/desk-ui/src/tables/window.rs:55 -#: crates/desk-ui/src/window.rs:486 +#: crates/desk-ui/src/window.rs:495 msgid "Search Results" msgstr "Resultados da busca" @@ -1887,7 +1887,7 @@ msgstr "Tipo" msgid "Size" msgstr "Tamanho" -#: crates/desk-ui/src/fonts.rs:306 crates/desk-ui/src/preferences.rs:840 +#: crates/desk-ui/src/fonts.rs:306 crates/desk-ui/src/preferences.rs:855 #: crates/desk-ui/src/tables/bars.rs:121 msgid "Font Size" msgstr "Tamanho da fonte" @@ -2080,7 +2080,7 @@ msgstr "_Lista" #: crates/desk-ui/src/format_pane.rs:348 crates/desk-ui/src/format_pane.rs:375 #: crates/desk-ui/src/format_pane.rs:378 crates/desk-ui/src/formatting.rs:264 -#: crates/desk-ui/src/window.rs:2208 +#: crates/desk-ui/src/window.rs:2303 msgid "Arrange" msgstr "Organizar" @@ -2284,7 +2284,7 @@ msgstr "Buscar funções" #: crates/desk-ui/src/function_browser.rs:139 #: crates/desk-ui/src/tables/header.rs:49 -#: crates/desk-ui/src/tables/window.rs:1173 crates/desk-ui/src/window.rs:2205 +#: crates/desk-ui/src/tables/window.rs:1173 crates/desk-ui/src/window.rs:2300 #: crates/desk-ui/src/window/header.rs:68 msgid "Insert" msgstr "Inserir" @@ -2450,8 +2450,8 @@ msgctxt "inspector title" msgid "Group" msgstr "Grupo" -#: crates/desk-ui/src/inspector.rs:69 crates/desk-ui/src/window.rs:499 -#: crates/desk-ui/src/window.rs:2216 crates/desk-ui/src/window/slides.rs:345 +#: crates/desk-ui/src/inspector.rs:69 crates/desk-ui/src/window.rs:508 +#: crates/desk-ui/src/window.rs:2311 crates/desk-ui/src/window/slides.rs:345 msgid "Slide" msgstr "Slide" @@ -2707,7 +2707,7 @@ msgstr "Margem interna" msgid "Outside Margin" msgstr "Margem externa" -#: crates/desk-ui/src/lib.rs:315 +#: crates/desk-ui/src/lib.rs:320 msgid "" "The font {requested} is not installed, so {used} is used, which has the same " "metrics." @@ -2715,7 +2715,7 @@ msgstr "" "A fonte {requested} não está instalada, então é usada a {used}, que tem as " "mesmas métricas." -#: crates/desk-ui/src/lib.rs:318 +#: crates/desk-ui/src/lib.rs:323 msgid "" "The font {requested} is not installed, so {used} is used, which looks alike; " "lines may break elsewhere." @@ -2723,7 +2723,7 @@ msgstr "" "A fonte {requested} não está instalada, então é usada a {used}, que é " "parecida; as linhas podem quebrar em outros pontos." -#: crates/desk-ui/src/lib.rs:321 +#: crates/desk-ui/src/lib.rs:326 msgid "" "The font {requested} is not installed, so {used} is used; lines may break " "elsewhere." @@ -2731,16 +2731,16 @@ msgstr "" "A fonte {requested} não está instalada, então é usada a {used}; as linhas " "podem quebrar em outros pontos." -#: crates/desk-ui/src/lib.rs:627 crates/desk-ui/src/tables/window.rs:430 -#: crates/desk-ui/src/window.rs:1510 crates/desk-ui/src/window.rs:2266 +#: crates/desk-ui/src/lib.rs:633 crates/desk-ui/src/tables/window.rs:430 +#: crates/desk-ui/src/window.rs:1553 crates/desk-ui/src/window.rs:2361 msgid "Untitled" msgstr "Sem título" -#: crates/desk-ui/src/lib.rs:630 +#: crates/desk-ui/src/lib.rs:636 msgid "Recover Unsaved Changes?" msgstr "Recuperar alterações não salvas?" -#: crates/desk-ui/src/lib.rs:633 +#: crates/desk-ui/src/lib.rs:639 msgid "" "{app} closed unexpectedly. The changes to this document were kept: {names}." msgid_plural "" @@ -2752,19 +2752,19 @@ msgstr[1] "" "{app} fechou inesperadamente. As alterações destes documentos foram " "mantidas: {names}." -#: crates/desk-ui/src/lib.rs:641 crates/desk-ui/src/window.rs:1982 +#: crates/desk-ui/src/lib.rs:647 crates/desk-ui/src/window.rs:2077 msgid "_Discard" msgstr "_Descartar" -#: crates/desk-ui/src/lib.rs:642 +#: crates/desk-ui/src/lib.rs:648 msgid "_Recover" msgstr "_Recuperar" -#: crates/desk-ui/src/lib.rs:677 +#: crates/desk-ui/src/lib.rs:683 msgid "Open a Document" msgstr "Abrir um documento" -#: crates/desk-ui/src/lib.rs:699 +#: crates/desk-ui/src/lib.rs:705 msgid "All Documents" msgstr "Todos os documentos" @@ -3206,7 +3206,7 @@ msgid "No style" msgstr "Sem estilo" #: crates/desk-ui/src/object_text_pane.rs:93 -#: crates/desk-ui/src/preferences.rs:835 crates/desk-ui/src/table_pane.rs:356 +#: crates/desk-ui/src/preferences.rs:850 crates/desk-ui/src/table_pane.rs:356 #: crates/desk-ui/src/tables/bars.rs:116 crates/desk-ui/src/tables/bars.rs:137 msgid "Font" msgstr "Fonte" @@ -3411,8 +3411,8 @@ msgstr "Mostrar ou ocultar os subtópicos" msgid "Topic, level {n}" msgstr "Tópico, nível {n}" -#: crates/desk-ui/src/outline_view.rs:599 crates/desk-ui/src/preferences.rs:745 -#: crates/desk-ui/src/window.rs:2213 +#: crates/desk-ui/src/outline_view.rs:599 crates/desk-ui/src/preferences.rs:760 +#: crates/desk-ui/src/window.rs:2308 msgid "Objects" msgstr "Objetos" @@ -3542,187 +3542,195 @@ msgstr "Reduzir tamanho do arquivo" msgid "Keeps only the part of the picture that shows, at the size it is shown" msgstr "Mantém só a parte visível da imagem, no tamanho em que aparece" -#: crates/desk-ui/src/preferences.rs:571 +#: crates/desk-ui/src/preferences.rs:578 msgid "Ruler Units" msgstr "Unidades da régua" -#: crates/desk-ui/src/preferences.rs:594 +#: crates/desk-ui/src/preferences.rs:601 msgid "Rulers" msgstr "Réguas" -#: crates/desk-ui/src/preferences.rs:595 +#: crates/desk-ui/src/preferences.rs:602 msgid "For every document" msgstr "Valem para todos os documentos" -#: crates/desk-ui/src/preferences.rs:599 +#: crates/desk-ui/src/preferences.rs:606 msgid "Show Units as Percentage" msgstr "Mostrar unidades em porcentagem" -#: crates/desk-ui/src/preferences.rs:600 +#: crates/desk-ui/src/preferences.rs:607 msgid "Rulers count in percentages of the width of the text" msgstr "As réguas contam em porcentagens da largura do texto" -#: crates/desk-ui/src/preferences.rs:605 +#: crates/desk-ui/src/preferences.rs:612 msgid "Place Origin at Center" msgstr "Origem no centro" -#: crates/desk-ui/src/preferences.rs:606 +#: crates/desk-ui/src/preferences.rs:613 msgid "Rulers count from the middle of the text" msgstr "As réguas contam a partir do meio do texto" -#: crates/desk-ui/src/preferences.rs:611 +#: crates/desk-ui/src/preferences.rs:618 msgid "Show Vertical Ruler" msgstr "Mostrar régua vertical" -#: crates/desk-ui/src/preferences.rs:612 +#: crates/desk-ui/src/preferences.rs:619 msgid "Along with the horizontal ruler" msgstr "Junto com a régua horizontal" -#: crates/desk-ui/src/preferences.rs:621 +#: crates/desk-ui/src/preferences.rs:628 msgid "Default Zoom" msgstr "Zoom padrão" -#: crates/desk-ui/src/preferences.rs:622 +#: crates/desk-ui/src/preferences.rs:629 msgid "Of new windows" msgstr "Das janelas novas" -#: crates/desk-ui/src/preferences.rs:640 crates/desk-ui/src/shortcuts.rs:48 +#: crates/desk-ui/src/preferences.rs:647 crates/desk-ui/src/shortcuts.rs:48 #: crates/desk-ui/src/tables/shortcuts.rs:45 msgid "Editing" msgstr "Edição" -#: crates/desk-ui/src/preferences.rs:643 +#: crates/desk-ui/src/preferences.rs:650 msgid "Automatically Detect Lists" msgstr "Detectar listas automaticamente" -#: crates/desk-ui/src/preferences.rs:644 +#: crates/desk-ui/src/preferences.rs:651 msgid "“1.”, “a.”, “I.”, “•”, “-” or “*” and a space start a list on Return" msgstr "" "“1.”, “a.”, “I.”, “•”, “-” ou “*” e um espaço começam uma lista ao " "pressionar Return" -#: crates/desk-ui/src/preferences.rs:652 +#: crates/desk-ui/src/preferences.rs:659 msgid "Auto-Correction" msgstr "Correção automática" -#: crates/desk-ui/src/preferences.rs:653 +#: crates/desk-ui/src/preferences.rs:660 msgid "While typing, in every document" msgstr "Ao digitar, em todos os documentos" -#: crates/desk-ui/src/preferences.rs:656 +#: crates/desk-ui/src/preferences.rs:663 msgid "Use Smart Quotes and Dashes" msgstr "Usar aspas e travessões inteligentes" -#: crates/desk-ui/src/preferences.rs:657 +#: crates/desk-ui/src/preferences.rs:664 msgid "Straight quotes become curly quotes, and two hyphens a dash" msgstr "Aspas retas viram aspas curvas, e dois hifens um travessão" -#: crates/desk-ui/src/preferences.rs:662 +#: crates/desk-ui/src/preferences.rs:669 msgid "Double Quotes" msgstr "Aspas duplas" -#: crates/desk-ui/src/preferences.rs:668 +#: crates/desk-ui/src/preferences.rs:675 msgid "Single Quotes" msgstr "Aspas simples" -#: crates/desk-ui/src/preferences.rs:674 +#: crates/desk-ui/src/preferences.rs:681 msgid "Fix Capitalization" msgstr "Corrigir maiúsculas" -#: crates/desk-ui/src/preferences.rs:675 +#: crates/desk-ui/src/preferences.rs:682 msgid "Sentences start with a capital" msgstr "As frases começam com letra maiúscula" -#: crates/desk-ui/src/preferences.rs:680 +#: crates/desk-ui/src/preferences.rs:687 msgid "Superscript Numerical Suffixes" msgstr "Sufixos numéricos sobrescritos" -#: crates/desk-ui/src/preferences.rs:681 +#: crates/desk-ui/src/preferences.rs:688 msgid "As in 1st and 2nd" msgstr "Como em 1st e 2nd" -#: crates/desk-ui/src/preferences.rs:686 +#: crates/desk-ui/src/preferences.rs:693 msgid "Format Fractions Automatically" msgstr "Formatar frações automaticamente" -#: crates/desk-ui/src/preferences.rs:687 +#: crates/desk-ui/src/preferences.rs:694 msgid "1/2 becomes ½, where there is such a character" msgstr "1/2 vira ½, onde existe esse caractere" -#: crates/desk-ui/src/preferences.rs:692 +#: crates/desk-ui/src/preferences.rs:699 msgid "Detect Email and Web Addresses" msgstr "Detectar endereços de e-mail e da web" -#: crates/desk-ui/src/preferences.rs:693 +#: crates/desk-ui/src/preferences.rs:700 msgid "They become links as they are typed" msgstr "Viram links ao serem digitados" -#: crates/desk-ui/src/preferences.rs:698 +#: crates/desk-ui/src/preferences.rs:705 msgid "Use Spelling Suggestion" msgstr "Usar a sugestão do corretor" -#: crates/desk-ui/src/preferences.rs:699 +#: crates/desk-ui/src/preferences.rs:706 msgid "A misspelled word with one suggestion is corrected" msgstr "Uma palavra errada com uma só sugestão é corrigida" -#: crates/desk-ui/src/preferences.rs:704 +#: crates/desk-ui/src/preferences.rs:711 msgid "Window" msgstr "Janela" -#: crates/desk-ui/src/preferences.rs:707 +#: crates/desk-ui/src/preferences.rs:714 msgid "Show Word and Page Count" msgstr "Mostrar a contagem de palavras e páginas" -#: crates/desk-ui/src/preferences.rs:708 +#: crates/desk-ui/src/preferences.rs:715 msgid "At the bottom of the window" msgstr "Na parte de baixo da janela" -#: crates/desk-ui/src/preferences.rs:714 +#: crates/desk-ui/src/preferences.rs:721 msgid "Show Document Warnings" msgstr "Mostrar avisos do documento" -#: crates/desk-ui/src/preferences.rs:715 +#: crates/desk-ui/src/preferences.rs:722 msgid "When a document opens with problems" msgstr "Quando um documento abre com problemas" +#: crates/desk-ui/src/preferences.rs:728 +msgid "Open New Documents in Screen View" +msgstr "Abrir Novos Documentos na Visualização de Tela" + #: crates/desk-ui/src/preferences.rs:729 +msgid "The text flows to the width of the window, without pages" +msgstr "O texto corre na largura da janela, sem páginas" + +#: crates/desk-ui/src/preferences.rs:744 msgid "Invisibles Color" msgstr "Cor dos invisíveis" -#: crates/desk-ui/src/preferences.rs:730 +#: crates/desk-ui/src/preferences.rs:745 msgid "Of spaces, tabs and breaks when they are shown" msgstr "Dos espaços, tabulações e quebras quando aparecem" -#: crates/desk-ui/src/preferences.rs:738 +#: crates/desk-ui/src/preferences.rs:753 msgid "Include Preview in Document" msgstr "Incluir prévia no documento" -#: crates/desk-ui/src/preferences.rs:739 +#: crates/desk-ui/src/preferences.rs:754 msgid "A picture of the first page, which file managers show" msgstr "" "Uma imagem da primeira página, que os gerenciadores de arquivos mostram" -#: crates/desk-ui/src/preferences.rs:757 +#: crates/desk-ui/src/preferences.rs:772 msgid "Alignment Guides Color" msgstr "Cor das guias de alinhamento" -#: crates/desk-ui/src/preferences.rs:758 +#: crates/desk-ui/src/preferences.rs:773 msgid "Of the guides that show while objects are dragged" msgstr "Das guias que aparecem ao arrastar objetos" -#: crates/desk-ui/src/preferences.rs:764 +#: crates/desk-ui/src/preferences.rs:779 msgid "Show Guides at Object Center" msgstr "Mostrar guias no centro do objeto" -#: crates/desk-ui/src/preferences.rs:765 +#: crates/desk-ui/src/preferences.rs:780 msgid "A dragged object snaps to the middles of the page and of other objects" msgstr "Um objeto arrastado se alinha ao meio da página e dos outros objetos" -#: crates/desk-ui/src/preferences.rs:770 +#: crates/desk-ui/src/preferences.rs:785 msgid "Show Guides at Object Edges" msgstr "Mostrar guias nas bordas do objeto" -#: crates/desk-ui/src/preferences.rs:771 +#: crates/desk-ui/src/preferences.rs:786 msgid "" "A dragged object snaps to the edges of the page, its margins and other " "objects" @@ -3730,53 +3738,53 @@ msgstr "" "Um objeto arrastado se alinha às bordas da página, às margens e aos outros " "objetos" -#: crates/desk-ui/src/preferences.rs:776 +#: crates/desk-ui/src/preferences.rs:791 msgid "Show Size and Position When Moving Objects" msgstr "Mostrar tamanho e posição ao mover objetos" -#: crates/desk-ui/src/preferences.rs:777 +#: crates/desk-ui/src/preferences.rs:792 msgid "Next to the pointer, while an object is dragged" msgstr "Junto ao ponteiro, enquanto um objeto é arrastado" -#: crates/desk-ui/src/preferences.rs:783 +#: crates/desk-ui/src/preferences.rs:798 msgid "Move Objects Aside as Tables Grow" msgstr "Afastar objetos quando tabelas crescem" -#: crates/desk-ui/src/preferences.rs:784 +#: crates/desk-ui/src/preferences.rs:799 msgid "Rows and columns added to a table push the objects beside and under it" msgstr "" "Linhas e colunas adicionadas a uma tabela empurram os objetos ao lado e " "abaixo dela" -#: crates/desk-ui/src/preferences.rs:790 +#: crates/desk-ui/src/preferences.rs:805 msgid "General" msgstr "Geral" -#: crates/desk-ui/src/preferences.rs:801 crates/desk-ui/src/shortcuts.rs:41 +#: crates/desk-ui/src/preferences.rs:816 crates/desk-ui/src/shortcuts.rs:41 msgid "Preferences" msgstr "Preferências" -#: crates/desk-ui/src/preferences.rs:812 +#: crates/desk-ui/src/preferences.rs:827 msgid "Default Font" msgstr "Fonte padrão" -#: crates/desk-ui/src/preferences.rs:813 +#: crates/desk-ui/src/preferences.rs:828 msgid "Of new documents from the Blank templates" msgstr "Dos documentos novos dos modelos em branco" -#: crates/desk-ui/src/preferences.rs:879 +#: crates/desk-ui/src/preferences.rs:894 msgid "Symbol and Text Substitution" msgstr "Substituição de símbolos e textos" -#: crates/desk-ui/src/preferences.rs:880 +#: crates/desk-ui/src/preferences.rs:895 msgid "Such as “(c)” for “©”, when typed as a word" msgstr "Como “(c)” por “©”, quando digitado como uma palavra" -#: crates/desk-ui/src/preferences.rs:926 crates/desk-ui/src/preferences.rs:930 +#: crates/desk-ui/src/preferences.rs:941 crates/desk-ui/src/preferences.rs:945 msgid "Remove" msgstr "Remover" -#: crates/desk-ui/src/preferences.rs:945 +#: crates/desk-ui/src/preferences.rs:960 msgid "Add: text, a space and its replacement" msgstr "Adicionar: texto, um espaço e o substituto" @@ -3870,7 +3878,7 @@ msgstr "Documentos" msgid "Open a document" msgstr "Abrir um documento" -#: crates/desk-ui/src/shortcuts.rs:19 crates/desk-ui/src/window.rs:1434 +#: crates/desk-ui/src/shortcuts.rs:19 crates/desk-ui/src/window.rs:1477 msgid "Save" msgstr "Salvar" @@ -3924,7 +3932,7 @@ msgstr "Fechar todas as janelas" msgid "Quit" msgstr "Sair" -#: crates/desk-ui/src/shortcuts.rs:40 crates/desk-ui/src/shortcuts.rs:160 +#: crates/desk-ui/src/shortcuts.rs:40 crates/desk-ui/src/shortcuts.rs:161 #: crates/desk-ui/src/tables/shortcuts.rs:24 msgid "Fullscreen" msgstr "Tela cheia" @@ -4033,7 +4041,11 @@ msgstr "Alinhar à direita" msgid "Show invisibles" msgstr "Mostrar invisíveis" -#: crates/desk-ui/src/shortcuts.rs:98 crates/desk-ui/src/tables/header.rs:89 +#: crates/desk-ui/src/shortcuts.rs:98 +msgid "Screen View" +msgstr "Visualização de Tela" + +#: crates/desk-ui/src/shortcuts.rs:99 crates/desk-ui/src/tables/header.rs:89 #: crates/desk-ui/src/tables/header.rs:91 #: crates/desk-ui/src/tables/shortcuts.rs:85 #: crates/desk-ui/src/window/header.rs:123 @@ -4041,167 +4053,168 @@ msgstr "Mostrar invisíveis" msgid "Inspector" msgstr "Inspetor" -#: crates/desk-ui/src/shortcuts.rs:99 crates/desk-ui/src/tables/shortcuts.rs:75 +#: crates/desk-ui/src/shortcuts.rs:100 +#: crates/desk-ui/src/tables/shortcuts.rs:75 msgid "Show the sidebar" msgstr "Mostrar a barra lateral" -#: crates/desk-ui/src/shortcuts.rs:100 +#: crates/desk-ui/src/shortcuts.rs:101 msgid "Show colors" msgstr "Mostrar cores" -#: crates/desk-ui/src/shortcuts.rs:101 +#: crates/desk-ui/src/shortcuts.rs:102 msgid "Show the styles in the sidebar" msgstr "Mostrar os estilos na barra lateral" -#: crates/desk-ui/src/shortcuts.rs:102 +#: crates/desk-ui/src/shortcuts.rs:103 msgid "Copy paragraph style" msgstr "Copiar estilo de parágrafo" -#: crates/desk-ui/src/shortcuts.rs:103 +#: crates/desk-ui/src/shortcuts.rs:104 msgid "Copy character style" msgstr "Copiar estilo de caractere" -#: crates/desk-ui/src/shortcuts.rs:104 +#: crates/desk-ui/src/shortcuts.rs:105 msgid "Paste style" msgstr "Colar estilo" -#: crates/desk-ui/src/shortcuts.rs:107 +#: crates/desk-ui/src/shortcuts.rs:108 msgid "Apply the style of the key" msgstr "Aplicar o estilo da tecla" -#: crates/desk-ui/src/shortcuts.rs:111 +#: crates/desk-ui/src/shortcuts.rs:112 msgid "Apply a style and drop the formatting over it" msgstr "Aplicar um estilo e remover a formatação sobre ele" -#: crates/desk-ui/src/shortcuts.rs:113 +#: crates/desk-ui/src/shortcuts.rs:114 msgid "Show ruler" msgstr "Mostrar a régua" -#: crates/desk-ui/src/shortcuts.rs:114 +#: crates/desk-ui/src/shortcuts.rs:115 msgid "Show layout" msgstr "Mostrar layout" -#: crates/desk-ui/src/shortcuts.rs:118 +#: crates/desk-ui/src/shortcuts.rs:119 msgid "Arranging" msgstr "Organizar" -#: crates/desk-ui/src/shortcuts.rs:121 +#: crates/desk-ui/src/shortcuts.rs:122 msgid "Choose an image, movie or sound" msgstr "Escolher uma imagem, filme ou som" -#: crates/desk-ui/src/shortcuts.rs:122 +#: crates/desk-ui/src/shortcuts.rs:123 msgid "Mask the picture" msgstr "Aplicar máscara à imagem" -#: crates/desk-ui/src/shortcuts.rs:123 +#: crates/desk-ui/src/shortcuts.rs:124 msgid "Bring to front" msgstr "Trazer para a frente" -#: crates/desk-ui/src/shortcuts.rs:124 +#: crates/desk-ui/src/shortcuts.rs:125 msgid "Bring forward" msgstr "Trazer uma camada para a frente" -#: crates/desk-ui/src/shortcuts.rs:125 +#: crates/desk-ui/src/shortcuts.rs:126 msgid "Send backward" msgstr "Enviar uma camada para trás" -#: crates/desk-ui/src/shortcuts.rs:126 +#: crates/desk-ui/src/shortcuts.rs:127 msgid "Send to back" msgstr "Enviar para trás" -#: crates/desk-ui/src/shortcuts.rs:127 +#: crates/desk-ui/src/shortcuts.rs:128 msgid "Group" msgstr "Agrupar" -#: crates/desk-ui/src/shortcuts.rs:128 +#: crates/desk-ui/src/shortcuts.rs:129 msgid "Ungroup" msgstr "Desagrupar" -#: crates/desk-ui/src/shortcuts.rs:129 +#: crates/desk-ui/src/shortcuts.rs:130 msgid "Lock" msgstr "Travar" -#: crates/desk-ui/src/shortcuts.rs:130 +#: crates/desk-ui/src/shortcuts.rs:131 msgid "Unlock" msgstr "Destravar" -#: crates/desk-ui/src/shortcuts.rs:131 +#: crates/desk-ui/src/shortcuts.rs:132 msgid "Nudge the selected objects" msgstr "Mover um pouco os objetos selecionados" -#: crates/desk-ui/src/shortcuts.rs:132 +#: crates/desk-ui/src/shortcuts.rs:133 msgid "Deselect the objects" msgstr "Tirar a seleção dos objetos" -#: crates/desk-ui/src/shortcuts.rs:136 +#: crates/desk-ui/src/shortcuts.rs:137 msgid "Finding" msgstr "Busca" -#: crates/desk-ui/src/shortcuts.rs:141 +#: crates/desk-ui/src/shortcuts.rs:142 msgid "Find next" msgstr "Buscar o próximo" -#: crates/desk-ui/src/shortcuts.rs:142 +#: crates/desk-ui/src/shortcuts.rs:143 msgid "Find previous" msgstr "Buscar o anterior" -#: crates/desk-ui/src/shortcuts.rs:143 +#: crates/desk-ui/src/shortcuts.rs:144 msgid "Use selection for Find" msgstr "Usar a seleção para buscar" -#: crates/desk-ui/src/shortcuts.rs:144 +#: crates/desk-ui/src/shortcuts.rs:145 msgid "Jump to the selection" msgstr "Ir para a seleção" -#: crates/desk-ui/src/shortcuts.rs:147 +#: crates/desk-ui/src/shortcuts.rs:148 #: crates/desk-ui/src/tables/shortcuts.rs:82 msgid "Show the search results in the sidebar" msgstr "Mostrar os resultados da busca na barra lateral" -#: crates/desk-ui/src/shortcuts.rs:149 +#: crates/desk-ui/src/shortcuts.rs:150 msgid "Find the next misspelled word" msgstr "Buscar a próxima palavra com erro de ortografia" -#: crates/desk-ui/src/shortcuts.rs:150 +#: crates/desk-ui/src/shortcuts.rs:151 #: crates/desk-ui/src/spelling_window.rs:103 #: crates/desk-ui/src/spelling_window.rs:109 msgid "Spelling and Grammar" msgstr "Ortografia e gramática" -#: crates/desk-ui/src/shortcuts.rs:154 +#: crates/desk-ui/src/shortcuts.rs:155 #: crates/desk-ui/src/tables/shortcuts.rs:73 -#: crates/desk-ui/src/tables/window.rs:1171 crates/desk-ui/src/window.rs:2204 +#: crates/desk-ui/src/tables/window.rs:1171 crates/desk-ui/src/window.rs:2299 msgid "View" msgstr "Visualização" -#: crates/desk-ui/src/shortcuts.rs:157 +#: crates/desk-ui/src/shortcuts.rs:158 #: crates/desk-ui/src/tables/shortcuts.rs:86 msgid "Zoom in" msgstr "Ampliar" -#: crates/desk-ui/src/shortcuts.rs:158 +#: crates/desk-ui/src/shortcuts.rs:159 #: crates/desk-ui/src/tables/shortcuts.rs:87 msgid "Zoom out" msgstr "Reduzir" -#: crates/desk-ui/src/shortcuts.rs:159 +#: crates/desk-ui/src/shortcuts.rs:160 #: crates/desk-ui/src/tables/shortcuts.rs:88 msgid "Actual size" msgstr "Tamanho real" -#: crates/desk-ui/src/shortcuts.rs:185 +#: crates/desk-ui/src/shortcuts.rs:186 msgid "Slides" msgstr "Slides" -#: crates/desk-ui/src/shortcuts.rs:188 +#: crates/desk-ui/src/shortcuts.rs:189 msgid "New slide" msgstr "Novo slide" -#: crates/desk-ui/src/shortcuts.rs:189 +#: crates/desk-ui/src/shortcuts.rs:190 msgid "Skip the slide" msgstr "Pular o slide" -#: crates/desk-ui/src/shortcuts.rs:190 +#: crates/desk-ui/src/shortcuts.rs:191 msgid "Play the presentation" msgstr "Reproduzir a apresentação" @@ -4286,22 +4299,22 @@ msgid "(Delete)" msgstr "(Excluir)" #: crates/desk-ui/src/styles_drawer.rs:183 crates/desk-ui/src/undo_names.rs:107 -#: crates/desk-ui/src/window.rs:472 +#: crates/desk-ui/src/window.rs:481 msgid "Styles" msgstr "Estilos" #: crates/desk-ui/src/styles_drawer.rs:185 -#: crates/desk-ui/src/styles_drawer.rs:196 crates/desk-ui/src/window.rs:1618 +#: crates/desk-ui/src/styles_drawer.rs:196 crates/desk-ui/src/window.rs:1661 msgid "Paragraph Styles" msgstr "Estilos de parágrafo" #: crates/desk-ui/src/styles_drawer.rs:198 -#: crates/desk-ui/src/styles_drawer.rs:209 crates/desk-ui/src/window.rs:1619 +#: crates/desk-ui/src/styles_drawer.rs:209 crates/desk-ui/src/window.rs:1662 msgid "Character Styles" msgstr "Estilos de caractere" #: crates/desk-ui/src/styles_drawer.rs:216 -#: crates/desk-ui/src/styles_drawer.rs:227 crates/desk-ui/src/window.rs:1620 +#: crates/desk-ui/src/styles_drawer.rs:227 crates/desk-ui/src/window.rs:1663 msgid "List Styles" msgstr "Estilos de lista" @@ -4373,8 +4386,8 @@ msgid "Another style is already named “{name}”." msgstr "Outro estilo já se chama “{name}”." #: crates/desk-ui/src/styles_drawer.rs:573 -#: crates/desk-ui/src/tables/window.rs:206 crates/desk-ui/src/window.rs:352 -#: crates/desk-ui/src/window.rs:1361 +#: crates/desk-ui/src/tables/window.rs:206 crates/desk-ui/src/window.rs:359 +#: crates/desk-ui/src/window.rs:1404 #: crates/desk-ui/src/window/format_actions.rs:399 msgid "_Close" msgstr "_Fechar" @@ -5007,7 +5020,7 @@ msgstr "{name}, {rows} linhas por {columns} colunas" #: crates/desk-ui/src/tables/header.rs:178 #: crates/desk-ui/src/window/header.rs:57 #: crates/desk-ui/src/window/header.rs:59 -#: crates/desk-ui/src/window/header.rs:301 +#: crates/desk-ui/src/window/header.rs:308 #: crates/desk-ui/src/window/slides.rs:271 msgid "Sidebar" msgstr "Barra lateral" @@ -5015,8 +5028,8 @@ msgstr "Barra lateral" #: crates/desk-ui/src/tables/header.rs:82 #: crates/desk-ui/src/tables/header.rs:84 #: crates/desk-ui/src/tables/window.rs:1169 -#: crates/desk-ui/src/tables/window.rs:1170 crates/desk-ui/src/window.rs:2200 -#: crates/desk-ui/src/window.rs:2203 crates/desk-ui/src/window/header.rs:116 +#: crates/desk-ui/src/tables/window.rs:1170 crates/desk-ui/src/window.rs:2295 +#: crates/desk-ui/src/window.rs:2298 crates/desk-ui/src/window/header.rs:116 #: crates/desk-ui/src/window/header.rs:118 msgid "Main Menu" msgstr "Menu principal" @@ -5078,8 +5091,8 @@ msgstr "_Desfazer" msgid "_Redo" msgstr "_Refazer" -#: crates/desk-ui/src/tables/header.rs:154 crates/desk-ui/src/window.rs:1661 -#: crates/desk-ui/src/window.rs:3237 crates/desk-ui/src/window.rs:3692 +#: crates/desk-ui/src/tables/header.rs:154 crates/desk-ui/src/window.rs:1704 +#: crates/desk-ui/src/window.rs:3377 crates/desk-ui/src/window.rs:3832 msgid "_Deselect All" msgstr "_Desmarcar tudo" @@ -5135,51 +5148,51 @@ msgid "For_mula Bar" msgstr "Barra de fór_mulas" #: crates/desk-ui/src/tables/header.rs:175 -#: crates/desk-ui/src/window/header.rs:295 +#: crates/desk-ui/src/window/header.rs:302 #: crates/desk-ui/src/window/slides.rs:265 msgid "_Fullscreen" msgstr "_Tela cheia" #: crates/desk-ui/src/tables/header.rs:176 -#: crates/desk-ui/src/window/header.rs:297 +#: crates/desk-ui/src/window/header.rs:304 #: crates/desk-ui/src/window/slides.rs:267 msgid "_Zoom" msgstr "_Zoom" #: crates/desk-ui/src/tables/header.rs:208 #: crates/desk-ui/src/tables/header.rs:247 -#: crates/desk-ui/src/window/header.rs:317 +#: crates/desk-ui/src/window/header.rs:324 #: crates/desk-ui/src/window/slides.rs:286 msgid "_Table" msgstr "_Tabela" #: crates/desk-ui/src/tables/header.rs:209 #: crates/desk-ui/src/tables/header.rs:248 -#: crates/desk-ui/src/window/header.rs:318 +#: crates/desk-ui/src/window/header.rs:325 #: crates/desk-ui/src/window/slides.rs:287 msgid "C_hart" msgstr "_Gráfico" #: crates/desk-ui/src/tables/header.rs:210 -#: crates/desk-ui/src/window/header.rs:319 +#: crates/desk-ui/src/window/header.rs:326 #: crates/desk-ui/src/window/slides.rs:288 msgid "Te_xt Box" msgstr "Cai_xa de texto" #: crates/desk-ui/src/tables/header.rs:211 -#: crates/desk-ui/src/window/header.rs:320 +#: crates/desk-ui/src/window/header.rs:327 #: crates/desk-ui/src/window/slides.rs:289 msgid "S_hape" msgstr "_Forma" #: crates/desk-ui/src/tables/header.rs:213 -#: crates/desk-ui/src/window/header.rs:322 +#: crates/desk-ui/src/window/header.rs:329 #: crates/desk-ui/src/window/slides.rs:291 msgid "_Image, Movie or Sound…" msgstr "_Imagem, filme ou som…" #: crates/desk-ui/src/tables/header.rs:216 -#: crates/desk-ui/src/window/header.rs:325 +#: crates/desk-ui/src/window/header.rs:332 #: crates/desk-ui/src/window/slides.rs:294 msgid "Co_mment" msgstr "Co_mentário" @@ -5231,7 +5244,7 @@ msgstr "Mover para a _direita" #: crates/desk-ui/src/tables/header.rs:265 #: crates/desk-ui/src/tables/header.rs:288 crates/desk-ui/src/thumbnails.rs:396 -#: crates/desk-ui/src/thumbnails.rs:493 crates/desk-ui/src/window.rs:1860 +#: crates/desk-ui/src/thumbnails.rs:493 crates/desk-ui/src/window.rs:1955 msgid "_Delete" msgstr "_Excluir" @@ -5384,7 +5397,7 @@ msgstr "Mostrar a lista de fórmulas" msgid "Tables and Charts" msgstr "Tabelas e gráficos" -#: crates/desk-ui/src/tables/window.rs:54 crates/desk-ui/src/window.rs:480 +#: crates/desk-ui/src/tables/window.rs:54 crates/desk-ui/src/window.rs:489 msgid "Comments" msgstr "Comentários" @@ -5421,12 +5434,12 @@ msgid "Blue Fill" msgstr "Preenchimento azul" #: crates/desk-ui/src/tables/window.rs:196 -#: crates/desk-ui/src/tables/window.rs:200 crates/desk-ui/src/window.rs:330 -#: crates/desk-ui/src/window.rs:334 +#: crates/desk-ui/src/tables/window.rs:200 crates/desk-ui/src/window.rs:337 +#: crates/desk-ui/src/window.rs:341 msgid "Leave Fullscreen" msgstr "Sair da tela cheia" -#: crates/desk-ui/src/tables/window.rs:204 crates/desk-ui/src/window.rs:350 +#: crates/desk-ui/src/tables/window.rs:204 crates/desk-ui/src/window.rs:357 msgid "" "The screen is smaller than 1280 × 720, so parts of the window might not fit" msgstr "Tela menor que 1280 × 720 ‒ partes da janela podem não caber" @@ -5435,7 +5448,7 @@ msgstr "Tela menor que 1280 × 720 ‒ partes da janela podem não caber" msgid "Add Table or Chart" msgstr "Adicionar tabela ou gráfico" -#: crates/desk-ui/src/tables/window.rs:236 crates/desk-ui/src/window.rs:3641 +#: crates/desk-ui/src/tables/window.rs:236 crates/desk-ui/src/window.rs:3781 msgid "No Comments" msgstr "Nenhum comentário" @@ -5537,11 +5550,11 @@ msgstr "{n}, pulado" msgid "{slide}, skipped" msgstr "{slide}, pulado" -#: crates/desk-ui/src/thumbnails.rs:371 crates/desk-ui/src/window.rs:1846 +#: crates/desk-ui/src/thumbnails.rs:371 crates/desk-ui/src/window.rs:1941 msgid "Delete Page?" msgstr "Excluir a página?" -#: crates/desk-ui/src/thumbnails.rs:373 crates/desk-ui/src/window.rs:1852 +#: crates/desk-ui/src/thumbnails.rs:373 crates/desk-ui/src/window.rs:1947 msgid "Delete Pages?" msgstr "Excluir as páginas?" @@ -5563,16 +5576,16 @@ msgid_plural "The {n} sections and all their pages will be deleted." msgstr[0] "A seção e todas as suas páginas serão excluídas." msgstr[1] "As {n} seções e todas as suas páginas serão excluídas." -#: crates/desk-ui/src/thumbnails.rs:489 crates/desk-ui/src/window.rs:3228 +#: crates/desk-ui/src/thumbnails.rs:489 crates/desk-ui/src/window.rs:3368 msgid "Cu_t" msgstr "Recor_tar" #: crates/desk-ui/src/thumbnails.rs:490 crates/desk-ui/src/warnings.rs:82 -#: crates/desk-ui/src/window.rs:3229 +#: crates/desk-ui/src/window.rs:3369 msgid "_Copy" msgstr "_Copiar" -#: crates/desk-ui/src/thumbnails.rs:491 crates/desk-ui/src/window.rs:3230 +#: crates/desk-ui/src/thumbnails.rs:491 crates/desk-ui/src/window.rs:3370 msgid "_Paste" msgstr "Co_lar" @@ -5580,8 +5593,8 @@ msgstr "Co_lar" msgid "D_uplicate" msgstr "D_uplicar" -#: crates/desk-ui/src/thumbnails.rs:495 crates/desk-ui/src/window.rs:3236 -#: crates/desk-ui/src/window.rs:3691 +#: crates/desk-ui/src/thumbnails.rs:495 crates/desk-ui/src/window.rs:3376 +#: crates/desk-ui/src/window.rs:3831 msgid "Select _All" msgstr "Selecionar _tudo" @@ -5681,8 +5694,8 @@ msgstr "Campo" msgid "Guides" msgstr "Guias" -#: crates/desk-ui/src/undo_names.rs:62 crates/desk-ui/src/window.rs:1583 -#: crates/desk-ui/src/window.rs:1607 crates/desk-ui/src/window.rs:1726 +#: crates/desk-ui/src/undo_names.rs:62 crates/desk-ui/src/window.rs:1626 +#: crates/desk-ui/src/window.rs:1650 crates/desk-ui/src/window.rs:1769 msgid "Import Styles" msgstr "Importar estilos" @@ -5814,137 +5827,141 @@ msgstr "{document} foi aberto com estas mudanças. Ao salvar, elas ficam." msgid "Document Warnings" msgstr "Avisos do documento" -#: crates/desk-ui/src/window.rs:338 crates/desk-ui/src/window.rs:340 -#: crates/desk-ui/src/window.rs:344 +#: crates/desk-ui/src/window.rs:345 crates/desk-ui/src/window.rs:347 +#: crates/desk-ui/src/window.rs:351 msgid "Background" msgstr "Fundo" -#: crates/desk-ui/src/window.rs:356 +#: crates/desk-ui/src/window.rs:363 msgid "Some of the document might not show as it was made" msgstr "Parte do documento pode não aparecer como foi feita" -#: crates/desk-ui/src/window.rs:357 +#: crates/desk-ui/src/window.rs:364 msgid "_See Warnings" msgstr "_Ver avisos" -#: crates/desk-ui/src/window.rs:369 +#: crates/desk-ui/src/window.rs:376 msgid "Choose a Template" msgstr "Escolha um modelo" -#: crates/desk-ui/src/window.rs:371 +#: crates/desk-ui/src/window.rs:378 msgid "Start a new document, or open an OpenDocument text or a Pages document." msgstr "" "Comece um novo documento ou abra um texto OpenDocument ou um documento do " "Pages." -#: crates/desk-ui/src/window.rs:376 +#: crates/desk-ui/src/window.rs:383 msgid "" "This app is at an early stage of development and cannot open documents yet." msgstr "" "Este aplicativo está no início do desenvolvimento e ainda não abre " "documentos." -#: crates/desk-ui/src/window.rs:438 +#: crates/desk-ui/src/window.rs:447 msgid "Add Slide" msgstr "Adicionar slide" -#: crates/desk-ui/src/window.rs:441 +#: crates/desk-ui/src/window.rs:450 msgid "Navigator" msgstr "Navegador" -#: crates/desk-ui/src/window.rs:447 crates/desk-ui/src/window/slides.rs:388 +#: crates/desk-ui/src/window.rs:456 crates/desk-ui/src/window/slides.rs:388 msgctxt "slides" msgid "Outline" msgstr "Tópicos" -#: crates/desk-ui/src/window.rs:453 +#: crates/desk-ui/src/window.rs:462 msgid "Master Slides" msgstr "Slides mestres" -#: crates/desk-ui/src/window.rs:459 +#: crates/desk-ui/src/window.rs:468 msgid "Add Page" msgstr "Adicionar página" -#: crates/desk-ui/src/window.rs:462 crates/desk-ui/src/writing_tools.rs:85 +#: crates/desk-ui/src/window.rs:471 crates/desk-ui/src/writing_tools.rs:85 msgid "Pages" msgstr "Páginas" -#: crates/desk-ui/src/window.rs:506 +#: crates/desk-ui/src/window.rs:515 msgid "Animation" msgstr "Animação" -#: crates/desk-ui/src/window.rs:972 crates/desk-ui/src/window.rs:1597 +#: crates/desk-ui/src/window.rs:983 crates/desk-ui/src/window.rs:1640 #: crates/desk-ui/src/window/objects.rs:187 msgid "Cannot open {name}" msgstr "Não foi possível abrir {name}" -#: crates/desk-ui/src/window.rs:1396 +#: crates/desk-ui/src/window.rs:1439 msgid "Cannot save {name}" msgstr "Não foi possível salvar {name}" -#: crates/desk-ui/src/window.rs:1450 +#: crates/desk-ui/src/window.rs:1493 msgid "Save a Copy" msgstr "Salvar uma cópia" -#: crates/desk-ui/src/window.rs:1516 +#: crates/desk-ui/src/window.rs:1559 msgid "{name} (recovered)" msgstr "{name} (recuperado)" -#: crates/desk-ui/src/window.rs:1608 +#: crates/desk-ui/src/window.rs:1651 msgid "Choose the styles of “{name}” to import." msgstr "Escolha os estilos de “{name}” a importar." -#: crates/desk-ui/src/window.rs:1657 +#: crates/desk-ui/src/window.rs:1700 msgid "_Select All" msgstr "_Selecionar tudo" -#: crates/desk-ui/src/window.rs:1680 +#: crates/desk-ui/src/window.rs:1723 msgid "Replace Duplicates" msgstr "Substituir duplicados" -#: crates/desk-ui/src/window.rs:1681 +#: crates/desk-ui/src/window.rs:1724 msgid "Styles with the same names take the imported ones" msgstr "Estilos com os mesmos nomes recebem os importados" -#: crates/desk-ui/src/window.rs:1697 +#: crates/desk-ui/src/window.rs:1740 msgid "_Import" msgstr "_Importar" -#: crates/desk-ui/src/window.rs:1729 +#: crates/desk-ui/src/window.rs:1772 msgid "Cannot Import the Styles" msgstr "Não é possível importar os estilos" -#: crates/desk-ui/src/window.rs:1758 +#: crates/desk-ui/src/window.rs:1801 msgid "Cannot Follow Link" msgstr "Não é possível seguir o link" -#: crates/desk-ui/src/window.rs:1759 +#: crates/desk-ui/src/window.rs:1802 msgid "Save this document first: the link names a file from its folder." msgstr "" "Salve este documento primeiro: o link indica um arquivo a partir da pasta " "dele." -#: crates/desk-ui/src/window.rs:1847 +#: crates/desk-ui/src/window.rs:1905 +msgid "Some content, such as headers and footers, is hidden in Screen View" +msgstr "Parte do conteúdo, como cabeçalhos e rodapés, fica oculta na Visualização de Tela" + +#: crates/desk-ui/src/window.rs:1942 msgid "Everything on page {n} will be deleted." msgstr "Tudo o que está na página {n} será excluído." -#: crates/desk-ui/src/window.rs:1853 +#: crates/desk-ui/src/window.rs:1948 msgid "Pages {first} to {last}, the section of this page, will be deleted." msgstr "As páginas {first} a {last}, a seção desta página, serão excluídas." -#: crates/desk-ui/src/window.rs:1926 +#: crates/desk-ui/src/window.rs:2021 msgid "Cannot Restore the Version" msgstr "Não é possível restaurar a versão" -#: crates/desk-ui/src/window.rs:1947 +#: crates/desk-ui/src/window.rs:2042 msgid "Cannot Open the Version" msgstr "Não é possível abrir a versão" -#: crates/desk-ui/src/window.rs:1975 +#: crates/desk-ui/src/window.rs:2070 msgid "Save Changes?" msgstr "Salvar alterações?" -#: crates/desk-ui/src/window.rs:1977 +#: crates/desk-ui/src/window.rs:2072 msgid "" "“{name}” contains unsaved changes. Changes which are not saved will be " "permanently lost." @@ -5952,193 +5969,193 @@ msgstr "" "“{name}” contém alterações não salvas. As alterações que não forem salvas " "serão perdidas permanentemente." -#: crates/desk-ui/src/window.rs:1983 crates/desk-ui/src/window/header.rs:225 +#: crates/desk-ui/src/window.rs:2078 crates/desk-ui/src/window/header.rs:225 msgid "_Save" msgstr "_Salvar" -#: crates/desk-ui/src/window.rs:2206 +#: crates/desk-ui/src/window.rs:2301 msgid "Edit" msgstr "Editar" -#: crates/desk-ui/src/window.rs:3231 +#: crates/desk-ui/src/window.rs:3371 msgid "Dupl_icate" msgstr "D_uplicar" -#: crates/desk-ui/src/window.rs:3233 crates/desk-ui/src/window.rs:3678 +#: crates/desk-ui/src/window.rs:3373 crates/desk-ui/src/window.rs:3818 msgid "Paste and _Match Style" msgstr "Colar e _igualar estilo" -#: crates/desk-ui/src/window.rs:3240 +#: crates/desk-ui/src/window.rs:3380 msgid "_Bold" msgstr "_Negrito" -#: crates/desk-ui/src/window.rs:3241 +#: crates/desk-ui/src/window.rs:3381 msgid "_Italic" msgstr "_Itálico" -#: crates/desk-ui/src/window.rs:3242 +#: crates/desk-ui/src/window.rs:3382 msgid "_Underline" msgstr "_Sublinhado" -#: crates/desk-ui/src/window.rs:3246 crates/desk-ui/src/window.rs:3669 +#: crates/desk-ui/src/window.rs:3386 crates/desk-ui/src/window.rs:3809 msgid "Copy _Paragraph Style" msgstr "Copiar estilo de _parágrafo" -#: crates/desk-ui/src/window.rs:3250 crates/desk-ui/src/window.rs:3673 +#: crates/desk-ui/src/window.rs:3390 crates/desk-ui/src/window.rs:3813 msgid "Copy C_haracter Style" msgstr "Copiar estilo de _caractere" -#: crates/desk-ui/src/window.rs:3253 crates/desk-ui/src/window.rs:3676 +#: crates/desk-ui/src/window.rs:3393 crates/desk-ui/src/window.rs:3816 msgid "Paste Sty_le" msgstr "Colar esti_lo" -#: crates/desk-ui/src/window.rs:3256 +#: crates/desk-ui/src/window.rs:3396 msgid "_Writing Tools" msgstr "_Ferramentas de escrita" -#: crates/desk-ui/src/window.rs:3257 +#: crates/desk-ui/src/window.rs:3397 msgid "T_ransformations" msgstr "T_ransformações" -#: crates/desk-ui/src/window.rs:3258 +#: crates/desk-ui/src/window.rs:3398 msgid "Su_bstitutions" msgstr "Su_bstituições" -#: crates/desk-ui/src/window.rs:3259 crates/desk-ui/src/window/header.rs:286 +#: crates/desk-ui/src/window.rs:3399 crates/desk-ui/src/window/header.rs:286 #: crates/desk-ui/src/window/slides.rs:255 msgid "Spe_lling and Grammar" msgstr "_Ortografia e gramática" -#: crates/desk-ui/src/window.rs:3260 +#: crates/desk-ui/src/window.rs:3400 msgid "_Arrange" msgstr "_Organizar" -#: crates/desk-ui/src/window.rs:3263 +#: crates/desk-ui/src/window.rs:3403 msgid "Delete _Page…" msgstr "Excluir _página…" -#: crates/desk-ui/src/window.rs:3431 +#: crates/desk-ui/src/window.rs:3571 msgid "No Guesses Found" msgstr "Nenhuma sugestão" -#: crates/desk-ui/src/window.rs:3445 +#: crates/desk-ui/src/window.rs:3585 msgid "_Ignore Spelling" msgstr "_Ignorar ortografia" -#: crates/desk-ui/src/window.rs:3446 +#: crates/desk-ui/src/window.rs:3586 msgid "_Learn Spelling" msgstr "_Aprender ortografia" -#: crates/desk-ui/src/window.rs:3464 +#: crates/desk-ui/src/window.rs:3604 msgid "Never _Hyphenate" msgstr "_Nunca hifenizar" -#: crates/desk-ui/src/window.rs:3466 +#: crates/desk-ui/src/window.rs:3606 msgid "Allow _Hyphenation" msgstr "_Permitir hifenização" -#: crates/desk-ui/src/window.rs:3500 +#: crates/desk-ui/src/window.rs:3640 msgid "Number _Format" msgstr "_Formato do número" -#: crates/desk-ui/src/window.rs:3519 +#: crates/desk-ui/src/window.rs:3659 msgid "Date and Time _Format" msgstr "_Formato de data e hora" -#: crates/desk-ui/src/window.rs:3521 +#: crates/desk-ui/src/window.rs:3661 msgid "_Automatically Update on Open" msgstr "_Atualizar automaticamente ao abrir" -#: crates/desk-ui/src/window.rs:3531 +#: crates/desk-ui/src/window.rs:3671 msgid "Show _Directory Path" msgstr "Mostrar _caminho da pasta" -#: crates/desk-ui/src/window.rs:3535 +#: crates/desk-ui/src/window.rs:3675 msgid "Always Show File_name Extension" msgstr "Sempre mostrar a _extensão do arquivo" -#: crates/desk-ui/src/window.rs:3563 +#: crates/desk-ui/src/window.rs:3703 msgid "{name} copy" msgstr "{name} cópia" -#: crates/desk-ui/src/window.rs:3567 crates/desk-ui/src/window/slides.rs:347 +#: crates/desk-ui/src/window.rs:3707 crates/desk-ui/src/window/slides.rs:347 msgid "Blank" msgstr "Em branco" -#: crates/desk-ui/src/window.rs:3567 +#: crates/desk-ui/src/window.rs:3707 msgid "Blank Layout" msgstr "Layout em branco" -#: crates/desk-ui/src/window.rs:3603 +#: crates/desk-ui/src/window.rs:3743 msgid "_Open a Document…" msgstr "_Abrir um documento…" -#: crates/desk-ui/src/window.rs:3642 +#: crates/desk-ui/src/window.rs:3782 msgid "The comments of the document show here." msgstr "Os comentários do documento aparecem aqui." -#: crates/desk-ui/src/window.rs:3649 +#: crates/desk-ui/src/window.rs:3789 msgid "_Blank Page" msgstr "Página em _branco" -#: crates/desk-ui/src/window.rs:3651 crates/desk-ui/src/window/header.rs:333 +#: crates/desk-ui/src/window.rs:3791 crates/desk-ui/src/window/header.rs:340 msgid "_Section Break" msgstr "Quebra de _seção" -#: crates/desk-ui/src/window.rs:3661 +#: crates/desk-ui/src/window.rs:3801 msgid "_Fonts…" msgstr "_Fontes…" -#: crates/desk-ui/src/window.rs:3662 +#: crates/desk-ui/src/window.rs:3802 msgid "_Colors…" msgstr "_Cores…" -#: crates/desk-ui/src/window.rs:3664 crates/desk-ui/src/window/header.rs:365 +#: crates/desk-ui/src/window.rs:3804 crates/desk-ui/src/window/header.rs:372 #: crates/desk-ui/src/window/slides.rs:311 msgid "Special _Characters…" msgstr "_Caracteres especiais…" -#: crates/desk-ui/src/window.rs:3704 +#: crates/desk-ui/src/window.rs:3844 msgid "Convert _Quotes" msgstr "Converter _aspas" -#: crates/desk-ui/src/window.rs:3713 +#: crates/desk-ui/src/window.rs:3853 msgid "Make _Upper Case" msgstr "Converter em _maiúsculas" -#: crates/desk-ui/src/window.rs:3714 +#: crates/desk-ui/src/window.rs:3854 msgid "Make _Lower Case" msgstr "Converter em mi_núsculas" -#: crates/desk-ui/src/window.rs:3715 +#: crates/desk-ui/src/window.rs:3855 msgid "_Capitalize" msgstr "_Iniciais maiúsculas" -#: crates/desk-ui/src/window.rs:3723 +#: crates/desk-ui/src/window.rs:3863 msgid "Show _Spelling and Grammar" msgstr "Mostrar _ortografia e gramática" -#: crates/desk-ui/src/window.rs:3726 +#: crates/desk-ui/src/window.rs:3866 msgid "_Check Document Now" msgstr "_Verificar o documento agora" -#: crates/desk-ui/src/window.rs:3729 +#: crates/desk-ui/src/window.rs:3869 msgid "Check Spelling While _Typing" msgstr "Verificar ortografia ao _digitar" -#: crates/desk-ui/src/window.rs:3733 +#: crates/desk-ui/src/window.rs:3873 msgid "Check _Grammar While Typing" msgstr "Verificar _gramática ao digitar" -#: crates/desk-ui/src/window.rs:3744 +#: crates/desk-ui/src/window.rs:3884 msgid "Look Up in _Dictionary and Thesaurus" msgstr "Consultar no _dicionário e tesauro" -#: crates/desk-ui/src/window.rs:3747 +#: crates/desk-ui/src/window.rs:3887 msgid "Search the _Web" msgstr "Pesquisar na _web" -#: crates/desk-ui/src/window.rs:3749 +#: crates/desk-ui/src/window.rs:3889 msgid "Search in Wi_kipedia" msgstr "Pesquisar na Wi_kipédia" @@ -6225,101 +6242,121 @@ msgstr "_Avisos do documento" msgid "As _Outline" msgstr "Como _estrutura de tópicos" -#: crates/desk-ui/src/window/header.rs:329 +#: crates/desk-ui/src/window/header.rs:296 +msgid "Scr_een View" +msgstr "Visualização de _Tela" + +#: crates/desk-ui/src/window/header.rs:298 +msgid "_Auto" +msgstr "_Automático" + +#: crates/desk-ui/src/window/header.rs:299 +msgid "_Bigger" +msgstr "_Maior" + +#: crates/desk-ui/src/window/header.rs:300 +msgid "_Smaller" +msgstr "Me_nor" + +#: crates/desk-ui/src/window/header.rs:301 +msgid "Te_xt Size" +msgstr "Tamanho do Te_xto" + +#: crates/desk-ui/src/window/header.rs:336 msgid "_Page Break" msgstr "Quebra de _página" -#: crates/desk-ui/src/window/header.rs:330 +#: crates/desk-ui/src/window/header.rs:337 msgid "_Column Break" msgstr "Quebra de _coluna" -#: crates/desk-ui/src/window/header.rs:331 +#: crates/desk-ui/src/window/header.rs:338 msgid "_Layout Break" msgstr "Quebra de _layout" -#: crates/desk-ui/src/window/header.rs:338 +#: crates/desk-ui/src/window/header.rs:345 msgid "_Auto Page Numbers…" msgstr "Números de página _automáticos…" -#: crates/desk-ui/src/window/header.rs:341 +#: crates/desk-ui/src/window/header.rs:348 msgid "Page _Number" msgstr "_Número da página" -#: crates/desk-ui/src/window/header.rs:342 +#: crates/desk-ui/src/window/header.rs:349 msgid "Page Co_unt" msgstr "_Total de páginas" -#: crates/desk-ui/src/window/header.rs:343 +#: crates/desk-ui/src/window/header.rs:350 #: crates/desk-ui/src/window/slides.rs:303 msgid "_Date" msgstr "_Data" -#: crates/desk-ui/src/window/header.rs:344 +#: crates/desk-ui/src/window/header.rs:351 #: crates/desk-ui/src/window/slides.rs:304 msgid "_File Name" msgstr "Nome do _arquivo" -#: crates/desk-ui/src/window/header.rs:346 +#: crates/desk-ui/src/window/header.rs:353 msgid "_Break" msgstr "_Quebra" -#: crates/desk-ui/src/window/header.rs:347 +#: crates/desk-ui/src/window/header.rs:354 #: crates/desk-ui/src/window/slides.rs:306 msgid "_Field" msgstr "Ca_mpo" -#: crates/desk-ui/src/window/header.rs:350 +#: crates/desk-ui/src/window/header.rs:357 msgid "Foot_note" msgstr "_Nota de rodapé" -#: crates/desk-ui/src/window/header.rs:351 +#: crates/desk-ui/src/window/header.rs:358 msgid "Ne_xt Note" msgstr "_Próxima nota" -#: crates/desk-ui/src/window/header.rs:352 +#: crates/desk-ui/src/window/header.rs:359 msgid "Pre_vious Note" msgstr "Nota _anterior" -#: crates/desk-ui/src/window/header.rs:355 +#: crates/desk-ui/src/window/header.rs:362 msgid "_Table of Contents" msgstr "_Sumário" -#: crates/desk-ui/src/window/header.rs:357 +#: crates/desk-ui/src/window/header.rs:364 msgid "Update Table of C_ontents" msgstr "Atuali_zar sumário" -#: crates/desk-ui/src/window/header.rs:360 +#: crates/desk-ui/src/window/header.rs:367 msgid "_Bookmark" msgstr "_Marcador" -#: crates/desk-ui/src/window/header.rs:361 +#: crates/desk-ui/src/window/header.rs:368 #: crates/desk-ui/src/window/slides.rs:307 msgid "_Hyperlink" msgstr "_Hiperlink" -#: crates/desk-ui/src/window/header.rs:369 +#: crates/desk-ui/src/window/header.rs:376 #: crates/desk-ui/src/window/slides.rs:315 msgid "Add _Linked Text Box" msgstr "Adicionar caixa de texto _ligada" -#: crates/desk-ui/src/window/header.rs:372 +#: crates/desk-ui/src/window/header.rs:379 #: crates/desk-ui/src/window/slides.rs:318 msgid "C_hoose…" msgstr "E_scolher…" -#: crates/desk-ui/src/window/header.rs:384 +#: crates/desk-ui/src/window/header.rs:391 msgid "_Line" msgstr "_Linha" -#: crates/desk-ui/src/window/header.rs:390 +#: crates/desk-ui/src/window/header.rs:397 msgid "Pe_n" msgstr "_Caneta" -#: crates/desk-ui/src/window/header.rs:391 +#: crates/desk-ui/src/window/header.rs:398 msgid "Connection L_ine" msgstr "Linha de c_onexão" -#: crates/desk-ui/src/window/header.rs:406 +#: crates/desk-ui/src/window/header.rs:413 msgid "Choose _File…" msgstr "Escolher _arquivo…" diff --git a/tests/ui/writer.py b/tests/ui/writer.py index 202ad764..68da723f 100644 --- a/tests/ui/writer.py +++ b/tests/ui/writer.py @@ -540,6 +540,7 @@ def selected(): objects_between_apps(work) styled_text_between_apps(work) guide_from_the_ruler(work) + screen_view(work) pages_as_sections(work) reflection_of_a_shape(work) advanced_gradient(work) @@ -2222,6 +2223,70 @@ def guide_from_the_ruler(work): writer.wait(timeout=10) +def screen_view(work): + """Screen View shows the text in one flow as wide as the window, + without pages, page breaks or rulers, and View ▸ Screen View again + shows the pages (PXV-01). The table of contents of the sidebar + follows the headings as they are typed (PXV-02, W041).""" + name = "Screen.odt" + letter = work / name + subprocess.run([str(CONVERT), str(FIXTURE), str(letter)], check=True) + with zipfile.ZipFile(letter) as package: + files = {n: package.read(n) for n in package.namelist()} + files["content.xml"] = files["content.xml"].replace( + b"", + b'' + b"Chapter", + 1, + ) + with zipfile.ZipFile(letter, "w") as package: + package.writestr(zipfile.ZipInfo("mimetype"), files.pop("mimetype")) + for n, data in files.items(): + package.writestr(n, data, zipfile.ZIP_DEFLATED) + writer = subprocess.Popen([str(WRITER), str(letter)]) + try: + app = wait_for("Desk Writer on the accessibility bus", lambda: app_named("desk-writer")) + document = wait_for("the document", lambda: find(app, Atspi.Role.TEXT, name)) + subprocess.run( + ["xdotool", "search", "--sync", "--name", name, "windowfocus", "--sync"], + check=True, + ) + # The table of contents of the sidebar changes as a heading is + # typed (W041). + activate("contents") + wait_for("the heading in the sidebar", lambda: showing_named(app, "Chapter")) + press("ctrl+Home") + type_text("First ") + wait_for("the heading typed in the sidebar", lambda: showing_named(app, "First Chapter")) + check("the table of contents of the sidebar follows the text as it is typed (W041)", True) + activate("contents") + press("ctrl+End") + activate("insert-page-break") + type_text("Second page") + wait_for("the text on the second page", lambda: text_of(document).endswith("Second page\n")) + + def height(): + return Atspi.Component.get_extents(document, Atspi.CoordType.WINDOW).height + + # Two pages, one under the other, are taller than the window. + wait_for("two pages", lambda: height() > 1500) + wait_for("the ruler", lambda: showing_named(app, "Ruler")) + press("ctrl+shift+r") + wait_for("the text in one flow, without the ruler", lambda: showing_named(app, "Ruler") is None) + wait_for("the flow as high as the window", lambda: height() < 1200) + # The text is edited as on the pages. + type_text(" flows") + wait_for("the text typed in the flow", lambda: text_of(document).endswith("Second page flows\n")) + activate("text-size", "bigger") + activate("screen-view") + wait_for("the pages again", lambda: height() > 1500) + wait_for("the ruler again", lambda: showing_named(app, "Ruler")) + check("Screen View flows the text without pages, and the pages come back (PXV-01)", True) + finally: + writer.terminate() + writer.wait(timeout=10) + + def pages_as_sections(work): """In a page layout document each page is a section of its own: the thumbnails select a page, and Duplicate copies it with its objects