module texthelper.text_diff
¶
Short summary¶
module pyquickhelper.texthelper.text_diff
Freely inspired from Showing Side-by-Side Diffs in Jupyter.
Functions¶
function |
truncated documentation |
---|---|
Joing a list of sentences into HTML for display |
|
Returns a and b with any differences processed by mark. Junk is ignored by the differ. |
|
Split a string into a list of sentences |
|
Split a string into tokens |
|
Join a list of sentences into a string |
|
Join a list of tokens into a string |
|
Aligns two sequences of strings after comparing them. |
|
Comparares two strings and renders the results as HTML. |
Documentation¶
Freely inspired from Showing Side-by-Side Diffs in Jupyter.
- pyquickhelper.texthelper.text_diff._html_unsentencise(ts)[source]¶
Joing a list of sentences into HTML for display
- pyquickhelper.texthelper.text_diff._markup_diff(a, b, mark=<function _mark_span>, default_mark=None, isjunk=None)[source]¶
Returns a and b with any differences processed by mark. Junk is ignored by the differ.
- pyquickhelper.texthelper.text_diff._unsentencise(ts)[source]¶
Join a list of sentences into a string
- pyquickhelper.texthelper.text_diff.align_seqs(a, b, fill='')[source]¶
Aligns two sequences of strings after comparing them.