Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zim import does not handle links #42

Open
zauberparacelsus opened this issue May 30, 2015 · 7 comments
Open

Zim import does not handle links #42

zauberparacelsus opened this issue May 30, 2015 · 7 comments

Comments

@zauberparacelsus
Copy link

When importing a notebook from zim, the note links in zim (IE: links from one page in the notebook to another) are not converted into node links in CherryTree, and must be manually recreated.

@giuspen
Copy link
Owner

giuspen commented May 31, 2015

Hi, please send me a zim document to import where I can experiment the
issue telling where the broken link is
On 31 May 2015 00:09, "Zauber Paracelsus" notifications@github.com wrote:

When importing a notebook from zim, the note links in zim (IE: links from
one page in the notebook to another) are not converted into node links in
CherryTree, and must be manually recreated.


Reply to this email directly or view it on GitHub
#42.

@zauberparacelsus
Copy link
Author

Aye, I've got an example zipped up below for you. Based on what I'm seeing in my own testing just now, it's a problem with importing links to sub-pages:

https://mega.co.nz/#!OgFkEZoL!jAtRQmtR-kgJ1yjf00BwuLJNg0qg3vTz4ZrTtHcpk-U

@giuspen
Copy link
Owner

giuspen commented Jun 30, 2015

Thank you Zauber I should have fixed this now

On 31 May 2015 at 15:52, Zauber Paracelsus notifications@github.com wrote:

Aye, I've got an example zipped up below for you. Based on what I'm seeing
in my own testing just now, it's a problem with importing links to
sub-pages:

https://mega.co.nz/#!OgFkEZoL!jAtRQmtR-kgJ1yjf00BwuLJNg0qg3vTz4ZrTtHcpk-U


Reply to this email directly or view it on GitHub
#42 (comment).

@leggewie
Copy link
Contributor

leggewie commented Aug 5, 2017

Is this fixed? If so, please close the ticket. Thank you.

@Uradamus
Copy link

Uradamus commented Dec 30, 2017

Zim dirs/pages without spaces in their name seem to get their links imported just fine; this problem arises when spaces are present in the link naming. In the background, Zim replaces spaces with underscores in the names of the dirs and files it generates, but within the Zim files themselves they respect the spaces placed in links and the Zim tree view also shows the dir/page names with the user intended spaces.

So my guess is CherryTree is faithfully importing the dirs/page names as they are found on the file system, and since those with underscores don't match the links that contain spaces instead, CherryTree is just converting the mismatched links into plain text and not bothering to create the appropriate links.

@giuspen
Copy link
Owner

giuspen commented Dec 30, 2017

@uradamos can you make an example zim folder so that I can see, fix the problem and verify the fix?

@Uradamus
Copy link

Here ya go, came across a lot of interesting behavior in both Zim and CherryTree while putting this test case together, so hope it helps.

Example.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants