Zim

Both customized "heading" formatting and customized "strong" formatting are displayed wrong.

Bug #1306987 reported by Azmo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Invalid
Undecided
Unassigned

Bug Description

---> INFO:
OS version: Fedora 16 ; kernel: 3.6.11-4.fc16.x86_64
Zim version: 0.59
DEBUG: Python version is sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
DEBUG: Platform is posix
pygtk2-2.24.0-3.fc15.x86_64
gtk+-1.2.10-71.fc15.x86_64

---> PROBLEM:

I have changed the default coloring for the "headings" [1-5] and for the "strong", "emphasis" and "mark".

Below is part of the ~/.config/zim/style.conf file:

===
#mainly i have changed the colors, not the font (type|size).
[Tag strong]
weight=PANGO_WEIGHT_BOLD
foreground=#FF0000

[Tag emphasis]
weight=PANGO_WEIGHT_BOLD
foreground=#000000

[Tag mark]
background=#FF0000
foreground=#FFFFFF
weight=PANGO_WEIGHT_BOLD

# this is a sample of just one heading, but the rest are the same
[Tag h4]
foreground=#000000
weight=PANGO_WEIGHT_BOLD
scale=1.15
===

-> Steps to replicate:

1. Change your settings as above.
2. Type a sentence, lets say: Today is Friday.
3. Highlight the sentence, then choose Heading 4 (all sentence should be black colored)
4. Highlight the word "Friday" and apply the "strong" filter (that will make it red)
5. Now we should have the "Today is" in black "heading" formatting, and "Friday" in red.
6. Close zim and reopen it.
7. Now you see the Today is on one line, and the Friday being on the line beneath. Example:
Today is
Friday.

---> RESOLUTION

n/a

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

What you see has nothing to do with the custom colors. It is current behavior of zim that if you make something "strong" it can not be a "heading" at the same time. So by formatting part of the heading as "strong" it is no longer part of the heading.

Agreed that this may be unexpected behavior, but at the moment this is expected behavior.

REgards,

Jaap

Changed in zim:
status: New → Invalid
Revision history for this message
Azmo (evilform) wrote : Re: [Bug 1306987] Re: Both customized "heading" formatting and customized "strong" formatting are displayed wrong.

Thanks for the explanation,

Bye.

On Tue, Apr 29, 2014 at 10:52 PM, Jaap Karssenberg <
<email address hidden>> wrote:

> What you see has nothing to do with the custom colors. It is current
> behavior of zim that if you make something "strong" it can not be a
> "heading" at the same time. So by formatting part of the heading as
> "strong" it is no longer part of the heading.
>
> Agreed that this may be unexpected behavior, but at the moment this is
> expected behavior.
>
> REgards,
>
> Jaap
>
> ** Changed in: zim
> Status: New => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1306987
>
> Title:
> Both customized "heading" formatting and customized "strong"
> formatting are displayed wrong.
>
> Status in Zim desktop wiki:
> Invalid
>
> Bug description:
> ---> INFO:
> OS version: Fedora 16 ; kernel: 3.6.11-4.fc16.x86_64
> Zim version: 0.59
> DEBUG: Python version is sys.version_info(major=2, minor=7, micro=3,
> releaselevel='final', serial=0)
> DEBUG: Platform is posix
> pygtk2-2.24.0-3.fc15.x86_64
> gtk+-1.2.10-71.fc15.x86_64
>
>
> ---> PROBLEM:
>
> I have changed the default coloring for the "headings" [1-5] and for
> the "strong", "emphasis" and "mark".
>
> Below is part of the ~/.config/zim/style.conf file:
>
> ===
> #mainly i have changed the colors, not the font (type|size).
> [Tag strong]
> weight=PANGO_WEIGHT_BOLD
> foreground=#FF0000
>
> [Tag emphasis]
> weight=PANGO_WEIGHT_BOLD
> foreground=#000000
>
> [Tag mark]
> background=#FF0000
> foreground=#FFFFFF
> weight=PANGO_WEIGHT_BOLD
>
> # this is a sample of just one heading, but the rest are the same
> [Tag h4]
> foreground=#000000
> weight=PANGO_WEIGHT_BOLD
> scale=1.15
> ===
>
> -> Steps to replicate:
>
> 1. Change your settings as above.
> 2. Type a sentence, lets say: Today is Friday.
> 3. Highlight the sentence, then choose Heading 4 (all sentence should be
> black colored)
> 4. Highlight the word "Friday" and apply the "strong" filter (that will
> make it red)
> 5. Now we should have the "Today is" in black "heading" formatting, and
> "Friday" in red.
> 6. Close zim and reopen it.
> 7. Now you see the Today is on one line, and the Friday being on the
> line beneath. Example:
> Today is
> Friday.
>
>
> ---> RESOLUTION
>
> n/a
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1306987/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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