Commit Graph
9 Commits
Author SHA1 Message Date
Ambrose Li ec722e7a53 q_level was never initialized, causing random test failures. This should fix that 2020-12-17 21:51:42 -05:00
Ambrose Li 7857a2ecf6 Translate new string 2020-12-17 21:29:03 -05:00
Ambrose Li b9488ffe60 Somehow the wrong quotes were used. This should fix the failing tests. 2020-08-29 15:23:36 -04:00
Ambrose Li 5d7fb3719e Missed the spurious (_S) 2020-08-29 04:43:37 -04:00
Ambrose Li 4d8ba3fe21 wip from about a week ago. Need to stash these away for now to check the q branch 2020-08-29 04:26:12 -04:00
Ambrose Li 48c9ec565d In HTML5 anchors should not be closed when encountering divs, for example, but should be closed when encountering buttons, for example. Many sites that use HTML5-style anchors end up having links displayed with zero-length link texts. The proposed patch correct this behaviour by detecting whether the document is HTML5, then suppressing the close-anchor action in CLOSE_A if it's an HTML5 document. A new macro handles the HTML5-specific cases where anchors are not already always closed.
This also fixes a bug in the tokenizing FSM in etc.c that prevented the !doctype element from being recognized; the fix is necessary because HTML5 detection depends on checking the !doctype element.
2020-08-24 23:48:09 -04:00
Ambrose Li 7896fc31f0 Corrections to traditional Chinese translation, including corrections of a number of serious errors. Style follows existing Pidgin translation, with NAER, mousepad and others as additional references. 2020-08-24 23:43:28 -04:00
Ambrose Li 9f18e67a9b Cleaned version of 20200823_q branch. Changes the behaviour of the q tag (when m17n and Unicode are configured) to use "smart" quotes if the display charset can handle them. Falls back to old behaviour (ASCII quotes with left/right quote semantics for 6/0 and 2/6) if display charset is us-ascii.
Also changes the behaviour of conv_entity() to convert left/right quotes and some dashes because named entities are needed for the new code for the q tag.
2020-08-23 22:20:43 -04:00
Ambrose Li 73949a3e12 Rudimentary support for figure, figcaption 2020-08-21 04:26:26 -04:00