Witold Filipczyk
a910dda61b
[textarea] Fixes
...
Still not functional:
document.write
css
tables
and others
2021-07-01 15:33:42 +02:00
Witold Filipczyk
30226a1b11
[select] test/select.html is displayable
2021-06-30 16:20:57 +02:00
Witold Filipczyk
d55ea80fe6
[select] Modifications related to select. test/select.html still broken
2021-06-29 21:58:04 +02:00
Witold Filipczyk
3af2c6f2d9
[tables] Temporarily disable tables rendering
2021-06-28 20:41:23 +02:00
Witold Filipczyk
fa49422f88
[document] Programming by coincidence.
...
scroll3 works, width.html works, accesskey still does not
2021-06-27 13:01:19 +02:00
Witold Filipczyk
c09de3eb91
[xml] scroll3 works, but is very slow
2021-06-26 10:44:30 +02:00
Witold Filipczyk
488ee2ea59
[xml] onload
2021-06-25 18:25:40 +02:00
Witold Filipczyk
e52c6fe4ea
[js] some examples works, some don't
2021-06-25 18:08:38 +02:00
Witold Filipczyk
4f7aacd7ef
[margin] Set margin
2021-06-24 20:26:07 +02:00
Witold Filipczyk
70a42d7656
[tags] Set html_context->putsp = HTML_SPACE_ADD at the start of ending element
2021-06-24 20:00:43 +02:00
Witold Filipczyk
df534ef818
[xml] blockquote without tables
2021-06-24 17:28:31 +02:00
Witold Filipczyk
705cd7f113
[test] align.html is displayable
2021-06-23 20:42:58 +02:00
Witold Filipczyk
16c6926990
[xml] local directory listings are functional
2021-06-22 17:54:10 +02:00
Witold Filipczyk
d5b27592a1
[meson] compilation fixes related to CSS
2021-06-21 21:01:37 +02:00
Witold Filipczyk
ba3af06b40
[xhtml] code is compilable, but likely non-functional
2021-06-20 22:38:17 +02:00
Witold Filipczyk
e3852637ff
[tags] select
2021-06-19 14:45:38 +02:00
Witold Filipczyk
29e6d7971c
[xml] uncommented xmp
2021-06-18 17:20:20 +02:00
Witold Filipczyk
ddb52742bd
[tags] More code adjusted for xml++
2021-06-17 15:20:09 +02:00
Witold Filipczyk
d39dc85fa1
[xml] source . select intentionally ommitted.
2021-06-16 20:46:31 +02:00
Witold Filipczyk
071f9f219a
[xml] Test commit. Line 3200
2021-06-15 22:14:29 +02:00
Witold Filipczyk
8be72ca243
[source] Show source files after libxml++ parsing.
2021-06-13 16:41:54 +02:00
Witold Filipczyk
9328fa261e
[libdom] libdom also retired
2021-06-12 17:37:11 +02:00
Witold Filipczyk
908fa22878
[htmlcxx] htmlcxx retired
2021-06-12 13:29:05 +02:00
Witold Filipczyk
201a61b14f
[document] Try to free memory of document->dom in document_done
2021-06-10 15:01:15 +02:00
Witold Filipczyk
d6df9584c9
Merge branch 'master' into getlementbyid
2021-05-26 08:29:47 +02:00
Witold Filipczyk
63d892838c
[getElementById] small success. see test/ecmascript/element.html
...
Now memory leaks, etc. are not taken into account.
For the beginning I will implement read properties.
2021-05-02 17:27:35 +02:00
Witold Filipczyk
7ba9caf227
[document] Show IP also for idn domains.
2021-04-28 16:24:20 +02:00
Witold Filipczyk
c45c98438f
[configure.ac] Added htmlcxx
2021-04-20 21:19:23 +02:00
Witold Filipczyk
1fa5504570
[htmlcxx] Added htmlcxx parser for source code displaying
...
It is compilable only together with spidermonkey, and only with meson
for now.
2021-04-18 18:26:58 +02:00
Witold Filipczyk
fa6bfc0241
[hr] Cast to unsigned char. Refs #116
2021-04-12 22:01:12 +02:00
Witold Filipczyk
dcc8717d89
[tables] Condition for negative x in the expand_lines function. Refs #112
2021-03-28 21:02:03 +02:00
Witold Filipczyk
d4a1ce5a38
[blockquote] Rewritten a bit. Refs #112
...
It does not crash on test file and shows > for pior test cases.
2021-03-28 12:14:43 +02:00
Witold Filipczyk
409a7ebea4
[blockquote] Does not crash for me, but does not show > . Still broken. Refs #112
2021-03-25 20:43:06 +01:00
Witold Filipczyk
b4045ef864
[blockquote] Added condition for y. Refs #112
2021-03-25 18:18:17 +01:00
Witold Filipczyk
eecb907585
[blockquote] Workaround for segfault on distrowatch
2021-03-16 13:14:02 +01:00
Witold Filipczyk
089189638b
[blockquote] More draw_blockquote_chars. Refs #103
2021-03-15 20:20:15 +01:00
Witold Filipczyk
602290b73b
[blockquote] Prefix also caption. Added draw_blockquote_chars. Refs #103
2021-03-15 20:06:12 +01:00
Witold Filipczyk
bb01193671
[blockquote] Prefix also frame chars. Refs #103
2021-03-14 15:37:40 +01:00
Witold Filipczyk
a2c95f3f45
[blockquote] Try to prefix with > also tables. Refs #103
...
It was not tested too much, especially for longer texts.
There can be some bad offsets.
2021-03-13 20:04:27 +01:00
Witold Filipczyk
6acac0fc46
[blockquote] add > in move_chars. Refs #103
2021-03-09 18:36:53 +01:00
Witold Filipczyk
14c4584cde
[blockquoute] > starts with the same column. Refs #103
2021-03-09 18:17:39 +01:00
Witold Filipczyk
c72569d723
[blockquote] Changed rendering of blockquote. Refs #103
...
Previously blockquote was adding two spaces to the left margin.
Now it adds >.
It is not finished yet, needs some testing and feedback.
2021-03-08 22:10:20 +01:00
Witold Filipczyk
acbcfd2eba
[char] More casts to unsigned char
2021-02-27 09:51:23 +01:00
Witold Filipczyk
6ea0aa44a1
[renderer] Cast to unsigned char. Refs #94
2021-02-26 21:26:45 +01:00
nobody@earth.com
f953744189
[smjs document replace] fixed property location, replace and writeln functions, tests
2021-02-24 11:23:34 +01:00
Witold Filipczyk
0fea79cc8f
[cflags] Removed -Wno-pointer-sign
...
Likely some new bugs were introduced by this change.
The long term goal is clean compilation by g++.
2021-01-02 16:20:27 +01:00
Witold Filipczyk
d1ecd45828
[mozjs52] It compiles, but often segfaults. No idea yet how to fix it.
2020-10-27 14:53:24 +01:00
Witold Filipczyk
1f57e72212
[mozjs24] Allow build elinks with g++
...
SpiderMonkey was updated to mozjs24. If you want to build elinks
with ecmascript support, you must compile using g++ with -fpermissive .
There is a lot of warnings.
There are some memleaks in ecmascript code, especially related to JSAutoCompartment.
I don't know yet, where and how to free it.
Debian does not support mozjs24, so I'm going to gradually update SpiderMonkey version.
2020-10-05 20:14:55 +02:00
Witold Filipczyk
c8acb75bcd
[pre] Wrap text in pre (SHIFT-w by default). Refs #69
2020-09-19 21:48:53 +02:00
Witold Filipczyk
5f87bdbcb2
[meson] meson build scripts.
...
Not finished yet, but I added to motivate myself and others.
The goal is to get a few seconds faster builds.
autotools still will be available.
2020-09-05 22:06:01 +02:00
Witold Filipczyk
6a960a9fb9
[viewer] New action mark-clipboard. Refs #10
...
Possibility to mark rectangle for clipboard.
User may bind keys to move-cursor-up, move-cursor-down, move-cursor-left,
move-cursor-right and mark-clipboard.
mark-clipboard is tristate.
First triggerred, it remembers left top corner of rectangle. Now you can move cursor.
Second time triggerred, remembers right bottom corner of rectangle.
Third time, it clears selection.
The copy-clipboard action was changed. Now if the clipboard rectangle is marked,
it copies this rectangle. If not, the current link.
2020-08-01 23:25:21 +02:00
Witold Filipczyk
5c57cf6270
[fragment] Do not move to the top, when nonexisting fragment is in current document. Refs #42
...
Behaviour similar to bigger browsers.
2020-04-28 19:13:36 +02:00
Witold Filipczyk
3d96b0d7d7
Revert "Compile with C++."
...
This reverts commit 4f4df33638
.
2019-04-21 12:27:40 +02:00
Witold Filipczyk
4f4df33638
Compile with C++.
...
Weak points:
- alignof
- js problems
Todo:
- make js work with C++ and mozjs-17
- then mozjs-24
- then mozjs-52
- then mozjs-60
- decrease number of warnings
2019-02-17 20:46:16 +01:00
أحمد المحمودي (Ahmed El-Mahmoudy)
dbab898f38
Fix spelling mistakes
2019-01-14 04:51:10 +01:00
Witold Filipczyk
6dfdd36398
form_control -> el_form_control
2018-09-09 19:18:53 +02:00
Witold Filipczyk
d8be2c505e
Rename struct box to struct el_box.
...
In the future I want to copy some code from netsurf, so I'm preparing.
2018-09-09 19:14:56 +02:00
Witold Filipczyk
7a006b6dd2
Rewritten searching. Refs #21
...
Before only visible part of screen was searched for pattern.
Now whole document is searched, and beginings of found text
is remembered in document->search_points.
2018-04-14 21:49:52 +02:00
Witold Filipczyk
3b279e5ec6
No warning
2018-03-10 10:36:25 +01:00
Witold Filipczyk
c9a0df7a67
This condition was useless IMO.
2017-11-26 11:03:02 +01:00
rkd77
d539a45c98
Merge pull request #3 from aelmahmoudy/color_link_num
...
Allow link number colors to be changed.
2017-11-26 10:58:04 +01:00
Witold Filipczyk
48ba074969
mem_free_set instead two lines
2017-11-23 10:33:10 +01:00
rkd77
be719e1ac1
Merge pull request #10 from aelmahmoudy/select_forms
...
Make select forms look more like other forms.
2017-11-22 12:02:06 +01:00
rkd77
77ea5759ed
Merge pull request #9 from aelmahmoudy/preferred_document_width_option
...
Add preferred_document_width option.
2017-11-22 11:59:17 +01:00
rkd77
addd051c97
Merge pull request #6 from aelmahmoudy/dont_underline_unselected_forms
...
Dont underline unselected forms
2017-11-22 11:54:50 +01:00
rkd77
baf0c5b689
Merge pull request #4 from aelmahmoudy/color_textarea
...
Provide different color for text areas in insert mode.
2017-11-22 11:51:10 +01:00
rkd77
2b786ac7fe
Merge pull request #2 from aelmahmoudy/underline_links
...
Underline links even in numbered links mode
2017-11-22 11:42:02 +01:00
Nils Dagsson Moskopp
aae79c95fe
Add rendering for html source element
2017-11-22 03:19:33 +01:00
Yozo Hida
49988d305f
Do not underline forms (unless selected).
2017-11-22 01:16:50 +01:00
Yozo Hida
948d019fc0
Add preferred_document_width option.
...
Option document.browse.preferred_document_width controls the
width of the document, so that documents are rendered with narrower
width than screen width. Makes it easier to read paragraphs.
Patch originally from Shalon Wood <dstar@pele.cx>, see bug #1063 .
Instead of using max_document_width as the hard limit to the document
width, it uses a soft limit, where if the document does not fit (due to
tables, etc.), then larger width is used. This reduces the need for
horizontal scrolling for wide documents.
Also added toggle-document-width action to toggle between preferred
width and full screen width. This is bound to 'M' by default. Initial
toggle status is determined by document.browse.use_preferred_document_width
option.
During dumps, document.dump.width option is still used. Perhaps we
should consolidate document.dump.width option with
document.browse.preferred_document_width ?
2017-11-21 16:09:13 +01:00
Yozo Hida
7e58737619
Make select forms look more like other forms.
...
Insert "[_" and "_]" as part of the form link, and
include it as part of the link.
2017-11-21 16:06:33 +01:00
Yozo Hida
4ed958b067
Provide different color for text areas in insert mode.
...
The color is controlled by
document.browse.links.active_link.insert_mode_colors.background
document.browse.links.active_link.insert_mode_colors.text
Also avoid overloading local variable "i" in get_current_link().
2017-11-21 16:00:39 +01:00
Yozo Hida
a4d8f25a9c
Allow link number colors to be changed.
...
These settings are specified by
document.colors.link_number
document.colors.use_link_number_color
The latter setting determines whether the color is used when document
colors are being used.
See bug #1050 .
2017-11-21 15:56:32 +01:00
Yozo Hida
468e7aaff9
Underline links even in numbered links mode
2017-11-21 15:50:23 +01:00
Marco Migliori
5e31308da0
text direction mark
2017-05-16 20:57:25 +02:00
Witold Filipczyk
6d78cf1c23
Set encoding
2016-12-13 17:43:56 +01:00
Witold Filipczyk
6777006d73
Code reuse
2016-12-13 10:37:27 +01:00
Witold Filipczyk
5a217e37df
Empty text node is '\n'
2016-12-11 21:18:14 +01:00
Witold Filipczyk
06fb11baee
Experimental html source highlight using libdom
2016-12-11 16:52:44 +01:00
Witold Filipczyk
2fc9b0bf5a
Better handling of content-disposition (line without semicolon)
...
This time it was copied from links2.
2016-08-21 22:02:46 +02:00
Witold Filipczyk
ab63ee8f82
Revert "Fix saving files from speccy.pl archives"
...
This reverts commit 29d85fdb3b
.
2016-08-21 18:22:33 +02:00
Witold Filipczyk
29d85fdb3b
Fix saving files from speccy.pl archives
2016-05-28 17:58:17 +02:00
Witold Filipczyk
257422f28c
Reorganisation of code to make C++ happy
2016-04-20 22:21:31 +02:00
Witold Filipczyk
da15322705
Cast to (const char *) in strrchr calls
2016-04-20 21:03:27 +02:00
Witold Filipczyk
96e65c105f
Explicit cast in strstr for C++
2016-04-20 20:46:33 +02:00
Witold Filipczyk
1b06539694
Explicit cast to (const char *) in strcasestr for C++
2016-04-20 20:11:08 +02:00
Witold Filipczyk
52d6f37c8e
Explicit cast to (const char *) for strchr function (C++)
2016-04-20 19:43:37 +02:00
Witold Filipczyk
67673f5fe5
new -> new_ for C++ compatibility
2016-04-20 18:42:22 +02:00
Witold Filipczyk
f4981bb553
class -> class_ for C++ compatibility
2016-04-20 18:18:27 +02:00
Witold Filipczyk
2e721e051a
template -> template_ for C++ compatibility
2016-04-20 18:05:00 +02:00
Fabienne Ducroquet
13f3da8416
Improve isolated combining characters handling
...
If there are isolated combining characters, e.g. at the beginning of a paragraph
or table cell:
– if it’s not the first screen column, combine them with whatever character is
printed to their left;
– otherwise, add a no-break space as the base character.
Previously, such combining characters were combined with the last letter
displayed, i.e. the last letter of the previous paragraph or cell.
Signed-off-by: Fabienne Ducroquet <fabiduc@gmail.com>
2016-04-12 21:59:50 +02:00
Fabienne Ducroquet
a43ec1075c
Display combining characters at the end of the current string in set_hline
...
without waiting for the next non zero width character. This way combining
characters at the end of the document are displayed.
Signed-off-by: Fabienne Ducroquet <fabiduc@gmail.com>
2016-04-12 21:58:54 +02:00
Fabienne Ducroquet
c1140f54c4
Compute correct number of cells with CONFIG_COMBINE
...
Otherwise, there are unnecessary spaces at the end of lines in tables containing
combining characters.
Signed-off-by: Fabienne Ducroquet <fabiduc@gmail.com>
2016-04-12 21:41:53 +02:00
Fabienne Ducroquet
ec30a09a36
Bug 1139: Fix internal error: "bad split" with CONFIG_COMBINE
...
A combining character sequence where the base character is a space remained
recorded as a space although the initial space was replaced with an internal
code corresponding to the combined character. This caused an internal error when
ELinks tried to split the line at that place and did not find the space.
Signed-off-by: Fabienne Ducroquet <fabiduc@gmail.com>
2016-04-12 21:41:49 +02:00
Witold Filipczyk
4efea7e314
Added support for label_key in references of dumps.
...
Added base parameter to dec2qwerty and qwerty2dec to avoid strlen calls
im dumps.
2016-02-07 11:51:17 +01:00
Witold Filipczyk
69986f1bd1
Multiplication instead of pow calls and minor style changes.
2016-01-31 12:38:18 +01:00
Martin Miller
28b7bd1ec2
Transfer changes for ascii link labeling
2016-01-31 10:23:08 +01:00
Witold Filipczyk
c84dfd7e18
mem_free_if where aplicable. Initialised memory in encoding/*
2015-05-10 17:27:55 +02:00
Witold Filipczyk
ca4d770c0b
Revert "Apply styles of html element for body element."
...
This reverts commit 5f9b54f594
.
2015-05-09 22:11:13 +02:00
Witold Filipczyk
46767f6bf0
Introduced the document.browse.show_refresh_link option.
...
Whether to show Refresh: link line. Default 1.
2015-01-02 14:53:18 +01:00