]> gitweb.factorcode.org Git - factor.git/log
factor.git
22 months agohtml5: It parses a basic html doc without <title> tags! html5-force-push
Doug Coleman [Fri, 10 Jun 2022 21:52:29 +0000 (16:52 -0500)]
html5: It parses a basic html doc without <title> tags!

Just the structure, chars are emitted but not inserted yet.

[[ <!DOCTYPE html>
<html>
<head> </head>

<body>
<!-- the comment -->
The content
</body>

</html>]] parse-html5

22 months agohtml5: do wrong algorithm to get a basic nested tag structure
Doug Coleman [Fri, 10 Jun 2022 18:58:06 +0000 (13:58 -0500)]
html5: do wrong algorithm to get a basic nested tag structure

same as modern.html5, but no error handling yet

22 months agosequences: move shorten* to sequences.extras
Doug Coleman [Fri, 10 Jun 2022 18:57:46 +0000 (13:57 -0500)]
sequences: move shorten* to sequences.extras

22 months agohtml5: make &acute; parser compile
Doug Coleman [Fri, 10 Jun 2022 18:06:42 +0000 (13:06 -0500)]
html5: make &acute; parser compile

22 months agohtml5: starting on dom insertion
Doug Coleman [Fri, 26 Mar 2021 23:09:47 +0000 (18:09 -0500)]
html5: starting on dom insertion

22 months agohtml5: make it load
Doug Coleman [Tue, 11 Aug 2020 23:54:06 +0000 (18:54 -0500)]
html5: make it load

22 months agohtml5: working on named characters
Doug Coleman [Sat, 9 May 2020 04:58:29 +0000 (23:58 -0500)]
html5: working on named characters

22 months agohtml5: handle attributes a little.
Doug Coleman [Thu, 7 May 2020 04:33:16 +0000 (23:33 -0500)]
html5: handle attributes a little.

22 months agohtml5: Fix some tag name code and doctype state.
Doug Coleman [Thu, 7 May 2020 03:37:25 +0000 (22:37 -0500)]
html5: Fix some tag name code and doctype state.

22 months agohtml5: some code for every state!
Doug Coleman [Thu, 7 May 2020 02:52:45 +0000 (21:52 -0500)]
html5: some code for every state!

now to figure out emitting for the dom and clean up return-state, temporary-state, tag emits, everything else..

22 months agohtml5: implementing more and restructuring
Doug Coleman [Thu, 7 May 2020 00:46:43 +0000 (19:46 -0500)]
html5: implementing more and restructuring

22 months agohtml5: Initial checkin.
Doug Coleman [Fri, 10 Jun 2022 17:43:08 +0000 (12:43 -0500)]
html5: Initial checkin.

22 months agoshuffle.extras: Add words to keep args and move the result above the kept args.
Doug Coleman [Fri, 10 Jun 2022 16:05:12 +0000 (11:05 -0500)]
shuffle.extras: Add words to keep args and move the result above the kept args.

22 months agohtml5: Initial checkin.
Doug Coleman [Fri, 10 Jun 2022 17:35:34 +0000 (12:35 -0500)]
html5: Initial checkin.

22 months agocombinators.extras: add 4tri*, 4quad, 4tri@
Doug Coleman [Fri, 10 Jun 2022 01:07:01 +0000 (20:07 -0500)]
combinators.extras: add 4tri*, 4quad, 4tri@

22 months agomodern: simplify string parser
Doug Coleman [Thu, 9 Jun 2022 03:35:41 +0000 (22:35 -0500)]
modern: simplify string parser

22 months agomodern.html: remove all the stack shuffling with dip-1up etc
Doug Coleman [Thu, 9 Jun 2022 02:10:20 +0000 (21:10 -0500)]
modern.html: remove all the stack shuffling with dip-1up etc

22 months agoshuffle.extras: rename dip1 to dip-1up etc
Doug Coleman [Thu, 9 Jun 2022 02:10:08 +0000 (21:10 -0500)]
shuffle.extras: rename dip1 to dip-1up etc

22 months agomodern.html: fix using
Doug Coleman [Tue, 7 Jun 2022 16:25:23 +0000 (11:25 -0500)]
modern.html: fix using

22 months agofactorcode: remove rackspace.jpg
Doug Coleman [Tue, 7 Jun 2022 04:04:08 +0000 (23:04 -0500)]
factorcode: remove rackspace.jpg

22 months agohtml.templates.chloe.syntax: Rename tags to chloe-tags.
Doug Coleman [Tue, 7 Jun 2022 02:05:58 +0000 (21:05 -0500)]
html.templates.chloe.syntax: Rename tags to chloe-tags.

tags word is generic and all the other words that deal with
chloe tags have chloe in the name.

22 months agomodern.html: allow parsing <% %> for .fhtml files
Doug Coleman [Mon, 6 Jun 2022 03:17:24 +0000 (22:17 -0500)]
modern.html: allow parsing <% %> for .fhtml files

22 months agosystem-info.macosx: adding macOS Ventura.
John Benediktsson [Mon, 6 Jun 2022 19:08:22 +0000 (12:08 -0700)]
system-info.macosx: adding macOS Ventura.

22 months agomisc/vim: update for recent syntax additions.
John Benediktsson [Mon, 6 Jun 2022 00:48:28 +0000 (17:48 -0700)]
misc/vim: update for recent syntax additions.

22 months agoshuffle.extras: Exploring some dip combinators that bring the result to the top of...
Doug Coleman [Sat, 4 Jun 2022 18:10:18 +0000 (13:10 -0500)]
shuffle.extras: Exploring some dip combinators that bring the result to the top of the stack.

22 months agomodern: allow DOCTYPE and doctype etc. Add another find-links
Doug Coleman [Sat, 4 Jun 2022 18:09:36 +0000 (13:09 -0500)]
modern: allow DOCTYPE and doctype etc. Add another find-links

22 months agomodern: treat tab as whitespace and add test case.
Doug Coleman [Fri, 3 Jun 2022 03:33:08 +0000 (22:33 -0500)]
modern: treat tab as whitespace and add test case.

22 months agomodern.html: Add walk-html helper function
Doug Coleman [Fri, 3 Jun 2022 03:33:26 +0000 (22:33 -0500)]
modern.html: Add walk-html helper function

Example:
USE: modern.html
"https://en.wikipedia.org/w/index.php?title=Factor_(programming_language)&offset=&limit=500&action=history" http-get
nip string>html
[
  [
    dup tag? [ props>> [ drop  >lower "href" = ] assoc-find [ nip , ] [ 2drop ] if ] [ drop ] if
  ] walk-html
] { } make [ payload>> ] map

22 months agomodern.html: Fix a bug in parsing factor's wikipedia history
Doug Coleman [Fri, 3 Jun 2022 02:35:02 +0000 (21:35 -0500)]
modern.html: Fix a bug in parsing factor's wikipedia history

22 months agoio.styles: Add blink style.
Doug Coleman [Sat, 28 May 2022 20:29:13 +0000 (15:29 -0500)]
io.styles: Add blink style.

Try in terminal:

rlwrap ./factor

USING: system io.styles colors literals threads calendar colors.flex-hex hashtables io.streams.ansi random ; [
  "hello"
   named-colors random parse-color foreground associate
   named-colors random parse-color background pick set-at
   { underline blink bold-italic } font-style pick set-at format
] with-ansi

22 months agometar: adding relative humidity calculation.
John Benediktsson [Fri, 27 May 2022 23:01:44 +0000 (16:01 -0700)]
metar: adding relative humidity calculation.

22 months agobase32hex: adding Base32 with Extended Hex Alphabet.
John Benediktsson [Fri, 27 May 2022 20:49:14 +0000 (13:49 -0700)]
base32hex: adding Base32 with Extended Hex Alphabet.

23 months agostrings.tables: adding box formatting
John Benediktsson [Thu, 26 May 2022 21:06:28 +0000 (14:06 -0700)]
strings.tables: adding box formatting

23 months agounicode: Update Unicode version from 13.0 to 14.0
Doug Coleman [Wed, 25 May 2022 03:43:08 +0000 (22:43 -0500)]
unicode: Update Unicode version from 13.0 to 14.0

23 months agowebapps.pastebin: update css
John Benediktsson [Thu, 19 May 2022 04:17:52 +0000 (21:17 -0700)]
webapps.pastebin: update css

23 months agowebapps.pastebin: better dark mode
John Benediktsson [Thu, 19 May 2022 04:10:45 +0000 (21:10 -0700)]
webapps.pastebin: better dark mode

23 months agowebsites: better dark mode headings
John Benediktsson [Thu, 19 May 2022 04:08:42 +0000 (21:08 -0700)]
websites: better dark mode headings

23 months agowebsites: better darkmode for headings
John Benediktsson [Thu, 19 May 2022 04:07:39 +0000 (21:07 -0700)]
websites: better darkmode for headings

23 months agohelp.html: simplify dark mode code
John Benediktsson [Thu, 19 May 2022 04:03:10 +0000 (21:03 -0700)]
help.html: simplify dark mode code

23 months agocolors: fix parse-colors
John Benediktsson [Wed, 18 May 2022 04:04:12 +0000 (21:04 -0700)]
colors: fix parse-colors

23 months agoui.theme.base16: fix parse-colors
John Benediktsson [Wed, 18 May 2022 03:41:21 +0000 (20:41 -0700)]
ui.theme.base16: fix parse-colors

23 months agohelp.html: fix using
John Benediktsson [Wed, 18 May 2022 03:28:21 +0000 (20:28 -0700)]
help.html: fix using

23 months agohelp.html: lowercase colors
John Benediktsson [Wed, 18 May 2022 03:21:19 +0000 (20:21 -0700)]
help.html: lowercase colors

23 months agohelp.html: dark mode
John Benediktsson [Wed, 18 May 2022 03:09:57 +0000 (20:09 -0700)]
help.html: dark mode

23 months agocolors: fix shadowing of parse-color
John Benediktsson [Wed, 18 May 2022 03:07:30 +0000 (20:07 -0700)]
colors: fix shadowing of parse-color

23 months agowebapps.wiki: fix pre dark mode
John Benediktsson [Tue, 17 May 2022 18:37:12 +0000 (11:37 -0700)]
webapps.wiki: fix pre dark mode

23 months agowebapps.planet: dark mode
John Benediktsson [Tue, 17 May 2022 17:56:52 +0000 (10:56 -0700)]
webapps.planet: dark mode

23 months agowebapps.wiki: dark mode
John Benediktsson [Tue, 17 May 2022 17:50:06 +0000 (10:50 -0700)]
webapps.wiki: dark mode

23 months agowebsites.factorcode: dark mode
John Benediktsson [Tue, 17 May 2022 17:39:33 +0000 (10:39 -0700)]
websites.factorcode: dark mode

23 months agowebapps.wiki: fix positioning of nav.
John Benediktsson [Wed, 11 May 2022 01:00:13 +0000 (18:00 -0700)]
webapps.wiki: fix positioning of nav.

23 months agowebapps.wiki: smaller hamburger menu.
John Benediktsson [Tue, 10 May 2022 23:51:05 +0000 (16:51 -0700)]
webapps.wiki: smaller hamburger menu.

23 months agolists.circular: new vocab
Alexander Ilin [Tue, 10 May 2022 07:54:37 +0000 (09:54 +0200)]
lists.circular: new vocab

Closes #2607.

23 months agozealot.factor: Use `arch -x86_64` on mac
Doug Coleman [Fri, 29 Apr 2022 00:51:34 +0000 (19:51 -0500)]
zealot.factor: Use `arch -x86_64` on mac

23 months agozealot: Allow building from branch or checksum.
Doug Coleman [Thu, 28 Apr 2022 04:14:59 +0000 (23:14 -0500)]
zealot: Allow building from branch or checksum.

23 months agocli.git: rename git-checkout-existing-branch to git-checkout-existing
Doug Coleman [Thu, 28 Apr 2022 04:14:28 +0000 (23:14 -0500)]
cli.git: rename git-checkout-existing-branch to git-checkout-existing

2 years agocolor-table: case insensitive sort
Doug Coleman [Mon, 4 Apr 2022 00:22:14 +0000 (19:22 -0500)]
color-table: case insensitive sort

2 years agomediawiki.api: Add missing action parameter
gifti258 [Tue, 29 Mar 2022 12:42:50 +0000 (14:42 +0200)]
mediawiki.api: Add missing action parameter

2 years agotools.wc: remove dependency on formatting, handle not found
John Benediktsson [Mon, 28 Mar 2022 00:35:25 +0000 (17:35 -0700)]
tools.wc: remove dependency on formatting, handle not found

2 years agotools.cat: remove dependency on formatting, flush properly
John Benediktsson [Mon, 28 Mar 2022 00:31:04 +0000 (17:31 -0700)]
tools.cat: remove dependency on formatting, flush properly

2 years agomediawiki.api: Fix documentation, improvements
Giftpflanze [Sun, 27 Mar 2022 19:59:10 +0000 (21:59 +0200)]
mediawiki.api: Fix documentation, improvements

2 years agomediawiki.api: Add MediaWiki API
Giftpflanze [Sun, 27 Mar 2022 12:47:00 +0000 (14:47 +0200)]
mediawiki.api: Add MediaWiki API

2 years agodb.mysql: Add low-level MySQL support
Giftpflanze [Sun, 27 Mar 2022 13:04:15 +0000 (15:04 +0200)]
db.mysql: Add low-level MySQL support

2 years agoLICENSE.txt: updating to 2022
John Benediktsson [Sat, 26 Mar 2022 18:32:58 +0000 (11:32 -0700)]
LICENSE.txt: updating to 2022

2 years agoassocs.extras: Add a histogram-diff for fun.
Doug Coleman [Sat, 26 Mar 2022 00:50:10 +0000 (19:50 -0500)]
assocs.extras: Add a histogram-diff for fun.

2 years agounicode.data: Fix confusing error with unknown unicode char names.
Doug Coleman [Sat, 26 Mar 2022 00:48:42 +0000 (19:48 -0500)]
unicode.data: Fix confusing error with unknown unicode char names.

I had `CHAR: green` instead of `COLOR: green` but the caret pointed to
the whitespace and the message was "Invalid character" like there
was some weird unicode code point it was choking on.

2 years agoslides: minor tweak
John Benediktsson [Fri, 25 Mar 2022 20:04:38 +0000 (13:04 -0700)]
slides: minor tweak

2 years agoslides: better wrapping
John Benediktsson [Fri, 25 Mar 2022 03:51:57 +0000 (20:51 -0700)]
slides: better wrapping

2 years agocodebase-analyzer: minor fixes
John Benediktsson [Thu, 24 Mar 2022 18:33:49 +0000 (11:33 -0700)]
codebase-analyzer: minor fixes

2 years agomath.parser: adding >dec alias to number>string
John Benediktsson [Fri, 18 Mar 2022 21:01:44 +0000 (14:01 -0700)]
math.parser: adding >dec alias to number>string

2 years agoui.gadgets.panes: scroll-pane so it respects the scrolls slot
John Benediktsson [Sat, 5 Mar 2022 17:34:33 +0000 (09:34 -0800)]
ui.gadgets.panes: scroll-pane so it respects the scrolls slot

2 years agoRevert "ui.gadgets.panes: remove scrolls? slot and make scrolling default behavior"
John Benediktsson [Sat, 5 Mar 2022 17:34:10 +0000 (09:34 -0800)]
Revert "ui.gadgets.panes: remove scrolls? slot and make scrolling default behavior"

This reverts commit 331dddb8ed37035be9b2869d614a55290f52f2e6.

2 years agoui.backend.cocoa: support automatic changing of themes
John Benediktsson [Sat, 5 Mar 2022 15:02:15 +0000 (07:02 -0800)]
ui.backend.cocoa: support automatic changing of themes

2 years agoui.theme.switching: split out ui.tools themeing
John Benediktsson [Sat, 5 Mar 2022 15:01:23 +0000 (07:01 -0800)]
ui.theme.switching: split out ui.tools themeing

2 years agowikipedia: fix article link broken by last patch
John Benediktsson [Fri, 4 Mar 2022 17:25:47 +0000 (09:25 -0800)]
wikipedia: fix article link broken by last patch

2 years agowikipedia: fix links
John Benediktsson [Fri, 4 Mar 2022 17:23:15 +0000 (09:23 -0800)]
wikipedia: fix links

2 years agowikipedia: adding a command-line version
John Benediktsson [Fri, 4 Mar 2022 17:21:05 +0000 (09:21 -0800)]
wikipedia: adding a command-line version

2 years agowikipedia: fix for nested structure changes
John Benediktsson [Fri, 4 Mar 2022 17:03:58 +0000 (09:03 -0800)]
wikipedia: fix for nested structure changes

2 years agoui.tools.listener: pressing enter should scroll to the bottom.
John Benediktsson [Fri, 4 Mar 2022 04:22:04 +0000 (20:22 -0800)]
ui.tools.listener: pressing enter should scroll to the bottom.

2 years agoui.gadgets.panes: remove scrolls? slot and make scrolling default behavior
John Benediktsson [Fri, 4 Mar 2022 03:18:26 +0000 (19:18 -0800)]
ui.gadgets.panes: remove scrolls? slot and make scrolling default behavior

2 years agoui.gadgets.panes: make sure walker scrolls to the bottom
John Benediktsson [Thu, 3 Mar 2022 23:04:15 +0000 (15:04 -0800)]
ui.gadgets.panes: make sure walker scrolls to the bottom

2 years agoui.tools: change scrolling behavior
John Benediktsson [Thu, 3 Mar 2022 22:53:34 +0000 (14:53 -0800)]
ui.tools: change scrolling behavior

When we are already to the bottom, keep scrolling to show new input.

When we are not, just add the input and keep the scroll position.

2 years agohtml.streams: use color>hex
John Benediktsson [Mon, 28 Feb 2022 18:01:06 +0000 (10:01 -0800)]
html.streams: use color>hex

2 years agoupdate readme for discord, irc
Alex Maestas [Thu, 24 Feb 2022 16:11:43 +0000 (16:11 +0000)]
update readme for discord, irc

2 years agoadd color>hex
Alex Maestas [Sun, 20 Feb 2022 19:18:42 +0000 (19:18 +0000)]
add color>hex

found basically the same thing in the color-table extra, but this one can
round-trip an alpha channel.

2 years agoput show-error-list in the touchbar
Alex Maestas [Wed, 23 Feb 2022 19:05:50 +0000 (19:05 +0000)]
put show-error-list in the touchbar

2 years agozoneinfo: Trying to make some sensible words for zones/rules
Doug Coleman [Mon, 21 Feb 2022 18:25:05 +0000 (12:25 -0600)]
zoneinfo: Trying to make some sensible words for zones/rules

2 years agosequences.extras: add another heap slurping combinator
Doug Coleman [Mon, 21 Feb 2022 18:18:29 +0000 (12:18 -0600)]
sequences.extras: add another heap slurping combinator

Fix tests..

2 years agosequences.extras: Add a map-with-previous to let map see the previous iter's value
Doug Coleman [Mon, 21 Feb 2022 18:16:39 +0000 (12:16 -0600)]
sequences.extras: Add a map-with-previous to let map see the previous iter's value

2 years agoshuffle: Add 5roll, 2reach, nipdd
Doug Coleman [Mon, 21 Feb 2022 18:07:34 +0000 (12:07 -0600)]
shuffle: Add 5roll, 2reach, nipdd

2 years agozoneinfo: Fix tests and tz/country map words
Doug Coleman [Sun, 20 Feb 2022 07:16:07 +0000 (01:16 -0600)]
zoneinfo: Fix tests and tz/country map words

2 years agozoneinfo: get countries from zone or zone from countries
Doug Coleman [Sun, 20 Feb 2022 01:28:39 +0000 (19:28 -0600)]
zoneinfo: get countries from zone or zone from countries

2 years agoassocs.extras: Add collect-key-by and collect-value-by
Doug Coleman [Sun, 20 Feb 2022 01:28:13 +0000 (19:28 -0600)]
assocs.extras: Add collect-key-by and collect-value-by

2 years agozoneinfo: Fix zome timezone parsing. Fixzoneinfo
Doug Coleman [Sat, 19 Feb 2022 20:31:12 +0000 (14:31 -0600)]
zoneinfo: Fix zome timezone parsing.

2 years agozoneinfo: upgrade
Doug Coleman [Wed, 16 Feb 2022 23:48:10 +0000 (17:48 -0600)]
zoneinfo: upgrade

2 years agohelp.syntax: trim common whitespace from code examples
John Benediktsson [Wed, 16 Feb 2022 04:59:18 +0000 (20:59 -0800)]
help.syntax: trim common whitespace from code examples

2 years agohelp.syntax: use split-lines for now.
John Benediktsson [Wed, 16 Feb 2022 04:34:55 +0000 (20:34 -0800)]
help.syntax: use split-lines for now.

Perhaps we remove common blank prefixes instead so that indentation is
still supported.

2 years agoio.sockets.secure.unix: Disable bad unit test for libssl3
Doug Coleman [Wed, 16 Feb 2022 00:55:23 +0000 (18:55 -0600)]
io.sockets.secure.unix: Disable bad unit test for libssl3

2 years agobootstrap: change array-capacity coercer
John Benediktsson [Tue, 15 Feb 2022 20:56:23 +0000 (12:56 -0800)]
bootstrap: change array-capacity coercer

2 years agoRevert "vm: set array_size_max to fixnum_max."
John Benediktsson [Tue, 15 Feb 2022 20:55:47 +0000 (12:55 -0800)]
Revert "vm: set array_size_max to fixnum_max."

This reverts commit df89e18996f440a61cbdb01204e3654e5642fae6.

2 years agoRevert "layouts: change max-array-capacity to most-positive-fixnum"
John Benediktsson [Tue, 15 Feb 2022 20:55:40 +0000 (12:55 -0800)]
Revert "layouts: change max-array-capacity to most-positive-fixnum"

This reverts commit ffad6a8dc8e33cf9811d08a02cd46aa3fcce8ee0.