Сдвигается строка (и рамки) в панелях при наличии некоторых (многих) символов в имени файла

Здесь можно сообщить о найденных багах в Far.
User avatar
HaRT
Moderator
Posts: 10823
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

Сдвигается строка (и рамки) в панелях при наличии некоторых (многих) символов в имени файла

Post by HaRT »

Latest post of the previous page:

 ! Message from: HaRT
Rubidy, я подклеил к правильной теме — читайте. И впредь не пренебрегайте поиском.
Фар есть инструмент, а не нянька. © 2009 DrKnS
Yegor
Posts: 1326
Joined: Mon 04 Apr, 2005 13:41
Location: San Ramon, CA / Kharkov, UA
Has thanked: 32 times
Been thanked: 61 times

[SOLVED] File names with “wide” (⚡) characters – rendering

Post by Yegor »

Имеется три файла:

Code: Select all

te⚡t.txt
test.t⚡t
test.txt

В режиме панелей установлено [x] Align file extensions.

Actual:

Вот так выглядят эти файлы в панелях:

Code: Select all

╔════════════════════╦
║n       Name        ║
║..                  ║
║te⚡t             tx║
║test             t⚡║
║test             txt║

Расширения сдвинуты на одно знакоместо.

Expected:

А хотелось бы вот так:

Code: Select all

╔════════════════════╦
║n       Name        ║
║..                  ║
║te⚡t            txt║
║test            t⚡t║
║test             txt║

Проблема чисто эстетическая, не знаю можно ли по коду символа определить сколько знакомест ему понадобится и взять это в расчет при отрисовке?

Far 3.0.5997.0 x86 / Windows 11 [Version 10.0.22000.795] / conhost or WT / Consolas
Last edited by Yegor on Sun 17 Jul, 2022 21:20, edited 3 times in total.
Мы не можем ждать милостей от Фара, взять их у него — наша задача! (C) Мичурин
User avatar
Taciturn
Posts: 600
Joined: Thu 26 May, 2005 17:14
Location: Санкт-Петербург
Has thanked: 89 times
Been thanked: 31 times
Contact:

File names with “wide” (⚡) characters – rendering

Post by Taciturn »

Выглядит как продолжение viewtopic.php?p=171019#p171019
User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

File names with “wide” (⚡) characters – rendering

Post by DrKnS »

Yegor wrote: Sun 17 Jul, 2022 00:15 можно ли по коду символа определить сколько знакомест ему понадобится
Kinda.
взять это в расчет при отрисовке?
[x] Fullwidth-aware rendering already takes this into account - note that the names are cut, they don't shift the column border to the right and don't screw up the rest of the screen as usual. This is Phase 1, basically a palliative - "cut the text when it gets too long to at least not f*ck up the screen layout".

"Taking character widths into account everywhere" is Phase 2. It is possible already, but requires a lot of work. Not because it's hard, but because we have assumptions like "1 character == 1 cell" in a gazillion of different places.
Yegor
Posts: 1326
Joined: Mon 04 Apr, 2005 13:41
Location: San Ramon, CA / Kharkov, UA
Has thanked: 32 times
Been thanked: 61 times

File names with “wide” (⚡) characters – rendering

Post by Yegor »

Thanks, DrKnS. I do have "[x] Fullwidth-aware rendering" turned on and it looks like what I am talkinhg about falls under so called Phase 2 here.
Мы не можем ждать милостей от Фара, взять их у него — наша задача! (C) Мичурин
User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

File names with “wide” (⚡) characters – rendering

Post by DrKnS »

5998
Yegor
Posts: 1326
Joined: Mon 04 Apr, 2005 13:41
Location: San Ramon, CA / Kharkov, UA
Has thanked: 32 times
Been thanked: 61 times

File names with “wide” (⚡) characters – rendering

Post by Yegor »

Спасибо!
Мы не можем ждать милостей от Фара, взять их у него — наша задача! (C) Мичурин
Reactor
Posts: 1
Joined: Wed 27 Mar, 2024 09:04

Ломается отрисовка интерфейса с китайскими символами в именах файлов

Post by Reactor »

Собственно, если в текущей папке есть файлы, в именах которых содержатся китайские символы, интерфейс начинает "плавать" (смещаются строки то вправо, то на начальную позицию) при каждом перемещении вверх-вниз по фалам.
image.png
Причем, меню тоже плывёт.
User avatar
HaRT
Moderator
Posts: 10823
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

Сдвигается строка (и рамки) в панелях при наличии некоторых (многих) символов в имени файла

Post by HaRT »

 ! Message from: HaRT
Reactor, я подклеил к правильной теме — читайте. И впредь не пренебрегайте поиском.
Фар есть инструмент, а не нянька. © 2009 DrKnS
Post Reply

Return to “Глюки и баги”