pax_global_header 0000666 0000000 0000000 00000000064 14730272043 0014514 g ustar 00root root 0000000 0000000 52 comment=54d36d584b604b096b08da61b6f7918de67dfc0e
bambam-1.4.1+dfsg/ 0000775 0000000 0000000 00000000000 14730272043 0013655 5 ustar 00root root 0000000 0000000 bambam-1.4.1+dfsg/.github/ 0000775 0000000 0000000 00000000000 14730272043 0015215 5 ustar 00root root 0000000 0000000 bambam-1.4.1+dfsg/.github/dependabot.yml 0000664 0000000 0000000 00000001142 14730272043 0020043 0 ustar 00root root 0000000 0000000 # To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
groups:
style:
patterns:
- "*flake*"
- "autopep*"
- "pycodestyle"
bambam-1.4.1+dfsg/.github/workflows/ 0000775 0000000 0000000 00000000000 14730272043 0017252 5 ustar 00root root 0000000 0000000 bambam-1.4.1+dfsg/.github/workflows/python-app.yml 0000664 0000000 0000000 00000012735 14730272043 0022104 0 ustar 00root root 0000000 0000000 name: BamBam
on:
push:
pull_request:
workflow_dispatch:
inputs:
golden:
default: false
description: "Update and/or check golden files."
type: boolean
permissions:
contents: read
jobs:
checks:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Lint with flake8
run: |
flake8 . --show-source --statistics
- name: Lint with autopep8
run: |
autopep8 -d *.py | awk 'BEGIN{had_data=0}{print;had_data=1}END{exit had_data}'
- name: Run unit tests
run: |
python -m unittest *_test.py
e2e:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
extension: ["none", "alphanumeric-en_US"]
env:
AUTOPKGTEST_TMP: /tmp
AUTOPKGTEST_BAMBAM_PROGRAM: ./bambam.py
BAMBAM_RANDOM_SEED: 0
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Install GUI packages
run: |
sudo apt-get update
sudo apt-get install -y xvfb xauth imagemagick xdotool sox
- name: Compute arguments
id: args
run: |
case ${{ matrix.extension }} in
none) echo extension_arg= >> $GITHUB_OUTPUT ;;
*) echo extension_arg=-e=${{ matrix.extension }} >> $GITHUB_OUTPUT ;;
esac
if [[ "${{ inputs.golden }}" == true ]]; then
echo golden_subdir_arg=--golden-subdir=${{ matrix.python-version }}/${{ matrix.extension }} >> $GITHUB_OUTPUT
else
echo golden_subdir_arg=--ignored= >> $GITHUB_OUTPUT
fi
- name: Run regular GUI tests
run: ./run_e2e_test.sh regular ${{ steps.args.outputs.golden_subdir_arg }}/regular -- ${{ steps.args.outputs.extension_arg }}
if: always()
- name: Run GUI tests in dark mode
run: ./run_e2e_test.sh dark --no-expect-light-mode ${{ steps.args.outputs.golden_subdir_arg }}/dark -- --dark ${{ steps.args.outputs.extension_arg }}
if: always()
- name: Run GUI tests with deterministic sounds
run: ./run_e2e_test.sh deterministic ${{ steps.args.outputs.golden_subdir_arg }}/deterministic -- --deterministic-sounds ${{ steps.args.outputs.extension_arg }}
if: always()
- name: Run GUI tests muted
run: ./run_e2e_test.sh muted --no-expect-sounds ${{ steps.args.outputs.golden_subdir_arg }}/muted -- --mute ${{ steps.args.outputs.extension_arg }}
if: always()
- name: Run GUI tests muted just initially
run: ./run_e2e_test.sh start-muted ${{ steps.args.outputs.golden_subdir_arg }}/start-muted -- --mute ${{ steps.args.outputs.extension_arg }}
if: always()
- name: Run GUI tests without sound support
run: ./run_e2e_test.sh no-audio --no-expect-audio-output --sdl-audio-driver invalid ${{ steps.args.outputs.golden_subdir_arg }}/no-sound -- ${{ steps.args.outputs.extension_arg }}
if: always()
- name: Save artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: test-artifacts-${{ matrix.python-version }}-${{ matrix.extension }}
path: artifacts
- name: Save golden files
uses: actions/upload-artifact@v3
if: always() && inputs.golden == true
with:
name: test-golden-${{ matrix.python-version }}-${{ matrix.extension }}
path: test/golden
nofonts:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"] # Just latest to keep number of combinations down.
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Install GUI packages
run: |
sudo apt-get install -y xvfb xauth
- name: Run test for font absence
run: |
export AUTOPKGTEST_ARTIFACTS=`pwd`/artifacts
mkdir -p $AUTOPKGTEST_ARTIFACTS
export AUTOPKGTEST_TMP=/tmp
# Prepare permissions for deleting freetype.
for lib in $(./test/find-freetype.sh echo); do
dir="$(dirname "${lib}")"
echo "Granting write permission on ${dir}" >&2
sudo chmod a+w "${dir}"
done
xvfb-run \
-e $AUTOPKGTEST_ARTIFACTS/xvfb-run.stderr \
-s "-screen 0 1024x768x24 -fbdir $AUTOPKGTEST_TMP" \
./test/find-freetype.sh rm-and-run \
timeout -v -k 5 10 \
./test/redirect-stderr-and-run.sh errors.txt ./bambam.py || echo Bambam under xvfb exited code $?
if grep -q 'Error: pygame fonts not available. Exiting.' errors.txt; then
echo "Expected font absence message found."
exit 0
fi
echo "Expected font absence message not found."
cat errors.txt
exit 1
bambam-1.4.1+dfsg/.gitignore 0000664 0000000 0000000 00000000073 14730272043 0015645 0 ustar 00root root 0000000 0000000 /.venv
/__pycache__
/*.pot~
/po/*.po~
/po/*.mo
/po/LINGUAS
bambam-1.4.1+dfsg/.pre-commit-config.yaml 0000664 0000000 0000000 00000000247 14730272043 0020141 0 ustar 00root root 0000000 0000000 repos:
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/hhatto/autopep8
rev: v2.3.1
hooks:
- id: autopep8
bambam-1.4.1+dfsg/.weblate 0000664 0000000 0000000 00000000115 14730272043 0015276 0 ustar 00root root 0000000 0000000 [weblate]
url = https://hosted.weblate.org/api/
translation = weblate/master
bambam-1.4.1+dfsg/50-dont-vt-switch.conf 0000664 0000000 0000000 00000000567 14730272043 0017650 0 ustar 00root root 0000000 0000000 # Placing this file in /etc/X11/xorg.conf.d (and restarting X) will disable
# virtual terminal switching.
#
# NOTE that it is known to cause problems with gdm - see
# https://github.com/porridge/bambam/issues/16
# Make sure you have an alternative way to recover your system, or be prepared
# for a hard reset.
Section "ServerFlags"
Option "DontVTSwitch" "true"
EndSection
bambam-1.4.1+dfsg/CODE_OF_CONDUCT.md 0000664 0000000 0000000 00000012552 14730272043 0016461 0 ustar 00root root 0000000 0000000 # Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, caste, color, religion, or sexual
identity and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our
community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the overall
community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or advances of
any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email address,
without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement on the project forum.
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series of
actions.
**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or permanent
ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within the
community.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.1, available at
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
For answers to common questions about this code of conduct, see the FAQ at
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
[https://www.contributor-covenant.org/translations][translations].
[homepage]: https://www.contributor-covenant.org
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
[Mozilla CoC]: https://github.com/mozilla/diversity
[FAQ]: https://www.contributor-covenant.org/faq
[translations]: https://www.contributor-covenant.org/translations
bambam-1.4.1+dfsg/CONTRIBUTING.md 0000664 0000000 0000000 00000000553 14730272043 0016111 0 ustar 00root root 0000000 0000000 # Contributing
Contributions are welcome as long as you adhere to the [code of conduct](CODE_OF_CONDUCT.md).
It is assumed that you are the author and copyright holder of all work that you contribute, and you agree to license it at the terms of the [project license](COPYING).
Please provide appropriate copyright and license information for any derived works.
bambam-1.4.1+dfsg/COPYING 0000664 0000000 0000000 00000104513 14730272043 0014714 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
bambam-1.4.1+dfsg/EXTENSIONS.md 0000664 0000000 0000000 00000007313 14730272043 0015702 0 ustar 00root root 0000000 0000000 # Creating extensions
**Note:** As of bambam version 1.3.0 extension support is an **experimental** feature.
- Details are subject to change.
- There are rough edges and very little validation for correctness.
This document explains how to create a new extension.
## Extension structure
A bambam extension is a directory, containing:
- a mandatory `event_map.yaml` file, and
- some optional media files
As of version 1.3.0, the only supported files are `wav` and `ogg` sound files. Future versions are likely to add support for image files too.
It is recommended to store sound files in a subdirectory named `sounds`, but this is currently not enforced.
The name of the extension is the name of its directory.
## Event map file
### Example
Here is an example `event_map.yaml` file:
```yaml
apiVersion: 0
image:
- check:
- type: KEYDOWN
- unicode:
isalpha: True
policy: font
- check:
- type: KEYDOWN
- unicode:
isdigit: True
policy: font
- policy: random
sound:
- check:
- unicode:
value: "0"
policy: named_file
args: ["0.ogg"]
- check:
- unicode:
value: "1"
policy: named_file
args: ["1.ogg"]
- policy: random
```
### Event map structure
This file contains the following top-level fields:
- `apiVersion`: declares the version of the syntax of the file. This field is mandatory and the only supported version is currently `0`
- `image`: event map for images. This field is optional.
- `sound`: event map for sounds. This field is optional.
Both `image` and `sound` fields contain a list of event mapping steps.
During game execution, when an event happens, the steps in *both* lists
are processed (independently) in the order they are specified in this file, until one matches.
If no step matches the event, an error is raised.
### Event mapping steps
A single event mapping step contains the following fields:
- `check` - an optional list of checks.
- `policy` - a mandatory name of reaction selection policy.
- `args` - an optional list of arguments for policy invocation.
For a step to match an event, all checks on its list must match.
An empty list of checks always matches any event.
The following checks are currently available:
- `type`: matches if the type of event is the specified type. The only supported type is currently `KEYDOWN`.
- `unicode`: must contain exactly one of the following sub-checks. A `unicode` check matches, if its sub-check matches. The following sub-checks are currently supported (see example above for the correct usage):
- `value`: matches if the event is the unicode character specified,
- `isalpha`: matches if the `isalpha` function called on the event's associated unicode character returns the specified value (`True` or `False`)
- `isdigit`: matches if the `isdigit` function called on the event's associated unicode character returns the specified value (`True` or `False`)
### Reaction selection policies
When an event matches a step, the specified reaction selection policy is invoked.
If a list of arguments is specified in the step, they are also passed to the policy.
After the policy runs, processing of the event stops *on the given step list*.
The following reaction selection policies are supported:
- `font`: Only supported for image steps. Displays a [glyph](https://en.wikipedia.org/wiki/Glyph) representing the event's unicode value.
- `random`: Selects a random media file, loaded *from a data directory* (*not* from the extension directory).
- `named_file`: Currently only supported for sound steps. Selects the file specified as the first argument for policy invocation. The file is loaded *from the extension directory*.
It is recommended to store sound files in a subdirectory named `sounds`, but this is currently not enforced.
bambam-1.4.1+dfsg/Makefile 0000664 0000000 0000000 00000003274 14730272043 0015323 0 ustar 00root root 0000000 0000000 VERSION = 1.4.1
LINGUAS = $(shell awk '$$1=="[po4a_langs]"{$$1="";print}' po4a.conf)
PREFIX ?=
.PHONY: all-mo
all-mo: $(LINGUAS:%=po/%.mo)
.PHONY: all
all: all-mo all-manpages bambam-session.desktop bambam.desktop
.PHONY: all-manpages
all-manpages: $(LINGUAS:%=bambam.%.6)
.PHONY: install-mo
install-mo: $(LINGUAS:%=install-mo-%)
.PHONY: install-mo-%
install-mo-%: po/%.mo
install -m 0644 -D $< $(PREFIX)/usr/share/locale/$*/LC_MESSAGES/bambam.mo
po/%.po: bambam.pot
msgmerge -U $@ $<
touch $@
po/%.mo: po/%.po
msgfmt -o $@ $<
po/LINGUAS: Makefile po4a.conf
echo $(LINGUAS) > $@
# Pot files:
bambam.pot: bambam-py.pot bambam-man.pot bambam-desktop.pot bambam-session-desktop.pot
msgcat $^ > $@
bambam-py.pot: bambam.py Makefile
xgettext -d bambam --msgid-bugs-address=marcin@owsiany.pl --package-name bambam --package-version $(VERSION) -o $@ -kN_ -c $<
%-desktop.pot: %.en.desktop Makefile
xgettext -d bambam --msgid-bugs-address=marcin@owsiany.pl --package-name bambam --package-version $(VERSION) -o $@ -c $<
bambam-man.pot: bambam.6
po4a-updatepo -f man -m $< -p $@
# Localized artifacts:
bambam.%.6: po/%.po bambam.6
po4a-translate -f man -m bambam.6 -p $< -l $@
%.desktop: %.en.desktop $(LINGUAS:%=po/%.mo) po/LINGUAS
msgfmt --desktop --template $< -d po/ -o $@
.PHONY: clean
clean:
rm -f $(LINGUAS:%=po/%.mo) po/LINGUAS
# From https://docs.weblate.org/pl/latest/faq.html#merge
.PHONY: resolve-conflicts-in-po-files
resolve-conflicts-in-po-files:
for PO in `find . -name '*.po'` ; do \
lang=$${PO##*/}; lang=$${lang%.po}; \
msgcat --use-first ../app-and-manpage/$$PO $$PO -o $$PO.merge; \
msgmerge --previous --lang=$$lang $$PO.merge bambam.pot -o $$PO; \
rm $$PO.merge; \
done
bambam-1.4.1+dfsg/README.md 0000664 0000000 0000000 00000013561 14730272043 0015142 0 ustar 00root root 0000000 0000000 # Bambam
[](https://github.com/porridge/bambam/actions/workflows/python-app.yml)
[](https://hosted.weblate.org/engage/bambam/)
Bambam is a simple baby keyboard (and gamepad) masher application that locks the keyboard and mouse and instead displays bright colors, pictures, and sounds. While OSX has great programs like [AlphaBaby](http://www.kldickey.addr.com/alphababy/), the original author couldn't find anything for Linux and having wanted to learn Python for a while, Bambam was his excuse.

## Installation
### From a distribution package
First, see if your distribution has a bambam package already.
This way takes care of dependencies, translated program messages, `.desktop` files and manual pages.
For example:
```
sudo apt install bambam
man bambam
```
### Manual installation
If not, you can install it manually as follows.
Before installing this application, ensure you have the following installed:
* [Python](http://python.org) - versions 3.9, 3.10 and 3.11 are supported
* [Pygame](http://www.pygame.org/) - version 2.x is supported, but version 1.9 might work too. See [install instructions](https://www.pygame.org/wiki/GettingStarted).
* [PyYAML](https://github.com/yaml/pyyaml) - only required for using
[extensions](#extensions); any reasonably recent version should work
Then:
1. [Download](https://github.com/porridge/bambam/releases) the `bambam-1.4.1.zip` or `bambam-1.4.1.tar.gz` file.
1. Unzip `bambam-1.4.1.zip` or `tar zxvf bambam-1.4.1.tar.gz` to create the `bambam-1.4.1` directory.
1. Change into the `bambam-1.4.1` directory
```
cd bambam-1.4.1
```
Then you can read the documentation with:
```
man ./bambam.6
```
If you would like to take advantage of the recommended way to start the game (see the next section) do the following:
```
sed -i -e "s,/usr/games/bambam,`pwd`/bambam.py," bambam-session.desktop
sudo mkdir -p /etc/X11/sessions
sudo cp bambam-session.desktop /etc/X11/sessions/
```
For an alternative way to start the game from your applications menu, do the following:
```
sed -i -e "s,/usr/games/bambam,`pwd`/bambam.py," bambam.desktop
mkdir -p ~/.local/share/applications
cp bambam.desktop ~/.local/share/applications/
```
## Usage
Once installed, there are two ways to run the game:
1. **Recommended**: as a dedicated graphical session.
When logging into your system, look for a gear icon, which opens a drop-down
menu of available session types. Select BamBam and log in.
This way only the game is launched, and the user is logged out as soon as
the game quits. Thanks to this, a child is not able to cause any damage
even if he or she somehow manages to quit the game.
This way is safer, but more cumbersome.
2. **Alternative**: Directly from a terminal, or applications menu.
Select the game from your applications menu, or to run the game from a
terminal window, type `bambam` if you installed from a distribution package, or
`./bambam.py` if you installed manually.
**Why this way is not recommended:**
This way the program runs as part of a regular session. The game tries to
grab the keyboard and mouse pointer focus in order to prevent a child from
exiting the game or switching away from it. However it is not 100%
bulletproof, depending on the exact environment.
This way is easier, but potentially more risky. Take care when leaving your
child unattended with the game.
## Exiting
To exit, just directly type the command mentioned in the upper left-hand corner of the window. In the English locales, this is:
```
quit
```
## Extensions
Extensions are a way to change how Bambam behaves.
They are supported since version 1.3.0, currently as an **experimental** feature.
Extensions are directories containing media files as well as a file describing how the game should behave when a certain event happens. Anyone can [create an extension](EXTENSIONS.md), it _does not_ require programming skills.
Currently there is only a single extension bundled with the game:
- [`alphanumeric-en_US`](./extensions/alphanumeric-en_US/) - this extension makes the program play recordings of American English pronounciation of letters and digits when the corresponding keys are pressed.
To use an extension:
1. Make sure the extension directory is located in one of the extension base directories, that is:
- `extensions/` in the same directory as the bambam program,
- `$HOME/.local/share/bambam/extensions/`,
- `/usr/share/bambam/extensions/` - if the program is installed from your distribution's package.
2. Pass the `--extension` option followed by the name of the extension on program invocation.
For example `./bambam.py --extension alphanumeric-en_US`.
See [separate documentation on creating extensions](EXTENSIONS.md) if you would like to create your own extension or change an existing one.
## More information
More information is in the manual page. To view it, type:
```
man ./bambam.6
```
Comments or suggestions? Any feedback is appreciated, please send it to [the bambam-users forum](https://groups.google.com/forum/#!forum/bambam-users).
Translations for this game are done on [Weblate](https://hosted.weblate.org/projects/bambam/). Please help translating for your mother tongue!
## History
This project was moved from [its code.google.com location](https://code.google.com/p/bambam/) in April 2015, since that site was about to be shut down.
Note that changes (as of 2010-08-17) from [the launchpad bambam fork](https://launchpad.net/bambam) had been merged back to this project in February 2014.
The sounds for the alphanumeric-en_US extension were copied from https://github.com/porridge/bambam-media and are distributed
under the terms of the GNU General Public License.
bambam-1.4.1+dfsg/__builtins__.pyi 0000664 0000000 0000000 00000000036 14730272043 0017024 0 ustar 00root root 0000000 0000000 def _(msg: str, /) -> str: ... bambam-1.4.1+dfsg/bambam-desktop.pot 0000664 0000000 0000000 00000002070 14730272043 0017266 0 ustar 00root root 0000000 0000000 # SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the bambam package.
# FIRST AUTHOR , YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: bambam 1.4.0\n"
"Report-Msgid-Bugs-To: marcin@owsiany.pl\n"
"POT-Creation-Date: 2024-08-24 17:17+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: bambam.en.desktop:3
msgid "BamBam"
msgstr ""
#: bambam.en.desktop:4
msgid "Keyboard mashing and doodling game for babies and toddlers."
msgstr ""
#. TRANSLATORS: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! Do NOT translate or remove the application name from the list! It is used for search.
#: bambam.en.desktop:11
msgid "bambam;baby;child;toddler;game;keyboard mashing;mouse;doodling;"
msgstr ""
bambam-1.4.1+dfsg/bambam-man.pot 0000664 0000000 0000000 00000015651 14730272043 0016401 0 ustar 00root root 0000000 0000000 # SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR , YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2024-08-24 17:17+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. type: TH
#: bambam.6:1
#, no-wrap
msgid "bambam"
msgstr ""
#. type: TH
#: bambam.6:1
#, no-wrap
msgid "24 August 2024"
msgstr ""
#. type: TH
#: bambam.6:1
#, no-wrap
msgid "version 1.4.0"
msgstr ""
#. type: SH
#: bambam.6:2
#, no-wrap
msgid "NAME"
msgstr ""
#. type: Plain text
#: bambam.6:4
msgid "bambam - a keyboard mashing and doodling game for babies and toddlers"
msgstr ""
#. type: SH
#: bambam.6:4
#, no-wrap
msgid "SYNOPSIS"
msgstr ""
#. type: Plain text
#: bambam.6:7
msgid "B [I]"
msgstr ""
#. type: SH
#: bambam.6:7
#, no-wrap
msgid "DESCRIPTION"
msgstr ""
#. type: TP
#: bambam.6:8
#, no-wrap
msgid "B<-u>, B<--uppercase>"
msgstr ""
#. type: Plain text
#: bambam.6:11
msgid "Show UPPER-CASE letters."
msgstr ""
#. type: TP
#: bambam.6:11
#, no-wrap
msgid "B<-d>, B<--deterministic-sounds>"
msgstr ""
#. type: Plain text
#: bambam.6:14
msgid "Produce same sounds on same key presses."
msgstr ""
#. type: TP
#: bambam.6:14
#, no-wrap
msgid "B<-D>, B<--dark>"
msgstr ""
#. type: Plain text
#: bambam.6:17
msgid "Use a dark background instead of a light one."
msgstr ""
#. type: TP
#: bambam.6:17
#, no-wrap
msgid "B<-m>, B<--mute>"
msgstr ""
#. type: Plain text
#: bambam.6:20
msgid "Start muted."
msgstr ""
#. type: TP
#: bambam.6:20
#, no-wrap
msgid "B<--sticky-mouse>"
msgstr ""
#. type: Plain text
#: bambam.6:23
msgid "Start with sticky mouse buttons enabled."
msgstr ""
#. type: TP
#: bambam.6:23
#, no-wrap
msgid "B<--sound_blacklist>=I"
msgstr ""
#. type: Plain text
#: bambam.6:26
msgid "List of sound filename patterns to never play."
msgstr ""
#. type: TP
#: bambam.6:26
#, no-wrap
msgid "B<--image_blacklist>=I"
msgstr ""
#. type: Plain text
#: bambam.6:29
msgid "List of image filename patterns to never show."
msgstr ""
#. type: TP
#: bambam.6:29
#, no-wrap
msgid "B<--extension>=I"
msgstr ""
#. type: Plain text
#: bambam.6:32
msgid "Use the specified extension."
msgstr ""
#. type: TP
#: bambam.6:32
#, no-wrap
msgid "B<--wayland-ok>"
msgstr ""
#. type: Plain text
#: bambam.6:35
msgid "Do not prevent running under Wayland. See the B section."
msgstr ""
#. type: Plain text
#: bambam.6:42
msgid ""
"bambam is a keyboard and mouse game for babies written in Python. Pressing "
"letter keys prints them in random locations and colours. Pressing any other "
"key draws little pictures in random locations. Dragging the mouse while the "
"mouse button is pressed draws in randomly changing colours. The screen is "
"cleared at random."
msgstr ""
#. type: SH
#: bambam.6:42
#, no-wrap
msgid "NOTES"
msgstr ""
#. type: Plain text
#: bambam.6:45
msgid ""
"B"
msgstr ""
#. type: Plain text
#: bambam.6:47
msgid ""
"B that there are ways to switch to another application from bambam:"
msgstr ""
#. type: IP
#: bambam.6:47 bambam.6:57 bambam.6:61 bambam.6:67 bambam.6:70 bambam.6:83
#: bambam.6:85 bambam.6:95 bambam.6:97
#, no-wrap
msgid "\\(bu"
msgstr ""
#. type: Plain text
#: bambam.6:57
msgid ""
"when running under Wayland, it is not currently possible for bambam to grab "
"all key presses. A consequence of that is that if you use GNOME Shell, "
"pressing the Windows (a.k.a. Super) key will activate the activities "
"overview. Please check your environment. As a workaround, starting with "
"version 1.1.2, bambam will try to detect if it is running under Wayland. If "
"this is the case, bambam will display a warning and refuse to work. You can "
"disable this workaround, with the B<--wayland-ok> option."
msgstr ""
#. type: Plain text
#: bambam.6:61
msgid ""
"bambam does not block virtual terminal switching (e.g. CTRL+ALT+F1). See "
"the example 50-dont-vt-switch.conf file if you would like to block that."
msgstr ""
#. type: Plain text
#: bambam.6:63
msgid ""
"there may be other yet unknown ways in other environments and window "
"managers."
msgstr ""
#. type: Plain text
#: bambam.6:67
msgid ""
"For the above reasons, starting with version 1.2.0, B"
msgstr ""
#. type: Plain text
#: bambam.6:70
msgid ""
"One way to do this is to select BamBam session type from your display "
"manager settings when logging in (look for a gear icon)."
msgstr ""
#. type: Plain text
#: bambam.6:73
msgid ""
"Another way is use command such as B from a text console."
msgstr ""
#. type: Plain text
#: bambam.6:77
msgid ""
"To turn the sound off and on, type B in the game. The legacy B "
"and B commands are also supported for now, they will be removed in a "
"future version."
msgstr ""
#. type: Plain text
#: bambam.6:80
msgid ""
"To toggle sticky mouse buttons, type B in the game. In this mode, "
"the mouse button only needs to be pressed once to start or stop drawing."
msgstr ""
#. type: Plain text
#: bambam.6:83
msgid ""
"bambam loads images (GIF, JPEG, PNG and TIFF files) and sounds (WAV and OGG "
"files) from the following directories:"
msgstr ""
#. type: Plain text
#: bambam.6:85
msgid "the B directory distributed with the game,"
msgstr ""
#. type: Plain text
#: bambam.6:87
msgid ""
"the B directory in bambam's B<$XDG_DATA_HOME> subdirectory (typically "
"~/.local/share/bambam/data)"
msgstr ""
#. type: Plain text
#: bambam.6:91
msgid ""
"When scanning directories for files, bambam B follow symbolic links "
"and descend directories. This makes is easy to have bambam use files located "
"elsewhere."
msgstr ""
#. type: Plain text
#: bambam.6:95
msgid ""
"As of version 1.3.0 bambam has experimental support for extensions, which "
"are a way of changing the program behaviour. Bambam loads extensions from "
"the following directories:"
msgstr ""
#. type: Plain text
#: bambam.6:97
msgid "the B directory distributed with the game,"
msgstr ""
#. type: Plain text
#: bambam.6:99
msgid ""
"the B directory in bambam's B<$XDG_DATA_HOME> subdirectory "
"(typically ~/.local/share/bambam/extensions)"
msgstr ""
#. type: Plain text
#: bambam.6:101
msgid ""
"See the EXTENSIONS.md file for documentation on creating and modifying "
"extensions."
msgstr ""
#. type: SH
#: bambam.6:101
#, no-wrap
msgid "AUTHOR"
msgstr ""
#. type: Plain text
#: bambam.6:104
msgid ""
"Spike Burch Espikeb@gmail.comE Marcin Owsiany Emarcin@owsiany."
"plE"
msgstr ""
bambam-1.4.1+dfsg/bambam-py.pot 0000664 0000000 0000000 00000015525 14730272043 0016256 0 ustar 00root root 0000000 0000000 # SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the bambam package.
# FIRST AUTHOR , YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: bambam 1.4.0\n"
"Report-Msgid-Bugs-To: marcin@owsiany.pl\n"
"POT-Creation-Date: 2024-08-24 17:17+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#. TRANSLATORS: command string to toggle sound.
#. Must not contain spaces, and should be be at least 4 characters long,
#. so that it is unlikely to be generated by a keyboard-mashing baby.
#. However it is recommended to keep it shorter than 10 characters so that
#. it is relatively easy to type by an adult without making mistakes.
#: bambam.py:51
msgid "sound"
msgstr ""
#. TRANSLATORS: command string to toggle sticky mouse button.
#. Must not contain spaces, and should be be at least 4 characters long,
#. so that it is unlikely to be generated by a keyboard-mashing baby.
#. However it is recommended to keep it shorter than 10 characters so that
#. it is relatively easy to type by an adult without making mistakes.
#: bambam.py:57
msgid "mouse"
msgstr ""
#. TRANSLATORS: command string to mute sounds.
#. Must not contain spaces, and should be be at least 4 characters long,
#. so that it is unlikely to be generated by a keyboard-mashing baby.
#. However it is recommended to keep it shorter than 10 characters so that
#. it is relatively easy to type by an adult without making mistakes.
#: bambam.py:63
msgid "mute"
msgstr ""
#. TRANSLATORS: command string to unmute sounds.
#. Must not contain spaces, and should be be at least 4 characters long,
#. so that it is unlikely to be generated by a keyboard-mashing baby.
#. However it is recommended to keep it shorter than 10 characters so that
#. it is relatively easy to type by an adult without making mistakes.
#: bambam.py:69
msgid "unmute"
msgstr ""
#. TRANSLATORS: command string to quit the game.
#. Must not contain spaces, and should be be at least 4 characters long,
#. so that it is unlikely to be generated by a keyboard-mashing baby.
#. However it is recommended to keep it shorter than 10 characters so that
#. it is relatively easy to type by an adult without making mistakes.
#: bambam.py:75
msgid "quit"
msgstr ""
#: bambam.py:91
#, python-format
msgid "Failed to load file \"%(file)s\": %(message)s"
msgstr ""
#: bambam.py:143
#, python-format
msgid ""
"image has height of 0 after resizing to fit within %(width)dx%(height)d "
"pixels"
msgstr ""
#. TRANSLATORS: "item" can refer to an image or sound file path
#: bambam.py:174
#, python-format
msgid "Skipping blacklisted item %s"
msgstr ""
#. TRANSLATORS: placeholder is for a space-separated list of supported command strings (more than one).
#: bambam.py:328
#, python-format
msgid "Commands: %s"
msgstr ""
#: bambam.py:355
msgid "Error: Wayland display detected."
msgstr ""
#: bambam.py:356
msgid "Cannot lock the keyboard safely."
msgstr ""
#: bambam.py:358
msgid "Press any key to quit."
msgstr ""
#: bambam.py:373
msgid "Please read the following important information!"
msgstr ""
#. TRANSLATORS: the substituted word will be the translated command for quitting the game.
#: bambam.py:409
#, python-format
msgid ""
"To quit the game after it starts, directly type the word %s on the keyboard."
msgstr ""
#. TRANSLATORS: "this" means the word quit from the preceding message, in this context.
#: bambam.py:413
msgid ""
"This, and other available commands are mentioned in the upper left-hand "
"corner of the window."
msgstr ""
#. TRANSLATORS: "this" means the word quit from the preceding message, in this context.
#: bambam.py:417
msgid "This command is mentioned in the upper left-hand corner of the window."
msgstr ""
#: bambam.py:420
msgid ""
"The game tries to grab the keyboard and mouse pointer focus, to keep your "
"child from causing damage to your files."
msgstr ""
#: bambam.py:424
msgid ""
"The game is now running in a dedicated login session, which provides some "
"additional safety. However it may still be possible for the child to "
"accidentally quit the game, or swich to a different virtual terminal (for "
"example using CTRL+ALT+Fx)."
msgstr ""
#: bambam.py:429
msgid ""
"Make sure other user sessions (if any) are locked with a password, if "
"leaving your child unattended with the game."
msgstr ""
#: bambam.py:433
msgid ""
"However in some environments it may be possible for the child to exit or "
"switch away from the game by using a special key combination. The exact "
"mechanism depends on your graphical environment, window manager, etc. "
"Examples include the Super (also known as Windows) key, function key "
"combinations (CTRL+ALT+Fx) or hot corners when using the mouse."
msgstr ""
#: bambam.py:439
msgid "We recommend to NOT LEAVE YOUR CHILD UNATTENDED with the game."
msgstr ""
#: bambam.py:441
msgid ""
"Please consider using a dedicated BamBam session instead (look for a gear "
"icon when logging in), which is safer."
msgstr ""
#: bambam.py:445
msgid "Press any key or mouse button to start the game now."
msgstr ""
#: bambam.py:464
#, python-format
msgid "Using data directory %s"
msgstr ""
#. TRANSLATORS: An extension directory is a directory which contains extensions.
#: bambam.py:470
#, python-format
msgid "Using extension directory %s"
msgstr ""
#: bambam.py:486
msgid "Error: pygame fonts not available. Exiting."
msgstr ""
#: bambam.py:490
msgid "Warning: Sound support not available."
msgstr ""
#: bambam.py:499
msgid "All sounds failed to load."
msgstr ""
#: bambam.py:508
msgid "All images failed to load."
msgstr ""
#: bambam.py:519
msgid "All extension sounds failed to load."
msgstr ""
#: bambam.py:522
#, python-format
msgid "Using extension \"%s\"."
msgstr ""
#: bambam.py:557
msgid "Keyboard mashing and doodling game for babies and toddlers."
msgstr ""
#: bambam.py:559
msgid "Warning: PyYAML not available, extension support disabled."
msgstr ""
#: bambam.py:561
msgid "Use the specified extension."
msgstr ""
#: bambam.py:563
msgid "Show UPPER-CASE letters."
msgstr ""
#: bambam.py:565
msgid "List of sound filename patterns to never play."
msgstr ""
#: bambam.py:567
msgid "List of image filename patterns to never show."
msgstr ""
#: bambam.py:569
msgid "Produce same sounds on same key presses."
msgstr ""
#: bambam.py:571
msgid "Use a dark background instead of a light one."
msgstr ""
#: bambam.py:573
msgid "Start muted."
msgstr ""
#: bambam.py:575
msgid "Start with sticky mouse buttons enabled."
msgstr ""
#: bambam.py:577
msgid "Do not prevent running under Wayland."
msgstr ""
#: bambam.py:581
msgid "Print detailed messages about game internals."
msgstr ""
#. TRANSLATORS: Main game window name.
#: bambam.py:590
msgid "Bam Bam"
msgstr ""
bambam-1.4.1+dfsg/bambam-session-desktop.pot 0000664 0000000 0000000 00000001372 14730272043 0020753 0 ustar 00root root 0000000 0000000 # SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the bambam package.
# FIRST AUTHOR , YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: bambam 1.4.0\n"
"Report-Msgid-Bugs-To: marcin@owsiany.pl\n"
"POT-Creation-Date: 2024-08-24 17:17+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: bambam-session.en.desktop:3
msgid "BamBam"
msgstr ""
#: bambam-session.en.desktop:4
msgid "Keyboard mashing and doodling game for babies and toddlers."
msgstr ""
bambam-1.4.1+dfsg/bambam-session.desktop 0000664 0000000 0000000 00000002235 14730272043 0020152 0 ustar 00root root 0000000 0000000 [Desktop Entry]
Name[ca]=BamBam
Name[de]=BamBam
Name[eo]=BamBam
Name[es]=BamBam
Name[fr]=BamBam
Name[ko]=BamBam
Name[nb_NO]=BamBam
Name[pl]=BamBam
Name[ta]=பம்பம்
Name[tr]=BamBam
Name=BamBam
Comment[ca]=Per a que els nadons i els nens petits matxuquin el teclat i facin gargots.
Comment[de]=Ein Tastendrückspiel für Babys und Kleinkinder.
Comment[eo]=Klavaro-premaĉa kaj desegnaĉa ludo por beboj.
Comment[es]=Juego de teclado y garabatos para los bebés y los niños pequeños.
Comment[fr]=Un jeu de clavier et de gribouillages pour les bébés.
Comment[ko]=영유아를 위한 키보드 매싱 및 낙서 게임.
Comment[pl]=Gra w klawiaturę i bazgranie dla małych dzieci.
Comment[ta]=குழந்தைகள் மற்றும் குழந்தைகளுக்கான விசைப்பலகை மேசிங் மற்றும் டூட்லிங் விளையாட்டு.
Comment[tr]=Bebekler ve küçük çocuklar için klavye ezme ve karalama oyunu.
Comment=Keyboard mashing and doodling game for babies and toddlers.
Exec=/usr/games/bambam --in-dedicated-session
TryExec=/usr/games/bambam
Icon=bambam
Type=Application
bambam-1.4.1+dfsg/bambam-session.en.desktop 0000664 0000000 0000000 00000000305 14730272043 0020547 0 ustar 00root root 0000000 0000000 [Desktop Entry]
Name=BamBam
Comment=Keyboard mashing and doodling game for babies and toddlers.
Exec=/usr/games/bambam --in-dedicated-session
TryExec=/usr/games/bambam
Icon=bambam
Type=Application
bambam-1.4.1+dfsg/bambam.6 0000664 0000000 0000000 00000007447 14730272043 0015177 0 ustar 00root root 0000000 0000000 .TH bambam 6 "24 August 2024" "version 1.4.0"
.SH NAME
bambam \- a keyboard mashing and doodling game for babies and toddlers
.SH SYNOPSIS
.B bambam
[\fIOPTIONS\fR]
.SH DESCRIPTION
.TP
\fB\-u\fR, \fB\-\-uppercase\fR
Show UPPER-CASE letters.
.TP
\fB\-d\fR, \fB\-\-deterministic\-sounds\fR
Produce same sounds on same key presses.
.TP
\fB\-D\fR, \fB\-\-dark\fR
Use a dark background instead of a light one.
.TP
\fB\-m\fR, \fB\-\-mute\fR
Start muted.
.TP
\fB\-\-sticky\-mouse\fR
Start with sticky mouse buttons enabled.
.TP
\fB\-\-sound_blacklist\fR=\fIGLOB\fR
List of sound filename patterns to never play.
.TP
\fB\-\-image_blacklist\fR=\fIGLOB\fR
List of image filename patterns to never show.
.TP
\fB\-\-extension\fR=\fIEXTENSION\fR
Use the specified extension.
.TP
\fB\-\-wayland\-ok\fR
Do not prevent running under Wayland. See the \fBNOTES\fR section.
.PP
bambam is a keyboard and mouse game for babies written in Python.
Pressing letter keys prints them in random locations and colours.
Pressing any other key draws little pictures in random locations.
Dragging the mouse while the mouse button is pressed draws in randomly changing
colours.
The screen is cleared at random.
.SH NOTES
.B
To quit, directly type the command mentioned in the upper left-hand corner of the window. In the English locales, this is the word: quit.
.PP
\fBBe aware\fR that there are ways to switch to another application from bambam:
.IP \(bu
when running under Wayland, it is not currently possible for bambam to grab all
key presses.
A consequence of that is that if you use GNOME Shell, pressing the Windows
(a.k.a. Super) key will activate the activities overview.
Please check your environment.
As a workaround, starting with version 1.1.2, bambam will try to detect if it
is running under Wayland. If this is the case, bambam will display a warning
and refuse to work.
You can disable this workaround, with the \fB\-\-wayland\-ok\fR option.
.IP \(bu
bambam does not block virtual terminal switching (e.g.
CTRL+ALT+F1). See the example 50-dont-vt-switch.conf file if you would like to
block that.
.IP \(bu
there may be other yet unknown ways in other environments and window managers.
.PP
For the above reasons, starting with version 1.2.0,
.B
it is possible and recommended to run bambam in a dedicated login session.
.IP \(bu
One way to do this is to select BamBam session type from your display manager
settings when logging in (look for a gear icon).
.IP \(bu
Another way is use command such as \fBexec startx bambam\fR from a text
console.
.PP
To turn the sound off and on, type \fBsound\fR in the game.
The legacy \fBmute\fR and \fBunmute\fR commands are also supported for now,
they will be removed in a future version.
.PP
To toggle sticky mouse buttons, type \fBmouse\fR in the game.
In this mode, the mouse button only needs to be pressed once to start or stop drawing.
.PP
bambam loads images (GIF, JPEG, PNG and TIFF files) and sounds (WAV and OGG
files) from the following directories:
.IP \(bu
the \fBdata\fR directory distributed with the game,
.IP \(bu
the \fBdata\fR directory in bambam's \fB$XDG_DATA_HOME\fR subdirectory (typically ~/.local/share/bambam/data)
.PP
When scanning directories for files, bambam \fBdoes\fR follow symbolic links
and descend directories. This makes is easy to have bambam use files located
elsewhere.
.PP
As of version 1.3.0 bambam has experimental support for extensions,
which are a way of changing the program behaviour.
Bambam loads extensions from the following directories:
.IP \(bu
the \fBextensions\fR directory distributed with the game,
.IP \(bu
the \fBextensions\fR directory in bambam's \fB$XDG_DATA_HOME\fR subdirectory (typically ~/.local/share/bambam/extensions)
.PP
See the EXTENSIONS.md file for documentation on creating and modifying extensions.
.SH AUTHOR
Spike Burch
.BR
Marcin Owsiany
bambam-1.4.1+dfsg/bambam.desktop 0000664 0000000 0000000 00000004764 14730272043 0016502 0 ustar 00root root 0000000 0000000 [Desktop Entry]
Name[ca]=BamBam
Name[de]=BamBam
Name[eo]=BamBam
Name[es]=BamBam
Name[fr]=BamBam
Name[ko]=BamBam
Name[nb_NO]=BamBam
Name[pl]=BamBam
Name[ta]=பம்பம்
Name[tr]=BamBam
Name=BamBam
Comment[ca]=Per a que els nadons i els nens petits matxuquin el teclat i facin gargots.
Comment[de]=Ein Tastendrückspiel für Babys und Kleinkinder.
Comment[eo]=Klavaro-premaĉa kaj desegnaĉa ludo por beboj.
Comment[es]=Juego de teclado y garabatos para los bebés y los niños pequeños.
Comment[fr]=Un jeu de clavier et de gribouillages pour les bébés.
Comment[ko]=영유아를 위한 키보드 매싱 및 낙서 게임.
Comment[pl]=Gra w klawiaturę i bazgranie dla małych dzieci.
Comment[ta]=குழந்தைகள் மற்றும் குழந்தைகளுக்கான விசைப்பலகை மேசிங் மற்றும் டூட்லிங் விளையாட்டு.
Comment[tr]=Bebekler ve küçük çocuklar için klavye ezme ve karalama oyunu.
Comment=Keyboard mashing and doodling game for babies and toddlers.
Exec=/usr/games/bambam
Icon=bambam
Terminal=false
Type=Application
Categories=Game;KidsGame;
# TRANSLATORS: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! Do NOT translate or remove the application name from the list! It is used for search.
Keywords[ca]=bambam;nadó;nen;nen petit;joc;utilitzar el teclat;ratolí;gargots;nena petita;
Keywords[de]=bambam;Baby;Kind;Kleinkind;Spiel;Tastaturkorrekturen;Maus;Kritzeln;
Keywords[eo]=bambam;bebo;infano;ludo;premaĉo;muso;desegnaĉo;
Keywords[es]=bambam;bebé;niño;jóvenes;juego;teclado;ratón;garabatos;
Keywords[fr]=bambam;bebe;enfant;touts-petits;jeu;clavier;souris;gribouillage;
Keywords[ko]=bambam;baby;child;toddler;game;keyboard mashing;mouse;doodling;뱀뱀;아기;어린이;유아;게임;키보드 매싱;마우스;낙서;탕탕;퍽퍽;팡팡;
Keywords[nb_NO]=bambam;baby;barn;spedbarn;spill;tastaturtrykking;mus;dodling;
Keywords[pl]=bambam;dziecko;niemowle;gra;klawiatura;mysz;bazgranie;rysowanie;
Keywords[ta]=பாம்பம்; கைக்குழந்தை; குழந்தை; குறுநடை போடும் குழந்தை; விளையாட்டு; விசைப்பலகை பிசிங்; மவுச்; டூட்லிங்;
Keywords[tr]=bambam;bebek;çocuk;bebiş;oyun;klavye;fare;gülücük;eğlence;
Keywords=bambam;baby;child;toddler;game;keyboard mashing;mouse;doodling;
bambam-1.4.1+dfsg/bambam.en.desktop 0000664 0000000 0000000 00000000750 14730272043 0017072 0 ustar 00root root 0000000 0000000 [Desktop Entry]
Name=BamBam
Comment=Keyboard mashing and doodling game for babies and toddlers.
Exec=/usr/games/bambam
Icon=bambam
Terminal=false
Type=Application
Categories=Game;KidsGame;
# TRANSLATORS: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! Do NOT translate or remove the application name from the list! It is used for search.
Keywords=bambam;baby;child;toddler;game;keyboard mashing;mouse;doodling;
bambam-1.4.1+dfsg/bambam.es.6 0000664 0000000 0000000 00000010534 14730272043 0015574 0 ustar 00root root 0000000 0000000 .\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.TH bambam 6 "24 August 2024" "version 1.4.0"
.SH NOMBRE
bambam: un juego para machacar y garabatear con el teclado para bebés y
niños pequeños
.SH SINOPSIS
\fBbambam\fP [\fIOPCIONES\fP]
.SH DESCRIPCIÓN
.TP
\fB\-u\fP, \fB\-\-mayúscula\fP
Muestra MAYÚSCULAS.
.TP
\fB\-d\fP, \fB\-\-sonidos\-deterministas\fP
Produce los mismos sonidos con las mismas pulsaciones de teclas.
.TP
\fB\-D\fP, \fB\-\-oscuro\fP
Usa un fondo oscuro en vez de uno claro.
.TP
\fB\-m\fP, \fB\-\-silenciar\fP
Start muted.
.TP
\fB\-\-sticky\-mouse\fP
Start with sticky mouse buttons enabled.
.TP
\fB\-\-sound_blacklist\fP=\fIGLOB\fP
Lista de patrones de archivos de sonido para no reproducir nunca.
.TP
\fB\-\-image_blacklist\fP=\fIGLOB\fP
Lista de patrones de imágenes para no mostrar nunca.
.TP
\fB\-\-extensión\fP=\fIEXTENSIÓN\fP
Utiliza la extensión especificada.
.TP
\fB\-\-wayland\-ok\fP
No impida la ejecución bajo Wayland. Ver apartado \fBNOTAS\fP.
.PP
Bambam es un juego de teclado y ratón para bebés escrito en
Python. Presionando teclas de letras se imprimen en sitios y colores
aleatorios. Presionando cualquier otra tecla dibuja imágenes en sitios
aleatorios. Arrastrando el ratón mientras el botón del ratón está presionado
dibuja en colores aleatorios cambiantes. La pantalla es borrada de manera
aleatoria.
.SH NOTAS
\fBPara salir, escribe directamente el comando mencionado en la esquina derecha de la ventana. Para españoles, la palabra es: salir.\fP
.PP
\fBTenga en cuenta\fP que hay formas de cambiar a otra aplicación desde bambam:
.IP \(bu
Actualmente, BamBam no puede determinar todas las pulsaciones de teclas en
Wayland. Como resultado, al usar GNOME Shell, al presionar la tecla Windows
o Super se abre la descripción general de la actividad. Por favor, compruebe
su entorno. A partir de la versión 1.1.2, esto se puede remediar por el
hecho de que BamBam intenta determinar si se ejecuta bajo Wayland. Si ese es
el caso, BamBam mostrará una advertencia y dejará de funcionar. Puede
desactivar esta función con la opción \fB\-\-wayland\-ok\fP.
.IP \(bu
bambam no bloquea el cambio de terminal virtual (por ejemplo,
CTRL+ALT+F1). Consulte el archivo example\-50\-dont\-vt\-switch.conf si desea
bloquear esto.
.IP \(bu
Puede haber otras formas, hasta ahora desconocidas, de hacer esto en
entornos y administradores de ventanas.
.PP
Por las razones anteriores, a partir de la versión 1.2.0, \fBes posible y recomendable ejecutar bambam en una sesión de inicio de sesión dedicada.\fP
.IP \(bu
Una forma de hacer esto es seleccionar el tipo de sesión de BamBam en la
configuración del administrador de pantalla al iniciar sesión (busque el
icono de una herramienta).
.IP \(bu
Otra opción es usar un comando como \fBexec startx bambam\fP en la consola de
texto.
.PP
To turn the sound off and on, type \fBsound\fP in the game. The legacy \fBmute\fP
and \fBunmute\fP commands are also supported for now, they will be removed in a
future version.
.PP
To toggle sticky mouse buttons, type \fBmouse\fP in the game. In this mode,
the mouse button only needs to be pressed once to start or stop drawing.
.PP
Bambam es capaz de cargar imágenes (archivos GIF, JPEG, PNG y TIFF) y
sonidos (archivos WAV y OGG) de los siguientes directorios:
.IP \(bu
El directorio \fBdata\fP distribuido con el juego,
.IP \(bu
el directorio \fBdata\fP en el subdirectorio \fBXDG_DATA_HOME\fP de bambam
(normalmente ~/.local/share/bambam/data)
.PP
Al buscar archivos en un directorio, bambam \fBdoes\fP desciende del directorio
siguiendo enlaces simbólicos. Esto facilita que bambam use archivos en otros
lugares.
.PP
A partir de la versión 1.3.0 bambam tiene soporte experimental para
extensiones, que son una forma de cambiar el comportamiento del programa.
Bambam carga extensiones desde los siguientes directorios:
.IP \(bu
el directorio \fBextensions\fP distribuido con el juego,
.IP \(bu
el directorio \fBextensions\fP en el subdirectorio \fBXDG_DATA_HOME\fP de bambam
(normalmente ~/.local/share/bambam/extensions)
.PP
Consulte el archivo EXTENSIONS.md para obtener documentación sobre la
creación y modificación de las extensiones.
.SH AUTOR
Spike Burch Marcin Owsiany
bambam-1.4.1+dfsg/bambam.fr.6 0000664 0000000 0000000 00000011130 14730272043 0015565 0 ustar 00root root 0000000 0000000 .\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.TH bambam 6 "24 August 2024" "version 1.4.0"
.SH NOM
bambam \- un jeu de clavier et de gribouillage pour les bébés
.SH SYNOPSIS
\fBbambam\fP [\fIOPTIONS\fP]
.SH DESCRIPTION
.TP
\fB\-u\fP, \fB\-\-uppercase\fP
Afficher les lettres MAJUSCULES.
.TP
\fB\-d\fP, \fB\-\-deterministic\-sounds\fP
Produire les mêmes sons sur les mêmes touches.
.TP
\fB\-D\fP, \fB\-\-dark\fP
Utiliser un fond sombre au lieu d’un fond clair.
.TP
\fB\-m\fP, \fB\-\-mute\fP
Start muted.
.TP
\fB\-\-sticky\-mouse\fP
Start with sticky mouse buttons enabled.
.TP
\fB\-\-sound_blacklist\fP=\fIGLOB\fP
Liste des modèles de noms de fichiers sonores à ne jamais jouer.
.TP
\fB\-\-image_blacklist\fP=\fIGLOB\fP
Liste des modèles de noms de fichiers d’image à ne jamais afficher.
.TP
\fB\-\-extension\fP=\fIEXTENSION\fP
Utilisez l'extension spécifiée.
.TP
\fB\-\-wayland\-ok\fP
Ne pas empêcher d'exécuter sous Wayland. Voir la section \fBNOTES\fP.
.PP
bambam est un jeu de clavier et de souris pour bébés écrit en
Python. Appuyer sur les touches alphabétiques les affiche dans des
emplacements et des couleurs aléatoires. Appuyer sur n'importe quelle autre
touche dessine de petites images dans des endroits aléatoires. Faire glisser
la souris tout en appuyant sur le bouton de la souris dessine dans des
couleurs changeantes de manière aléatoire. L'écran est effacé aléatoirement.
.SH REMARQUES
\fBPour quitter, tapez directement la commande mentionnée dans le coin supérieur gauche de la fenêtre. Dans les langues anglaises, c'est le mot : quit.\fP
.PP
\fBAttention\fP il existe des moyens de passer à une autre application depuis
bambam\ :
.IP \(bu
lorsqu'il est exécuté sur Wayland, il n'est actuellement pas possible pour
bambam de recevoir toutes les touches appuyées. Une des conséquences est
que si vous utilisez le Shell GNOME, appuyer sur la touche WIndows (alias
Super) activera la vue d'ensemble des activités. Veuillez vérifier votre
environnement. Comme solution de contournement, à partir de la version
1.1.2, bambam détectera s'il est exécuté sur Wayland. Si c'est le cas,
bambam affichera un avertissement et refusera de fonctionner. Vous pouvez
désactiver cette solution avec l'option \fB\-\-wayland\-ok\fP.
.IP \(bu
bambam n'empêche pas de passer aux terminaux virtuels (par ex.
CTRL+ALT+F1). Voir l'exemple 50\-dont\-vt\-switch.conf si vous souhaitez
bloquer cela.
.IP \(bu
il existe peut\-être d'autres moyens encore inconnus dans d'autres
environnements et gestionnaires de fenêtres.
.PP
Pour les raisons ci\-dessus, à partir de la version 1.2.0, \fBil est possible et recommandé d'exécuter bambam dans une session de connexion dédiée.\fP
.IP \(bu
Une façon de procéder consiste à sélectionner le type de session BamBam dans
les paramètres de votre gestionnaire de fenêtres lorsque vous vous connectez
(cherche l'icône d'engrenage).
.IP \(bu
Une autre façon de faire est d'utiliser une commande comme \fBexec startx bambam\fP depuis une console textuelle.
.PP
To turn the sound off and on, type \fBsound\fP in the game. The legacy \fBmute\fP
and \fBunmute\fP commands are also supported for now, they will be removed in a
future version.
.PP
To toggle sticky mouse buttons, type \fBmouse\fP in the game. In this mode,
the mouse button only needs to be pressed once to start or stop drawing.
.PP
bambam charge les images (fichiers GIF, JPEG, PNG et TIFF) et les sons
(fichiers WAV et OGG) à partir des répertoires suivants\ :
.IP \(bu
le dossier \fBdata\fP fourni avec le jeu,
.IP \(bu
le répertoire \fBdata\fP dans le sous\-répertoire de bambam \fB$XDG_DATA_HOME\fP
(généralement ~/.local/share/bambam/data)
.PP
Lors de la recherche de fichiers dans les dossiers, bambam \fBsuit\fP les liens
symboliques et descend les répertoires. Cela rend facile le placement des
fichiers d'utilisation de bambam ailleurs.
.PP
À partir de la version 1.3.0, bambam supporte expérimentalement des
extensions, qui sont une manière de modifier le comportement du programme.
Bambam charge les extensions depuis les répertoires suivants :
.IP \(bu
le répertoire \fBextensions\fP fourni avec le jeu,
.IP \(bu
le répertoire \fBextensions\fP dans le sous\-répertoire \fB$XDG_DATA_HOME\fP de
bambam (en général ~/.local/share/bambam/extensions)
.PP
Voir le fichier EXTENSIONS.md pour la documentation sur la création et la
modification d'extensions.
.SH AUTEUR
Spike Burch Marcin Owsiany
bambam-1.4.1+dfsg/bambam.ko.6 0000664 0000000 0000000 00000010775 14730272043 0015605 0 ustar 00root root 0000000 0000000 .\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.TH bambam 6 "24 August 2024" "version 1.4.0"
.SH 이름
bambam \- 영유아를 위한 키보드 매싱 및 낙서 게임
.SH 개요
\fBbambam\fP [\fI옵션\fP]
.SH 설명
.TP
\fB\-u\fP, \fB\-\-uppercase\fP
대문자를 표시합니다.
.TP
\fB\-d\fP, \fB\-\-deterministic\-sounds\fP
동일한 키를 누를 때 동일한 소리가 납니다.
.TP
\fB\-D\fP, \fB\-\-dark\fP
밝은 배경 대신 어두운 배경을 사용합니다.
.TP
\fB\-m\fP, \fB\-\-mute\fP
Start muted.
.TP
\fB\-\-sticky\-mouse\fP
Start with sticky mouse buttons enabled.
.TP
\fB\-\-sound_blacklist\fP=\fIGLOB\fP
재생하지 않을 사운드 파일이름 패턴 목록입니다.
.TP
\fB\-\-image_blacklist\fP=\fIGLOB\fP
절대 표시하지 않을 이미지 파일이름 패턴 목록입니다.
.TP
\fB\-\-extension\fP=\fIEXTENSION\fP
지정한 확장자를 사용합니다.
.TP
\fB\-\-wayland\-ok\fP
Wayland에서 실행하는 것을 막지 마십시오. \fB참고\fP 섹션을 참조하십시오.
.PP
bambam은 Python으로 작성된 유아용 키보드 및 마우스 게임입니다. 문자 키를 누르면 임의의 위치와 색상으로 인쇄됩니다. 다른
키를 누르면 임의의 위치에 작은 그림이 그려집니다. 마우스 버튼을 누른 상태에서 마우스를 드래그하면 무작위로 변화하는 색상이
그려집니다. 무작위로 화면이 지워집니다.
.SH 참고
\fB종료하려면 창의 왼쪽 상단 모서리에 언급된 명령을 직접 입력합니다. 영어 로케일에서는 단어: quit입니다.\fP
.PP
\fBBe aware\fP에서 다른 응용프로그램으로 전환하는 방법은 다음과 같습니다:
.IP \(bu
Wayland에서 실행할 때 bambam이 모든 키 누름을 잡는 것은 현재 불가능합니다. 그 결과 GNOME 셸을 사용하는 경우
Windows(일명 Super) 키를 누르면 활동 개요가 활성화됩니다. 환경을 확인해 주세요. 해결 방법으로 버전 1.1.2부터
bambam은 Wayland에서 실행 중인지 감지하려고 시도합니다. 이 경우 bambam은 경고를 표시하고 작업을 거부합니다.
\fB\-\-wayland\-ok\fP 옵션을 사용하여 이 해결 방법을 비활성화할 수 있습니다.
.IP \(bu
bambam은 가상 터미널 전환을 차단하지 않습니다(예: CTRL+ALT+F1). 차단하려면 예제
50\-dont\-vt\-switch.conf 파일을 참조하십시오.
.IP \(bu
다른 환경 및 창 관리자에는 아직 알려지지 않은 다른 방법이 있을 수 있습니다.
.PP
위와 같은 이유로 버전 1.2.0부터 \fB전용 로그인 세션에서 bambam을 실행할 수 있으며 권장합니다.\fP
.IP \(bu
이를 수행하는 한 가지 방법은 로그인할 때 디스플레이 관리자 설정에서 BamBam 세션 유형을 선택하는 것입니다(톱니바퀴 아이콘 찾기).
.IP \(bu
또 다른 방법은 텍스트 콘솔에서 \fBexec startx bambam\fP과 같은 명령을 사용하는 것입니다.
.PP
To turn the sound off and on, type \fBsound\fP in the game. The legacy \fBmute\fP
and \fBunmute\fP commands are also supported for now, they will be removed in a
future version.
.PP
To toggle sticky mouse buttons, type \fBmouse\fP in the game. In this mode,
the mouse button only needs to be pressed once to start or stop drawing.
.PP
bambam은 다음 디렉터리에서 이미지(GIF, JPEG, PNG 및 TIFF 파일) 및 사운드(WAV 및 OGG 파일)를 불러옵니다:
.IP \(bu
게임과 함께 배포된 \fBdata\fP 디렉터리,
.IP \(bu
bambam의 \fB$XDG_DATA_HOME\fP 하위 디렉토리에 있는 \fBdata\fP 디렉토리(보통
~/.local/share/bambam/data)
.PP
디렉터리에서 파일을 검색할 때 bambam \fBdoes\fP는 심볼릭 링크를 따라 디렉터리를 내려갑니다. 이렇게 하면 bambam이 다른
곳에 있는 파일을 쉽게 사용할 수 있습니다.
.PP
버전 1.3.0을 기준으로 bambam은 프로그램 동작을 변경하는 방식인 확장을 실험적으로 지원합니다. bambam은 다음 디렉터리에서
확장을 로드합니다:
.IP \(bu
게임과 함께 배포된 \fBextensions\fP 디렉토리,
.IP \(bu
bambam의 \fB$XDG_DATA_HOME\fP 하위 디렉토리에 있는 \fBextensions\fP 디렉토리(보통
~/.local/share/bambam/extensions)
.PP
확장자 생성 및 수정에 대한 문서는 EXTENSIONS.md 파일을 참조하십시오.
.SH 작성자
Spike Burch Marcin Owsiany
bambam-1.4.1+dfsg/bambam.pl.6 0000664 0000000 0000000 00000010412 14730272043 0015573 0 ustar 00root root 0000000 0000000 .\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.TH bambam 6 "24 sierpnia 2024" "wersja 1.4.0"
.SH NAZWA
bambam \- gra w klawiaturę i bazgranie dla małych dzieci
.SH SKŁADNIA
\fBbambam\fP [\fIOPCJE\fP]
.SH OPIS
.TP
\fB\-u\fP, \fB\-\-uppercase\fP
Pokazuj WIELKIE litery.
.TP
\fB\-d\fP, \fB\-\-deterministic\-sounds\fP
Wydawaj te same dźwięki przy tych samych klawiszach.
.TP
\fB\-D\fP, \fB\-\-dark\fP
Używaj ciemnego tła zamiast jasnego.
.TP
\fB\-m\fP, \fB\-\-mute\fP
Rozpocznij w trybie wyciszonym.
.TP
\fB\-\-sticky\-mouse\fP
Rozpocznij w trybie lepkich przycisków myszy.
.TP
\fB\-\-sound_blacklist\fP=\fIGLOB\fP
Lista wzorów nazw plików dźwięków, które nigdy nie mają być odtwarzane.
.TP
\fB\-\-image_blacklist\fP=\fIGLOB\fP
Lista wzorów nazw plików obrazów, które nigdy nie mają być wyświetlane.
.TP
\fB\-\-extension\fP=\fIROZSZERZENIE\fP
Użyj podanego rozszerzenia.
.TP
\fB\-\-wayland\-ok\fP
Nie zapobiegaj działaniu pod Wayland. Patrz \fBUWAGI\fP.
.PP
bambam to gra z użyciem klawiatury i myszy dla małych dzieci, napisana w
języku Python. Naciskanie klawiszy liter wyświetla je w losowych miejscach
i kolorach. Naciskanie innych klawiszy rysuje małe obrazki w losowych
miejscach. Przeciąganie myszą z naciśniętym przyciskiem rysuje w losowo
zmieniających się kolorach. Ekran jest kasowany losowo.
.SH UWAGI
\fBAby zakończyć grę, wpisz bezpośrednio na klawiaturze komendę wspomnianą w lewym górnym rogu okna. W Polskim locale jest to słowo: koniec.\fP
.PP
\fBUwaga\fP, istnieją sposoby na to by przełączyć się z bambam do innego
programu:
.IP \(bu
bambam nie potrafi obecnie przechwytywać wszystkich naciśnięć klawiszy gdy
działa w sesji Wayland. W rezultacie gdy używany jest GNOME Shell,
naciśnięcie klawisza Windows (znanego też jako Super) włączy podgląd
aktywności. Proszę sprawdzić to w swoim środowisku. Jako środek
zapobiegawczy, od wersji 1.1.2 bambam próbuje wykryć, czy działa pod
Wayland. Jeśli tak jest, wyświetla ostrzeżenie i odmawia działania. Możesz
wyłączyć to zachowanie przy pomocy opcji \fB\-\-wayland\-ok\fP.
.IP \(bu
bambam nie blokuje przełączania terminali wirtualnych Linuksa
(np. CTRL+ALT+F1). Jeśli chciałbyś to zablokować, zobacz przykładowy plik
50\-dont\-vt\-switch.conf.
.IP \(bu
być może istnieją jeszcze nieznane sposoby w innych środowiskach i
zarządcach okien.
.PP
Z powyższych powodów, od wersji 1.2.0 \fBjest możliwe i zalecane uruchamianie bambam w dedykowanej sesji logowania.\fP
.IP \(bu
Jednym ze sposobów na to jest wybranie typu sesji BamBam w twoim menedżerze
wyświetlania podczas logowania się (szukaj ikony koła zębatego).
.IP \(bu
Innym jest użycie komendy takiej jak \fBexec startx bambam\fP z konsoli
tekstowej.
.PP
Aby wyłączyć lub włączyć dźwięk, wpisz w trakcie gry słowo \fBdzwiek\fP. Stare
komendy \fBwycisz\fP i \fBzglosnij\fP także są nadal są obsługiwane, zostaną one
usunięte w przyszłej wersji.
.PP
Aby włączyć lub wyłączyć lepkie przyciskie myszy, wpisz w trakcie gry słowo
\fBmysz\fP. W tym trybie wystarczy przycisnąć przycisk myszy raz by zacząć lub
skończyć rysować.
.PP
bambam ładuje obrazy (pliki GIF, JPEG, PNG i TIFF) oraz dźwięki (pliki WAV i
OGG) z następujących katalogów:
.IP \(bu
katalog \fBdata\fP będący częścią gry,
.IP \(bu
katalog \fBdata\fP w podkatalogu \fB$XDG_DATA_HOME\fP programu bambam (zwykle
~/.local/share/bambam/data)
.PP
Poszukując plików w tych katalogach, bambam \fBpodąża\fP za dowiązaniami
symbolicznymi i wchodzi wgłąb katalogów. Dzięki temu można łatwo udostępnić
grze pliki umieszczone gdzie indziej.
.PP
Od wersji 1.3.0 bambam posiada eksperymentalną obsługę rozszerzeń, czyli
sposobu na zmianę działania programu. Bambam ładuje rozszerzenia z
następujących katalogów:
.IP \(bu
katalog \fBextensions\fP będący częścią gry,
.IP \(bu
katalog \fBextensions\fP w podkatalogu \fB$XDG_DATA_HOME\fP programu bambam
(zwykle ~/.local/share/bambam/extensions)
.PP
Więcej na temat tworzenia i modyfikacji rozszerzeń w pliku EXTENSIONS.md.
.SH AUTOR
Spike Burch Marcin Owsiany
bambam-1.4.1+dfsg/bambam.pot 0000664 0000000 0000000 00000037360 14730272043 0015631 0 ustar 00root root 0000000 0000000 # #-#-#-#-# bambam-py.pot (bambam 1.4.0) #-#-#-#-#
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the bambam package.
# FIRST AUTHOR , YEAR.
#
# #-#-#-#-# bambam-man.pot (PACKAGE VERSION) #-#-#-#-#
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR , YEAR.
#
# #-#-#-#-# bambam-desktop.pot (bambam 1.4.0) #-#-#-#-#
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the bambam package.
# FIRST AUTHOR , YEAR.
#
# #-#-#-#-# bambam-session-desktop.pot (bambam 1.4.0) #-#-#-#-#
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the bambam package.
# FIRST AUTHOR , YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"#-#-#-#-# bambam-py.pot (bambam 1.4.0) #-#-#-#-#\n"
"Project-Id-Version: bambam 1.4.0\n"
"Report-Msgid-Bugs-To: marcin@owsiany.pl\n"
"POT-Creation-Date: 2024-08-24 17:17+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"#-#-#-#-# bambam-man.pot (PACKAGE VERSION) #-#-#-#-#\n"
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2024-08-24 17:17+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"#-#-#-#-# bambam-desktop.pot (bambam 1.4.0) #-#-#-#-#\n"
"Project-Id-Version: bambam 1.4.0\n"
"Report-Msgid-Bugs-To: marcin@owsiany.pl\n"
"POT-Creation-Date: 2024-08-24 17:17+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"#-#-#-#-# bambam-session-desktop.pot (bambam 1.4.0) #-#-#-#-#\n"
"Project-Id-Version: bambam 1.4.0\n"
"Report-Msgid-Bugs-To: marcin@owsiany.pl\n"
"POT-Creation-Date: 2024-08-24 17:17+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. TRANSLATORS: command string to toggle sound.
#. Must not contain spaces, and should be be at least 4 characters long,
#. so that it is unlikely to be generated by a keyboard-mashing baby.
#. However it is recommended to keep it shorter than 10 characters so that
#. it is relatively easy to type by an adult without making mistakes.
#: bambam.py:51
msgid "sound"
msgstr ""
#. TRANSLATORS: command string to toggle sticky mouse button.
#. Must not contain spaces, and should be be at least 4 characters long,
#. so that it is unlikely to be generated by a keyboard-mashing baby.
#. However it is recommended to keep it shorter than 10 characters so that
#. it is relatively easy to type by an adult without making mistakes.
#: bambam.py:57
msgid "mouse"
msgstr ""
#. TRANSLATORS: command string to mute sounds.
#. Must not contain spaces, and should be be at least 4 characters long,
#. so that it is unlikely to be generated by a keyboard-mashing baby.
#. However it is recommended to keep it shorter than 10 characters so that
#. it is relatively easy to type by an adult without making mistakes.
#: bambam.py:63
msgid "mute"
msgstr ""
#. TRANSLATORS: command string to unmute sounds.
#. Must not contain spaces, and should be be at least 4 characters long,
#. so that it is unlikely to be generated by a keyboard-mashing baby.
#. However it is recommended to keep it shorter than 10 characters so that
#. it is relatively easy to type by an adult without making mistakes.
#: bambam.py:69
msgid "unmute"
msgstr ""
#. TRANSLATORS: command string to quit the game.
#. Must not contain spaces, and should be be at least 4 characters long,
#. so that it is unlikely to be generated by a keyboard-mashing baby.
#. However it is recommended to keep it shorter than 10 characters so that
#. it is relatively easy to type by an adult without making mistakes.
#: bambam.py:75
msgid "quit"
msgstr ""
#: bambam.py:91
#, python-format
msgid "Failed to load file \"%(file)s\": %(message)s"
msgstr ""
#: bambam.py:143
#, python-format
msgid ""
"image has height of 0 after resizing to fit within %(width)dx%(height)d "
"pixels"
msgstr ""
#. TRANSLATORS: "item" can refer to an image or sound file path
#: bambam.py:174
#, python-format
msgid "Skipping blacklisted item %s"
msgstr ""
#. TRANSLATORS: placeholder is for a space-separated list of supported command strings (more than one).
#: bambam.py:328
#, python-format
msgid "Commands: %s"
msgstr ""
#: bambam.py:355
msgid "Error: Wayland display detected."
msgstr ""
#: bambam.py:356
msgid "Cannot lock the keyboard safely."
msgstr ""
#: bambam.py:358
msgid "Press any key to quit."
msgstr ""
#: bambam.py:373
msgid "Please read the following important information!"
msgstr ""
#. TRANSLATORS: the substituted word will be the translated command for quitting the game.
#: bambam.py:409
#, python-format
msgid ""
"To quit the game after it starts, directly type the word %s on the keyboard."
msgstr ""
#. TRANSLATORS: "this" means the word quit from the preceding message, in this context.
#: bambam.py:413
msgid ""
"This, and other available commands are mentioned in the upper left-hand "
"corner of the window."
msgstr ""
#. TRANSLATORS: "this" means the word quit from the preceding message, in this context.
#: bambam.py:417
msgid "This command is mentioned in the upper left-hand corner of the window."
msgstr ""
#: bambam.py:420
msgid ""
"The game tries to grab the keyboard and mouse pointer focus, to keep your "
"child from causing damage to your files."
msgstr ""
#: bambam.py:424
msgid ""
"The game is now running in a dedicated login session, which provides some "
"additional safety. However it may still be possible for the child to "
"accidentally quit the game, or swich to a different virtual terminal (for "
"example using CTRL+ALT+Fx)."
msgstr ""
#: bambam.py:429
msgid ""
"Make sure other user sessions (if any) are locked with a password, if "
"leaving your child unattended with the game."
msgstr ""
#: bambam.py:433
msgid ""
"However in some environments it may be possible for the child to exit or "
"switch away from the game by using a special key combination. The exact "
"mechanism depends on your graphical environment, window manager, etc. "
"Examples include the Super (also known as Windows) key, function key "
"combinations (CTRL+ALT+Fx) or hot corners when using the mouse."
msgstr ""
#: bambam.py:439
msgid "We recommend to NOT LEAVE YOUR CHILD UNATTENDED with the game."
msgstr ""
#: bambam.py:441
msgid ""
"Please consider using a dedicated BamBam session instead (look for a gear "
"icon when logging in), which is safer."
msgstr ""
#: bambam.py:445
msgid "Press any key or mouse button to start the game now."
msgstr ""
#: bambam.py:464
#, python-format
msgid "Using data directory %s"
msgstr ""
#. TRANSLATORS: An extension directory is a directory which contains extensions.
#: bambam.py:470
#, python-format
msgid "Using extension directory %s"
msgstr ""
#: bambam.py:486
msgid "Error: pygame fonts not available. Exiting."
msgstr ""
#: bambam.py:490
msgid "Warning: Sound support not available."
msgstr ""
#: bambam.py:499
msgid "All sounds failed to load."
msgstr ""
#: bambam.py:508
msgid "All images failed to load."
msgstr ""
#: bambam.py:519
msgid "All extension sounds failed to load."
msgstr ""
#: bambam.py:522
#, python-format
msgid "Using extension \"%s\"."
msgstr ""
#: bambam.py:557 bambam.en.desktop:4 bambam-session.en.desktop:4
msgid "Keyboard mashing and doodling game for babies and toddlers."
msgstr ""
#: bambam.py:559
msgid "Warning: PyYAML not available, extension support disabled."
msgstr ""
#. #-#-#-#-# bambam-man.pot (PACKAGE VERSION) #-#-#-#-#
#. type: Plain text
#: bambam.py:561 bambam.6:32
msgid "Use the specified extension."
msgstr ""
#. #-#-#-#-# bambam-man.pot (PACKAGE VERSION) #-#-#-#-#
#. type: Plain text
#: bambam.py:563 bambam.6:11
msgid "Show UPPER-CASE letters."
msgstr ""
#. #-#-#-#-# bambam-man.pot (PACKAGE VERSION) #-#-#-#-#
#. type: Plain text
#: bambam.py:565 bambam.6:26
msgid "List of sound filename patterns to never play."
msgstr ""
#. #-#-#-#-# bambam-man.pot (PACKAGE VERSION) #-#-#-#-#
#. type: Plain text
#: bambam.py:567 bambam.6:29
msgid "List of image filename patterns to never show."
msgstr ""
#. #-#-#-#-# bambam-man.pot (PACKAGE VERSION) #-#-#-#-#
#. type: Plain text
#: bambam.py:569 bambam.6:14
msgid "Produce same sounds on same key presses."
msgstr ""
#. #-#-#-#-# bambam-man.pot (PACKAGE VERSION) #-#-#-#-#
#. type: Plain text
#: bambam.py:571 bambam.6:17
msgid "Use a dark background instead of a light one."
msgstr ""
#. #-#-#-#-# bambam-man.pot (PACKAGE VERSION) #-#-#-#-#
#. type: Plain text
#: bambam.py:573 bambam.6:20
msgid "Start muted."
msgstr ""
#. #-#-#-#-# bambam-man.pot (PACKAGE VERSION) #-#-#-#-#
#. type: Plain text
#: bambam.py:575 bambam.6:23
msgid "Start with sticky mouse buttons enabled."
msgstr ""
#: bambam.py:577
msgid "Do not prevent running under Wayland."
msgstr ""
#: bambam.py:581
msgid "Print detailed messages about game internals."
msgstr ""
#. TRANSLATORS: Main game window name.
#: bambam.py:590
msgid "Bam Bam"
msgstr ""
#. type: TH
#: bambam.6:1
#, no-wrap
msgid "bambam"
msgstr ""
#. type: TH
#: bambam.6:1
#, no-wrap
msgid "24 August 2024"
msgstr ""
#. type: TH
#: bambam.6:1
#, no-wrap
msgid "version 1.4.0"
msgstr ""
#. type: SH
#: bambam.6:2
#, no-wrap
msgid "NAME"
msgstr ""
#. type: Plain text
#: bambam.6:4
msgid "bambam - a keyboard mashing and doodling game for babies and toddlers"
msgstr ""
#. type: SH
#: bambam.6:4
#, no-wrap
msgid "SYNOPSIS"
msgstr ""
#. type: Plain text
#: bambam.6:7
msgid "B [I]"
msgstr ""
#. type: SH
#: bambam.6:7
#, no-wrap
msgid "DESCRIPTION"
msgstr ""
#. type: TP
#: bambam.6:8
#, no-wrap
msgid "B<-u>, B<--uppercase>"
msgstr ""
#. type: TP
#: bambam.6:11
#, no-wrap
msgid "B<-d>, B<--deterministic-sounds>"
msgstr ""
#. type: TP
#: bambam.6:14
#, no-wrap
msgid "B<-D>, B<--dark>"
msgstr ""
#. type: TP
#: bambam.6:17
#, no-wrap
msgid "B<-m>, B<--mute>"
msgstr ""
#. type: TP
#: bambam.6:20
#, no-wrap
msgid "B<--sticky-mouse>"
msgstr ""
#. type: TP
#: bambam.6:23
#, no-wrap
msgid "B<--sound_blacklist>=I"
msgstr ""
#. type: TP
#: bambam.6:26
#, no-wrap
msgid "B<--image_blacklist>=I"
msgstr ""
#. type: TP
#: bambam.6:29
#, no-wrap
msgid "B<--extension>=I"
msgstr ""
#. type: TP
#: bambam.6:32
#, no-wrap
msgid "B<--wayland-ok>"
msgstr ""
#. type: Plain text
#: bambam.6:35
msgid "Do not prevent running under Wayland. See the B section."
msgstr ""
#. type: Plain text
#: bambam.6:42
msgid ""
"bambam is a keyboard and mouse game for babies written in Python. Pressing "
"letter keys prints them in random locations and colours. Pressing any other "
"key draws little pictures in random locations. Dragging the mouse while the "
"mouse button is pressed draws in randomly changing colours. The screen is "
"cleared at random."
msgstr ""
#. type: SH
#: bambam.6:42
#, no-wrap
msgid "NOTES"
msgstr ""
#. type: Plain text
#: bambam.6:45
msgid ""
"B"
msgstr ""
#. type: Plain text
#: bambam.6:47
msgid ""
"B that there are ways to switch to another application from bambam:"
msgstr ""
#. type: IP
#: bambam.6:47 bambam.6:57 bambam.6:61 bambam.6:67 bambam.6:70 bambam.6:83
#: bambam.6:85 bambam.6:95 bambam.6:97
#, no-wrap
msgid "\\(bu"
msgstr ""
#. type: Plain text
#: bambam.6:57
msgid ""
"when running under Wayland, it is not currently possible for bambam to grab "
"all key presses. A consequence of that is that if you use GNOME Shell, "
"pressing the Windows (a.k.a. Super) key will activate the activities "
"overview. Please check your environment. As a workaround, starting with "
"version 1.1.2, bambam will try to detect if it is running under Wayland. If "
"this is the case, bambam will display a warning and refuse to work. You can "
"disable this workaround, with the B<--wayland-ok> option."
msgstr ""
#. type: Plain text
#: bambam.6:61
msgid ""
"bambam does not block virtual terminal switching (e.g. CTRL+ALT+F1). See "
"the example 50-dont-vt-switch.conf file if you would like to block that."
msgstr ""
#. type: Plain text
#: bambam.6:63
msgid ""
"there may be other yet unknown ways in other environments and window "
"managers."
msgstr ""
#. type: Plain text
#: bambam.6:67
msgid ""
"For the above reasons, starting with version 1.2.0, B"
msgstr ""
#. type: Plain text
#: bambam.6:70
msgid ""
"One way to do this is to select BamBam session type from your display "
"manager settings when logging in (look for a gear icon)."
msgstr ""
#. type: Plain text
#: bambam.6:73
msgid ""
"Another way is use command such as B from a text console."
msgstr ""
#. type: Plain text
#: bambam.6:77
msgid ""
"To turn the sound off and on, type B in the game. The legacy B "
"and B commands are also supported for now, they will be removed in a "
"future version."
msgstr ""
#. type: Plain text
#: bambam.6:80
msgid ""
"To toggle sticky mouse buttons, type B in the game. In this mode, "
"the mouse button only needs to be pressed once to start or stop drawing."
msgstr ""
#. type: Plain text
#: bambam.6:83
msgid ""
"bambam loads images (GIF, JPEG, PNG and TIFF files) and sounds (WAV and OGG "
"files) from the following directories:"
msgstr ""
#. type: Plain text
#: bambam.6:85
msgid "the B directory distributed with the game,"
msgstr ""
#. type: Plain text
#: bambam.6:87
msgid ""
"the B directory in bambam's B<$XDG_DATA_HOME> subdirectory (typically "
"~/.local/share/bambam/data)"
msgstr ""
#. type: Plain text
#: bambam.6:91
msgid ""
"When scanning directories for files, bambam B follow symbolic links "
"and descend directories. This makes is easy to have bambam use files located "
"elsewhere."
msgstr ""
#. type: Plain text
#: bambam.6:95
msgid ""
"As of version 1.3.0 bambam has experimental support for extensions, which "
"are a way of changing the program behaviour. Bambam loads extensions from "
"the following directories:"
msgstr ""
#. type: Plain text
#: bambam.6:97
msgid "the B directory distributed with the game,"
msgstr ""
#. type: Plain text
#: bambam.6:99
msgid ""
"the B directory in bambam's B<$XDG_DATA_HOME> subdirectory "
"(typically ~/.local/share/bambam/extensions)"
msgstr ""
#. type: Plain text
#: bambam.6:101
msgid ""
"See the EXTENSIONS.md file for documentation on creating and modifying "
"extensions."
msgstr ""
#. type: SH
#: bambam.6:101
#, no-wrap
msgid "AUTHOR"
msgstr ""
#. type: Plain text
#: bambam.6:104
msgid ""
"Spike Burch Espikeb@gmail.comE Marcin Owsiany Emarcin@owsiany."
"plE"
msgstr ""
#: bambam.en.desktop:3 bambam-session.en.desktop:3
msgid "BamBam"
msgstr ""
#. TRANSLATORS: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! Do NOT translate or remove the application name from the list! It is used for search.
#: bambam.en.desktop:11
msgid "bambam;baby;child;toddler;game;keyboard mashing;mouse;doodling;"
msgstr ""
bambam-1.4.1+dfsg/bambam.py 0000775 0000000 0000000 00000077566 14730272043 0015476 0 ustar 00root root 0000000 0000000 #!/usr/bin/env python3
# Copyright (C)
# 2007-2008 Don Brown,
# 2010 Spike Burch ,
# 2015-2016 Vasya Novikov
# 2018 Olivier Mehani
# 2018-2024 Marcin Owsiany
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
import argparse
import fnmatch
import gettext
import logging
import math
import os
import pygame
from pygame.locals import Color, QUIT, KEYDOWN, MOUSEMOTION, MOUSEBUTTONDOWN, MOUSEBUTTONUP
import random
import sys
import time
from textwrap import fill
try:
import yaml
_YAML_LOADED = True
except ImportError:
_YAML_LOADED = False
# noinspection PyPep8Naming
def N_(s): return s
# TRANSLATORS: command string to toggle sound.
# Must not contain spaces, and should be be at least 4 characters long,
# so that it is unlikely to be generated by a keyboard-mashing baby.
# However it is recommended to keep it shorter than 10 characters so that
# it is relatively easy to type by an adult without making mistakes.
SOUND_TOGGLE_STRING = N_('sound')
# TRANSLATORS: command string to toggle sticky mouse button.
# Must not contain spaces, and should be be at least 4 characters long,
# so that it is unlikely to be generated by a keyboard-mashing baby.
# However it is recommended to keep it shorter than 10 characters so that
# it is relatively easy to type by an adult without making mistakes.
MOUSE_TOGGLE_STRING = N_('mouse')
# TRANSLATORS: command string to mute sounds.
# Must not contain spaces, and should be be at least 4 characters long,
# so that it is unlikely to be generated by a keyboard-mashing baby.
# However it is recommended to keep it shorter than 10 characters so that
# it is relatively easy to type by an adult without making mistakes.
MUTE_STRING = N_('mute')
# TRANSLATORS: command string to unmute sounds.
# Must not contain spaces, and should be be at least 4 characters long,
# so that it is unlikely to be generated by a keyboard-mashing baby.
# However it is recommended to keep it shorter than 10 characters so that
# it is relatively easy to type by an adult without making mistakes.
UNMUTE_STRING = N_('unmute')
# TRANSLATORS: command string to quit the game.
# Must not contain spaces, and should be be at least 4 characters long,
# so that it is unlikely to be generated by a keyboard-mashing baby.
# However it is recommended to keep it shorter than 10 characters so that
# it is relatively easy to type by an adult without making mistakes.
QUIT_STRING = N_('quit')
class BambamException(Exception):
"""Represents a bambam-specific exception."""
pass
class ResourceLoadException(BambamException):
"""Represents a failure to load a resource."""
def __init__(self, resource, message):
self._resource = resource
self._message = message
def __str__(self):
return _('Failed to load file "%(file)s": %(message)s') % dict(file=self._resource, message=self._message)
def init_joysticks():
pygame.joystick.init()
"""
Initialize all joysticks.
"""
joystick_count = pygame.joystick.get_count()
for i in range(joystick_count):
joystick = pygame.joystick.Joystick(i)
joystick.init()
def poll_for_any_key_press(clock):
while True:
clock.tick(60)
for event in pygame.event.get():
if event.type in [QUIT, KEYDOWN, pygame.JOYBUTTONDOWN, MOUSEBUTTONDOWN]:
return
class Bambam:
IMAGE_MAX_WIDTH = 700
_HUE_SPACE = 360
def get_color(self):
"""
Return bright color varying over time.
"""
# Dividing by two results in a rate of change similar to the legacy
# method of generating current color, based on current time.
hue = int(self._event_count // 2) % self._HUE_SPACE
color = Color('white')
color.hsva = (hue, 100, 100, 100)
return color
@classmethod
def load_image(cls, fullname):
"""
Load image/, handling setting of the transparency color key.
"""
try:
image = pygame.image.load(fullname)
size_x, size_y = image.get_rect().size
if size_x > cls.IMAGE_MAX_WIDTH or size_y > cls.IMAGE_MAX_WIDTH:
new_size_x = cls.IMAGE_MAX_WIDTH
new_size_y = int(cls.IMAGE_MAX_WIDTH * (float(size_y)/size_x))
if new_size_y < 1:
raise ResourceLoadException(
fullname,
_("image has height of 0 after resizing to fit within %(width)dx%(height)d pixels") % dict(
width=cls.IMAGE_MAX_WIDTH, height=cls.IMAGE_MAX_WIDTH))
image = pygame.transform.scale(image, (new_size_x, new_size_y))
except pygame.error as message:
raise ResourceLoadException(fullname, message)
return image.convert()
@classmethod
def load_sound(cls, name):
"""
Load sound file in "data/".
"""
try:
return pygame.mixer.Sound(name)
except pygame.error as message:
raise ResourceLoadException(name, message)
@classmethod
def load_items(cls, lst, blacklist, load_function, failure_message):
"""
Runs load_function on elements of lst unless they are blacklisted.
Returns a list of (base file name, result) tuples.
"""
result = []
errors_encountered = False
for name in lst:
if any(fnmatch.fnmatch(name, p) for p in blacklist):
# TRANSLATORS: "item" can refer to an image or sound file path
print(_("Skipping blacklisted item %s") % name)
else:
try:
result.append((os.path.basename(name), load_function(name)))
except ResourceLoadException as e:
print(e, file=sys.stderr)
errors_encountered = True
if not result and errors_encountered:
raise BambamException(failure_message)
return result
def __init__(self):
self._random = random.Random(os.environ.get('BAMBAM_RANDOM_SEED'))
self.data_dirs = []
self.extensions_dirs = []
self.screen = None
self.display_height = None
self.display_width = None
self.sequence = ""
self._sound_policies = dict()
self._image_policies = dict()
self._event_count = self._random.randint(0, 2 * self._HUE_SPACE - 1)
def _add_image_policy(self, name, policy):
self._image_policies[name] = policy
def _add_sound_policy(self, name, policy):
self._sound_policies[name] = policy
def draw_dot(self):
"""
draw filled circle at mouse position.
"""
r = 30
mouse_x, mouse_y = pygame.mouse.get_pos()
dot = pygame.Surface((2 * r, 2 * r))
pygame.draw.circle(dot, self.get_color(), (r, r), r, 0)
dot.set_colorkey(0, pygame.RLEACCEL)
self.screen.blit(dot, (mouse_x - r, mouse_y - r))
def process_keypress(self, event):
"""
Processes events from keyboard or joystick.
"""
# check for command words
if event.type == KEYDOWN and event.unicode.isalpha():
self._maybe_process_command(event.unicode)
# Clear the screen 10% of the time
if self._random.randint(0, 10) == 1:
logging.debug('Clearing screen.')
self.screen.blit(self.background, (0, 0))
pygame.display.flip()
sound, img = self._select_response(event)
if sound and not self.sound_muted:
sound.play()
self._display_image(img)
pygame.display.flip()
def _maybe_process_command(self, last_keypress: str):
"""
Keeps track of recently pressed keys and acts if they contain
a valid command.
"""
self.sequence += last_keypress.lower()
if self.sequence.find(_(QUIT_STRING).lower()) > -1:
sys.exit(0)
if self.sequence.find(_(MOUSE_TOGGLE_STRING).lower()) > -1:
self._sticky_mouse = not self._sticky_mouse
self.sequence = ''
return
if not self._sound_enabled:
return
if self.sequence.find(_(UNMUTE_STRING).lower()) > -1:
self.sound_muted = False
self.sequence = ''
elif self.sequence.find(_(MUTE_STRING).lower()) > -1:
self.sound_muted = True
pygame.mixer.fadeout(1000)
self.sequence = ''
elif self.sequence.find(_(SOUND_TOGGLE_STRING).lower()) > -1:
self.sound_muted = not self.sound_muted
self.sequence = ''
def _select_response(self, event):
logging.debug('Selecting response for event %s.', event)
sound = _map_and_select(event, self._sound_mapper, self._sound_policies) if self._sound_enabled else None
image = _map_and_select(event, self._image_mapper, self._image_policies)
return sound, image
def _display_image(self, img):
"""
Prints an image at a random location.
"""
w = self._random.randint(0, self.display_width - img.get_width() - 1)
h = self._random.randint(0, self.display_height - img.get_height() - 1)
logging.debug('Blitting at %s image %s', (w, h), img)
self.screen.blit(img, (w, h))
def glob_dir(self, path, suffixes):
files = []
for file_name in os.listdir(path):
path_name = os.path.join(path, file_name)
if os.path.isdir(path_name):
files.extend(self.glob_dir(path_name, suffixes))
else:
for ext in suffixes:
if path_name.lower().endswith(ext):
files.append(path_name)
break
return files
def glob_data(self, suffixes):
"""
Search for files ending with any of the provided suffixes in data directories.
Eg: suffixes = ['.abc'] will be similar to `ls *.abc` in the configured
data dirs. Matching will be case-insensitive.
"""
suffixes = [x.lower() for x in suffixes]
file_list = []
for data_dir in self.data_dirs:
file_list.extend(self.glob_dir(data_dir, suffixes))
return file_list
def glob_extension(self, suffixes, extension_name):
"""
Search for files ending with any of the provided suffixes in extension directories.
Eg: suffixes = ['.abc'] will be similar to `ls *.abc` in the configured
extension directories. Matching will be case-insensitive.
"""
suffixes = [s.lower() for s in suffixes]
file_list = []
for extension_dir in self.extensions_dirs:
extension_subdir = os.path.join(extension_dir, extension_name)
file_list.extend(self.glob_dir(extension_subdir, suffixes))
return file_list
def _prepare_screen(self, args):
# determine display resolution
display_info = pygame.display.Info()
self.display_width = display_info.current_w
self.display_height = display_info.current_h
self.screen = pygame.display.get_surface()
# TRANSLATORS: placeholder is for a space-separated list of supported command strings (more than one).
caption_format = _("Commands: %s")
if self._sound_enabled:
command_strings = [QUIT_STRING, SOUND_TOGGLE_STRING, MOUSE_TOGGLE_STRING]
else:
command_strings = [QUIT_STRING, MOUSE_TOGGLE_STRING]
self.background_color = (0, 0, 0) if args.dark else (250, 250, 250)
# noinspection PyArgumentList
self.background = pygame.Surface(self.screen.get_size()).convert()
self.background.fill(self.background_color)
caption_font = pygame.font.SysFont(None, 20)
caption_label = caption_font.render(
caption_format % " ".join(_(s).lower() for s in command_strings),
True,
(210, 210, 210), # Light grey.
self.background_color)
caption_rect = caption_label.get_rect()
caption_rect.x = 15
caption_rect.y = 10
self.background.blit(caption_label, caption_rect)
self.screen.blit(self.background, (0, 0))
pygame.display.flip()
def _prepare_wayland_warning(self):
font_size = 80
caption_font = pygame.font.SysFont(None, font_size)
for i, msg in enumerate([
_("Error: Wayland display detected."),
_("Cannot lock the keyboard safely."),
"",
_("Press any key to quit.")]):
caption_label = caption_font.render(
msg,
True,
(250, 0, 0),
self.background_color)
caption_rect = caption_label.get_rect()
caption_rect.x = 150
caption_rect.y = 100 + (i * font_size)
self.screen.blit(caption_label, caption_rect)
pygame.display.flip()
def _prepare_welcome_message(self, dedicated_session):
left_message_margin = 75
header_font = pygame.font.SysFont(None, 56)
header_text = _("Please read the following important information!")
header_label = header_font.render(header_text, True, pygame.Color('blue'), self.background_color)
header_rect = header_label.get_rect()
header_rect.x = left_message_margin
header_rect.y = 100
self.screen.blit(header_label, header_rect)
header_padding = 20
text_font_size = 36
# Draw an arrow starting next to second/third line of text (the text that speaks about the commands)...
arrow_start = (header_rect.x, int(header_rect.y + header_rect.height + header_padding + text_font_size * 1.5))
# ... and ending below the list of commands.
arrow_end = (30, 30)
arrow_rect = pygame.Rect(arrow_end, (arrow_start[0] - arrow_end[0], arrow_start[1] - arrow_end[1]))
# The arc is a quarter of an elipse, so the elipse bounds are four times the size of the arrow arc bounds.
above_arrow_rect = pygame.Rect(arrow_rect)
above_arrow_rect.bottomleft = arrow_rect.topleft
east_of_arrow_rect = pygame.Rect(arrow_rect)
east_of_arrow_rect.bottomleft = arrow_rect.bottomright
elipse_bounds = pygame.Rect(above_arrow_rect.topleft, (arrow_rect.width*2, arrow_rect.height*2))
arrow_color = pygame.Color('red')
arrow_width = 8
pygame.draw.arc(self.screen, arrow_color, elipse_bounds, math.pi, 3*math.pi/2, arrow_width)
# Account for the width of the arrow arc.
arrow_head_start = (arrow_end[0] + int(arrow_width / 2)-1, arrow_end[1])
arrow_head_end1 = (arrow_head_start[0] - 20, arrow_head_start[1] + 40)
arrow_head_end2 = (arrow_head_start[0] + 20, arrow_head_start[1] + 40)
pygame.draw.line(self.screen, arrow_color, arrow_head_start, arrow_head_end1, arrow_width)
pygame.draw.line(self.screen, arrow_color, arrow_head_start, arrow_head_end2, arrow_width)
text_font = pygame.font.SysFont(None, text_font_size)
texts = []
# TRANSLATORS: the substituted word will be the translated command for quitting the game.
texts.append(_("To quit the game after it starts, "
"directly type the word %s on the keyboard.") % _(QUIT_STRING).lower())
if self._sound_enabled:
# TRANSLATORS: "this" means the word quit from the preceding message, in this context.
texts.append(_("This, and other available commands are mentioned "
"in the upper left-hand corner of the window."))
else:
# TRANSLATORS: "this" means the word quit from the preceding message, in this context.
texts.append(_("This command is mentioned in the upper left-hand corner of the window."))
texts.append("")
texts.append(_(
"The game tries to grab the keyboard and mouse pointer focus, "
"to keep your child from causing damage to your files."))
if dedicated_session:
texts.append(_(
"The game is now running in a dedicated login session, which provides some additional safety. "
"However it may still be possible for the child to accidentally quit the game, "
"or swich to a different virtual terminal (for example using CTRL+ALT+Fx)."))
texts.append("")
texts.append(_(
"Make sure other user sessions (if any) are locked with a password, "
"if leaving your child unattended with the game."))
else:
texts.append(_(
"However in some environments it may be possible for the child to exit or "
"switch away from the game by using a special key combination. "
"The exact mechanism depends on your graphical environment, window manager, etc. "
"Examples include the Super (also known as Windows) key, function key combinations (CTRL+ALT+Fx) or "
"hot corners when using the mouse."))
texts.append("")
texts.append(_("We recommend to NOT LEAVE YOUR CHILD UNATTENDED with the game."))
texts.append(_(
"Please consider using a dedicated BamBam session instead "
"(look for a gear icon when logging in), which is safer."))
texts.append("")
texts.append("")
texts.append(_("Press any key or mouse button to start the game now."))
prev_rect = header_rect
prev_rect.y += header_padding
for paragraph in texts:
for line in fill(paragraph, 70).split("\n"):
text_label = text_font.render(line, True, pygame.Color('lightblue'), self.background_color)
text_rect = text_label.get_rect()
text_rect.x = left_message_margin
text_rect.y = prev_rect.y + prev_rect.height
self.screen.blit(text_label, text_rect)
prev_rect = text_rect
pygame.display.flip()
def _add_base_dir(self, base_dir):
"""
Add base_dir as a possible base directory for bambam data files.
"""
data_subdir = os.path.join(base_dir, 'data')
if os.path.isdir(data_subdir):
print(_('Using data directory %s') % data_subdir)
self.data_dirs.append(data_subdir)
extensions_subdir = os.path.join(base_dir, 'extensions')
if os.path.isdir(extensions_subdir):
# TRANSLATORS: An extension directory is a directory which contains extensions.
print(_('Using extension directory %s') % extensions_subdir)
self.extensions_dirs.append(extensions_subdir)
def _try_init_sound(self):
for _ in range(30):
if pygame.mixer and pygame.mixer.get_init():
return True
time.sleep(0.1)
try:
pygame.mixer.init()
except pygame.error:
pass
return pygame.mixer and pygame.mixer.get_init()
def _load_resources(self, args):
if not pygame.font:
print(_('Error: pygame fonts not available. Exiting.'), file=sys.stderr)
sys.exit(1)
self._sticky_mouse = args.sticky_mouse
if not self._try_init_sound():
print(_('Warning: Sound support not available.'), file=sys.stderr)
self._sound_enabled = False
else:
self._sound_enabled = True
self.sound_muted = args.mute
sounds = self.load_items(
self.glob_data(['.wav', '.ogg']),
args.sound_blacklist,
self.load_sound,
_("All sounds failed to load."))
self._add_sound_policy('deterministic', DeterministicPolicy(sounds))
self._add_sound_policy('random', RandomPolicy(sounds, self._random))
images = self.load_items(
self.glob_data(['.gif', '.jpg', '.jpeg', '.png', '.tif', '.tiff']),
args.image_blacklist,
self.load_image,
_("All images failed to load."))
self._add_image_policy('font', FontImagePolicy(args.uppercase, self._random))
self._add_image_policy('random', RandomPolicy(images, self._random))
if _YAML_LOADED and args.extension:
if self._sound_enabled:
extension_sounds = self.load_items(
self.glob_extension(['.wav', '.ogg'], args.extension),
[],
self.load_sound,
_("All extension sounds failed to load."))
self._add_sound_policy('named_file', NamedFilePolicy(extension_sounds))
self._sound_mapper, self._image_mapper = self._get_extension_mappers(args.extension)
print(_('Using extension "%s".') % args.extension)
else:
self._image_mapper = LegacyImageMapper()
if self._sound_enabled:
self._sound_mapper = LegacySoundMapper(args.deterministic_sounds)
def _get_extension_mappers(self, extension_name: str):
for extension_dir in self.extensions_dirs:
extension_subdir = os.path.join(extension_dir, extension_name)
event_map_file_name = os.path.join(extension_subdir, 'event_map.yaml')
if not os.path.exists(event_map_file_name):
continue
with open(event_map_file_name) as event_map_file:
event_map = yaml.safe_load(event_map_file)
for k in event_map:
if k not in ['apiVersion', 'image', 'sound']:
raise ResourceLoadException(event_map_file_name, 'unrecognized key %s' % k)
apiVersion = event_map.get('apiVersion', 'undefined')
if apiVersion not in ['0', 0]:
raise ResourceLoadException(event_map_file_name, 'Unrecognized API version %s' % apiVersion)
image_map = event_map.get('image', {})
sound_map = event_map.get('sound', {})
return DeclarativeMapper(sound_map), DeclarativeMapper(image_map)
raise ResourceLoadException(os.path.join(extension_name, 'event_map.yaml'), 'File not found.')
def run(self):
"""
Main application entry point.
"""
program_base = os.path.dirname(os.path.realpath(sys.argv[0]))
self._add_base_dir(program_base)
self._add_base_dir(os.path.join(os.path.dirname(program_base), 'share', 'bambam'))
self._add_base_dir(os.getenv('XDG_DATA_HOME', os.path.expanduser('~/.local/share/bambam')))
parser = argparse.ArgumentParser(
description=_('Keyboard mashing and doodling game for babies and toddlers.'))
if not _YAML_LOADED:
print(_('Warning: PyYAML not available, extension support disabled.'), file=sys.stderr)
else:
parser.add_argument('-e', '--extension', help=_('Use the specified extension.'))
parser.add_argument('-u', '--uppercase', action='store_true',
help=_('Show UPPER-CASE letters.'))
parser.add_argument('--sound_blacklist', action='append', default=[],
help=_('List of sound filename patterns to never play.'))
parser.add_argument('--image_blacklist', action='append', default=[],
help=_('List of image filename patterns to never show.'))
parser.add_argument('-d', '--deterministic-sounds', action='store_true',
help=_('Produce same sounds on same key presses.'))
parser.add_argument('-D', '--dark', action='store_true',
help=_('Use a dark background instead of a light one.'))
parser.add_argument('-m', '--mute', action='store_true',
help=_('Start muted.'))
parser.add_argument('--sticky-mouse', action='store_true',
help=_('Start with sticky mouse buttons enabled.'))
parser.add_argument('--wayland-ok', action='store_true',
help=_('Do not prevent running under Wayland.'))
parser.add_argument('--in-dedicated-session', action='store_true',
help=argparse.SUPPRESS)
parser.add_argument('--trace', action='store_true',
help=_('Print detailed messages about game internals.'))
args = parser.parse_args()
log_level = logging.DEBUG if args.trace else logging.INFO
logging.basicConfig(level=log_level, format="%(asctime)s %(levelname)s %(name)s: %(message)s")
pygame.init()
pygame.display.set_mode((0, 0), pygame.FULLSCREEN)
# TRANSLATORS: Main game window name.
pygame.display.set_caption(_('Bam Bam'))
self._load_resources(args)
self._prepare_screen(args)
pygame.event.set_grab(True)
if hasattr(pygame.event, 'set_keyboard_grab'):
pygame.event.set_keyboard_grab(True)
clock = pygame.time.Clock()
if args.in_dedicated_session:
self._prepare_welcome_message(dedicated_session=True)
elif not args.wayland_ok and (os.getenv('WAYLAND_DISPLAY') or os.getenv('XDG_SESSION_TYPE') == 'wayland'):
self._prepare_wayland_warning()
poll_for_any_key_press(clock)
sys.exit(1)
else:
self._prepare_welcome_message(dedicated_session=False)
poll_for_any_key_press(clock)
self.screen.blit(self.background, (0, 0))
_show_mouse()
pygame.display.flip()
init_joysticks()
mouse_pressed = False
while True:
clock.tick(60)
for event in pygame.event.get():
if event.type == QUIT:
sys.exit(0)
elif event.type == KEYDOWN or event.type == pygame.JOYBUTTONDOWN:
self._bump_event_count()
self.process_keypress(event)
elif event.type == MOUSEMOTION:
self._bump_event_count()
if mouse_pressed:
self.draw_dot()
pygame.display.flip()
elif event.type == MOUSEBUTTONDOWN:
self._bump_event_count()
self.draw_dot()
if self._sticky_mouse:
mouse_pressed = not mouse_pressed
else:
mouse_pressed = True
pygame.display.flip()
elif event.type == MOUSEBUTTONUP:
self._bump_event_count()
if not self._sticky_mouse:
mouse_pressed = False
def _bump_event_count(self):
self._event_count = (self._event_count + 1) % (self._HUE_SPACE * 2)
def _map_and_select(event, mapper, policies):
policy_name, policy_args = mapper.map(event)
policy = policies[policy_name]
if not policy_args:
policy_args = []
return policy.select(event, *policy_args)
def _show_mouse():
# In session mode, when display manager hides mouse cursor,
# pygame tends to get confused about its visibility.
# Changing it back and forth seems to help.
# Also set it to a little hand while at it.
# We also do this when not in session mode for consistency.
pygame.mouse.set_visible(True)
pygame.mouse.set_visible(False)
pygame.mouse.set_cursor(pygame.SYSTEM_CURSOR_HAND)
pygame.mouse.set_visible(True)
class CollectionPolicyBase:
def __init__(self, named_things):
self._things = []
self._things_by_file_name = {}
for name, thing in named_things:
self._things.append(thing)
self._things_by_file_name[name] = thing
def select(self, event, *args):
raise NotImplementedError()
class DeterministicPolicy(CollectionPolicyBase):
def select(self, event):
thing_idx = event.key % len(self._things)
return self._things[thing_idx]
class NamedFilePolicy(CollectionPolicyBase):
def select(self, _, file_name):
return self._things_by_file_name[file_name]
class RandomPolicy(CollectionPolicyBase):
def __init__(self, named_things, random_generator):
super().__init__(named_things)
self._random = random_generator
def select(self, *_):
choice = self._random.choice(self._things)
logging.debug('Selected %s from %d possibilities.', choice, len(self._things))
return choice
class FontImagePolicy:
COLORS = (
(0, 0, 255), (255, 0, 0), (255, 255, 0),
(255, 0, 128), (0, 0, 128), (0, 255, 0),
(255, 128, 0), (255, 0, 255), (0, 255, 255)
)
def __init__(self, upper_case: bool, random_generator) -> None:
self._upper_case = upper_case
self._random = random_generator
def select(self, event):
font = pygame.font.Font(None, 256)
char = event.unicode
if self._upper_case:
char = char.upper()
color = self._random.choice(self.COLORS)
logging.debug('Selected color %s for char %s.', color, char)
return font.render(char, 1, color)
class LegacySoundMapper:
def __init__(self, deterministic_sounds: bool) -> None:
self._deterministic_sounds = deterministic_sounds
def map(self, event):
if self._deterministic_sounds:
if event.type == KEYDOWN:
return "deterministic", None
return "random", None
else:
return "random", None
class DeclarativeMapper:
def __init__(self, spec):
self._spec = spec
def map(self, event):
for step in self._spec:
if 'check' in step:
check_list = step['check']
if not self._match_list(event, check_list):
continue
return step['policy'], step.get('args', None)
raise Exception('event %s matched no step in spec %s' % (
event, self._spec))
@classmethod
def _match_list(cls, event, check_list):
return all(cls._match_check(event, check) for check in check_list)
@classmethod
def _match_check(cls, event, check):
if len(check) != 1:
raise ValueError('only one key permitted in checks, found %s' % check.keys())
if 'type' in check:
t = check['type']
if t == 'KEYDOWN':
return event.type == KEYDOWN
else:
raise ValueError('only supported check type is currently KEYDOWN')
elif 'unicode' in check:
u = check['unicode']
if len(u) != 1:
raise ValueError('only one key is permitted in unicode check, found %s' % u.keys())
if 'value' in u:
return event.unicode == u['value']
elif 'isalpha' in u:
return str(event.unicode.isalpha()) == str(u['isalpha'])
elif 'isdigit' in u:
return str(event.unicode.isdigit()) == str(u['isdigit'])
else:
raise ValueError('unsupported key in unicode check: %s' % u.keys())
else:
raise ValueError('only checks for type and unicode are curerntly supported, found %s' % check.keys())
class LegacyImageMapper:
def map(self, event):
if event.type == pygame.KEYDOWN and (event.unicode.isalpha() or event.unicode.isdigit()):
return "font", None
else:
return "random", None
def main():
gettext.install('bambam')
try:
bambam = Bambam()
bambam.run()
except BambamException as e:
print(e, file=sys.stderr)
sys.exit(1)
if __name__ == '__main__':
main()
bambam-1.4.1+dfsg/bambam.ta.6 0000664 0000000 0000000 00000024532 14730272043 0015574 0 ustar 00root root 0000000 0000000 .\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.TH பம்பம் 6 "24 ஆகச்ட் 2024" "பதிப்பு 1.4.0"
.SH பெயர்
பாம்பம் \- குழந்தைகள் மற்றும் குழந்தைகளுக்கான விசைப்பலகை பிசைல் மற்றும்
டூட்லிங் விளையாட்டு
.SH சுருக்கம்
\fBபாம்பம்\fP [\fIவிருப்பங்கள்\fP]
.SH விவரம்
.TP
\fB\-u\fP, \fB\-\-uppercase\fP
மேல் வழக்கு கடிதங்களைக் காட்டுங்கள்.
.TP
\fB\-d\fP, \fB\-\-deterministic\-sounds\fP
அதே விசை அழுத்தங்களில் அதே ஒலிகளை உருவாக்குங்கள்.
.TP
\fB\-d\fP, \fB\-dark\fP
ஒளிக்கு பதிலாக இருண்ட பின்னணியைப் பயன்படுத்துங்கள்.
.TP
\fB\-m\fP, \fB\-\-mute\fP
முடக்கியதாகத் தொடங்குங்கள்.
.TP
\fB\-\-sticky\-mouse\fP
இயக்கப்பட்ட ஒட்டும் சுட்டி பொத்தான்கள் மூலம் தொடங்கவும்.
.TP
\fB\-\-sound_blacklist\fP=\fIகுளோப்\fP
ஒருபோதும் விளையாடாத ஒலி கோப்பு பெயர் வடிவங்களின் பட்டியல்.
.TP
\fB\-image_blacklist\fP=\fIகுளோப்\fP
ஒருபோதும் காட்டாத பட கோப்பு பெயர் வடிவங்களின் பட்டியல்.
.TP
\fB\-\-extension\fP=\fIநீட்டிப்பு\fP
குறிப்பிட்ட நீட்டிப்பைப் பயன்படுத்தவும்.
.TP
\fB\-\-wayland\-ok\fP
வேல்லேண்டின் கீழ் ஓடுவதைத் தடுக்க வேண்டாம். பி \fBகுறிப்புகள்\fP பகுதியைக்
காண்க.
.PP
பாம்பம் என்பது பைத்தானில் எழுதப்பட்ட குழந்தைகளுக்கான விசைப்பலகை மற்றும்
சுட்டி விளையாட்டு. கடிதம் விசைகளை அழுத்தும் அவற்றை சீரற்ற இடங்களிலும்
வண்ணங்களிலும் அச்சிடுகிறது. வேறு எந்த விசையையும் அழுத்தினால் சீரற்ற
இடங்களில் சிறிய படங்களை ஈர்க்கிறது. சுட்டியை இழுப்பது சுட்டி பொத்தானை
அழுத்தும் போது தோராயமாக மாறும் வண்ணங்களில் ஈர்க்கிறது. திரை சீரற்ற முறையில்
அழிக்கப்படுகிறது.
.SH குறிப்புகள்
\fBவெளியேற, சாளரத்தின் மேல் இடது கை மூலையில் குறிப்பிடப்பட்டுள்ள கட்டளையை நேரடியாக தட்டச்சு செய்க. ஆங்கில இடங்களில், இது சொல்: வெளியேறு.\fP
.PP
பி \fBவிழிப்புடன் இருங்கள்\fP பாம்பாமிலிருந்து மற்றொரு பயன்பாட்டிற்கு மாற
வழிகள் உள்ளன என்பதை:
.IP \(bu
வேலேண்டின் கீழ் ஓடும்போது, பாம்பம் அனைத்து முக்கிய அச்சகங்களையும் கைப்பற்ற
தற்போது சாத்தியமில்லை. இதன் விளைவாக, நீங்கள் க்னோம் செல்லைப்
பயன்படுத்தினால், விண்டோசை (a.k.a. சூப்பர்) விசையை அழுத்தினால் செயல்பாடுகள்
கண்ணோட்டத்தை செயல்படுத்தும். உங்கள் சூழலை சரிபார்க்கவும். பதிப்பு 1.1.2 உடன்
தொடங்கி ஒரு பணித்தொகுப்பாக, பாம்பம் அது வேலண்டின் கீழ் இயங்குகிறதா என்பதைக்
கண்டறிய முயற்சிக்கும். இதுபோன்றால், பாம்பம் ஒரு எச்சரிக்கையைக் காண்பிக்கும்
மற்றும் வேலை செய்ய மறுக்கும். \fB\-wayand\-ok\fP விருப்பத்துடன் இந்த பணித்தொகையை
நீங்கள் முடக்கலாம்.
.IP \(bu
மெய்நிகர் முனைய மாறுதலை பாம்பம் தடுக்காது (எ.கா. CTRL+ALT+F1). நீங்கள் அதைத்
தடுக்க விரும்பினால் 50\-dont\-vt\-switch.conf கோப்பைப் பார்க்கவும்.
.IP \(bu
பிற சூழல்களிலும் சாளர மேலாளர்களிலும் இன்னும் அறியப்படாத வேறு வழிகள்
இருக்கலாம்.
.PP
மேற்கண்ட காரணங்களுக்காக, பதிப்பு 1.2.0 உடன் தொடங்கி, பி \fBஇது சாத்தியமானது மற்றும் பிரத்யேக உள்நுழைவு அமர்வில் பாம்பமை இயக்க பரிந்துரைக்கப்படுகிறது.\fP
.IP \(bu
இதைச் செய்வதற்கான ஒரு வழி, உள்நுழையும்போது உங்கள் காட்சி மேலாளர்
அமைப்புகளிலிருந்து பாம்பம் அமர்வு வகையைத் தேர்ந்தெடுப்பது (கியர் ஐகானைத்
தேடுங்கள்).
.IP \(bu
மற்றொரு வழி உரை கன்சோலில் இருந்து \fBexec startx bambam\fP போன்ற கட்டளையைப்
பயன்படுத்தவும்.
.PP
ஒலியை அணைக்க, இயக்கத்தில், விளையாட்டில் \fBஒலி\fP என தட்டச்சு செய்க. மரபு
\fBமுடக்கு\fP மற்றும் \fBஊன்\fP கட்டளைகளும் இப்போது ஆதரிக்கப்படுகின்றன, அவை
எதிர்கால பதிப்பில் அகற்றப்படும்.
.PP
ஒட்டும் சுட்டி பொத்தான்களை மாற்ற, விளையாட்டில் \fBசுட்டி\fP என தட்டச்சு
செய்க. இந்த பயன்முறையில், மவுச் பொத்தானை ஒரு முறை மட்டுமே அழுத்த வேண்டும்.
.PP
பாம்பம் பின்வரும் கோப்பகங்களிலிருந்து படங்களை (GIF, JPEG, PNG மற்றும் TIFF
கோப்புகள்) மற்றும் ஒலிகளை (WAV மற்றும் OGG கோப்புகள்) ஏற்றுகிறது:
.IP \(bu
பி \fBதரவு\fP அடைவு விளையாட்டுடன் விநியோகிக்கப்படுகிறது,
.IP \(bu
பாம்பமின் பி \fB$XDG_DATA_HOME\fP துணை அடைவு (பொதுவாக
~/.local/share/Bambam/data)
.PP
கோப்புகளுக்கான கோப்பகங்களை ச்கேன் செய்யும் போது, பாம்பம் பி \fBசெய்கிறார்\fP
குறியீட்டு இணைப்புகள் மற்றும் சந்திப்பு கோப்பகங்களைப்
பின்பற்றுங்கள். பாம்பம் வேறு இடங்களில் அமைந்துள்ள கோப்புகளைப் பயன்படுத்துவது
எளிது.
.PP
பதிப்பு 1.3.0 இன் படி, பாம்பம் நீட்டிப்புகளுக்கு சோதனை ஆதரவைக் கொண்டுள்ளது,
அவை நிரல் நடத்தையை மாற்றுவதற்கான ஒரு வழியாகும். பின்வரும்
கோப்பகங்களிலிருந்து பாம்பம் நீட்டிப்புகளை ஏற்றுகிறது:
.IP \(bu
பி \fBநீட்டிப்புகள்\fP அடைவு விளையாட்டுடன் விநியோகிக்கப்படுகிறது,
.IP \(bu
பி \fBநீட்டிப்புகள்\fP பாம்பமின் பி \fB$XDG_DATA_HOME\fP துணை அடைவு (பொதுவாக
~/.லோகல்/சேர்/பாம்பம்/நீட்டிப்புகள்)
.PP
நீட்டிப்புகளை உருவாக்குதல் மற்றும் மாற்றுவது குறித்த ஆவணங்களுக்கு
நீட்டிப்புகள். எம்.டி கோப்பைப் பார்க்கவும்.
.SH நூலாசிரியர்
ச்பைக் பர்க் இ மார்கின் ஓவ்சியானி இ
bambam-1.4.1+dfsg/bambam.tr.6 0000664 0000000 0000000 00000010523 14730272043 0015610 0 ustar 00root root 0000000 0000000 .\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.TH bambam 6 "24 August 2024" "version 1.4.0"
.SH AD
bambam \- bebekler ve küçük çocuklar için bir klavye ezme ve karalama oyunu
.SH ÖZET
\fBbambam\fP [\fISEÇENEKLER\fP]
.SH AÇIKLAMA
.TP
\fB\-u\fP, \fB\-\-uppercase\fP
BÜYÜK HARFLERİ göster.
.TP
\fB\-d\fP, \fB\-\-deterministic\-sounds\fP
Aynı tuşa basıldığında aynı sesleri üret.
.TP
\fB\-D\fP, \fB\-\-dark\fP
Açık arka plan yerine koyu arka plan kullan.
.TP
\fB\-m\fP, \fB\-\-mute\fP
Start muted.
.TP
\fB\-\-sticky\-mouse\fP
Start with sticky mouse buttons enabled.
.TP
\fB\-\-sound_blacklist\fP=\fIGLOB\fP
Asla çalınmayacak ses dosya adı desenlerinin listesi.
.TP
\fB\-\-image_blacklist\fP=\fIGLOB\fP
Asla gösterilmeyecek görüntü dosya adı desenlerinin listesi.
.TP
\fB\-\-extension\fP=\fIEXTENSION\fP
Belirtilen uzantıyı kullan.
.TP
\fB\-\-wayland\-ok\fP
Wayland altında çalışmayı engelleme. \fBNOTLAR\fP bölümüne bakın.
.PP
bambam, Python ile yazılmış bebekler için bir klavye ve fare oyunudur.
Harf tuşlarına basmak onları rastgele yerlere rastgele renklerle yazdırır.
Diğer tuşlara basıldığında rastgele yerlere küçük resimler çizilir. Fare
düğmesine basılıyken fareyi sürüklemek rastgele değişen renklerde çizer.
Ekran rastgele temizlenir.
.SH NOTLAR
\fBÇıkmak için doğrudan pencerenin sol üst köşesinde belirtilen komutu yazın. Türkçe için şu kelimeyi kullanın: çık\fP
.PP
Bambam'dan başka bir uygulamaya geçmenin yolları olduğunu \fBunutmayın\fP:
.IP \(bu
Wayland altında çalışırken, bambam'ın tüm tuş basışlarını yakalaması şu anda
mümkün değildir. Bunun bir sonucu olarak, GNOME Shell kullanıyorsanız,
Windows (a.k.a. Super) tuşuna basmak etkinliklere genel bakışı
etkinleştirecektir. Lütfen ortamınızı kontrol edin. Geçici bir çözüm
olarak, 1.1.2 sürümünden başlayarak, bambam Wayland altında çalışıp
çalışmadığını tespit etmeye çalışacaktır. Eğer durum böyleyse, bambam bir
uyarı gösterecek ve çalışmayı reddedecektir. Bu geçici çözümü
\fB\-\-wayland\-ok\fP seçeneği ile devre dışı bırakabilirsiniz.
.IP \(bu
bambam sanal uçbirim geçişini engellemez (örneğin CTRL+ALT+F1). Bunu
engellemek istiyorsanız örnek 50\-dont\-vt\-switch.conf dosyasına bakın.
.IP \(bu
diğer ortamlarda ve pencere yöneticilerinde henüz bilinmeyen başka yollar da
olabilir.
.PP
Yukarıdaki nedenlerden dolayı, 1.2.0 sürümünden başlayarak, \fBbambam'ı özel bir giriş oturumunda çalıştırmak mümkündür ve önerilir.\fP
.IP \(bu
Bunu yapmanın bir yolu, giriş yaparken ekran yöneticisi ayarlarınızdan
BamBam oturum türünü seçmektir (dişli simgesine bakabilirsiniz).
.IP \(bu
Diğer bir yol ise metin uçbiriminden \fBexec startx bambam\fP gibi bir komut
kullanmaktır.
.PP
To turn the sound off and on, type \fBsound\fP in the game. The legacy \fBmute\fP
and \fBunmute\fP commands are also supported for now, they will be removed in a
future version.
.PP
To toggle sticky mouse buttons, type \fBmouse\fP in the game. In this mode,
the mouse button only needs to be pressed once to start or stop drawing.
.PP
bambam aşağıdaki dizinlerden görüntüleri (GIF, JPEG, PNG ve TIFF dosyaları)
ve sesleri (WAV ve OGG dosyaları) yükler:
.IP \(bu
oyunla birlikte dağıtılan \fBdata\fP dizini,
.IP \(bu
bambam'ın \fB$XDG_DATA_HOME\fP altındaki \fBdata\fP alt dizini (genellikle
~/.local/share/bambam/data)
.PP
Dizinleri, dosyalar için tararken, bambam \fBsembolik bağlantıları takip eder\fP ve alt dizinlere de giriş yapar. Bu, bambam'ın başka bir yerde bulunan
dosyaları kullanmasını kolaylaştırır.
.PP
Sürüm 1.3.0'dan itibaren bambam, program davranışını değiştirmenin bir yolu
olan uzantılar için deneysel desteğe sahiptir. Bambam aşağıdaki dizinlerden
uzantıları yükler:
.IP \(bu
oyunla birlikte dağıtılan \fBextensions\fP dizini,
.IP \(bu
bambam'ın \fB$XDG_DATA_HOME\fP altındaki \fBextensions\fP alt dizini (genellikle
~/.local/share/bambam/extensions)
.PP
Uzantı oluşturma ve değiştirmeyle ilgili belgeler için EXTENSIONS.md
dosyasına bakın.
.SH YAZAR
Spike Burch Marcin Owsiany
bambam-1.4.1+dfsg/data/ 0000775 0000000 0000000 00000000000 14730272043 0014566 5 ustar 00root root 0000000 0000000 bambam-1.4.1+dfsg/data/alien1.gif 0000664 0000000 0000000 00000007362 14730272043 0016436 0 ustar 00root root 0000000 0000000 GIF89aP G
,&$+(-10,-*1Rmr&Q'r' J./N(4qRlq%~?8A;G.By9AU/FrL_7M.5rq'n6.G GG4LK5kPGTM3dIrK5~kpk&NKPNQmYdqnQOjXhogXqop