AmendHub

jcs

/

wikipedia

/

amendments

/

wikipedia.c

Amendments on October 31, 2023

wikipedia: Try resizing buf if we run out of room, don't just dump it

We might be in the middle of a giant infobox or something that isn't
supposed to be printed, so we have to keep growing or die trying.
jcs made amendment 55 about 1 year ago

Amendments on October 30, 2023

wikipedia: Only collect characters inside a <Text> tag

Others with image URLs and other things can be quite large and we're
not doing anything with that data anyway. If we do run out of room,
try to grow before failing.
jcs made amendment 53 about 1 year ago

Amendments on October 16, 2023

*: Make Wikipedia hostname configurable in a new settings window

Most of the settings dialog logic taken from Wallops
jcs made amendment 49 about 1 year ago

Amendments on August 30, 2023

wikipedia; Remove "article" from dialog

jcs made amendment 46 about 1 year ago

*: Fix lots of bugs, add progress in fetch dialog

More carefully check working buffer, handle large buffers of unstyled
text.
jcs made amendment 44 about 1 year ago

Amendments on August 28, 2023

*: Remove xmalloc comments, handle malloc failure

jcs made amendment 42 about 1 year ago

wikipedia: Remove debugging code

jcs made amendment 36 over 2 years ago

Amendments on September 7, 2022

wikipedia: Use XML API for searching too, get rid of pdjson

jcs made amendment 33 over 2 years ago

Amendments on September 5, 2022

wikipedia: Basic support for {{convert}}

There are hundreds of possible conversions, so just print the
value and unit and hope it makes sense. For things like "9|in"
we print "9 in", but there are a lot of possible conversions that
won't print nicely. Oh well.
Also recognize {| and |} for tables, treated like {{ and }}.
jcs made amendment 25 over 2 years ago

wikipedia: Rewrite Wikitext parser again

jcs made amendment 24 over 2 years ago

wikipedia: Restructure to handle styles touching each other

''[[...]]'' was not getting parsed properly moving directly from
the 2 apostrophes (italics) to a link.
jcs made amendment 23 over 2 years ago

Amendments on September 4, 2022

wikipedia: Add UTF-8 support, convert some to Mac OS Roman

This will take some trial-and-error to load articles with characters
we don't understand and then write Roman equivalents for them.
jcs made amendment 22 over 2 years ago

wikipedia: Reset style counters when leaving <ref>

jcs made amendment 20 over 2 years ago

Amendments on September 3, 2022

wikipedia: Parse XML instead of JSON, do all parsing at once

jcs made amendment 19 over 2 years ago

Amendments on August 25, 2022

wikipedia: Slightly faster WikiText parsing

jcs made amendment 14 over 2 years ago

browser: Add live search drop-down list

Move request buffers into the http_request struct so each request
automatically gets them.
jcs made amendment 13 over 2 years ago

Amendments on August 24, 2022

wikipedia: Start on WP API support, Wikitext parsing

jcs made amendment 11 over 2 years ago