341 Commits

Author SHA1 Message Date
Erik Auerswald 00846d5dd3 Makefile: use man to convert man page to HTML 2021-06-29 20:01:29 +02:00
Erik Auerswald efded91c1d replace "rman" with "mandoc" for man->html conversion
"rman" does not support the URL macros ".UR" and ".UE", but I use
those already.  "mandoc" does support these macros.
2021-06-24 20:33:51 +02:00
Erik Auerswald 24b4d7ab7c INSTALL: use current Homebrew URL 2021-06-24 20:25:59 +02:00
Erik Auerswald ea9e2996cc escape hyphens that shall be minus characters in the man page 2021-06-24 20:23:58 +02:00
Erik Auerswald 3c80d6a935 use URL macros for URLs in man page 2021-06-24 20:16:36 +02:00
Erik Auerswald 6204e113ab update a forgotten copyright info 2021-06-24 20:14:14 +02:00
Erik Auerswald 60735c3ff6 replace http URLs with https 2021-06-24 20:13:10 +02:00
Erik Auerswald 42e35b4c63 add more Google email madness to the README
I have encountered problems sending email to users of GMail, to
users of Google email services using domain names different from
gmail.com, and to Google employees using their corporate email
account.

Google is the only email provider that does not accept my emails,
as far as I know.
2021-05-08 13:35:20 +02:00
Erik Auerswald 3699b42d2a add a copyright section to the man page 2021-05-01 19:11:48 +02:00
Erik Auerswald ab6dab59ad two small corrections in help output 2021-04-27 19:18:02 +02:00
Erik Auerswald 113d665135 add ability to detect and print white space
This adds an option to enable white spece detection, and two
further options to control the operation of white space detection.

White space detection (--print-spaces) is intended for use cases
where digit (resp. character) grouping is important for correct
interpretation.  One use case is the recognition of superimposed
dates in photographic images.

This commit also increases the version number to 2.21.0 and tweaks
some debug output.
v2.21.0
2021-04-25 14:05:51 +02:00
Erik Auerswald 161778751c show default values for decimal separator ratios v2.20.0 2021-04-19 19:37:39 +02:00
Erik Auerswald dc463a5529 options to control decimal separator recognition
Additionally, bump copyright dates and version number.
2021-04-19 19:27:52 +02:00
Erik Auerswald 159f9c1809 INSTALL: fix typo 2021-04-11 18:44:59 +02:00
Erik Auerswald 08a628ff04 how to work around some compilation failures
C compilers are getting more aggressive with warnings and are producing
more false positives.  While I intend to keep ssocr compiling without
warnings (as in the last 15 years), I do not use the newest C compilers,
but rather the GCC version included in a stable GNU/Linux distribution,
it may take some time for me to encounter those problems myself, and thus
it may take some time for me to work around them.

A user reported a compilation failure due to new warnings in GCC 10.1.
Since I currently use GCC 7.5.0 from Ubuntu 18.04 LTS, I do not see
those warnings yet, and thus cannot test any workarounds yet.

A first investigation into the issue hints at a need to replace valid code
with code invalid for GCC's default C standard version (necessitating
the specification of a newer C standard in the CFLAGS) to work around
said problem.  I have no idea if there are additional warnings with GCC
10.1 after working around that one.  Since Google blocks my emails to
the reporting user, I cannot even communicate to find this out.  Thus any
code changes will have to wait for either a GCC version with additional
warnings arriving in my GNU/Linux distribution, or establishment of a
different communication channel, e.g., a GitHub issue.
2020-08-03 23:12:08 +02:00
Erik Auerswald 3a08177381 INSTALL: reword some platform specific advise 2020-08-02 23:51:47 +02:00
Erik Auerswald ddeeaffff7 INSTALL: inform about C compiler security features
There have been issues with the basic security features a modern C
compiler should provide, hindering compilation of ssocr. One way to work
around those is to disable use of the broken features.  Another way is
to use a quality C compiler, e.g., a stable GCC release.
2020-08-02 23:39:07 +02:00
Erik Auerswald bbdc4a179f README: warn against use of @gmail.com addresses
Google is blocking my answer emails to @gmail.com addresses.  So I
can only advise to use a real email provider, not Google.  If one
cannot do that, or does not want to, one can open a GitHub issue
instead.
2020-08-02 23:28:32 +02:00
Erik Auerswald 8a98e381e5 Makefile: cosmetics 2020-08-02 23:24:20 +02:00
Erik Auerswald e65a5c87c8 slightly improve man page...
...by adding that --debug-image can help using ssocr, and that
the image sometimes needs shearing for recognition of a decimal
point.
2020-01-25 20:27:59 +01:00
Erik Auerswald 2b4faf3e7d add info about Google blocking my email to README 2020-01-25 16:39:42 +01:00
Erik Auerswald 2dde9b95e0 README: improve installation information
This adds information relevant to issue #9 to the README file.
Before, the information was added to the ssocr home page and
the GitHub issue tracker only.
2019-05-30 13:37:28 +02:00
Erik Auerswald 4540283ae3 INSTALL: indent verbatim commands 2019-05-30 13:29:47 +02:00
Erik Auerswald 46fe73b6fc INSTALL: .deb package is built with 'make selfdeb' 2019-05-30 13:28:11 +02:00
Erik Auerswald ae3bc107b6 imgproc.c: shorten variable name to shorten line 2019-03-10 18:16:05 +01:00
Erik Auerswald 353ce4a470 imgproc.c: shorten variable name to shorten line 2019-03-10 18:12:00 +01:00
Erik Auerswald a069600590 imgproc.c: delete commented out debugging code 2019-03-10 18:09:12 +01:00
Erik Auerswald 17928b4b76 always use spaces for indentation, not tabs 2019-03-10 18:06:58 +01:00
Erik Auerswald 2031c2c08e refactor scanning for set segments
This introduces a function to scan part of the image for foreground
pixels.

This scanline() function may be of use for distuingishing between
the digit '1' and the symbol ":".

It may also help in segment detection reliability if the "len" parameter
is used to skip scanning image areas between segment positions.
2019-03-10 17:58:04 +01:00
Erik Auerswald 6d787a2683 add packagers to THANKS file
The email addresses are those found in public package maintainer
information already.
2019-02-03 16:27:01 +01:00
Erik Auerswald f17eef899e always use underscore '_' for unknown digits
Before, there was a special case where a blank ' ' could be printed
if no segments were detected in a digit at all. But this would not
happen, since all digits contain at least one pixel which would result
in some set segments.

This commit is a preparatory step for refactoring segement detection
in a digit.
2019-02-03 16:07:14 +01:00
Erik Auerswald d3fdf3b223 cosmetic changes in ssocr.c 2019-02-02 15:09:50 +01:00
Erik Auerswald 535aa89bdb keep line length <= 80 2019-02-02 14:30:41 +01:00
Erik Auerswald 9569289c63 bump copyright year to 2019 2019-02-02 13:08:13 +01:00
Erik Auerswald 07623ef831 make debug output imply verbose operation 2019-02-02 13:03:31 +01:00
Erik Auerswald 3bdd09428f ssocr.c: replace strcat with strncat 2018-12-29 11:40:02 +01:00
Erik Auerswald 592a4044e5 ssocr.c: simplify some string operations 2018-12-29 11:06:37 +01:00
Erik Auerswald 8c2f93d6c2 ssocr.c: replace last malloc() with calloc()
The code actually needs the allocated memory to have a '\0' byte
at the beginning.
2018-12-29 10:49:29 +01:00
Erik Auerswald 71bc8bf083 README: clarify that the official homepage is official
Many people, including packagers for GNU/Linux distributions, seem to
think that ssocr is a "GitHub project." It is not. It is older than
GitHub and may well exist longer that GitHub. It is older than git.

The official website contains documentation not found on GitHub. GitHub
is just use as a currently convenient way to have an external copy, a
backup, of the development repository. This does provide third parties
with access to the developent code and its history as an added benefit.

The "added value" of GitHub (issues, pull requests, ...) is meaningless
to me and may be abandoned anytime. The contents of the official website
will be preserved even if it needs to be moved. The development history
has already been preserved during the migration from subversion to git.
2018-11-25 14:49:22 +01:00
Erik Auerswald c3c8f454ff ignore development version directories, too 2018-10-14 14:20:36 +02:00
Erik Auerswald f39237cc43 ensure pristine ssocr dir after "make selfdeb" 2018-10-14 14:19:16 +02:00
Erik Auerswald 382c93daa9 bump version number to 2.19.0+ 2018-10-14 14:16:54 +02:00
Erik Auerswald 0c2599510f Makefile maintenance
- rename target "nodeb" to "selfdeb"
- document new Makefile targets in INSTALL
2018-10-14 14:14:55 +02:00
Erik Auerswald a8ac8d7557 move building a .deb file out of the way
This is intended to interfere less (not at all?) with Debian
packaging efforts.

The Debian Upstream Guide says:

   "Some projects include a rough /debian directory among source files
    to ease bleeding-edge package compilation and installation on Debian
    (and derived) systems. While this is a good effort, it is better to
    leave it out of the final tarball as it can interfere with debian's
    own packaging effort."

I have renamed the directory to "notdebian" to clearly show that this
is not official. Since the Debian packaging system needs the exact name
"debian" for this directory, "notdebian" does not interfere with this.
2018-10-14 14:03:24 +02:00
Erik Auerswald 1c27cdb1dd fix white space damage from pull request 2018-10-14 13:52:39 +02:00
Erik Auerswald 8d21b658c9 Merge pull request #6 from alexmyczko/patch-1
drop all debian things from Makefile
2018-10-14 13:50:46 +02:00
Alex Myczko c2cd9a502e drop all debian things from Makefile
the original source code should not ship debian/* or related things in the build system
2018-10-08 11:08:38 +02:00
Erik Auerswald 5e47e26b12 INSTALL: correct "origin" of common tools
All "common" tools used to build ssocr have been part of GNU/Linux
distribtuions for decades. But since more people want to build ssocr
on non-GNU systems it might be helpful to hint at where to find the
common utility programs:

- some are used in a POSIX compatible way
- some are part of GNU
- then there are others
2018-08-11 16:12:58 +02:00
Erik Auerswald 9072b69be6 bump version number to 2.19.0 (rlease is planned) v2.19.0 2018-08-05 07:03:59 +02:00
Erik Auerswald d25ddb4674 final step of character set support
This implements selection of character set to recognize and documents
it in the man page.
2018-08-05 07:01:50 +02:00