Move notation: Latin letters, figurines or the interface language's letters
Settings › Board & pieces: Nf3, ♘f3 as on Lichess, or Кр Ф Л С К (German K D T L S, French R D T F C, Spanish and Italian R D T A C; in English the Latin letters), with a sample per option and a line of a game. Only the shown label changes (san::show): the game, PGN, copied games, the analysis written into a game, the reference cache and every comparison stay Latin SAN. Applied in the move list, engine lines, the reference tab, board search and the analysis report. The figurines are egui's chess glyphs cut out to a 4.7 KB font, a little smaller and on the baseline. Latin remains the default. Reviewed by the designer and the tester agents. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1d901b61ff
commit
d92d93fc14
16 changed files with 402 additions and 11 deletions
|
|
@ -210,6 +210,7 @@ fn paint_move_cell(
|
|||
}
|
||||
let node = game.node(id);
|
||||
let san = game.game_move(id).map(|m| m.san.as_str()).unwrap_or("?");
|
||||
let san = crate::san::show(san);
|
||||
let (sym, color) = node
|
||||
.map(|n| move_glyph(n.nags()))
|
||||
.unwrap_or((String::new(), None));
|
||||
|
|
@ -297,6 +298,7 @@ fn mark_block(ui: &mut Ui, n: &Notation, id: NodeId, mark: &Mark, out: &mut Nota
|
|||
}
|
||||
None => san.clone(),
|
||||
};
|
||||
let label = crate::san::show(&label).into_owned();
|
||||
let text = RichText::new(label).size(14.5);
|
||||
let current = shown == Some(i + 1);
|
||||
let button = if current {
|
||||
|
|
@ -524,6 +526,7 @@ fn inline_line(ui: &mut Ui, n: &Notation, first: NodeId, out: &mut NotationRespo
|
|||
}
|
||||
let (num, color) = game.move_number(node).unwrap_or((0, Color::White));
|
||||
let san = game.game_move(node).map(|m| m.san.as_str()).unwrap_or("?");
|
||||
let san = crate::san::show(san);
|
||||
let (sym, sym_color) = move_glyph(nd.nags());
|
||||
let label = match (color, need_number) {
|
||||
(Color::White, _) => format!("{num}.{san}{sym}"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue