Re: [Zim-wiki] curly brackets, escape them?

2016-01-07 Thread Paulo van Breugel
6.4 I think, but I am not sure

On Thu, Jan 7, 2016 at 10:40 PM, Joseph Reagle 
wrote:

> On 01/07/2016 03:55 PM, Paulo van Breugel wrote:
> > I was talking about using the 'insert code block' option, one of the
> > solution Jaap mentioned earlier (menu: insert: code block). For
> > verbatim text there is ctrl + T, but of course with code block there
> > is in any case an additional step of selecting the code syntax.
>
> I don't have that nor any plugin to check to include it. I wonder what
> version it was introduced in?
>
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] curly brackets, escape them?

2016-01-07 Thread Joseph Reagle
On 01/07/2016 03:55 PM, Paulo van Breugel wrote:
> I was talking about using the 'insert code block' option, one of the
> solution Jaap mentioned earlier (menu: insert: code block). For
> verbatim text there is ctrl + T, but of course with code block there
> is in any case an additional step of selecting the code syntax.

I don't have that nor any plugin to check to include it. I wonder what version 
it was introduced in?

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] curly brackets, escape them?

2016-01-07 Thread Paulo van Breugel
I was talking about using the 'insert code block' option, one of the
solution Jaap mentioned earlier (menu: insert: code block). For verbatim
text there is ctrl + T, but of course with code block there is in any case
an additional step of selecting the code syntax.

On Thu, Jan 7, 2016 at 9:27 PM, Joseph Reagle 
wrote:

> On 01/07/2016 03:21 PM, Paulo van Breugel wrote:
> > As a side note, I use the 'insert code block' a lot. What would make
> > it more intuitive to use, or faster in any case, is a shortcut, like
> > for verbatim text.
>
> Huh, I think I still must not understand this (using 0.60). When I want to
> edit the source, I type alt+s+s+enter and it comes up in my text editor. I
> don't really have a plugin...
>
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] curly brackets, escape them?

2016-01-07 Thread Joseph Reagle
On 01/07/2016 03:21 PM, Paulo van Breugel wrote:
> As a side note, I use the 'insert code block' a lot. What would make
> it more intuitive to use, or faster in any case, is a shortcut, like
> for verbatim text.

Huh, I think I still must not understand this (using 0.60). When I want to edit 
the source, I type alt+s+s+enter and it comes up in my text editor. I don't 
really have a plugin...

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] curly brackets, escape them?

2016-01-07 Thread Paulo van Breugel
As a side note, I use the 'insert code block' a lot. What would make it
more intuitive to use, or faster in any case, is a shortcut, like for
verbatim text.

On Thu, Jan 7, 2016 at 8:44 PM, Joseph Reagle 
wrote:

> On 01/07/2016 10:54 AM, Jaap Karssenberg wrote:
> > thing. On the other hand, being able to input wiki text directly is
> > one of the strengths of zim.
>
> Ah, I didn't even know that was a feature really. I know markdown and
> wikimedia syntax, but not zim wiki syntax though I probably use it the
> most! Thinking about it I suppose when I type "[]" or "*" and it
> converts to a checkbox or bullet, I am taking advantage of that feature.
> But, as you say, I immediately see the change. I've never wanted to do this
> (unlike double curlies) but I then wonder how would I begin a line with a
> literal '[]' or '*'? I appreciate we are probably in a very narrow use case.
>
> ___
> Mailing list: https://launchpad.net/~zim-wiki
> Post to : zim-wiki@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] curly brackets, escape them?

2016-01-07 Thread Jaap Karssenberg
Hi Joseph,

Yes that is the plugin I mean.

Agree, we should have an escape character for those sequences. But still
not sure whether it should be escaped automatically. Yes it presents the
user with unintended behavior, which in general is a bad thing. On the
other hand, being able to input wiki text directly is one of the strengths
of zim. Take that away by default and hardly any user will discover the
option to enable it.

Best thing, I think, would be to do the formatting as soon as they are
typed. At least that gives direct feedback.

Regards,

Jaap






On Thu, Jan 7, 2016 at 4:36 PM, Joseph Reagle 
wrote:

> Hi Jaap, thanks for the note. I understand your point, but it does strike
> me as a bug none-the-less in that I've typed something in to the GUI which
> is then changed upon reloading.  Does zim have no facilities for
> protecting/escaping special characters in the underlying source when they
> are typed in the GUI? (Yes, the users can use a code block, but that's
> putting the obligation on them to protect characters.) Shouldn't it be that
> I shouldn't have to know the underlying syntax when I'm typing in the GUI?
>
> BTW: What is the code block plugin? Do you mean source view?
>
> On 01/07/2016 10:18 AM, Jaap Karssenberg wrote:
> > Realize I'm responding to a quite old mail. However wanted to clarify
> > that this is not a bug but intended behavior. In zim's wiki syntax
> > those double curly braces are used to denote images. So the broken
> > rendering screenshot shows broken images since the text does not
> > match a file name.
> >
> > If you want to include wikipedia syntax in a zim page, it needs to be
> > either formatted as verbatim text or included in a code block (using
> > the plugin for code blocks). The rationale is that this is not normal
> > text but some kind of code. So extra protection is needed to avoid
> > conflicts with zim's code.
>
>
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] curly brackets, escape them?

2016-01-07 Thread Joseph Reagle
Hi Jaap, thanks for the note. I understand your point, but it does strike me as 
a bug none-the-less in that I've typed something in to the GUI which is then 
changed upon reloading.  Does zim have no facilities for protecting/escaping 
special characters in the underlying source when they are typed in the GUI? 
(Yes, the users can use a code block, but that's putting the obligation on them 
to protect characters.) Shouldn't it be that I shouldn't have to know the 
underlying syntax when I'm typing in the GUI?

BTW: What is the code block plugin? Do you mean source view?

On 01/07/2016 10:18 AM, Jaap Karssenberg wrote:
> Realize I'm responding to a quite old mail. However wanted to clarify
> that this is not a bug but intended behavior. In zim's wiki syntax
> those double curly braces are used to denote images. So the broken
> rendering screenshot shows broken images since the text does not
> match a file name.
> 
> If you want to include wikipedia syntax in a zim page, it needs to be
> either formatted as verbatim text or included in a code block (using
> the plugin for code blocks). The rationale is that this is not normal
> text but some kind of code. So extra protection is needed to avoid
> conflicts with zim's code.


___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] curly brackets, escape them?

2015-11-07 Thread Joseph Reagle
On 11/07/2015 01:48 PM, Shivam Sharma wrote:
> You could format them as "Verbatim" using Ctrl+T keystroke. This will
> change their look to verbatim (of course), but preserve the text as
> it is.

Thanks for the tip. Unfortunately, you can't link verbatim text; I could 
verbatim just the curly-brackets and use normal text for the other stuff until 
there's a bug fix

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] curly brackets, escape them?

2015-11-07 Thread Bo Grimes
Also same results as you with Zim 0.60 under ZorinOS (Ubuntu derivitive, 
Linux kernel  3.13.0-65)


-- Original Message --
From: "Joseph Reagle" 
To: "Bo Grimes" 
Cc: "Zim" 
Sent: 11/7/2015 1:37:03 PM
Subject: Re: [Zim-wiki] curly brackets, escape them?


On 11/07/2015 01:04 PM, Bo Grimes wrote:

 Using Zim 0.63 on Windows 10 I have no problem with curly brackets
 {}, but I may not understand their purpose.



I have a page where I keep a list of Wikipedia templates.

 {{awk}}
 {{clarify}}
 {{copy edit-inline|for=concision}}
 {{copy edit-inline|for=redundant}}
 {{copy edit-inline|for=long, break up}}
 {{copy edit-inline|for=grammar}}
 {{detail}}
 {{elucidate}} # to mark phrases/sections which require explanation for 
general readers

 {{necessary}}
 {{vague}}

Could you add this to a zim page, close zim, and then reopen it and see 
if they survive?


I've attached a screenshot of the source of the page and the broken 
rendering in Zim. (I'm still using 0.60 because of some other bugs in 
recent versions.)



___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] curly brackets, escape them?

2015-11-07 Thread Bo Grimes
They did not survive.  I got the same results as you.  Didn't realize in 
the original it should have been double curly.  Sorry.


-- Original Message --
From: "Joseph Reagle" 
To: "Bo Grimes" 
Cc: "Zim" 
Sent: 11/7/2015 1:37:03 PM
Subject: Re: [Zim-wiki] curly brackets, escape them?


On 11/07/2015 01:04 PM, Bo Grimes wrote:

 Using Zim 0.63 on Windows 10 I have no problem with curly brackets
 {}, but I may not understand their purpose.



I have a page where I keep a list of Wikipedia templates.

 {{awk}}
 {{clarify}}
 {{copy edit-inline|for=concision}}
 {{copy edit-inline|for=redundant}}
 {{copy edit-inline|for=long, break up}}
 {{copy edit-inline|for=grammar}}
 {{detail}}
 {{elucidate}} # to mark phrases/sections which require explanation for 
general readers

 {{necessary}}
 {{vague}}

Could you add this to a zim page, close zim, and then reopen it and see 
if they survive?


I've attached a screenshot of the source of the page and the broken 
rendering in Zim. (I'm still using 0.60 because of some other bugs in 
recent versions.)



___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] curly brackets, escape them?

2015-11-07 Thread Shivam Sharma
You could format them as "Verbatim" using Ctrl+T keystroke. This will
change their look to verbatim (of course), but preserve the text as it is.

On Sun, Nov 8, 2015 at 12:07 AM, Joseph Reagle 
wrote:

> On 11/07/2015 01:04 PM, Bo Grimes wrote:
> > Using Zim 0.63 on Windows 10 I have no problem with curly brackets
> > {}, but I may not understand their purpose.
>
>
> I have a page where I keep a list of Wikipedia templates.
>
> {{awk}}
> {{clarify}}
> {{copy edit-inline|for=concision}}
> {{copy edit-inline|for=redundant}}
> {{copy edit-inline|for=long, break up}}
> {{copy edit-inline|for=grammar}}
> {{detail}}
> {{elucidate}} # to mark phrases/sections which require explanation
> for general readers
> {{necessary}}
> {{vague}}
>
> Could you add this to a zim page, close zim, and then reopen it and see if
> they survive?
>
> I've attached a screenshot of the source of the page and the broken
> rendering in Zim. (I'm still using 0.60 because of some other bugs in
> recent versions.)
>
> ___
> Mailing list: https://launchpad.net/~zim-wiki
> Post to : zim-wiki@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] curly brackets, escape them?

2015-11-07 Thread Joseph Reagle
On 11/07/2015 01:04 PM, Bo Grimes wrote:
> Using Zim 0.63 on Windows 10 I have no problem with curly brackets
> {}, but I may not understand their purpose.


I have a page where I keep a list of Wikipedia templates.

{{awk}}
{{clarify}}
{{copy edit-inline|for=concision}}
{{copy edit-inline|for=redundant}}
{{copy edit-inline|for=long, break up}}
{{copy edit-inline|for=grammar}}
{{detail}}
{{elucidate}} # to mark phrases/sections which require explanation for 
general readers
{{necessary}}
{{vague}}

Could you add this to a zim page, close zim, and then reopen it and see if they 
survive?

I've attached a screenshot of the source of the page and the broken rendering 
in Zim. (I'm still using 0.60 because of some other bugs in recent versions.)
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] curly brackets, escape them?

2015-11-07 Thread Joseph Reagle
Can anyone confirm this bug at least? How do you include curly brackets on a 
page?

On 10/29/2015 12:48 PM, Joseph Reagle wrote:
> I have the hardest times with curly brackets. I can type them on a page and 
> they look fine, but if I close zim and reopen it, they are broken. If I look 
> at the source, the curly brackets are there, but I think they are being 
> parsed as zim syntax. Is there a way to escape them, and shouldn't zim do 
> that when you edit a page?


___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp