Zim

RTL bullet items are not indented properly in note

Bug #1251107 reported by Robery Mathew
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Zim
Fix Released
High
Unassigned

Bug Description

When adding Arabic bullets to a note, tab does not seem to indent the bullets and they are all aligned at the outer bullet level (Level 1)

I ran into this on Linux (will check the Windows version as well). Thanks.

Below is the output of zim -D:

INFO: This is zim 0.60
DEBUG: Python version is sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
DEBUG: Platform is posix
DEBUG: Zim revision is:
branch: pyzim-trunk
revision: 672 <email address hidden>
date: 2013-04-30 19:27:20 +0200
DEBUG: Not running from a source dir
DEBUG: Set XDG_DATA_HOME to /home/rob/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share/gnome>, <Dir: /usr/local/share>, <Dir: /usr/share>]
DEBUG: Set XDG_CONFIG_HOME to /home/rob/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/rob/.cache
DEBUG: Running command: gui
DEBUG: Loading config from: /home/rob/Notebooks/Notes/notebook.zim
DEBUG: Wrote /home/rob/.config/zim/notebooks.list
INFO: Opening default notebook
DEBUG: Remote call from 7270: <RemoteMethodCall: 7270: zim.ipc.Server(None).ping((), {})>
DEBUG: Starting server by spawning new process
INFO: Spawning: ['/usr/bin/python', '/usr/bin/zim', '--ipc-server-main', '/tmp/zim-rob/zim-server-socket', '10'] (cwd: None)
DEBUG: Process started with PID: 7272
DEBUG: Remote call from 7270: <RemoteMethodCall: 7270: zim.ipc.Server(None).ping((), {})>
INFO: Server starting 7272 at /tmp/zim-rob/zim-server-socket
DEBUG: Remote call from 7270: <RemoteMethodCall: 7270: zim.ipc.Server(None).ping((), {})>
DEBUG: Remote call returned to 7270: ('ACK', 7272)
DEBUG: Remote call from 7270: <RemoteMethodCall: 7270: zim.ipc.Server(None).has_object((<RemoteObject: zim.gui.GtkInterface(file:///home/rob/Notebooks/Notes)>,), {})>
DEBUG: Remote call returned to 7270: False
DEBUG: Remote call from 7270: <RemoteMethodCall: 7270: zim.ipc.Server(None).init_object((<RemoteObject: zim.gui.GtkInterface(file:///home/rob/Notebooks/Notes)>,), {})>
        DEBUG: Loading config from: <ConfigFile: /home/rob/.config/zim/preferences.conf>
        DEBUG: Gtk version is (2, 24, 20)
DEBUG: Pygtk version is (2, 24, 0)
        WARNING: Could not find all icon sizes for the application icon
        DEBUG: Loading config from: <ConfigFile: /home/rob/.config/zim/style.conf>
        DEBUG: Opening notebook: file:///home/rob/Notebooks/Notes
        DEBUG: Wrote <UnixFile: /home/rob/Notebooks/Notes/.zim/tmp>
        INFO: Remove file: <UnixFile: /home/rob/Notebooks/Notes/.zim/tmp>
        DEBUG: Loading config from: <UnixFile: /home/rob/Notebooks/Notes/notebook.zim>
        DEBUG: Cache dir: <Dir: /home/rob/Notebooks/Notes/.zim>
        DEBUG: Index database file: <UnixFile: /home/rob/Notebooks/Notes/.zim/index.db>
        DEBUG: Loading config from: <UnixFile: /home/rob/Notebooks/Notes/.zim/state.conf>
        DEBUG: Loaded plugin "calendar" (<CalendarPlugin object at 0x14e61e0 (zim+plugins+PluginClass at 0x143b340)>)
        DEBUG: Loaded plugin "insertsymbol" (<InsertSymbolPlugin object at 0x14e6370 (zim+plugins+PluginClass at 0x143c200)>)
        DEBUG: Loaded plugin "printtobrowser" (<PrintToBrowserPlugin object at 0x14e64b0 (zim+plugins+PluginClass at 0x143b220)>)
        INFO: No VCS detected
        DEBUG: Loaded plugin "versioncontrol" (<VersionControlPlugin object at 0x1603820 (zim+plugins+PluginClass at 0x1432740)>)
        DEBUG: Child process started 7274 for <RemoteObject: zim.gui.GtkInterface(file:///home/rob/Notebooks/Notes)>
        INFO: Starting async index update
INFO: Open page: <FileStorePage: Daily> (<HistoryPath: Daily>)
        DEBUG: Remote call returned to 7270: True
        DEBUG: Remote call from 7270: <RemoteMethodCall: 7270: zim.gui.GtkInterface(file:///home/rob/Notebooks/Notes).present((None,), {})>
        DEBUG: Accelmap: /home/rob/.config/zim/accelmap
        DEBUG: Wrote <UnixFile: /home/rob/.config/zim/preferences.conf>
        INFO: Accelerator changed for <Actions>/MainWindowExtension/print_to_browser
        DEBUG: Action: set_pathbar_recent
        DEBUG: Remote call returned to 7270: None
        DEBUG:
        NOTE FOR BUG REPORTS:
        At this point zim has send the command to open a notebook to a
        background process and the current process will now quit.
        If this is the end of your debug output it is probably not useful
        for bug reports. Please close all zim windows, quit the
        zim trayicon (if any), and try again.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 1251107] [NEW] RTL bullet items are not indented properly in note
Download full text (5.3 KiB)

Are those "arabic bullets" special characters (and do you happen to know
the unicode numbers) or do you mean normal bullets in RTL environment ?

I think there is an open bug report already about indenting in RTL
environments.

-- Jaap

On Thu, Nov 14, 2013 at 4:41 AM, Robery Mathew <email address hidden>wrote:

> Public bug reported:
>
> When adding Arabic bullets to a note, tab does not seem to indent the
> bullets and they are all aligned at the outer bullet level (Level 1)
>
> I ran into this on Linux (will check the Windows version as well).
> Thanks.
>
>
> Below is the output of zim -D:
>
> INFO: This is zim 0.60
> DEBUG: Python version is sys.version_info(major=2, minor=7, micro=3,
> releaselevel='final', serial=0)
> DEBUG: Platform is posix
> DEBUG: Zim revision is:
> branch: pyzim-trunk
> revision: 672 <email address hidden>
> date: 2013-04-30 19:27:20 +0200
> DEBUG: Not running from a source dir
> DEBUG: Set XDG_DATA_HOME to /home/rob/.local/share
> DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share/gnome>, <Dir:
> /usr/local/share>, <Dir: /usr/share>]
> DEBUG: Set XDG_CONFIG_HOME to /home/rob/.config
> DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg>]
> DEBUG: Set XDG_CACHE_HOME to /home/rob/.cache
> DEBUG: Running command: gui
> DEBUG: Loading config from: /home/rob/Notebooks/Notes/notebook.zim
> DEBUG: Wrote /home/rob/.config/zim/notebooks.list
> INFO: Opening default notebook
> DEBUG: Remote call from 7270: <RemoteMethodCall: 7270:
> zim.ipc.Server(None).ping((), {})>
> DEBUG: Starting server by spawning new process
> INFO: Spawning: ['/usr/bin/python', '/usr/bin/zim', '--ipc-server-main',
> '/tmp/zim-rob/zim-server-socket', '10'] (cwd: None)
> DEBUG: Process started with PID: 7272
> DEBUG: Remote call from 7270: <RemoteMethodCall: 7270:
> zim.ipc.Server(None).ping((), {})>
> INFO: Server starting 7272 at /tmp/zim-rob/zim-server-socket
> DEBUG: Remote call from 7270: <RemoteMethodCall: 7270:
> zim.ipc.Server(None).ping((), {})>
> DEBUG: Remote call returned to 7270: ('ACK', 7272)
> DEBUG: Remote call from 7270: <RemoteMethodCall: 7270:
> zim.ipc.Server(None).has_object((<RemoteObject:
> zim.gui.GtkInterface(file:///home/rob/Notebooks/Notes)>,), {})>
> DEBUG: Remote call returned to 7270: False
> DEBUG: Remote call from 7270: <RemoteMethodCall: 7270:
> zim.ipc.Server(None).init_object((<RemoteObject:
> zim.gui.GtkInterface(file:///home/rob/Notebooks/Notes)>,), {})>
> DEBUG: Loading config from: <ConfigFile:
> /home/rob/.config/zim/preferences.conf>
> DEBUG: Gtk version is (2, 24, 20)
> DEBUG: Pygtk version is (2, 24, 0)
> WARNING: Could not find all icon sizes for the application icon
> DEBUG: Loading config from: <ConfigFile:
> /home/rob/.config/zim/style.conf>
> DEBUG: Opening notebook: file:///home/rob/Notebooks/Notes
> DEBUG: Wrote <UnixFile: /home/rob/Notebooks/Notes/.zim/tmp>
> INFO: Remove file: <UnixFile: /home/rob/Notebooks/Notes/.zim/tmp>
> DEBUG: Loading config from: <UnixFile:
> /home/rob/Notebooks/Notes/notebook.zim>
> DEBUG: Cache dir: <Dir: /home/rob/Notebooks/Notes/.zim>
> DEBUG: Index database file:...

Read more...

Revision history for this message
mjdtjm (mjdtjm) wrote :

Yes, there is another here: https://bugs.launchpad.net/zim/+bug/360581
We have the same problem in Persian language (another RTL language).
The matter exist in Bullet lists, Numbered lists & Checkbox lists.

Changed in zim:
status: New → Confirmed
Revision history for this message
mirkhalili (mirkhalili) wrote :

I got the same problem.
In addition, change fonts, font Persian Latin alphabet is not displayed.
TNX

Revision history for this message
shrsa (h-r-ala1364) wrote :

I have had same problem as mjdtjm and mirkhalili say.
Please check it :)
TNX

Revision history for this message
Mohammad Biabani (biabani-mohammad) wrote :

Hi
Zim as the best program I found myself taking notes, but I can not give tips on where to find the RTL text. Please help me to solve this problem.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Turns out that the indenting is working fine for RTL text internally - it just isn't visible :(

Will try to implement a work around in the next release that should fix most cases, will think about robust solution in next improvement round.

Changed in zim:
importance: Undecided → High
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Put initial fix in revision 717 of the branch pyzim-refactor.

Please note that I do not use any RTL text myself, so can't test extensively, and honestly don't know what the proper behavior is for all cases.

So would be great help if someone used to working with RTL text could test and describe in detail any cases that do not work correctly. (Some test cases for the test suite would be even better.)

Regards,

Jaap

Changed in zim:
status: Confirmed → In Progress
Revision history for this message
Mehdi Sadeghi (mehdix) wrote :

I tried revision 717 of pyzim-refactor branch. Compared to the released version which does not do any indenting for RTL text, this version does it correctly, I confirm.

There are other problems though: most of the words that I type with persian letters(probably the same for Arabic) turn into links.

Moreover, when I use `+' sign in the beginning of my text it doesn't turn into a link. But this is not related to bullets, I just wonder it may be related to the same issues.

I have attached a picture of my text.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 1251107] Re: RTL bullet items are not indented properly in note

Mehdi,

For the auto-linking behavior, it is probably the "camelcase" function that
misbehaves, it can be turned off in the preferences to verify.

Please open a separate bug report to track this issue, keep this report for
the bullet indenting only.

Thanks,

Jaap

On Sat, Feb 22, 2014 at 12:47 AM, Mehdi Sadeghi
<email address hidden>wrote:

> I tried revision 717 of pyzim-refactor branch. Compared to the released
> version which does not do any indenting for RTL text, this version does
> it correctly, I confirm.
>
> There are other problems though: most of the words that I type with
> persian letters(probably the same for Arabic) turn into links.
>
> Moreover, when I use `+' sign in the beginning of my text it doesn't
> turn into a link. But this is not related to bullets, I just wonder it
> may be related to the same issues.
>
> I have attached a picture of my text.
>
> ** Attachment added: "Screenshot"
>
> https://bugs.launchpad.net/zim/+bug/1251107/+attachment/3990346/+files/Screenshot_from_2014-02-22.png
>
> --
> You received this bug notification because you are subscribed to Zim.
> https://bugs.launchpad.net/bugs/1251107
>
> Title:
> RTL bullet items are not indented properly in note
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1251107/+subscriptions
>

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

I believe this to be fixed in release 0.61.

Changed in zim:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.