Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ The release run heads these entries with the version and opens a fresh

## Unreleased

- `odr.search()`, `searchNext()`, `searchPrevious()` and `resetSearch()` now
come with every view that renders text β€” a pdf, a text file, an xml view, an
archive listing β€” as the shipped `search.css` and `search.js`, which a host
that links rather than embeds has to serve.
- A search hit in a pdf tints its glyphs instead of covering them; a pdf's
glyph layer and the text view's line numbers are not searched.
- A keyword is found across the spans it happens to be written in β€” a pdf puts
a word in each β€” and a space matches whichever kind the page carries. It
still does not run across a line, a cell or a paragraph.

## v6.6.0 - 2026-08-14

- A paragraph states its own font, so a run that names none of its own is read
Expand Down
2 changes: 2 additions & 0 deletions src/odr/internal/html/document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ void front(const Document &document, const WritingState &state,
: std::nullopt);

write_document_style(state);
write_search_style(state);
if (document.document_type() == DocumentType::spreadsheet) {
write_spreadsheet_style(state);
}
Expand Down Expand Up @@ -93,6 +94,7 @@ void back(const Document &document, const WritingState &state) {
out.write_element_end("div");
}

write_search_script(state);
write_document_script(state);
if (document.document_type() == DocumentType::spreadsheet) {
write_spreadsheet_script(state);
Expand Down
3 changes: 3 additions & 0 deletions src/odr/internal/html/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ class HtmlServiceImpl final : public HtmlService {
out.write_header_title("odr");
write_viewport_meta(out, config(), false);
write_filesystem_style(state);
write_search_style(state);
out.write_header_end();

out.write_body_begin();
Expand Down Expand Up @@ -263,6 +264,8 @@ class HtmlServiceImpl final : public HtmlService {
out.write_element_end("tbody");
out.write_element_end("table");

write_search_script(state);

out.write_body_end();

out.write_end();
Expand Down
Loading
Loading