#!/bin/bash

export TEXTDOMAIN=precorder
export OUTPUT_CHARSET=UTF-8

export PS_HELP="
<window title=\"pSnip Help\" icon-name=\"psnip\" window-position=\"3\" resizable=\"false\">
	<vbox  height-request=\"500\" width-request=\"700\">
		<vbox margin=\"10\" scrollable=\"true\">
			<text use-markup=\"true\"><label>\"<b><span font='"'sans'"' size='"'xx-large'"'>pSnip</span></b>\"</label></text>
			<text><label>\"\"</label></text>
			<text use-markup=\"true\"><label>\"<span font='"'sans'"' size='"'medium'"'>$(gettext 'The pSnip application is a simple graphical interface for the grim, slurp and ffmpeg utilities which capture and process desktop screenshots in the Wayland environment.

The name of the pSnip screenshot file is auto-generated or you can enter a preferred filename in the Name entry box. Alternatively, the Date checkbox option (if enabled) will assign the current date to the screenshot name.

By default, the screenshot files are saved in the /root/Pictures/Screenshots directory, but you can use the Folder selector option to define an alternate save directory. The companion Filemanager option provides convenient access to the save directory for management of screen captures.

Screenshots are available in the PNG, JPG, BMP, TIF, GIF and WEBM formats. The PNG and TIFF formats utilize lossless file compression which indicates no image quality is lost when data is compressed and saved. BMP images are saved with no compression and this format provides images of large size with high quality, though this legacy format is used infrequently in the modern era. The venerable TIFF format is still used by graphic artists and photographers, and has great utility in the publishing industry.

The processing algorithms of the popular JPG and WEBP formats are very efficient and have the capacity to produce very small files for web pages or email. By default, pSnip captures JPG images at the recommended quality setting of q85 and WEBP images at q75 -- for a balanced combination of good visual image quality and small portable file size.

Fullscreen or selective region (ROI) screenshots are supported and the companion Delay option provides time for final placement of the cursor and desktop windows prior to the screen capture. An optional coundown timer is available to notify the user of the impending screen capture.

The Scale option is useful for resizing the screenshot as a percentage of the original capture size (25-150%). Upscaling (magnifying) a sreenshot may be helpful for the visually impaired, while downscaling may be useful for converting a large image to a smaller forum-compatible size.

A convenient Audio Alert option requires the aplay command-line utility to generate a confirmation beep when the screenshot is acquired. The sound is produced by sound-card output rather than by the built-in PC motherboard speaker. Consequently, if this option is enabled, an audible beep depends on the current volume control setting for the audio card.

Post-capture actions include None, Editor, Viewer and Clipboard. If selected the Editor or Viewer options will automatically open the captured image in the default image editor or default image viewer. The Editor option supports post-capture image adjustments such as cropping, resizing, annotation, isometric transformation and pixel editing. The Clipboard option (if available) requires the xclip or wl-copy command-line utilities to copy the captured image to the system clipboard where it is available for applications that support clipboard-pasting of bitmap images.')</span>\"</label></text>
		</vbox>
	</vbox>
</window>"
gtkdialog -p PS_HELP
unset PS_HELP
