Bug 461530 - [Enhancement] Can console disable or manage ligatures?
Summary: [Enhancement] Can console disable or manage ligatures?
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-07 03:47 UTC by Firestar-Reimu
Modified: 2023-10-26 17:51 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Firestar-Reimu 2022-11-07 03:47:34 UTC
For example, I do not want ligatures on Fira Code, can I disable it on Konsole settings or give a settings file to manage ligatures I want?
Comment 1 Matan Ziv-Av 2022-11-08 20:19:07 UTC
In 22.12, those ligatures will be disabled by default, but there is an option to enable them.

I plan to add an option that will give control over which characters may be ligated, but not select specific ligatures.

You will be able to select only =,< characters, so you have ligatures for <= and =< but not for <-. But you will not be able to have <= ligated but =< not ligated.
Comment 2 5ilona6wj 2022-12-11 20:05:10 UTC
(In reply to Matan Ziv-Av from comment #1)
> In 22.12, those ligatures will be disabled by default, but there is an
> option to enable them.
> 
> I plan to add an option that will give control over which characters may be
> ligated, but not select specific ligatures.
> 
> You will be able to select only =,< characters, so you have ligatures for <=
> and =< but not for <-. But you will not be able to have <= ligated but =<
> not ligated.

Seems like font ligatures have been disabled. How can I get them back? Which file(s) do I have to edit and what lines of code do I have to add?
Comment 3 Matan Ziv-Av 2022-12-12 16:54:09 UTC
To enable ligatures in 22.12:

In "Edit profile" dialog, select page "Appearance" and then tab "Complex Text Layout"

Enable "Word mode" and "ASCII characters". Make sure to "Use the same attributes for whole word" is disabled.
Comment 4 Firestar-Reimu 2022-12-21 08:15:07 UTC
(In reply to Matan Ziv-Av from comment #3)
> To enable ligatures in 22.12:
> 
> In "Edit profile" dialog, select page "Appearance" and then tab "Complex
> Text Layout"
> 
> Enable "Word mode" and "ASCII characters". Make sure to "Use the same
> attributes for whole word" is disabled.

Thanks! Some words are not translated to Chinese now, hope to be translated soon.
Comment 5 Firestar-Reimu 2022-12-21 08:28:30 UTC
(In reply to 1900011604 from comment #4)
> Thanks! Some words are not translated to Chinese now, hope to be translated soon.

Word mode -> 文字模式

Use the same attributes for whole word -> 对整个单词使用相同的属性

ASCII characters -> ASCII 字符

Brahmic scripts characters -> 婆罗米系文字字符

Emoji font -> 表情字体

Bi-Directional text rendering -> 双向文字渲染(translated)

force LTR line direction -> 强制从左到右的书写方向

Table characters BiDi mode override -> 表格字符双向模式覆盖
Comment 6 Tyson Tan 2023-02-17 02:54:58 UTC
(In reply to 1900011604 from comment #5)
> (In reply to 1900011604 from comment #4)
> > Thanks! Some words are not translated to Chinese now, hope to be translated soon.
> 
> Word mode -> 文字模式
> 
> Use the same attributes for whole word -> 对整个单词使用相同的属性
> 
> ASCII characters -> ASCII 字符
> 
> Brahmic scripts characters -> 婆罗米系文字字符
> 
> Emoji font -> 表情字体
> 
> Bi-Directional text rendering -> 双向文字渲染(translated)
> 
> force LTR line direction -> 强制从左到右的书写方向
> 
> Table characters BiDi mode override -> 表格字符双向模式覆盖

These strings have already been translated. Since we missed the translation window before the release of 22.12.2, the translated strings were not yet included in the current version. I suppose you may see them in version 23.xx.x
Comment 7 Firestar-Reimu 2023-08-10 10:07:59 UTC
What about disabling the ligatures? @Matan Ziv-Av