From 08378de48c32f2b4199ccab0cbee8ba93f9f6530 Mon Sep 17 00:00:00 2001 From: stribor14 Date: Tue, 26 Mar 2024 08:00:34 +0100 Subject: [PATCH] Fix Smooth mosaic terminal graphic characters from quaters to thirds --- kitty/fonts/box_drawing.py | 72 +++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/kitty/fonts/box_drawing.py b/kitty/fonts/box_drawing.py index 06be38e56..1704b8b29 100644 --- a/kitty/fonts/box_drawing.py +++ b/kitty/fonts/box_drawing.py @@ -1041,57 +1041,57 @@ box_chars: Dict[str, List[Callable[[BufType, int, int], Any]]] = { '▞': [p(quad, x=1), p(quad, y=1)], '▟': [p(quad, x=1), p(quad, y=1), p(quad, x=1, y=1)], - '🬼': [p(smooth_mosaic, a=(0, 0.75), b=(0.5, 1))], - '🬽': [p(smooth_mosaic, a=(0, 0.75), b=(1, 1))], - '🬾': [p(smooth_mosaic, a=(0, 0.25), b=(0.5, 1))], - '🬿': [p(smooth_mosaic, a=(0, 0.25), b=(1, 1))], + '🬼': [p(smooth_mosaic, a=(0, 2 / 3), b=(0.5, 1))], + '🬽': [p(smooth_mosaic, a=(0, 2 / 3), b=(1, 1))], + '🬾': [p(smooth_mosaic, a=(0, 1 / 3), b=(0.5, 1))], + '🬿': [p(smooth_mosaic, a=(0, 1 / 3), b=(1, 1))], '🭀': [p(smooth_mosaic, a=(0, 0), b=(0.5, 1))], - '🭁': [p(smooth_mosaic, a=(0, 0.25), b=(0.5, 0))], - '🭂': [p(smooth_mosaic, a=(0, 0.25), b=(1, 0))], - '🭃': [p(smooth_mosaic, a=(0, 0.75), b=(0.5, 0))], - '🭄': [p(smooth_mosaic, a=(0, 0.75), b=(1, 0))], + '🭁': [p(smooth_mosaic, a=(0, 1 / 3), b=(0.5, 0))], + '🭂': [p(smooth_mosaic, a=(0, 1 / 3), b=(1, 0))], + '🭃': [p(smooth_mosaic, a=(0, 2 / 3), b=(0.5, 0))], + '🭄': [p(smooth_mosaic, a=(0, 2 / 3), b=(1, 0))], '🭅': [p(smooth_mosaic, a=(0, 1), b=(0.5, 0))], - '🭆': [p(smooth_mosaic, a=(0, 0.75), b=(1, 0.25))], + '🭆': [p(smooth_mosaic, a=(0, 2 / 3), b=(1, 1 / 3))], - '🭇': [p(smooth_mosaic, a=(0.5, 1), b=(1, 0.75))], - '🭈': [p(smooth_mosaic, a=(0, 1), b=(1, 0.75))], - '🭉': [p(smooth_mosaic, a=(0.5, 1), b=(1, 0.25))], - '🭊': [p(smooth_mosaic, a=(0, 1), b=(1, 0.25))], + '🭇': [p(smooth_mosaic, a=(0.5, 1), b=(1, 2 / 3))], + '🭈': [p(smooth_mosaic, a=(0, 1), b=(1, 2 / 3))], + '🭉': [p(smooth_mosaic, a=(0.5, 1), b=(1, 1 / 3))], + '🭊': [p(smooth_mosaic, a=(0, 1), b=(1, 1 / 3))], '🭋': [p(smooth_mosaic, a=(0.5, 1), b=(1, 0))], - '🭌': [p(smooth_mosaic, a=(0.5, 0), b=(1, 0.25))], - '🭍': [p(smooth_mosaic, a=(0, 0), b=(1, 0.25))], - '🭎': [p(smooth_mosaic, a=(0.5, 0), b=(1, 0.75))], - '🭏': [p(smooth_mosaic, a=(0, 0), b=(1, 0.75))], + '🭌': [p(smooth_mosaic, a=(0.5, 0), b=(1, 1 / 3))], + '🭍': [p(smooth_mosaic, a=(0, 0), b=(1, 1 / 3))], + '🭎': [p(smooth_mosaic, a=(0.5, 0), b=(1, 2 / 3))], + '🭏': [p(smooth_mosaic, a=(0, 0), b=(1, 2 / 3))], '🭐': [p(smooth_mosaic, a=(0.5, 0), b=(1, 1))], - '🭑': [p(smooth_mosaic, a=(0, 0.25), b=(1, 0.75))], + '🭑': [p(smooth_mosaic, a=(0, 1 / 3), b=(1, 2 / 3))], - '🭒': [p(smooth_mosaic, lower=False, a=(0, 0.75), b=(0.5, 1))], - '🭓': [p(smooth_mosaic, lower=False, a=(0, 0.75), b=(1, 1))], - '🭔': [p(smooth_mosaic, lower=False, a=(0, 0.25), b=(0.5, 1))], - '🭕': [p(smooth_mosaic, lower=False, a=(0, 0.25), b=(1, 1))], + '🭒': [p(smooth_mosaic, lower=False, a=(0, 2 / 3), b=(0.5, 1))], + '🭓': [p(smooth_mosaic, lower=False, a=(0, 2 / 3), b=(1, 1))], + '🭔': [p(smooth_mosaic, lower=False, a=(0, 1 / 3), b=(0.5, 1))], + '🭕': [p(smooth_mosaic, lower=False, a=(0, 1 / 3), b=(1, 1))], '🭖': [p(smooth_mosaic, lower=False, a=(0, 0), b=(0.5, 1))], - '🭗': [p(smooth_mosaic, lower=False, a=(0, 0.25), b=(0.5, 0))], - '🭘': [p(smooth_mosaic, lower=False, a=(0, 0.25), b=(1, 0))], - '🭙': [p(smooth_mosaic, lower=False, a=(0, 0.75), b=(0.5, 0))], - '🭚': [p(smooth_mosaic, lower=False, a=(0, 0.75), b=(1, 0))], + '🭗': [p(smooth_mosaic, lower=False, a=(0, 1 / 3), b=(0.5, 0))], + '🭘': [p(smooth_mosaic, lower=False, a=(0, 1 / 3), b=(1, 0))], + '🭙': [p(smooth_mosaic, lower=False, a=(0, 2 / 3), b=(0.5, 0))], + '🭚': [p(smooth_mosaic, lower=False, a=(0, 2 / 3), b=(1, 0))], '🭛': [p(smooth_mosaic, lower=False, a=(0, 1), b=(0.5, 0))], - '🭜': [p(smooth_mosaic, lower=False, a=(0, 0.75), b=(1, 0.25))], - '🭝': [p(smooth_mosaic, lower=False, a=(0.5, 1), b=(1, 0.75))], - '🭞': [p(smooth_mosaic, lower=False, a=(0, 1), b=(1, 0.75))], - '🭟': [p(smooth_mosaic, lower=False, a=(0.5, 1), b=(1, 0.25))], - '🭠': [p(smooth_mosaic, lower=False, a=(0, 1), b=(1, 0.25))], + '🭜': [p(smooth_mosaic, lower=False, a=(0, 2 / 3), b=(1, 1 / 3))], + '🭝': [p(smooth_mosaic, lower=False, a=(0.5, 1), b=(1, 2 / 3))], + '🭞': [p(smooth_mosaic, lower=False, a=(0, 1), b=(1, 2 / 3))], + '🭟': [p(smooth_mosaic, lower=False, a=(0.5, 1), b=(1, 1 / 3))], + '🭠': [p(smooth_mosaic, lower=False, a=(0, 1), b=(1, 1 / 3))], '🭡': [p(smooth_mosaic, lower=False, a=(0.5, 1), b=(1, 0))], - '🭢': [p(smooth_mosaic, lower=False, a=(0.5, 0), b=(1, 0.25))], - '🭣': [p(smooth_mosaic, lower=False, a=(0, 0), b=(1, 0.25))], - '🭤': [p(smooth_mosaic, lower=False, a=(0.5, 0), b=(1, 0.75))], - '🭥': [p(smooth_mosaic, lower=False, a=(0, 0), b=(1, 0.75))], + '🭢': [p(smooth_mosaic, lower=False, a=(0.5, 0), b=(1, 1 / 3))], + '🭣': [p(smooth_mosaic, lower=False, a=(0, 0), b=(1, 1 / 3))], + '🭤': [p(smooth_mosaic, lower=False, a=(0.5, 0), b=(1, 2 / 3))], + '🭥': [p(smooth_mosaic, lower=False, a=(0, 0), b=(1, 2 / 3))], '🭦': [p(smooth_mosaic, lower=False, a=(0.5, 0), b=(1, 1))], - '🭧': [p(smooth_mosaic, lower=False, a=(0, 0.25), b=(1, 0.75))], + '🭧': [p(smooth_mosaic, lower=False, a=(0, 1 / 3), b=(1, 2 / 3))], '🭨': [p(half_triangle, inverted=True)], '🭩': [p(half_triangle, which='top', inverted=True)],