I am running a zope site for the Epilepsy Surgery Dept data here at the U of C, managing patient information: EEGs, MRIs, that kind of things. One of our users is a veteran neuro-surgeon from Soviet Georgia who is providing, among other things, the seizure diagnosis and summaries. He is used to working in Microsoft Word and wanted the ability to add bold, emphasis etc... I explained that web browsers didn't support that kind of stuff in the same way that MS Word did, but that he could use structured text. To keep is simple, I only showed him only how to use bold and emphasis. I wrote on a piece of paper to demonstrate: Bold: **This sentence is bold** Emphasis: *This sentence is emphasized* He balked, saying this would take him too long, and I retorted, "no this is easy, just an extra character here and there". He said "This will make my 3 page patient summaries 6 pages long". It took about 15 minutes before I realized that he thought he had to type the whole damned sentence above every time he wanted to make something bold, ie, to make the phase "partial seizures" bold in the sentence below, he would have to type: The patient presented with a **This sentence is bold**partial seizure. Well, once that was cleared up he appeared satisfied. He came back this morning with several summaries completed, filled with proper structured text markup. He had gone home the night before and written it in Word, and came in the morning and pasted it into the web form. That gave me a particular sense of satisfaction: writing structured text in Word. This morning I printed up plenty of rich examples for him -- tables, lists, links, the works. We'll see where he goes. John Hunter
John Hunter wrote:
This morning I printed up plenty of rich examples for him -- tables, lists, links, the works. We'll see where he goes.
John Hunter
Fantastic! Thanks for sharing that, it was neat to read. -- Matt Kromer Zope Corporation http://www.zope.com/
John Hunter wrote:
This morning I printed up plenty of rich examples for him -- tables, lists, links, the works. We'll see where he goes.
could you please make those examples public in the stx wiki? thanks in advance. ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299
"hans" == hans <hans@beehive.de> writes:
hans> could you please make those examples public in the stx wiki? hans> thanks in advance. Glad too -- can you give me the URL. I've tried: http://www.zope.org/Members/jim/StructuredTextWiki/FrontPage But this doesn't appear to be the site you mean. At least it wasn't obvious to me where/how to add anything to it (change disabled on the FrontPage). Cheers, John
Nice, I've some sort of the same case here. Radiologists want to put there casus archive on the intranet. I've proposed to use stx and they are willing to give it a try and are enthousiastic. I modified an STX component, because I need to added some features and I had to change the stx rendering. I've some questions: I need to allow them to put the width and height of the image on the stx form to show the images smaller. Did somebody already programmed this? Further, a lot of images will be used and I rather would not like to put them in Zope. Now I've hardcode the link to the image directory in the HWIClass. I've difficulties to pass a property (so that the url is changable) to the HWIClass... can somebody help me? I can't let the users enter the url directly in the stx, since they don't like the writing of the url and because it's big and annoying if you've to do it several times. Thanks in advance, Tom. ----- Original Message ----- From: "hans" <hans@beehive.de> To: "John Hunter" <jdhunter@ace.bsd.uchicago.edu> Cc: "Zope Users" <zope@zope.org> Sent: Thursday, May 23, 2002 6:37 PM Subject: Re: [Zope] a win for structured text
John Hunter wrote:
This morning I printed up plenty of rich examples for him -- tables, lists, links, the works. We'll see where he goes.
could you please make those examples public in the stx wiki? thanks in advance. ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Fri, May 24, 2002 at 03:05:24PM +0200, Tom Deprez wrote:
I need to allow them to put the width and height of the image on the stx form to show the images smaller. Did somebody already programmed this?
Please don't, unless all your users will be on a LAN with the image server. If these are the usual multi-million-pixel lossless-compression radiology images, they'll kill your bandwidth and render painfully slowly. See if you can modify STX to generate image tags similar to the following: <img src="path/to/object?display=small"> and then use Ron Bickers' Photo product that can automatically generate thumbnails of various sizes. It looks like you can use the Photo product with images stored on the filesystem with ExtImage, too. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
I need to allow them to put the width and height of the image on the stx form to show the images smaller. Did somebody already programmed this?
Please don't, unless all your users will be on a LAN with the image server.
This would be the case. It's a 100 MBit LAN. The site will only be accessible at the department itself. Altough I get your point.
If these are the usual multi-million-pixel lossless-compression radiology images, they'll kill your bandwidth and render painfully slowly. See if you can modify STX to generate image tags similar to the following:
<img src="path/to/object?display=small">
and then use Ron Bickers' Photo product that can automatically generate thumbnails of various sizes. It looks like you can use the Photo product with images stored on the filesystem with ExtImage, too.
I've to look at this, but the problem is that not all the images have the same size... some are really big and other less (depending on the resolution of the radiographic image) and to make the document still readable and the images still visible, the radiologist still has to give an image width and height Tom.
-- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
On Fri, May 24, 2002 at 03:32:47PM +0200, Tom Deprez wrote:
I've to look at this, but the problem is that not all the images have the same size... some are really big and other less (depending on the resolution of the radiographic image) and to make the document still readable and the images still visible, the radiologist still has to give an image width and height
use ImageMagick's mogrify command and its -geometry argument, e.g.: $ cp image.jpeg thumbnail.jpeg $ mogrify -format jpeg -quality 75 -geometry "150>x150>" thumbnail.jpeg this will produce a thumbnail in lower quality and which will be at most 150x150 pixels. ImageMagick is really good at that, see http://anocef.unice.fr/atlasneuro/ which was created this way (static site entirely generated from a well formatted text document and a bunch of high quality pictures) NB : this site was made with Pr. J.M. Brucher from your own university ;-) bye, Jerome Alet
On Fri, May 24, 2002 at 03:32:47PM +0200, Tom Deprez wrote:
I've to look at this, but the problem is that not all the images have
the
same size... some are really big and other less (depending on the resolution of the radiographic image) and to make the document still readable and the images still visible, the radiologist still has to give an image width and height
use ImageMagick's mogrify command and its -geometry argument, e.g.:
$ cp image.jpeg thumbnail.jpeg $ mogrify -format jpeg -quality 75 -geometry "150>x150>" thumbnail.jpeg
this will produce a thumbnail in lower quality and which will be at most 150x150 pixels. ImageMagick is really good at that, see
http://anocef.unice.fr/atlasneuro/
which was created this way (static site entirely generated from a well formatted text document and a bunch of high quality pictures)
Not all images can have the same dimension... some are bigger in width, others in height that depends on which fosforplate the radiographer used during examinitation etc.
NB : this site was made with Pr. J.M. Brucher from your own university ;-)
Nah, not the same university :-). Don't forget that Belgium has had its language fights. During one of these fights the university split into a french and dutch part.... Both universities KUL & UCL are completely seperate. I'm still trying to convince our hospital to jump on Zope... Nice to see however. Regards, Tom. ps. I don't care about these language politics, but some still does.
On Fri, May 24, 2002 at 03:57:35PM +0200, Tom Deprez wrote:
On Fri, May 24, 2002 at 03:32:47PM +0200, Tom Deprez wrote:
Not all images can have the same dimension... some are bigger in width, others in height that depends on which fosforplate the radiographer used during examinitation etc.
Same for us here, not all were even oriented the same, mogrify takes care of that (or else I misunderstand what you want) IIRC mogrify can also resize according to a percentage so you can produce thumbnails which dimensions will depend on the dimensions of the original images.
NB : this site was made with Pr. J.M. Brucher from your own university ;-)
Nah, not the same university :-). Don't forget that Belgium has had its language fights.
Sorry ! I thought that UCL and KUL were different translations of the same entity... bye, Jerome (who apparently doesn't care to look stupid) Alet
Sorry ! I thought that UCL and KUL were different translations of the same entity...
Well, it such a specific strangeness like we've more in Belgium. They mean the same thing and there base is the same, but at one time they each went another way Tom.
Hi Jerome, Did you made a certain interface to do it automatically? ie making of thumbnails? Thanks in advance Regards, Tom. ----- Original Message ----- From: "Jerome Alet" <alet@librelogiciel.com> To: "Tom Deprez" <tom.deprez@uz.kuleuven.ac.be> Cc: <zope@zope.org> Sent: Friday, May 24, 2002 3:54 PM Subject: Re: [Zope] a win for structured text
On Fri, May 24, 2002 at 03:32:47PM +0200, Tom Deprez wrote:
I've to look at this, but the problem is that not all the images have
the
same size... some are really big and other less (depending on the resolution of the radiographic image) and to make the document still readable and the images still visible, the radiologist still has to give an image width and height
use ImageMagick's mogrify command and its -geometry argument, e.g.:
$ cp image.jpeg thumbnail.jpeg $ mogrify -format jpeg -quality 75 -geometry "150>x150>" thumbnail.jpeg
this will produce a thumbnail in lower quality and which will be at most 150x150 pixels. ImageMagick is really good at that, see
http://anocef.unice.fr/atlasneuro/
which was created this way (static site entirely generated from a well formatted text document and a bunch of high quality pictures)
NB : this site was made with Pr. J.M. Brucher from your own university ;-)
bye,
Jerome Alet
On Fri, May 24, 2002 at 06:42:25PM +0200, Tom Deprez wrote:
Did you made a certain interface to do it automatically? ie making of thumbnails?
of course. get gen3img at : http://cortex.unice.fr/~jerome/gen3img/ it's two years old now and I haven't used it for a long time, but it should solve your problems easily, here are the available command line options : You can get gen3img's help typing: gen3img --help but here are the available options: -c | --comment com embed the comment in all generated graphic files. -d | --destination dir put all files in the destination directory which is created if it doesn't exist. -f | --format ext save images to format ext (default is jpeg). -g | --geometry geom generate only the specified sizes with the specified geometry, e.g.: "s640>x480>:m800x600:n" will generate the small images in 640x480 (at most), the medium sized ones in 800x600 and the normal ones with their default dimensions. default dimensions are: small : 150>x150> medium : 300>x300> normal : actual dimensions each geom parameter after the size letter must have a format accepted by ImageMagick's convert command (man ImageMagick will help). Don't forget to include the geom parameter between double quotes if you plan to use either the > or < characters. -h | --help displays this help screen. -q | --quality q percent quality of saved images e.g.: s50:m75:n100 is the default, meaning use 50 for small size, 75 for midsize, and 100 for normal this may only apply to certain file formats. -r | --recurse recurse subdirectories. -s | --silent do not display anything except error messages. -v | --version displays gen3img's version number. hth. Jerome Alet
participants (6)
-
hans -
Jerome Alet -
John Hunter -
Matthew T. Kromer -
Mike Renfro -
Tom Deprez