Commit graph

3187 commits

Author SHA1 Message Date
Bill Kendrick
98b5be3e3b Doc'ing Pere's Catalan l10n update 2020-08-17 19:58:31 -07:00
Bill Kendrick
b60b2ff819 Doc'ing Shin-ichi's recent contribs
libimagequant < 2.8.0 support, and Japanese l10n update
2020-08-17 19:57:26 -07:00
Pere Pujal i Carabantes
726a6a8254 Updating catalan. 2020-08-17 22:46:55 +02:00
dolphin6k
921839cec4 Updated Japanese translation 2020-08-17 20:29:59 +09:00
dolphin6k
a2822142e6 Ooops! Mistook the logic for using result from liq_quantize_image() 2020-08-17 17:29:00 +09:00
dolphin6k
bfaca2c2cf Compile on libimagequant older than version 2.8.0 2020-08-17 17:20:05 +09:00
Bill Kendrick
d248c61498 Galician & Icelandic updates
After new corner vs center Shapes feature.
2020-08-16 13:54:52 -07:00
Bill Kendrick
0a853b280c "Eraser" tool now draws smoothly connected strokes 2020-08-16 12:31:53 -07:00
Bill Kendrick
a79a76f4c3 New, smaller sizes available in "Eraser" tool
(h/t Jackson Bray for the suggestion)

Also, slight improvements to how circular eraser size calculations
are handled, to allow for radius down to ERASER_MIN of 5.
2020-08-16 12:15:55 -07:00
dolphin6k
31fa1af9a5 Get export directory for Windows 2020-08-16 17:00:58 +09:00
Bill Kendrick
bbf795209d POT/PO update after shape-from-corner feature 2020-08-15 16:43:02 -07:00
Bill Kendrick
d2d9b98291 Wrapping up "shapes from corner" option
Works well, or at least well enough, for our current batch of
shapes.
2020-08-15 16:20:51 -07:00
Bill Kendrick
f734d21fa4 Shapes from corner getting closer
Circle & ellipse working well.  Square and rectangle not, yet.
2020-08-15 15:08:19 -07:00
Bill Kendrick
c89daa1b37 Starting work to sort out corner-based shapes
Need to sleep on it and figure out the math.
2020-08-15 01:25:00 -07:00
Bill Kendrick
1bf15f2d27 Rename shape_*_x/y variables
Variables for pointer positions while drawing a shape were
center-centric ("shape_ctr_x/y" and "shape_outer_x/y").
Renamed them to be more general.
2020-08-15 00:58:44 -07:00
Bill Kendrick
2159f8616b WIP: Shape controls -- center vs corner
Adding control buttons to the Shapes tool, allowing for shapes
to be drawn from the center (as before) or from a corner
(more like other paint packages).  The controls do nothing
at this time, but are visible and can be clicked.  This is a
work in progress.

The controls may be removed using a configuration option.
2020-08-15 00:55:31 -07:00
Bill Kendrick
d5b020520d Shoe print brush 2020-08-14 23:51:49 -07:00
Bill Kendrick
59b358ff2f Paw prints brush 2020-08-14 22:45:32 -07:00
Bill Kendrick
400458931c Human footprints brush 2020-08-14 22:27:22 -07:00
Mark Kim
850b65ba14 Update macOS build instructions
- Updated to include instructions on how to build libimagequant from
  source.
- Removed backward compatibility build instructions (it's no longer
  possible)
2020-08-02 10:05:46 -04:00
Bill Kendrick
08b33d6d91 Icelandic translation update
h/t Sveinn í Felli
2020-07-31 21:44:48 -07:00
Bill Kendrick
f1f52da42d Galician translation update
h/t Miguel Bouzada
2020-07-30 23:39:29 -07:00
Bill Kendrick
c41395c091 Basque translation update
h/t Alexander Gabilondo
2020-07-30 23:34:28 -07:00
Bill Kendrick
5b55f7f2e3 Santali (Ol Chiki) update
Santali (Ol Chiki) translation update from new contributor
Prasanta Hembram.
2020-07-30 23:27:28 -07:00
Bill Kendrick
04d5ab3aeb Update POT & PO again (export feature done) 2020-07-29 23:01:55 -07:00
Bill Kendrick
c13c543cfe Wrap up GIF export; support speed
Different speed settings in slideshow dialog affect the speed
of the exported GIF.
2020-07-29 22:09:10 -07:00
Bill Kendrick
63b5aa15d6 Sub-section links w/n README's Table of Contents 2020-07-27 23:41:00 -07:00
Bill Kendrick
dfdf720895 Documenting Export & GIF Export in README 2020-07-27 23:28:41 -07:00
Bill Kendrick
cbb56c4041 Ran English HTML docs through HTML Tidy
See "RELEASE.txt" for the invocation.  Mended a few things prior
to final run of `tidy`, based on HTML Tidy's output.

Updated any affected TXT files via Makefile.
2020-07-27 23:01:06 -07:00
Bill Kendrick
b93317efae Clean up RELEASE.txt; adding 'tidy' instructions
Planning to run 'tidy' on the HTML doc files.  Documenting the
arguments I'm providing to 'tidy', for future reference,
within the RELEASE.txt file.

Also, cleaned up and improved RELEASE.txt.
2020-07-27 22:38:06 -07:00
Bill Kendrick
8a5bcb3fe5 README.html - Mend some HTML syntax issues
Wrap attributes in quotes, don't store lists within <p>...</p>, etc.
2020-07-27 22:33:38 -07:00
Bill Kendrick
513498ada7 OPTIONS.html - close dangling <li>s 2020-07-27 22:02:05 -07:00
Bill Kendrick
a07c5b5917 FAQ.html - close dangling <li>s 2020-07-27 21:59:11 -07:00
Bill Kendrick
c1c23558cc ADVANCED-STAMPS-HOWTO.html - close dangling <li>s 2020-07-27 21:56:21 -07:00
Bill Kendrick
e28ab7938f README.html - close dangling <li> tags 2020-07-27 21:55:20 -07:00
Bill Kendrick
43edf9fe3e Animated GIF export basics working
Tux Paint can export an animated GIF to the export directory
(e.g., ~/Pictures/TuxPaint) from the Open->Slideshow dialog.

To do -- GIF's animated speed should be based on speed slider
in Slideshow dialog.

To do -- Document this new feature (and single image (PNG) export)
in the README documentation.
2020-07-27 00:29:53 -07:00
Bill Kendrick
4ba4c11911 Properly handling getenv() returning "" not NULL
i18n code was checking for local-related environment variables
(e.g., "getenv("LANGUAGE")") coming back as a NULL if unset.

However, on my laptop, under Kubuntu 20.04 with GLIBC 2.31, a
"LANGUAGE" env. var. is set, but it's blank.

Tux Paint failed to attempt any fallback (e.g., checking "LANG")
in that situation, which was causing the description text corruption
that was corrected in a previous commit.

That commit also mistakenly suggested that the issue might've been a
difference with GCC versions, but the problem was deeper in Tux Paint's
code (in i18n.c), and was triggered by an unexpected environment.
2020-07-26 17:17:14 -07:00
Bill Kendrick
ac755bf26c Removing loaddesc() debugging
Things look fine here. Not actually finding languages in i18n,
it seems!
2020-07-26 16:52:05 -07:00
Bill Kendrick
42512a67b0 Don't use extern for num_wished_langs
WORK IN PROGRESS -- Attempting to mend an issue where stamp descriptions
are not loading.

Also, making things safer when a problem occurs.

Using gcc 9.3.0 compiler, this was happening in 0.9.25 during
development, but also affected 0.9.24 and 0.9.23, which worked
fine under earlier versions of gcc.
2020-07-26 16:42:12 -07:00
Bill Kendrick
e50a0ef84c Improved safety when copying things into strings
Created "safe_" variations of 'strncpy()', 'strncat()',
and 'snprintf()', to ensure a truncated source string doesn't
leave the destination buffer without a NUL termination character.

Replaced all calls (in "tuxpaint.c" only, so far) to the standard
functions with calls to the new safer versions.

Replaced most calls to plain 'strcpy()', 'strcat()' and
'sprintf()' (which can cause buffer overruns) with the new functions.
2020-07-26 16:13:53 -07:00
Bill Kendrick
56591258ff Ensure export takes 1 second (filename uniqueness) 2020-07-26 14:25:59 -07:00
Bill Kendrick
b0a2b4dacc Completed single image export function
From "Open" dialog, select an image (single click, or use
arrow keys / etc., to highlight the image), then select the
"Export" button at the lower right.

The image will be saved in the export directory.  By default
this will be based on the config found via the XDG_CONFIG_HOME
environment variable, which is scanned for a "XDG_PICTURES_DIR"
setting.  If none is found, "Pictures" in the directory specified
by the HOME env. var. will be used.  In both cases, a new
"TuxPaint" subdirectory will be created, and exports will be placed
there.

The export location may be overridden using the "--exportdir"
command-line option or "exportdir" config file option
(e.g., "--exportdir /path/to/dir" or "exportdir=/path/to/dir",
respectively).  In this case, the directory is assumed to preexist,
and no "TuxPaint" subdirectory will be made.

There's currently no way to disable the export feature altogether.
If there's demand, we can add it as a simplification option.

Finally, this feature simply copies the PNG file (but no extra
data files) from Tux Paint's "saved" directory to the export dir.

Closes https://sourceforge.net/p/tuxpaint/feature-requests/192/
2020-07-26 14:10:03 -07:00
Bill Kendrick
28b28d583e Wrap up GIF export UI
GIF export button now jumps to a process that iterates through the
chosen saved images, loading each (but not yet saving as a GIF).
It then returns to the Open->Slideshow dialog, and displays a
pop-up dialog that shows a success/fail message.

Also, adding an icon for a regular static image "Export" option,
to be added to the main Open dialog.
2020-07-26 11:46:12 -07:00
Bill Kendrick
7aa91af319 Make sure 'exportdir' from config file is utilized 2020-07-25 22:36:20 -07:00
Bill Kendrick
1617a0ad77 Remove debug+exit from last commit
Oops, Tux Paint just exited immediately, as part of my debug
testing. :)  Removed that.
2020-07-25 16:46:49 -07:00
Bill Kendrick
f8cce36435 Further work on animated GIF export: XDG Pictures
Using XDG's user dir settings to determine where pictures are
stored for a user (e.g., "~/Pictures" -- used as a fallback).
May be overridden using "--exportdir".

Also, while I was updating some docs, replace references to
"Mac OS X" with "macOS", the new name of that OS these days.
2020-07-25 16:45:17 -07:00
Bill Kendrick
683bbf5f19 Add "GIF Export" to POT and PO files
Please translate!
2020-07-25 00:22:59 -07:00
Bill Kendrick
d6a1d76158 chmod 755 po/update-po.sh 2020-07-25 00:21:46 -07:00
Bill Kendrick
8c3a07294b Beginning GIF export
Beginning addition of an option to export animated GIFs
from the Open -> Slideshow dialog, after choosing the images.

Non-operable at this time, but a button has been added (and will
provide a hint to select 2 or more images, when clicked).
2020-07-25 00:18:46 -07:00
Bill Kendrick
3ede0b96bf Starter SVG re-save
Working around "...convert-im6.q16: too many bezier coordinates" by
updating SVGs of Starter images that were error'ing when creating
a thumbnail.  Mostly, just loaded into Inkscape 1.0 & saving back out.
For a few, tightened up some places where Fill tool would spill over.
2020-07-24 22:58:01 -07:00