html2slideshow 2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/bin/html2slideshow +27 -0
  3. data/doc/changes.txt +162 -0
  4. data/doc/license.txt +674 -0
  5. data/lib/LANG +1 -0
  6. data/lib/about.rb +57 -0
  7. data/lib/argparser.rb +143 -0
  8. data/lib/completable.rb +157 -0
  9. data/lib/configurator.rb +155 -0
  10. data/lib/copyright.txt +22 -0
  11. data/lib/extstring.rb +75 -0
  12. data/lib/file_checking.rb +153 -0
  13. data/lib/html2slideshow.cfg +22 -0
  14. data/lib/html2slideshow.rb +132 -0
  15. data/lib/htmlbuilder.rb +267 -0
  16. data/lib/icons/failure.png +0 -0
  17. data/lib/icons/howto.png +0 -0
  18. data/lib/icons/logo.png +0 -0
  19. data/lib/icons/message.png +0 -0
  20. data/lib/icons/options.png +0 -0
  21. data/lib/icons/question.png +0 -0
  22. data/lib/icons/success.png +0 -0
  23. data/lib/image.rb +62 -0
  24. data/lib/list_fields.rb +34 -0
  25. data/lib/log.conf +60 -0
  26. data/lib/logging.rb +194 -0
  27. data/lib/slideshow_css.rb +248 -0
  28. data/lib/slideshow_images/downCursor.png +0 -0
  29. data/lib/slideshow_images/leftArrow.png +0 -0
  30. data/lib/slideshow_images/olive.png +0 -0
  31. data/lib/slideshow_images/pause.png +0 -0
  32. data/lib/slideshow_images/rightArrow.png +0 -0
  33. data/lib/slideshow_images/sizeMedium.png +0 -0
  34. data/lib/slideshow_images/sizeNormal.png +0 -0
  35. data/lib/slideshow_images/sizeSmall.png +0 -0
  36. data/lib/slideshow_images/start.png +0 -0
  37. data/lib/slideshow_images/stop.png +0 -0
  38. data/lib/slideshow_images/toggle.png +0 -0
  39. data/lib/slideshow_images/upCursor.png +0 -0
  40. data/lib/slideshow_js.rb +390 -0
  41. data/lib/slideshow_template.rb +194 -0
  42. data/lib/sourcefile.rb +191 -0
  43. data/lib/translating.rb +90 -0
  44. data/lib/translations +354 -0
  45. metadata +86 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: '078235545ede2661d22ed905d4e49d383b5a4309e86430d81f155e51245c9321'
4
+ data.tar.gz: 1246ee3abded68efaf7ed4f88f6f2099f4bc1df6c55074fa2ccc377ec0d6e1ae
5
+ SHA512:
6
+ metadata.gz: 8efb27640abb486991cbdb5c9aebdc45dd2156ef84ae9f258a40a68e46d02f4632a4119aedaf3ee9db5f9885f0a3f1d772cbc9a80026cf83568159a7db0da64e
7
+ data.tar.gz: e12104761c8246e2e22319273e4e07117d47811d3757d21600c10c262fc141df5cec9b09b41c953f994f248b30e58ace92183b69370ddbbf6afca9547019464c
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+ #encoding: UTF-8
3
+ =begin
4
+ /***************************************************************************
5
+ * ©2011-2017, Michael Uplawski <michael.uplawski@uplawski.eu> *
6
+ * *
7
+ * This program is free software; you can redistribute it and/or modify *
8
+ * it under the terms of the GNU General Public License as published by *
9
+ * the Free Software Foundation; either version 3 of the License, or *
10
+ * (at your option) any later version. *
11
+ * *
12
+ * This program is distributed in the hope that it will be useful, *
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15
+ * GNU General Public License for more details. *
16
+ * *
17
+ * You should have received a copy of the GNU General Public License *
18
+ * along with this program; if not, write to the *
19
+ * Free Software Foundation, Inc., *
20
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21
+ ***************************************************************************/
22
+ =end
23
+
24
+ require_relative '../lib/html2slideshow'
25
+
26
+ SlideShowGenerator.instance().run()
27
+
data/doc/changes.txt ADDED
@@ -0,0 +1,162 @@
1
+ ****** Html2Slideshow ******
2
+ ***** History of changes *****
3
+ Html2Slideshow, version 0.8
4
+ Changed
5
+ * The language setting in the environment has priority over the contents
6
+ of the file 'LANG' and will, when present, set the language for the
7
+ program-output. Only when there is no such setting the file 'LANG'
8
+ will be considered.
9
+
10
+ Html2Slideshow, version 0.75
11
+
12
+ Cosmetics
13
+ * The tab-card labels are now of equal width and their content is
14
+ shortened to avoid wrapping.
15
+ * The HOWTO contains new screen-shots. A note on how slide-show files
16
+ are named, has been extracted and rephrased for clarification.
17
+ Bugfixes
18
+ * In the generated HTML-output, the tooltips (title-attribute) of the
19
+ scaling-buttons had not been translated.
20
+ * A translation error has been corrected for the french locale.
21
+ * The logging-option did not work right, when activated in the GUI.
22
+
23
+ Html2Slideshow, version 0.74
24
+
25
+ Bugfix
26
+ * Reading file-names from a local directory including sub-directories
27
+ and when an dditional filter-pattern had been given, no images were
28
+ found.
29
+
30
+ Html2Slideshow, version 0.73
31
+
32
+ File filter
33
+ * On the tab-card for the generator-options, when files shall be read
34
+ from a directory, you can now also specify a file-pattern to match
35
+ image-files against.
36
+
37
+ Html2Slideshow, version 0.72
38
+
39
+ Bugs fixed
40
+ * The choice of image formats was once again not honored by the
41
+ program
42
+
43
+ Html2Slideshow, version 0.71
44
+
45
+ Bugs fixed
46
+ * The three new scaling buttons in the slide show had not been
47
+ hidden, when the other controls were toggled.
48
+ * The JavaScript-code in version 0.7 had not been correctly updated.
49
+ Names of image-files had not been replaced during the automatic
50
+ slide show.
51
+ * File names which are too long to be completely displayed, are now
52
+ shortened to 20 characters but the complete file name is always
53
+ visible as hover text.
54
+
55
+ Html2Slideshow, version 0.7
56
+
57
+ Persistent configuration
58
+ * A flawless configuration will be written to a configuration-file
59
+ html2slideshow.cfg when the program is quit.
60
+ * The same configuration is read from the file upon the next session.
61
+ Merging image sources
62
+ * If images are taken from HTML-pages, a user can now choose one
63
+ single slide show as target for the generator-output instead of one
64
+ slide show per page.
65
+ * The title of the slide show is either the basename of the source-
66
+ directory or a user-provided name.
67
+ Slide show options
68
+ * Options which mainly influence the way, that the JavaScript slide
69
+ shows are presented and controlled, will now be set in the new tab-
70
+ card Slide show options
71
+ * The former Special options have been renamed Generator options
72
+ * The first new option set contains two alternative numerical values,
73
+ to which images can be scaled in height.
74
+ * The generated slide show will have three new buttons, to scale any
75
+ image to either its normal, a medium or a small size, based on the
76
+ pre-set height-values.
77
+ Howto
78
+ * The Howto for the graphical user interface has been updated.
79
+ * Most screenshots have been replaced by small thumbnails, bigger
80
+ versions open in a popup-window upon click or in the same window,
81
+ when JavaScript has been disabled.
82
+
83
+ Html2Slideshow, version 0.6
84
+
85
+ Gtk2/Linux
86
+ * Replaced the Shoes-toolkit by Gtk2. Unfortunately, using Gtk2 under
87
+ Windows appears to be complicated. I am afraid, that for the time
88
+ being, Windows-users must use the console-program or continue to
89
+ use the Shoes-version, which will still be available from the
90
+ shoebox. Until I have found a way to facilitate the installation in
91
+ the Microsoft-environment, this should be okay.
92
+ All in all, the dialog is simpler and more ergonomic.
93
+ Apart from the new surface, version 0.6 does not bring any new
94
+ functions or bug-fixes.
95
+
96
+ Html2Slideshow, version 0.5+
97
+
98
+ In the queue
99
+ * For the graphical user interface I am replacing the Shoes- toolkit
100
+ by the GTK2-library, which offers more ease of use and integrates
101
+ better with Windows as well as most of the working environments
102
+ under Linux.
103
+ Here are new screenshots of the development version:
104
+ The_main_tab,
105
+ additional_options,
106
+ howto-tab_in_french_locale.
107
+
108
+ Html2Slideshow, version 0.5
109
+
110
+ HTML-output
111
+ * The control-elements in the generated slide shows have been re-
112
+ arranged. Pertinently styled <span>-tags simmulate HTML-buttons.
113
+ * The block of control-elements can be removed to provide more space
114
+ for bigger images. Only the toggle-button, serving the purpose,
115
+ will remain. Manual navigation requires that it becomes visible
116
+ again, but the automatic slide show will continue to run.
117
+ * The file-name of the current image will be at display again, below
118
+ the block of control-elements. I had de-activated this text-label,
119
+ but in the current form it appears to be useful. File-names must
120
+ not be too long, though.
121
+ Main-dialog
122
+ * An option to search for image-files in sub-directories is
123
+ accessible in the main-dialog. It is de-activated, when HTML-files
124
+ shall be scanned, instead. This means, that only one slide show can
125
+ display images from the chosen source-folder as well as all its
126
+ sub-folders and their sub-folders, too.
127
+ The option is activated by a click on a check-box or the keyboard-
128
+ shorcut Alt+r (recursive).
129
+
130
+ Html2Slideshow, version 0.4
131
+
132
+ Bugs fixed
133
+ * The user's choice of image formats had been ignored in v. 0.3.
134
+ Instead, any image of one of the supported formats (png, gif, jpeg,
135
+ jp2) had been integrated in the generated slide shows.
136
+ Changes in generated HTML/JavaScript
137
+ * I have re-arranged the controls on the left side of the slide show
138
+ page, so that those to stop, start and pause the automatic slide
139
+ show are easier to discern from those for manual navigation.
140
+ Other changes
141
+ * Yet another warning will be displayed, when a user deselects the
142
+ last checked image format in the options-dialog, i.e., when none
143
+ remain.
144
+ In the queue
145
+ * Already implemented for v. 05+: In the generated slide show, the
146
+ control elements on the left of the page can be toggled to make
147
+ place for bigger images.
148
+ * An option shall be offered to display the images scaled to a fixed
149
+ maximum size, as set in the configuration-dialog.
150
+ * There will be an option to scan sub directories, too, when file
151
+ names are read from hard disk.
152
+ * The current configuration will be persisted each time into a file
153
+ on the hard disk. This means, that a source directory, the choice
154
+ of image formats, possibly display-sizes and the logging-option
155
+ shall be re-used in the next session, should the user not alter any
156
+ of these settings.
157
+ * I want to implement my own color-chooser in Ruby and Shoes. This
158
+ may be the least probably implemented feature, but it would allow a
159
+ user to define colors for backgrounds, text and borders in the
160
+ generator-output (it would allow me to learn stuff, too).
161
+ ===============================================================================
162
+ 2007-2012 Michael Uplawski <michael.uplawski@uplawski.eu>