<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>468151</bug_id>
          
          <creation_ts>2023-04-04 18:44:14 +0000</creation_ts>
          <short_desc>Force text direction</short_desc>
          <delta_ts>2023-04-06 12:20:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kate</product>
          <component>application</component>
          <version>22.12.3</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="AvidSeeker">avidseeker7</reporter>
          <assigned_to name="KWrite Developers">kwrite-bugs-null</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/frameworks/ktexteditor/commit/8c814351a7a6685790d3488b7e8f3a3c776af937</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2220295</commentid>
    <comment_count>0</comment_count>
    <who name="AvidSeeker">avidseeker7</who>
    <bug_when>2023-04-04 18:44:14 +0000</bug_when>
    <thetext>SUMMARY
Some text editors and browsers have support for temporarily changing text alignment typically by pressing RCtrl+RShift or Ctrl+Shift+X (in Firefox).

This feature (toggling RTL, LTR directions) is essential for Bidi support, and it&apos;s helpful when dealing with console output of RTL language.

Currently Krita and Kwrite switch text direction depending on the language of the starting text. If it is e.g Arabic, the whole line would be RTL. Which becomes annoying in case of a mixed text where the desired layout is to force alignment to be all to the right or all to the left.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2220300</commentid>
    <comment_count>1</comment_count>
    <who name="AvidSeeker">avidseeker7</who>
    <bug_when>2023-04-04 18:52:07 +0000</bug_when>
    <thetext>More background on this issue in gedit: https://gitlab.gnome.org/GNOME/gedit/-/issues/468</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2220358</commentid>
    <comment_count>2</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2023-04-04 20:31:02 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/537</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2220772</commentid>
    <comment_count>3</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2023-04-06 12:20:37 +0000</bug_when>
    <thetext>Git commit 8c814351a7a6685790d3488b7e8f3a3c776af937 by Christoph Cullmann, on behalf of Waqar Ahmed.
Committed on 06/04/2023 at 12:20.
Pushed by cullmann into branch &apos;master&apos;.

Allow forcing RTL direction

The option is available under the &quot;View&quot; menu. Once the option is
checked, all the text is forced to the right. Having &quot;Dynamic Word
Enabled&quot; is necessary for this to work correctly. Reason being that
with static wrapping there is no &quot;right&quot; to which we can force the lines
to, &quot;right&quot; is infinity/INT_MAX.
Related: bug 433926

M  +2    -1    src/data/katepart5ui.rc
M  +5    -1    src/render/katerenderer.cpp
M  +19   -0    src/view/kateview.cpp
M  +3    -0    src/view/kateview.h

https://invent.kde.org/frameworks/ktexteditor/commit/8c814351a7a6685790d3488b7e8f3a3c776af937</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>