After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 306749 - Automatic paragraph direction detection algorithm needed
Automatic paragraph direction detection algorithm needed
Product: gtksourceview
Classification: Platform
Component: General
Other All
: Normal enhancement
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks: Arabic
Reported: 2005-06-07 09:18 UTC by Behdad Esfahbod
Modified: 2021-07-05 11:01 UTC
See Also:
GNOME target: ---
GNOME version: ---

Description Behdad Esfahbod 2005-06-07 09:18:55 UTC
Quoting Owen Taylor on bug 122990:

"""One thing that still won't be addressed with that is the
automatic determination of paragraph direction as done by GtkTextView
-- this needs to be implemented separately in gtksourceview's 
printing code.

(Probably 30 minutes of work or so)"""

Currently the gtksourceview printing code doesn't handle neutral pragraphs, they
simply becom left-to-right.  Any need or way to share the semantics of that
algorithm between the too, or am I being too picky?
Comment 1 Jeroen Zwartepoorte 2005-08-05 10:12:58 UTC
Could you clarify what you mean with the "paragraph direction" and "neutral
Comment 2 Behdad Esfahbod 2005-08-05 10:40:05 UTC
"paragraph direction" is the direction of the paragraph (right-to-left or
left-to-right) determined by looking at the first alphabetic letter of the
paragraph.  Latin letters are LtR, Arabic are RtL for example.

A "neutral paragraph" is a paragraph with no alphabetic letter.  For example a
paragraph consisting of only periods: "..."

The algorithm Gtk handles netural paragraphs by looking for non-neutral
paragraphs ahead or before.  You can read more about these concetps here:
Comment 3 Yevgen Muntyan 2008-08-03 07:44:21 UTC
Is there still a problem, is it fixed in the new printing code?
Comment 4 Behdad Esfahbod 2008-08-05 05:06:12 UTC
Still needed.  Print the following lines in gedit and observe how the "..." line appears on right on display, but left when printing:

Comment 5 Yevgen Muntyan 2008-08-05 23:48:12 UTC
I need a linux for this. Arabic and Hebrew text is totally screwed up on Mac.
Comment 6 GNOME Infrastructure Team 2021-07-05 11:01:01 UTC
GNOME is going to shut down in favor of
As part of that, we are mass-closing older open tickets in
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
and create a new ticket at

Thank you for your understanding and your help.