html_pp: macro collection for the free editor NoteTab (mostly to handle images)
html_pp.clb is a clipboard-file for the editor NoteTab (freeware in some versions).
If you do not have installed NoteTab yet, this Clipboard will not be of use for you.
This editor is capable of a real lot of things, so you should download it anyway.
Here you can see some samples of what you can do with the clips in html_pp.
Clip "Image as table":
Insert an image (as link, if you want) and show an imagetext under the image. This is wrapped in a table, so the imagetext will be justified to the borders of the picture. Imagetext can have it's own font.
This clip inserts a table in your html-code you edit with NoteTab.
The table has one big field with the image and one smaller field below with some text explaining the image.
This imagetext is justified to the left and right border of the image.
You can give a width for the image, but this will not change the image-file, it will only set up
a size-info in the image-tag, so the browser will show the image in apropriate width.
The table has some more fields: a row atop and below which you can specify in its heigth and a column
on the left or right side which you can specify in its width, so you can leave a spacing
between your long text and your images with imagetext.
The table with image and imagetext can be aligned left or right on the page. Aligning on the right
only looks good, if you justified your whole text with a <div align=justify>...</div> tag.
The image can be a link to another html-page (or a bigger version of the image), if you want.
You can specify a target for this link, so you can open this link in a new browser window
by specifying "_blank" as target.
The link will be inserted as a relative path to your document.
On the second sheet of the clip you can set the spacing between the table and your text
and the font of the imagetext.
All these parameters are permanent, so they will not get lost, if you change the clipboard
and then come back to html_pp. (But if you close NoteTab and open it again, you will be faced
my default values.)
Like "Image as table", but this one also converts the selected imagefile to a jpg (or other format) in the path of your document, makes a thumbnail there and wraps the image in an html-page. Uses the Freeware IrfanView to convert and copy images, so you have to install it. Look at the first line of the clip to ensure the clip has the right path where you installed IrfanView.
This one looks like the same as "Image as table" on the first sight, but in fact it does much more:
This egghead is mine. Picture is inserted with "thumb&wrap" clip in NoteTab. If you click on the small image, the html-wrap of a bigger image will open.
It converts the given image file to jpg (or another format you specify) and saves this new image
in the folder of your html-code. It also generates a real thumbnail, so you will find two images in your
folder: image_big.jpg and image_small.jpg. You can specify width and/or height of both images,
if you omit one parameter, it will be calculated to keep the right proportions.
If you omit both parameters for an image, it will be left in original size (but converted and copied anyway).
The bigger image will be wrapped in html-code (only a few simple lines), which can contain the imagetext
(in normal font now). The thumbnail is a link to this html-wrap.
Another image (sweet home palatine) , aligned to the right this time.
This clip uses the freeware image viewer IrfanView to convert, resize and copy the image.
You can get IrfanView from its homepage: www.irfanview.com
(and you can pay a small amount, if you enjoy it!)
To use this clip, you need to install IrfanView on your computer and tell the clip
where it can find it. This is done by having a look at the first code-line of the clip,
where you can read ^!Set %IrfanView%="C:\Programme\IrfanView\i_view32.exe" or something
similar. Change the path to where you installed IrfanView. (Maybe you do not need to change the path,
on computers running windows(c) in german language, this should be the apropriate default path.)
The clip relies on the existence of Irfanview and on its capabilities.
If you have to convert images to (or from) a more exotic format, you should download
the right plugin for IrfanView, so you can give it this power. Read the help of IrfanView to find out
which formats it can handle.
The way IrfanView will handle image-formats (compression rate of jpg or png and so)
you has to set up in IrfanView itself, so you have to start it and go to the "SaveAs"-menu
(or so) to make your selections. Later on the viewer is called with command-line options
and will not start a GUI (will not be visible). Depending on your machine and your images,
you will realize a slowdown for a few seconds per image: this is IrfanView opening, resampling
and converting your images in the background.
Clip "Opera Bookmarks":
Asks for the location of an opera bookmark file
(filename.adr), reads the links there and makes
an html file, which you can make your start page
(I prefer) and you can import in Netscape as
bookmark file. You can store this html file as
Netscape's bookmark file directly.
Netscape regognizes this file
as bookmark file, but then it make some changes.
New: The locations are both stored permanently.
Clip "-> replace"
Performs a multi-replace in all open documents.
Each text segment to be replaced is a line
in a multiline input field.
Each text segment to replace with is a line
in a second input field.
The text lines are stored permanently.
Clip "<- replace"
Same as above, but in the other direction.
I hope these clips can help you. If so, I'd like to get a short email to html_pp(at)peter-lenhard.de.
(If you feel you have to complain: you can mail me too.)