Pikchr

Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

47 check-ins by user stephan

2024-04-20
16:39
Document that in string literals single backslashes are elided and newlines are permitted, based on forum feedback. (Leaf check-in: e224071e3a user: stephan tags: trunk)
2023-12-24
17:39
Increase an snprintf() output buffer size by a few bytes to squelch a warning from gcc 12.2 reported in fossil /chat. (check-in: 4bb035e213 user: stephan tags: trunk)
2023-08-09
16:37
Update description of pikchr-cmd, per its author's request. (check-in: 97bb6ad73d user: stephan tags: trunk)
2023-08-07
00:48
Add link to pikchr-cmd, from [/forumpost/a4a30d08e1]. (check-in: 041648e3ae user: stephan tags: trunk)
2023-07-23
11:57
Typo fixes reported [/forumpost/15c97aaecd | in the forum]. (check-in: 589586a89e user: stephan tags: trunk)
2023-04-14
13:24
Doc typo fix reported in [/forumpost/4e01fef7d9]. (check-in: dc29638e0f user: stephan tags: trunk)
2023-02-04
15:55
Add a link to Adamantine Pick, a pikchr extension for the Obsidian knowledge-base app. (check-in: c35c195471 user: stephan tags: trunk)
2022-12-04
21:04
Add "External Link" entry for the Lua-based pikchr pandoc filter. (check-in: b73db28992 user: stephan tags: trunk)
2022-10-17
18:14
Add mdbook-pikchr to External Links section. (check-in: d690d1fd06 user: stephan tags: trunk)
2022-10-02
03:42
Minor emsdk doc update. (check-in: beb9c85f38 user: stephan tags: trunk)
2022-09-30
23:37
Added a link to David Weil's node.js pikchr module, sent to me off-list. (check-in: 7f0e44a56a user: stephan tags: trunk)
2022-07-28
19:32
Added fiddle/README.md, which explains how to get the fiddle app up and running. (check-in: 8c932ccd43 user: stephan tags: trunk)
18:57
Pulled in minor fiddle changes from the fossil tree. (check-in: 0c517dfe5e user: stephan tags: trunk)
18:44
Changed the /fiddle build to name the output files pikchr.js/wasm instead of fiddle-module.js/wasm to avoid having to make manual edits when porting them over to fossil. (check-in: 77485e8ed8 user: stephan tags: trunk)
2022-06-20
06:51
Help text typo fix and added a mention that all output goes to stdout, as suggested in [e3a1e165ab799e64]. No code changes. (check-in: d9ee756594 user: stephan tags: trunk)
2022-06-17
12:29
Added a link to another 3rd-party integration of pikchr: the 8th programming language. (check-in: 684244a6ac user: stephan tags: trunk)
2022-06-14
17:41
Expanded [43eb7d998415] to permit digits in HTML entities after the first character, to allow for sup2, frac12, and similar entities. Reported in [dcf1418ef16f]. (check-in: a28bee7108 user: stephan tags: trunk)
15:25
Minor doc correction and code style tweak to the previous checkin. No functional changes. (check-in: b5a5779c8d user: stephan tags: trunk)
14:32
When outputing HTML-escaped text and an ampersand is encountered, only transform it to an HTML entity if it looks like it's not one already. HTML entities are left as is, noting that we do only a syntactic check and not a test for whether the entity is a standard/known one. This replaces [aca3d2dc1a00], reverting the doc changes made by that checkin. (check-in: 43eb7d9984 user: stephan tags: trunk)
09:33
Replaced ampersand-deg-semicolon escape sequences in pikchr string literals in various docs with a degree symbol to work around that escape sequence having been broken by [641b4ff2e552183c]. Extended the comment about ampersand escaping in pik_append_text(). No code changes. (Closed-Leaf check-in: aca3d2dc1a user: stephan tags: mistake)
2022-06-06
23:51
Removed some duplicated docs, one copy of which was out of date. (check-in: 1ecd389f95 user: stephan tags: trunk)
23:48
Extended the wasm binding to optionally make use of all of the pikchr() arguments and return more info, e.g. width/height, in the result object. Fixed shift-enter behavior. (check-in: 701ca358b9 user: stephan tags: trunk)
17:43
Minor fiddle app cleanups made while porting it to fossil. (check-in: 667d6f9497 user: stephan tags: trunk)
13:09
Added build of gzip-compressed forms of the fiddle/ files, for use with althttpd's new gzip support. (check-in: f79fb1cec1 user: stephan tags: trunk)
2022-05-28
23:19
Updated the fiddle TODOs. (check-in: 4b3db84d9a user: stephan tags: trunk)
23:05
fiddle: initial impl of auto-update of SVG while typing (enabled with new checkbox). Works but may need tweaks for the precise preferred timing (currently 800ms debounce) and skiping update for certain keys/situations. (check-in: 5180e89672 user: stephan tags: trunk)
11:57
fiddle: made the config checkboxes persistent. (check-in: 5a99e63fc1 user: stephan tags: trunk)
2022-05-27
20:48
fiddle: removed a superfluous layer of indirection. (check-in: 675a6dc497 user: stephan tags: trunk)
20:16
Fiddle: accounted for case of empty pikchr script, which produces an HTML comment as output. Renamed the inherited sqlite-centric symbol names to pikchr-centric ones. (check-in: d748a2a438 user: stephan tags: trunk)
19:32
fiddle: simplified some duplicated if/else logic and made renderAutoScale=false the default. (check-in: 1312a45b42 user: stephan tags: trunk)
19:28
Initial version of a wasm/JS pikchr "fiddle" app. Requires emscripten to build. Several TODOs remain but it essentially works. (check-in: 5403316e07 user: stephan tags: trunk)
2022-04-22
13:58
Added new external project links which were posted to [/forumpost/8b18c6b6bd]. (check-in: 20ee883247 user: stephan tags: trunk)
2022-03-31
00:26
Typo fix in userman.md: s/three/five/ (check-in: 152e4c065c user: stephan tags: trunk)
2021-12-24
04:09
Escape ampersands when emitting text nodes, per report in [/forumpost/37584617be| forum post 37584617be]. (check-in: 641b4ff2e5 user: stephan tags: trunk)
2021-02-12
04:31
Added -lm to linking instructions, per forum suggestion. (check-in: be1c126190 user: stephan tags: trunk)
2020-10-11
12:10
Updated _txt2js.bash for file extension change .txt==>.pikchr. (check-in: 96d871d8f6 user: stephan tags: trunk)
2020-10-07
08:28
Applied [1278cb9154] to pikchr.y (was previously only applied to the generated pikchr.c). Also a thoroughly pedantic main() result code portability tweak. (check-in: 083f9c9bfd user: stephan tags: trunk)
2020-09-23
13:08
Expanded the section on pikchr placement/alignment/toggling in usepikchr.md. (check-in: 6f8f2c917d user: stephan tags: trunk)
12:34
Tiny typos. (check-in: fe48d9a808 user: stephan tags: trunk)
2020-09-15
23:47
Minor doc typo reported in the forum. (check-in: e0af8d9472 user: stephan tags: trunk)
2020-09-14
20:38
Merged in trunk. Changed pikchr svg metadata namespace URL to point to grammar.md. Lowercased namespace metadata XML nodes based on advice from around the net on the topic vis a vis compatibility with HTML5. (Closed-Leaf check-in: 4860729b9c user: stephan tags: pikchr-src-in-metadata)
07:21
Removed extraneous pikchr:src node class attribute as there is indeed a (funky) way to select namespaced nodes in document.querySelector(). (Closed-Leaf check-in: 2866454aea user: stephan tags: mistake)
07:13
Added a class attribute to the pikchr:src metadata node because JS does not seem to be able to select namespace-qualified nodes by node name. (Edit: not needed - branching off and closing it.) (check-in: d5f7032b0c user: stephan tags: mistake)
06:56
Added Pik::mFlags, set via pikchr()'s 3rd arg. Added original pikchr source code in a metadata tag, which survives loading and re-saving via inkscape. That needs to be fixed to only emit when a certain flag is set, but how to properly add such flags to the public API is not clear. (check-in: ac8d73bc6a user: stephan tags: pikchr-src-in-metadata)
06:50
Fixed another snprintf() warning from gcc and added a missing space before a style attribute upon which my local SVG viewer choked. (check-in: 42f0c4c6eb user: stephan tags: trunk)
05:33
example scripts: added 'demo label:' comment line to each and extract that string from _txt2js.bash for use in the pikchrshow example script list. (check-in: 8d2e16b163 user: stephan tags: trunk)
2020-09-12
19:25
Added examples/_txt2js.bash to convert .txt scripts to something usable by Fossil's pikchrshow page's example/curated scripts. A minor syntactic tweak to objects.txt was necessary for that conversion to work: pikchr lines which end in a backslash need a space before that backslash or JS will end up combining the 2 lines with no space between them, leading to a pikchr syntax error. (check-in: e42e629b76 user: stephan tags: trunk)