Repository navigation
BKChem-portable for Windows
·
10 commits
to main
since this release
Fork release 10 — 2026-11-12
Added / Changed
- "Copy selection as SVG to clipboard" now pastes as a picture on Linux and macOS too: On Linux, when
xclip(X11) orwl-copy(Wayland, from the wl-clipboard package) is installed, the SVG is handed to that helper and offered asimage/svg+xml, so SVG-aware applications paste a picture instead of the SVG source text; the helper stays resident, so the content also survives BKChem exiting. On macOS, whenpyobjc-framework-Cocoais installed, the SVG is placed on the system pasteboard as bothpublic.svg-imageandpublic.utf8-plain-text, like the Windows path. Without these helpers the previous behaviour (Tk clipboard, text only) is unchanged. The X11 path is verified; the Wayland and macOS paths follow the documented interfaces of the same helpers but have not been verified on real machines yet. (bkchem/paper.py) - Modules that the application does not use are now marked as such:
http_server.py,http_server2.py,svg_out.py,structure_database.pyandname_database.pycarry a note at the top stating that the BKChem application itself does not use them, so readers no longer have to guess whether a feature exists. No behaviour change.
Fixed
- The oasa command-line converter works again:
bkchem/oasa/convert.pyused the Python 2 builtinsfile()andraw_input()under bareexceptclauses, so every conversion failed with the misleading message "cannot open file ... for reading" (and exit code 0) even when the file existed. Verified: SMILES to MOL, SMILES round-trip and MOL to SMILES, including Brilliant Blue FCF (53 atoms, 57 bonds). (bkchem/oasa/convert.py) - A Python 2 comparison builtin left in oasa's common module is fixed:
is_uniquely_sorted()fell back tocmp, which Python 3 removed, so calling it without a sorting function raisedNameError. The in-application callers (the CIP code) always pass a sorting function, so this was not reachable from the GUI. (bkchem/oasa/oasa/common.py) - oasa's standalone SVG writer works again:
mol_to_svg()insvg_out.pyusedfile()and raisedNameErrorwhenever it was called. The BKChem application itself writes SVG through its ownxml_writer, so this affected only direct users of the library function. (bkchem/oasa/oasa/svg_out.py) - oasa's subsearch data readers and generator work again:
subsearch.pyusedfile()in six places, and its data generator wrote rawmapobjects into the generatedsubsearch_data.py; both are fixed. The readers are marked deprecated in the module itself, and the live group search in Molecular Descriptors, which reads the already-generated data, is unchanged. (bkchem/oasa/oasa/subsearch.py)