extract image information and insert into text
Posted: 2014-05-11 04:02:39
Hello,
in my current workflow (writing in Scrivener with MultiMarkdown formatting; exporting as .fodt to keep all the style information intact; importing into Nisus Writer Pro), I encountered a problem with images.
For MMD, the image info is included in the source file like this:
![image caption text][link_to_image_info]
and then later in the file
[link_to_image_info]: /Pictures/image.png width=600px
In Nisus Writer Pro, the images are not included; instead, there's a floating frame with just the caption text.
For now, I'm manually replacing each of these frames with the correct image and caption text, then switch the image placement to "Inline with text", apply a style to the image, apply another style to the caption.
It would be great to have a Macro that would automate this; here's what I imagine (without knowing if it's possible):
I could encode the image information like IMG[image caption text][/Pictures/image.png] or so (so MMD won't mess it up).
The macro could then parse the text for this format, load and place the referenced image as "Inline with text" with the "Image" style applied, and the paste the caption underneath, with the "Caption" style applied...
So I'd be happy to know if this is possible, and would be thankful for any pointers in the good direction!
Jan
in my current workflow (writing in Scrivener with MultiMarkdown formatting; exporting as .fodt to keep all the style information intact; importing into Nisus Writer Pro), I encountered a problem with images.
For MMD, the image info is included in the source file like this:
![image caption text][link_to_image_info]
and then later in the file
[link_to_image_info]: /Pictures/image.png width=600px
In Nisus Writer Pro, the images are not included; instead, there's a floating frame with just the caption text.
For now, I'm manually replacing each of these frames with the correct image and caption text, then switch the image placement to "Inline with text", apply a style to the image, apply another style to the caption.
It would be great to have a Macro that would automate this; here's what I imagine (without knowing if it's possible):
I could encode the image information like IMG[image caption text][/Pictures/image.png] or so (so MMD won't mess it up).
The macro could then parse the text for this format, load and place the referenced image as "Inline with text" with the "Image" style applied, and the paste the caption underneath, with the "Caption" style applied...
So I'd be happy to know if this is possible, and would be thankful for any pointers in the good direction!

Jan