Re: [Zim-wiki] Attachments don't move with pages? (Windows)
Hi, I have a similar situation. I've been working on some python scripts to deal with this. I hope I'll have a (quick and dirty) working/workable solution on the weekend or so. I am using Linux, though, and I'll need to make it work on Windows afterwards. If you're not in a hurry I will post the scripts when available. Meanwhile, if would like to exchange some ideas, please email me. Regards, jal ___ Para manter a Wikipedia a funcionar por favor considere fazer a sua doação. Please consider donating to maintain Wikipedia alive. Support Wikipediahttp://wikimediafoundation.org/wiki/Support_Wikipedia/en ___ http://jal.stumbleupon.com http://www.lourenco.ws/about-me On Wed, Nov 7, 2012 at 5:13 AM, hans...@gmail.com wrote: If I have a file attachment link embedded in a page (done via drag and drop, relative links) and I'm then moving pages around in the hierarchy, shouldn't the linked file be moved to the corresponding location along with the page. I've just discovered I've got hundreds of broken links scattered through thousands of pages. 8-( Is there a way to check for and flag these even if I then have to fix them manually? == OT - are there any instructions on getting spellcheck to work on Windows? I've got Python-driven apps set up, but everything's portable so most likely will need batch files to set EnVars, modify the PATH etc. . . ___ 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] Attachments don't move with pages? (Windows)
On Wed, Nov 7, 2012 at 6:13 AM, hans...@gmail.com wrote: If I have a file attachment link embedded in a page (done via drag and drop, relative links) and I'm then moving pages around in the hierarchy, shouldn't the linked file be moved to the corresponding location along with the page. This works as long as the attachment is below the page, or outside the notebook. If it is relative to another level in the notebook, the current behavior is broken. I've just discovered I've got hundreds of broken links scattered through thousands of pages. 8-( Is there a way to check for and flag these even if I then have to fix them manually? Could do with a script to go over all the pages and find broken links. If file names are unique, fixing them automatically is not difficult either. == OT - are there any instructions on getting spellcheck to work on Windows? I've got Python-driven apps set up, but everything's portable so most likely will need batch files to set EnVars, modify the PATH etc. . . If I'm not mistaken there was a discussion on this list last month. Regards, Jaap ___ 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] Attachments don't move with pages? (Windows)
On 11/07/2012 03:02 AM, Jaap Karssenberg wrote: On Wed, Nov 7, 2012 at 6:13 AM, hans...@gmail.com wrote: OT - are there any instructions on getting spellcheck to work on Windows? I've got Python-driven apps set up, but everything's portable so most likely will need batch files to set EnVars, modify the PATH etc. . . If I'm not mistaken there was a discussion on this list last month. I said something about it here https://lists.launchpad.net/zim-wiki/msg01934.html, but basically I blindly followed this https://lists.launchpad.net/zim-wiki/msg01458.html. Later, JP |:::==|--- JP Vossen, CISSP|:::==| http://bashcookbook.com/ My Account, My Opinions |=| http://www.jpsdomain.org/ |=|--- Microsoft Tax = the additional hardware yearly fees for the add-on software required to protect Windows from its own poorly designed and implemented self, while the overhead incidentally flattens Moore's Law. ___ 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] Attachments don't move with pages? (Windows)
On Wed, Nov 7, 2012 at 9:02 AM, Jaap Karssenberg jaap.karssenb...@gmail.com wrote: On Wed, Nov 7, 2012 at 6:13 AM, hans...@gmail.com wrote: If I have a file attachment link embedded in a page (done via drag and drop, relative links) and I'm then moving pages around in the hierarchy, shouldn't the linked file be moved to the corresponding location along with the page. This works as long as the attachment is below the page, or outside the notebook. If it is relative to another level in the notebook, the current behavior is broken. I've just discovered I've got hundreds of broken links scattered through thousands of pages. 8-( Is there a way to check for and flag these even if I then have to fix them manually? Could do with a script to go over all the pages and find broken links. If file names are unique, fixing them automatically is not difficult either. Attached a quick try for a script fixing links to attachments. Will print out all broken file links, can fix automatically if a single match is found on file name. Usage is: python find_broken_links.py /path/to/notebook True|False Where the True or False is for switching between a dry run and the real fix. True means dry run, so nothing will be updated, only printed what can be done. False means pages will be modified. PLEASE make a backup of the whole notebook before running this. If it works for you, I could integrate it as a tool in the GUI. Regards, Jaap find_broken_links.py Description: Binary data ___ 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