Re: [Zim-wiki] Pasting from PowerPoint as text?

2016-01-07 Thread Jaap Karssenberg
Hi Marco,

Sorry for the late reply. This is an issue that is bugging me as well.
Problem is that applications need to negotiate about the format to use,
looks like powerpoint prefers images over plain text. Will need some
investigation to get it to work differently.

Regards,

Jaap


On Tue, Nov 10, 2015 at 9:20 PM, Marco Cevoli 
wrote:

> Hi,
>
> when I copy and paste text from Microsoft PowerPoint into Zim Wiki,
> the text is pasted as an image. Is this the expected behaviour? Is
> there an option to always paste text as plain text? Maybe it's a PPT
> issue... I don't know...
>
> Thanks in advance
>
> Marco Cevoli
>
> ___
> 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 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] Pasting from PowerPoint as text?

2016-01-07 Thread JP Vossen
You can usually do an intermediate step where you paste into a "dumb"
editor that does not support any kind of rich text, then copy from there
and paste into Zim.  Gedit, Notepad, and Text Editor are all good for
that.  I use that trick all the time to clear all kinds of cruft out of
stuff when I just want the plain text.  You lose all formatting, but for
me, 95% of the time that's the point anyway.

OK, I lied slightly.  I used to use the editor trick above, but now I
mostly have a command line: 'read the clipboard | do stuff | write the
clipboard' trick.  I do something like the following to do both the
above and trim leading/trailing white space.  Note this is untested
as-written because it's adapted and simplified from some crufty scripts
and aliases:

Linux:
xsel -b | perl -pe 's/^\s+//; s/\s+$/\n/;' | /xsel -bi

Mac:
pbpaste | perl -pe 's/^\s+//; s/\s+$/\n/;' | pbcopy

Windows (Requires UnxUtils and ActivePerl (or could use UnxUtils `sed`))
getclip | perl -pe "s/^\s+//; s/\s+$/\n/;" | putclip


On 01/07/2016 10:16 AM, Paulo van Breugel wrote:
> Same seems to be true for excel, which is in that case actually very
> convenient / handy:
> https://github.com/jaap-karssenberg/zim-wiki/wiki/Create-a-table-using-LibreOffice%2C-OpenOffice-or-Excel
>
> On Thu, Jan 7, 2016 at 4:08 PM, Jaap Karssenberg
> > wrote:
>
> Hi Marco,
>
> Sorry for the late reply. This is an issue that is bugging me as
> well. Problem is that applications need to negotiate about the
> format to use, looks like powerpoint prefers images over plain
> text. Will need some investigation to get it to work differently.
>
> Regards,
>
> Jaap
>
>
> On Tue, Nov 10, 2015 at 9:20 PM, Marco Cevoli
> > wrote:
>
> Hi,
>
> when I copy and paste text from Microsoft PowerPoint into Zim
> Wiki,
> the text is pasted as an image. Is this the expected behaviour? Is
> there an option to always paste text as plain text? Maybe it's
> a PPT
> issue... I don't know...
>
> Thanks in advance
>
> Marco Cevoli
>

Later,
JP
--  ---
JP Vossen, CISSP | http://www.jpsdomain.org/ | http://bashcookbook.com/

___
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 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 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
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 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