mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-03 09:10:55 +00:00
TOC-1: localize separator picker and address review cleanup
This commit is contained in:
1 parent
e8ec23a88d
commit
81913c2f48
13 files changed
+30
-9
No files matched your search
+2
-2
@@ -346,10 +346,10 @@ list) · [roadmap.md](docs/roadmap.md) (milestones, plan) · [parity-checklist.m
|
||||
|
||||
## Progress log
|
||||
|
||||
- **2026-10-18** · TOC separators preserve right-indent tabs through the dialog and IDML, including localized `$ID/^y` values. A separator picker exposes Tab Character, Right Indent Tab, Em Space and En Space. Existing paragraph tab leaders now work with the tutorial's TOC workflow. No readiness percentage change.
|
||||
|
||||
Newest first.
|
||||
|
||||
- **2026-10-18** · TOC separators preserve right-indent tabs through the dialog and IDML, including localized `$ID/^y` values. A separator picker exposes Tab Character, Right Indent Tab, Em Space and En Space. Existing paragraph tab leaders now work with the tutorial's TOC workflow. No readiness percentage change.
|
||||
|
||||
- **2026-10-16** · Threading: the loaded text cursor threads into a text frame inside a group (it hit the group and showed it could not thread); a plain click still selects the group (#1075). Gap 27 closed. No readiness percentage change.
|
||||
- **2026-10-16** · Greek text hyphenates. The patterns were never compiled in, so Greek set unhyphenated however narrow the column; `"Greek"`, `"Greek: Greece"`, `el` and `el-GR` all resolve now and ανθρωπος breaks αν-θρω-πος. They are the monotonic patterns (hyph-el-monoton, Dimitrios Filippou, under MIT), which is what polytonic text hyphenates by too. Five of InDesign's ~40 hyphenation languages. No readiness percentage change.
|
||||
- **2026-10-16** · A swatch applied to a placed greyscale or bitmap image colours it, as in InDesign: IDML's `<Image FillColor>` is read and written, greyscale pixels become a tint of the swatch on opaque white and a bitmap's white lets the frame show through, on screen and in PDF (spot swatches print on their plate). Colour images keep their colours. Applying the swatch from the Swatches panel comes next. No readiness percentage change.
|
||||
|
||||
@@ -32,6 +32,14 @@ pub const PAGE_BREAK: char = '\u{E004}';
|
||||
pub const INDENT_HERE: char = '\u{E005}';
|
||||
pub const RIGHT_INDENT_TAB: char = '\u{E006}';
|
||||
|
||||
pub const NEXT_PAGE_NUMBER: char = '\u{E007}';
|
||||
pub const PREV_PAGE_NUMBER: char = '\u{E008}';
|
||||
/// Anchor of a table: alone in its paragraph, whose [`ParaFormat::table`] names the table.
|
||||
pub const TABLE_ANCHOR: char = '\u{E009}';
|
||||
pub const FORCED_LINE_BREAK: char = '\u{2028}';
|
||||
pub const ODD_PAGE_BREAK: char = '\u{E011}';
|
||||
pub const EVEN_PAGE_BREAK: char = '\u{E012}';
|
||||
|
||||
/// Encode a table-of-contents separator using InDesign's special-character notation.
|
||||
pub fn toc_separator_notation(text: &str) -> String {
|
||||
text.replace('^', "^^").replace('\t', "^t").replace(RIGHT_INDENT_TAB, "^y").replace('\u{2003}', "^m").replace('\u{2002}', "^>")
|
||||
@@ -60,13 +68,6 @@ pub fn toc_separator_text(notation: &str) -> String {
|
||||
}
|
||||
text
|
||||
}
|
||||
pub const NEXT_PAGE_NUMBER: char = '\u{E007}';
|
||||
pub const PREV_PAGE_NUMBER: char = '\u{E008}';
|
||||
/// Anchor of a table: alone in its paragraph, whose [`ParaFormat::table`] names the table.
|
||||
pub const TABLE_ANCHOR: char = '\u{E009}';
|
||||
pub const FORCED_LINE_BREAK: char = '\u{2028}';
|
||||
pub const ODD_PAGE_BREAK: char = '\u{E011}';
|
||||
pub const EVEN_PAGE_BREAK: char = '\u{E012}';
|
||||
|
||||
/// A column, frame or page break character. It ends its paragraph: the story stores it as the
|
||||
/// paragraph's last character, followed by the `\n` separator (also at the end of the story), and
|
||||
|
||||
@@ -4397,6 +4397,7 @@ const TABLE: &[(&str, [&str; 5])] = &[
|
||||
("OpenType font", ["OpenType-Schrift", "Police OpenType", "Fuente OpenType", "OpenType フォント", "OpenType 字体"]),
|
||||
("Variable font", ["Variable Schrift", "Police variable", "Fuente variable", "バリアブルフォント", "可变字体"]),
|
||||
("Color font", ["Farbschrift", "Police couleur", "Fuente de color", "カラーフォント", "彩色字体"]),
|
||||
("Tab Character", ["Tabulatorzeichen", "Caractère de tabulation", "Carácter de tabulación", "タブ文字", "制表符"]),
|
||||
// Table of Contents.
|
||||
(
|
||||
"Sort Entries in Alphabetical Order",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//! Original Arabic interface translations, stored in logical Unicode order.
|
||||
pub(super) const TABLE: &[(&str, &str)] = &[
|
||||
("Tab Character", "محرف جدولة"),
|
||||
("File", "ملف"),
|
||||
("Edit", "تحرير"),
|
||||
("Layout", "تخطيط"),
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
//! product's localization was used). Phrases shared with the MIT OR Apache-2.0 Czech catalogs of
|
||||
//! the ArtCraft siblings (VectorCraft, PhotoCraft) are kept identical; see ASSETS.md for sources.
|
||||
pub(super) const TABLE: &[(&str, &str)] = &[
|
||||
("Tab Character", "Znak tabulátoru"),
|
||||
("File", "Soubor"),
|
||||
("Edit", "Úpravy"),
|
||||
("Layout", "Rozvržení"),
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
//! Brazilian Portuguese, Italian and Ukrainian tables has a row here; the German column of the shared
|
||||
//! table is carried over and stays the fallback for keys added there after this table.
|
||||
pub(super) const TABLE: &[(&str, &str)] = &[
|
||||
("Tab Character", "Tabulatorzeichen"),
|
||||
("File", "Datei"),
|
||||
("Edit", "Bearbeiten"),
|
||||
("Layout", "Layout"),
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
//! Original Italian interface translations, written from the English source
|
||||
//! using ordinary Italian desktop-publishing vocabulary.
|
||||
pub(super) const TABLE: &[(&str, &str)] = &[
|
||||
("Tab Character", "Carattere di tabulazione"),
|
||||
("Right Indent Tab", "Tabulazione rientro destro"),
|
||||
("Em Space", "Spazio em"),
|
||||
("En Space", "Spazio en"),
|
||||
("File", "File"),
|
||||
("Edit", "Modifica"),
|
||||
("Layout", "Layout"),
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
//! Portuguese tables has a row here; the menu titles and panel names that were already Japanese in the
|
||||
//! shared table are carried over unchanged.
|
||||
pub(super) const TABLE: &[(&str, &str)] = &[
|
||||
("Tab Character", "タブ文字"),
|
||||
("File", "ファイル"),
|
||||
("Edit", "編集"),
|
||||
("Layout", "レイアウト"),
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
//! Portuguese, Japanese, Italian and Ukrainian tables has a row here, plus a few labels that only
|
||||
//! the code or the command table use.
|
||||
pub(super) const TABLE: &[(&str, &str)] = &[
|
||||
("Tab Character", "ტაბულაციის სიმბოლო"),
|
||||
("File", "ფაილი"),
|
||||
("Edit", "რედაქტირება"),
|
||||
("Layout", "განლაგება"),
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//! are welcome. Terminology follows common Polish DTP usage
|
||||
//! (rozkładówka, łam, strona wzorcowa, obszar informacyjny) and the sibling ArtCraft catalogs.
|
||||
pub(super) const TABLE: &[(&str, &str)] = &[
|
||||
("Tab Character", "Znak tabulacji"),
|
||||
("File", "Plik"),
|
||||
("Edit", "Edycja"),
|
||||
("Layout", "Układ"),
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
//! Original Brazilian Portuguese interface translations, written from the English source
|
||||
//! using ordinary Brazilian Portuguese computing vocabulary.
|
||||
pub(super) const TABLE: &[(&str, &str)] = &[
|
||||
("Tab Character", "Caractere de tabulação"),
|
||||
("Right Indent Tab", "Tabulação de recuo à direita"),
|
||||
("Em Space", "Espaço eme"),
|
||||
("En Space", "Espaço ene"),
|
||||
("File", "Arquivo"),
|
||||
("Edit", "Editar"),
|
||||
("Layout", "Layout"),
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
//! The translations are our own; counted nouns are genitive plurals because the caption puts the
|
||||
//! category before the number ("страниц: 5"), see `count_label`.
|
||||
pub(super) const TABLE: &[(&str, &str)] = &[
|
||||
("Tab Character", "Символ табуляции"),
|
||||
("File", "Файл"),
|
||||
("Edit", "Редактирование"),
|
||||
("Can't Open the File", "Не удалось открыть файл"),
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
//! Common phrases are adapted from the MIT OR Apache-2.0 ArtCraft sibling catalogs
|
||||
//! (VectorCraft, PhotoCraft, WordCraft and DeckCraft); see ASSETS.md for pinned sources.
|
||||
pub(super) const TABLE: &[(&str, &str)] = &[
|
||||
("Tab Character", "Символ табуляції"),
|
||||
("Right Indent Tab", "Табуляція правого відступу"),
|
||||
("Em Space", "Кругла шпація"),
|
||||
("En Space", "Півкругла шпація"),
|
||||
("File", "Файл"),
|
||||
("Edit", "Редагування"),
|
||||
("Layout", "Макет"),
|
||||
|
||||
Reference in new issue
Block a user