pyDiffTools 0.1.47__tar.gz → 0.1.48__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pydifftools-0.1.47 → pydifftools-0.1.48}/MANIFEST.in +1 -0
- {pydifftools-0.1.47/pyDiffTools.egg-info → pydifftools-0.1.48}/PKG-INFO +1 -1
- {pydifftools-0.1.47 → pydifftools-0.1.48/pyDiffTools.egg-info}/PKG-INFO +1 -1
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pyDiffTools.egg-info/SOURCES.txt +1 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/comment_tags.lua +21 -3
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/comment_tags_margin.lua +21 -3
- pydifftools-0.1.48/pydifftools/comments_author_colors.css +20 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/continuous.py +26 -15
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pyproject.toml +2 -1
- {pydifftools-0.1.47 → pydifftools-0.1.48}/LICENSE.md +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/README.rst +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/_quarto.yml +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/__version__.txt +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/1a724af72b16f5a9e607e12b1c721645/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/1b28fc9daac9081847e5161b2c546f8a/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/231f64eee282fa225d1104935cf80a24/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/26e56f6b0ff54851a45145157f2f0dc4/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/311fabd7029ffd050d056e2f316eb50f/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/57da2021e5b156ac3adf01398201c723/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/62b24ea7da75011d92b0f8924faa208d/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/7f1b20d69d889514ab5d1cc92e3cb14f/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/86f74c8c54a87ff892d9b15dd714e8f0/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/88893b4234eac2945d9d6cb2e277f186/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/9a40046ada6f582ee34af00fbdbfb417/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/a1bf4d270d0641ff41faf1d7cce3439a/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/a3789f7d9585a781f2a1c60ce95ff10d/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/be46ecba858d39ad5f0c46902ddf1c02/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/d0cbc57a12f2ccce710a5afd04cc05e7/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/d3e12d320b14228f701231ae32ddd7dd/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/eb434f61555438d020a6970a5dbf9ee8/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/f6b0e73aa7fa029134665d4dde57e096/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/f719a6e4ff09873cb0ffb06ec9d232f9/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/executed/feeee244a7ce3d60e1a227eb604df823/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/global.db +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/example.qmd +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/example.tex +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/index.qmd +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/subproject1/.jupyter_cache/__version__.txt +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/subproject1/.jupyter_cache/executed/ca90e4df5f4f0583df6554156a68dc7f/base.ipynb +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/subproject1/.jupyter_cache/global.db +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/subproject1/end_vs_he_sketch.jpg +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/subproject1/independent.qmd +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/subproject1/index.qmd +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/subproject1/tasks.qmd +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/subproject1/test_include.qmd +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/subproject1/tryforerror.qmd +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/test_include.qmd +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pyDiffTools.egg-info/dependency_links.txt +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pyDiffTools.egg-info/entry_points.txt +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pyDiffTools.egg-info/requires.txt +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pyDiffTools.egg-info/top_level.txt +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/__init__.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/bibliography.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/browser_lifecycle.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/check_numbers.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/citation_dialog.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/command_line.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/command_registry.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/comment_functions.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/comment_migration.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/comment_tags_no_comments.lua +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/comment_toggle.js +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/comments.css +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/copy_files.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/diff-doc.js +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/doc_contents.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/flowchart/__init__.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/flowchart/comparison.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/flowchart/dot_to_yaml.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/flowchart/graph.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/flowchart/svg-pan-zoom.min.js +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/flowchart/watch_graph.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/flowchart/wgrph_view.js +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/forward_search.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/git_gd.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/git_gd_history.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/git_gd_image.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/git_gd_qt.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/html_comments.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/html_uncomments.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/log_example.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/match_spaces.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/notebook/__init__.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/notebook/display.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/notebook/fast_build.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/notebook/tex_to_qmd.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/onewordify.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/onewordify_undo.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/outline.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/rearrange_tex.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/searchacro.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/separate_comments.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/split_conflict.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/unseparate_comments.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/update_check.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/wrap_sentences.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/xml2xlsx.vbs +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/pydifftools/zotero.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/setup.cfg +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_bibliography.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_browser_lifecycle.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_check_single_use.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_command_line_help.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_comment_migration.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_continuous_shutdown.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_forward_search.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_git_gd_history.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_git_gd_image.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_git_gd_qt.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_rrng.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_tex_to_qmd.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_update_check.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_wrap_check.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_wrapping.py +0 -0
- {pydifftools-0.1.47 → pydifftools-0.1.48}/tests/test_zotero.py +0 -0
|
@@ -4,6 +4,7 @@ include LICENSE.md
|
|
|
4
4
|
include pydifftools/diff-doc.js
|
|
5
5
|
include pydifftools/xml2xlsx.vbs
|
|
6
6
|
include pydifftools/comments.css
|
|
7
|
+
include pydifftools/comments_author_colors.css
|
|
7
8
|
include pydifftools/comment_tags.lua
|
|
8
9
|
include pydifftools/comment_tags_margin.lua
|
|
9
10
|
include pydifftools/comment_tags_no_comments.lua
|
|
@@ -58,6 +58,7 @@ pydifftools/comment_tags_margin.lua
|
|
|
58
58
|
pydifftools/comment_tags_no_comments.lua
|
|
59
59
|
pydifftools/comment_toggle.js
|
|
60
60
|
pydifftools/comments.css
|
|
61
|
+
pydifftools/comments_author_colors.css
|
|
61
62
|
pydifftools/continuous.py
|
|
62
63
|
pydifftools/copy_files.py
|
|
63
64
|
pydifftools/diff-doc.js
|
|
@@ -34,6 +34,24 @@ local OPENERS = {
|
|
|
34
34
|
}
|
|
35
35
|
local AUTHOR_COLORS = {}
|
|
36
36
|
|
|
37
|
+
local function author_color_style(color)
|
|
38
|
+
local red = tonumber(color:sub(2, 3), 16)
|
|
39
|
+
local green = tonumber(color:sub(4, 5), 16)
|
|
40
|
+
local blue = tonumber(color:sub(6, 7), 16)
|
|
41
|
+
local function tint(component)
|
|
42
|
+
return math.floor(component * 0.13 + 255 * 0.87 + 0.5)
|
|
43
|
+
end
|
|
44
|
+
local background = string.format(
|
|
45
|
+
"#%02x%02x%02x", tint(red), tint(green), tint(blue)
|
|
46
|
+
)
|
|
47
|
+
return string.format(
|
|
48
|
+
"--comment-accent-color: %s; "
|
|
49
|
+
.. "--comment-accent-background-color: %s; "
|
|
50
|
+
.. "border-color: %s; background-color: %s;",
|
|
51
|
+
color, background, color, background
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
37
55
|
local comment_id = 0
|
|
38
56
|
local function next_id()
|
|
39
57
|
comment_id = comment_id + 1
|
|
@@ -43,7 +61,7 @@ end
|
|
|
43
61
|
local function make_inline_comment(side, content_inlines, spec)
|
|
44
62
|
local attributes = {}
|
|
45
63
|
if spec and spec.color then
|
|
46
|
-
attributes["style"] =
|
|
64
|
+
attributes["style"] = author_color_style(spec.color)
|
|
47
65
|
attributes["data-comment-author"] = spec.author
|
|
48
66
|
end
|
|
49
67
|
local inner = pandoc.Span(
|
|
@@ -66,7 +84,7 @@ local function make_block_overlay(side, id, content_blocks, spec)
|
|
|
66
84
|
["data-comment-id"] = id,
|
|
67
85
|
["data-comment-author"] = spec and spec.author or nil,
|
|
68
86
|
["style"] = spec and spec.color
|
|
69
|
-
and (
|
|
87
|
+
and author_color_style(spec.color) or nil,
|
|
70
88
|
})
|
|
71
89
|
)
|
|
72
90
|
end
|
|
@@ -402,7 +420,7 @@ function Div(el)
|
|
|
402
420
|
if #style > 0 and not style:match(";%s*$") then
|
|
403
421
|
style = style .. ";"
|
|
404
422
|
end
|
|
405
|
-
el.attributes.style = style ..
|
|
423
|
+
el.attributes.style = style .. author_color_style(color)
|
|
406
424
|
el.attributes["data-comment-author"] = author
|
|
407
425
|
end
|
|
408
426
|
end
|
|
@@ -35,6 +35,24 @@ local OPENERS = {
|
|
|
35
35
|
}
|
|
36
36
|
local AUTHOR_COLORS = {}
|
|
37
37
|
|
|
38
|
+
local function author_color_style(color)
|
|
39
|
+
local red = tonumber(color:sub(2, 3), 16)
|
|
40
|
+
local green = tonumber(color:sub(4, 5), 16)
|
|
41
|
+
local blue = tonumber(color:sub(6, 7), 16)
|
|
42
|
+
local function tint(component)
|
|
43
|
+
return math.floor(component * 0.13 + 255 * 0.87 + 0.5)
|
|
44
|
+
end
|
|
45
|
+
local background = string.format(
|
|
46
|
+
"#%02x%02x%02x", tint(red), tint(green), tint(blue)
|
|
47
|
+
)
|
|
48
|
+
return string.format(
|
|
49
|
+
"--comment-accent-color: %s; "
|
|
50
|
+
.. "--comment-accent-background-color: %s; "
|
|
51
|
+
.. "border-color: %s; background-color: %s;",
|
|
52
|
+
color, background, color, background
|
|
53
|
+
)
|
|
54
|
+
end
|
|
55
|
+
|
|
38
56
|
local comment_id = 0
|
|
39
57
|
local function next_id()
|
|
40
58
|
comment_id = comment_id + 1
|
|
@@ -69,7 +87,7 @@ local function make_inline_comment(side, content_inlines, spec)
|
|
|
69
87
|
["data-comment-author"] = spec and spec.author or nil,
|
|
70
88
|
["style"] = "font-size: 6pt;"
|
|
71
89
|
.. (spec and spec.color
|
|
72
|
-
and ("
|
|
90
|
+
and (" " .. author_color_style(spec.color)) or ""),
|
|
73
91
|
}
|
|
74
92
|
)
|
|
75
93
|
)
|
|
@@ -101,7 +119,7 @@ local function make_block_overlay(side, id, content_blocks, spec)
|
|
|
101
119
|
["data-comment-author"] = spec and spec.author or nil,
|
|
102
120
|
["style"] = "font-size: 6pt;"
|
|
103
121
|
.. (spec and spec.color
|
|
104
|
-
and ("
|
|
122
|
+
and (" " .. author_color_style(spec.color)) or ""),
|
|
105
123
|
}
|
|
106
124
|
)
|
|
107
125
|
)
|
|
@@ -441,7 +459,7 @@ function Div(el)
|
|
|
441
459
|
if #style > 0 and not style:match(";%s*$") then
|
|
442
460
|
style = style .. ";"
|
|
443
461
|
end
|
|
444
|
-
el.attributes.style = style ..
|
|
462
|
+
el.attributes.style = style .. author_color_style(color)
|
|
445
463
|
el.attributes["data-comment-author"] = author
|
|
446
464
|
end
|
|
447
465
|
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* Keep comment pointer triangles in sync with per-author bubble colors. */
|
|
2
|
+
span.comment-pin > span.comment-right::before,
|
|
3
|
+
.comment-overlay.comment-right::before {
|
|
4
|
+
border-color: transparent var(--comment-accent-color, #5aa0ff) transparent transparent;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
span.comment-pin > span.comment-right::after,
|
|
8
|
+
.comment-overlay.comment-right::after {
|
|
9
|
+
border-color: transparent var(--comment-accent-background-color, #eaf3ff) transparent transparent;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
span.comment-pin > span.comment-left::before,
|
|
13
|
+
.comment-overlay.comment-left::before {
|
|
14
|
+
border-color: transparent transparent transparent var(--comment-accent-color, #5aa0ff);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
span.comment-pin > span.comment-left::after,
|
|
18
|
+
.comment-overlay.comment-left::after {
|
|
19
|
+
border-color: transparent transparent transparent var(--comment-accent-background-color, #eaf3ff);
|
|
20
|
+
}
|
|
@@ -75,19 +75,24 @@ def confirm_restore_comment_filter(active_mode):
|
|
|
75
75
|
"but you ran without the --no-comments flag.\n\n"
|
|
76
76
|
"Note that you have not locally edited the filter relative to "
|
|
77
77
|
"the library default.\n\n"
|
|
78
|
-
"Do you want to
|
|
78
|
+
"Do you want to update the filter and comment styles to the "
|
|
79
|
+
"library versions and show comments, or keep no comments?"
|
|
79
80
|
)
|
|
80
81
|
default_choice = "restore"
|
|
82
|
+
update_label = "update filter and styles; show comments"
|
|
83
|
+
keep_label = "keep no comments"
|
|
81
84
|
elif active_mode == "custom":
|
|
82
85
|
message = (
|
|
83
|
-
"The current lua filter
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
86
|
+
"The current lua filter differs from the pyDiffTools library "
|
|
87
|
+
"filters, but you ran without the --no-comments flag. It may be "
|
|
88
|
+
"an older distributed filter or a local edit.\n\n"
|
|
89
|
+
"Do you want to update the filter and comment styles to the "
|
|
90
|
+
"library versions and show comments, or keep the current "
|
|
91
|
+
"filter and styles?"
|
|
89
92
|
)
|
|
90
93
|
default_choice = "keep"
|
|
94
|
+
update_label = "update filter and styles; show comments"
|
|
95
|
+
keep_label = "keep current filter"
|
|
91
96
|
else:
|
|
92
97
|
raise ValueError(
|
|
93
98
|
"Comment filter restore prompt is only valid for custom or "
|
|
@@ -102,12 +107,8 @@ box = QMessageBox()
|
|
|
102
107
|
box.setWindowTitle("pydifft cpb")
|
|
103
108
|
box.setIcon(QMessageBox.Icon.Question)
|
|
104
109
|
box.setText(sys.argv[1])
|
|
105
|
-
keep_button = box.addButton(
|
|
106
|
-
|
|
107
|
-
)
|
|
108
|
-
restore_button = box.addButton(
|
|
109
|
-
"show comments", QMessageBox.ButtonRole.AcceptRole
|
|
110
|
-
)
|
|
110
|
+
keep_button = box.addButton(sys.argv[3], QMessageBox.ButtonRole.RejectRole)
|
|
111
|
+
restore_button = box.addButton(sys.argv[4], QMessageBox.ButtonRole.AcceptRole)
|
|
111
112
|
if sys.argv[2] == "restore":
|
|
112
113
|
box.setDefaultButton(restore_button)
|
|
113
114
|
else:
|
|
@@ -119,7 +120,10 @@ sys.exit(1)
|
|
|
119
120
|
"""
|
|
120
121
|
prepare_for_dialog()
|
|
121
122
|
result = subprocess.run(
|
|
122
|
-
[
|
|
123
|
+
[
|
|
124
|
+
sys.executable, "-c", prompt_script, message, default_choice,
|
|
125
|
+
keep_label, update_label,
|
|
126
|
+
],
|
|
123
127
|
capture_output=True,
|
|
124
128
|
text=True,
|
|
125
129
|
)
|
|
@@ -530,6 +534,10 @@ def run_pandoc(
|
|
|
530
534
|
shutil.copy2(
|
|
531
535
|
packaged_filters["default"], active_filter
|
|
532
536
|
)
|
|
537
|
+
shutil.copy2(
|
|
538
|
+
os.path.join(package_dir, "comments.css"),
|
|
539
|
+
os.path.join(source_dir, "comments.css"),
|
|
540
|
+
)
|
|
533
541
|
effective_filter_mode = "default"
|
|
534
542
|
else:
|
|
535
543
|
effective_filter_mode = active_mode
|
|
@@ -581,7 +589,10 @@ def run_pandoc(
|
|
|
581
589
|
# }}}
|
|
582
590
|
# Only copy the comment UI assets when comments should be rendered.
|
|
583
591
|
if effective_filter_mode != "none":
|
|
584
|
-
for asset_name in [
|
|
592
|
+
for asset_name in [
|
|
593
|
+
"comments.css", "comments_author_colors.css",
|
|
594
|
+
"comment_toggle.js",
|
|
595
|
+
]:
|
|
585
596
|
target_path = os.path.join(source_dir, asset_name)
|
|
586
597
|
if not os.path.exists(target_path):
|
|
587
598
|
shutil.copy2(
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pyDiffTools"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.48"
|
|
8
8
|
authors = [{ name = "J M Franck" }]
|
|
9
9
|
description = "Diff tools"
|
|
10
10
|
readme = "README.rst"
|
|
@@ -44,6 +44,7 @@ pydifftools = [
|
|
|
44
44
|
"diff-doc.js",
|
|
45
45
|
"xml2xlsx.vbs",
|
|
46
46
|
"comments.css",
|
|
47
|
+
"comments_author_colors.css",
|
|
47
48
|
"comment_tags.lua",
|
|
48
49
|
"comment_tags_margin.lua",
|
|
49
50
|
"comment_tags_no_comments.lua",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/__version__.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/.jupyter_cache/global.db
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/subproject1/end_vs_he_sketch.jpg
RENAMED
|
File without changes
|
{pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/subproject1/independent.qmd
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/subproject1/test_include.qmd
RENAMED
|
File without changes
|
{pydifftools-0.1.47 → pydifftools-0.1.48}/example_notebook/project1/subproject1/tryforerror.qmd
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|