Commit Graph

14540 Commits (bafb101b7a83728c20feefde936ed8210e24d9b1)

Author SHA1 Message Date
Benjamin Pollack bafb101b7a windows; add functions to determine DPI scaling 2020-03-06 23:21:02 -06:00
Niklas Larsson 8df1d1fbe6 cache: Don't use in-place filter
This solves a UI corruption problem by not reusing the hashtable when
purging the cache. The root cause of why the hashtable gets corrupted
when filtering in place hasn't been found.

Fixes #1978.
2020-03-06 23:14:44 -06:00
Doug Coleman 96b891f5d8 images.loader: Windows can save bmp files.
If there is a crasher, we can debug it.
2020-03-06 22:59:30 -06:00
Doug Coleman d188bcf592 images.loader.gdiplus: Allow writing .bmp and do a better lookup. 2020-03-06 19:35:16 -06:00
Doug Coleman 97532d020a ui.gadgets: Stale gestures can lose the associated gadget.
The gesture queue can send messages where the
focusable-child has disappeared.

Handle ``M: f focusable-child*`` by doing nothing.

Fixes #2117.
2020-03-06 19:05:27 -06:00
Doug Coleman 8da5c2fc91 windows.ole32: Add more LONG: constants. 2020-03-06 19:05:07 -06:00
Doug Coleman 92cb20163f windows.ole32: Add more error constants as long.
These are -2B..2B instead of positive integers because long is s32 on
Windows.
2020-03-06 17:53:38 -06:00
John Benediktsson 7eee21ab94 vocabs.metadata: cleanup a couple uses of metadata paths. 2020-03-05 09:33:41 -08:00
John Benediktsson d94b135087 vocabs.metadata: cleanup paths to be fully specified. 2020-03-05 08:59:36 -08:00
John Benediktsson 3efe23cc71 ui.gadgets.panes: fix tests under dark-theme. 2020-03-03 15:23:18 -08:00
John Benediktsson a462587833 html.templates.chloe: adding missing tests. 2020-03-02 19:01:01 -08:00
John Benediktsson 711297690b websites.concatenative: navbar background. 2020-03-02 17:01:01 -08:00
John Benediktsson 290d0ed7d2 html.templates: adding meta tag and some chloe tests. 2020-03-02 15:57:19 -08:00
John Benediktsson 3b18827044 tools.errors: fix to match current behavior: "show". 2020-03-02 15:40:37 -08:00
John Benediktsson ab9eca2454 bootstrap.image: add make-my-image to docs. 2020-03-02 15:40:22 -08:00
John Benediktsson 9abc2ae873 webapps.help: matching style for navbar. 2020-03-02 08:48:25 -08:00
John Benediktsson a8d35345c4 extra: moving hash-sets.numbers, hashtables.numbers to basis. 2020-03-01 20:50:58 -08:00
John Benediktsson 50bd41d82f help.html: move pre-wrap to css style fixup. 2020-03-01 18:32:47 -08:00
John Benediktsson 2c43df72ea html.streams: fix tests. 2020-03-01 18:32:35 -08:00
John Benediktsson 5967033fe5 html.templates: adding t:script and t:write-script. 2020-03-01 12:05:59 -08:00
John Benediktsson c64d9032b5 help.html: more responsive help docs. 2020-03-01 10:27:22 -08:00
John Benediktsson e07abedafe html.streams: monospace uses pre-wrap, wrap-margin sets width. 2020-03-01 10:27:22 -08:00
Cat Stevens 573e4ed198 math.matrices: fix/rename mnorm, update all norms
closes #2244

- `mnorm` has been renamed to `normalize-matrix`
	to reflect what it actually does, which
	is normalize a matrix, not find a norm
	of a matrix.

- `mnorm` is no longer a word defined here.

- bugfix: previously, `normalize-matrix` found
	the supremum of a matrix (`mmax`),
	before taking the supremum's absolute
	value (`abs`) and dividing the matrix
	by it (`m/n`).
	for matrices containing only negative
	values and 0, the supremum is 0, and
	a `div-by-zero` error was thrown.

	`normalize-matrix` has been fixed to
	first `abs` all the matrix elements,
	and then find the supremum and divide,

	it also receieved a zero-matrix? guard
	for optimization and preventing
	`div-by-zero`.

- new alias: `hilbert-schmidt-norm` for
	`frobenius-norm`,  to go along with
	`math.matrices.extras.<hilbert-matrix>`
	and improve searchability by physicists.

- new word: `matrix-p-norm`, written as an
	analogue of `math.vectors.p-norm`.

- new word: `matrix-p-q-norm`, which generalizes
	entrywise matrix norm over the L^p,q
	vector space.

- new word: `matrix-p-norm-entrywise`:
	`matrix-p-norm`'s fallback
	for p =/= 1, 2, inf; analogue of
	`math.vectors.p-norm-default`.

- all norm words have gotten new docs,
	`zero-matrix?` guards as an optimisation,
	and most have gotten new tests.
2020-03-01 03:31:28 +00:00
John Benediktsson 6599869f73 prettyprint.backend: make +nil+ render as L{ }. 2020-02-29 07:16:46 -08:00
John Benediktsson dc8e6e6799 ui.gadgets.paragraphs: need to merge height/metrics.
Sometimes cap-height is false and we handle that differently.
2020-02-27 21:53:39 -08:00
John Benediktsson 086269ba34 help.html: default font size should be 12pt, less line-height for pre. 2020-02-27 21:44:32 -08:00
John Benediktsson 2379d27950 ui.gadgets.paragraphs: faster pref-dim.
Now computing gadget-metrics once, before called (measure-metrics) twice,
the first time adding the result, the second time dropping the top of stack.
2020-02-27 18:10:37 -08:00
John Benediktsson ba09d70b8b help.html: raise line-height to 150%. 2020-02-27 16:49:48 -08:00
John Benediktsson d732e87cfa help.html: less css reset. 2020-02-27 16:08:33 -08:00
John Benediktsson 7ec954ec05 help.html: use protocol agnostic link. 2020-02-27 14:40:50 -08:00
John Benediktsson 83f47eb209 help.html: make these match new wiki css. 2020-02-27 13:15:53 -08:00
John Benediktsson 43b82b03ad math.vectors: rename "h." to "hdot" 2020-02-26 13:06:52 -08:00
John Benediktsson da5d010c5b math.vectors.simd: fix typo in simd vdot intrinsic. 2020-02-26 12:56:52 -08:00
John Benediktsson 07a5912afa math.matrices: rename m./m.v/v.m to mdot/mdotv/vdotm. 2020-02-26 12:51:04 -08:00
John Benediktsson 1c5d417100 math.vectors: rename "v." to "vdot" 2020-02-26 12:40:16 -08:00
John Benediktsson 29054e53e8 help.markup: make sure lists wrap wider. 2020-02-26 12:02:20 -08:00
John Benediktsson 385c5edf1a calendar: remove unnecessary effects on generics. 2020-02-26 11:34:02 -08:00
John Benediktsson 6ee821e061 prettyprint.stylesheet: s/stack-effect-style/base-effect/style/. 2020-02-26 11:18:18 -08:00
John Benediktsson 049271d04e help.markup: cleanup using. 2020-02-26 11:08:13 -08:00
John Benediktsson 59ddb844e9 prettyprint.stylesheet: change stack effects to not be green. 2020-02-26 11:07:46 -08:00
John Benediktsson 2cbcacad88 core/basis/extra: update some tags.txt. 2020-02-26 10:57:08 -08:00
John Benediktsson 522f30e520 xml.writer: remove M\ number write-xml.
This is likely an artifact from when numbers were treated as sequences,
which isn't needed anymore.
2020-02-26 10:24:23 -08:00
John Benediktsson 994ecb655b help.html: assume even padding started out odd. 2020-02-26 10:03:35 -08:00
John Benediktsson 6796daab79 help.html: clone attrs in css-styles-to-classes and double padding. 2020-02-26 09:44:14 -08:00
John Benediktsson 15d6762449 help.markup: change $breadcrumbs to unicode. 2020-02-26 09:40:27 -08:00
John Benediktsson 6aa7d52473 ui.tools.browser: use unicode next/prev arrows. 2020-02-26 09:22:48 -08:00
John Benediktsson c03a7b5ec2 ui.gadgets.panes: simplify <styled-label>. 2020-02-25 12:33:01 -08:00
John Benediktsson 94fcf3f2b6 html.streams: allow div-css-style to use span-css-style. 2020-02-25 12:30:51 -08:00
John Benediktsson 404aa1bc92 Revert "html.streams: use style-stream."
This reverts commit 6f9a7dcc9e.
2020-02-25 12:10:42 -08:00
John Benediktsson 08dd854b15 lists: check for errors like L{ . 3 }. 2020-02-24 09:11:46 -08:00