|
Create a reference directory that the user specifies per the project? Or they specify the main project file, and it creates a subdirectory under that parent directory named '?Resources' (if my Dos memory is correct, ie, if the project file was called 'MyProject.jnk' a subdir would be created called MyProjectResources, with all of the files referenced placed in it.
Make it so that the references are placed in it by your program, so the files would probably be duplicated on the drive somewhere, but it gives you a sane way to copy the project around. Otherwise you risk going mad, methinks.
That would be my initial approach. Take your pick of others.
|
|
|
|
|
Specify a resource (e.g. a file name), defaulting to resources (files) in the same location as the document. Allow for qualification, from the default, by providing a full path (URI) or relative path (to the document). Extra points for allowing a user-chosen default folder/directory (different from the document).
|
|
|
|
|
i decided to copy everything / embed all resources.. after all if one email a word document, the word document is expected to work fine on recipient computer
gotta add a common resource viewer control which show thumbnail, size, and search and replace button
|
|
|
|
|
Yeah, makes sense to me...my suggestion may be a bit "anti-KISS" now-a-days. I started in the era of too few bits, so I'm still fighting a tendency towards ill-advised efficiency. I'm getting better at being wasteful (and more productive), but its a constant down-hill battle
Anyhow, best of luck with your project!
|
|
|
|
|
Another option I've seen in some drafting programs is 'Pack and Go', where the program gives you the option to pull all of the resources together into a directory (which includes the main work file) so you can zip that directory up and send it to anyone. Until you do that, the resource files are located anywhere, including on the network.
|
|
|
|
|
i decided to copy everything / embed all resources.. after all if one email a word document, the word document is expected to work fine on recipient computer
gotta add a common resource viewer control which show thumbnail, size, and search and replace button
|
|
|
|
|
That sounds like Solidworks to me
modified 6-Sep-22 21:01pm.
|
|
|
|
|
Solidworks has it. Autodesk has a similar solution.
|
|
|
|
|
Packing everything together is the right approach. Linking is an optimisation that you probably do not need and it magnifies the complexity.
There is still a lot of work to do. If it is possible to open source your editor(s) could these be created by forking existing open source projects and modifying them?
Good luck on this project, it sounds fun.
|
|
|
|
|
yeah.. I was heading toward approach 3... packing most things by defaults
and, in the case of maps, including an image and a "custom link"
and having a resource list viewer where one can, if one wants, explicitly change the behavior (from embedded to link) and explicitly define the link (hence the user would be aware of dependency, since he created it explicitly)
|
|
|
|
|
I'd advise you to avoid XML "solutions", because they increase the required man-hours exponentially, with no measurable gain.
A few alternatives:
-- If you do it in HTML, you can open the page in a browser and "save as mht", which packages the whole page and its local resources into a single archive that reopens the page in a browser when double-clicked. This has the added advantage that you can (but don't have to) use resources on the Internet, which will be retrieved by the browser when the page is opened (so changes and updates are handled painlessly).
-- Single-sourcing (which is the name of the system you want) in MS Word works with scripts that use IncludeText statements, and is easy enough to implement (there should be plenty of information and examples on the web; if not, just ask).
-- If you've got money to burn, get FrameMaker or MadCap Flare.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
too technical. was not really a programming question!
|
|
|
|
|
Do squirrels watch Nutflix?
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Yes!
The Italian squirrel do so while snacking on Nutella, and the American ones do so while snacking on beer nuts.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
It does appear to be the rodent-ertainment is travelling down.
|
|
|
|
|
Only if a gambling ape is a chipmonk;
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
They Planter themselves on the couch.
But I'm having a hard time imagining a squirrel chilling.
|
|
|
|
|
|
You get an upvote fur that one.
|
|
|
|
|
This stuff is bennevisicial to no-one!
|
|
|
|
|
My dear Griffington,
What kind of Nutflix would you expect, in the Soapbox?
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
Oh sure. Owls like who-lu, tropical animals prefer Amazon, and the insects still stick with the classic antennae.
|
|
|
|
|
And cows prefer K-bull while sheep prefer ewe-tube?
Socialism is the Axe Body Spray of political ideologies: It never does what it claims to do, but people too young to know better keep buying it anyway. (Glenn Reynolds)
|
|
|
|
|
Yikes! Squirrel porn, I'll pass
|
|
|
|
|
OK, it was an obscure word:
Stereotypically mouldy
float F
goes far LONG
FLONG[^]
Quote: In relief printing, a flong is a temporary negative mould made of a forme of set type, in order to cast a metal stereotype (or "stereo") which can be used in a rotary press, or in letterpress printing after the type has been broken down for re-use.
I'm up tomorrow and I'll try to make it a simpler word ... but I liked this one! I guess my mother being a printer helped.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|