Tosixinch

Latest version: v0.10.0

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.4.0

-------------------

In this version,
I concentrated many gratuitous API changes I've been thinking,
while trying not to add positive features.

So be careful to upgrade.

**Change:**

* Cut head data inclusion

Previously, the program kept the original <head> content in the extracted file.
Now it just includes a minimal <head> content.
(Shouldn't affect the end user usage).

* **!!** Change default intermediary filenames to '-' and '~'

Previously::

https://en.wikipedia.org/wiki/Xpath
_htmls/en.wikipedia.org/wiki/Xpath/index--tosixinch
_htmls/en.wikipedia.org/wiki/Xpath/index--tosixinch--extracted.html

Now::

https://en.wikipedia.org/wiki/Xpath
_htmls/en.wikipedia.org/wiki/Xpath/_
_htmls/en.wikipedia.org/wiki/Xpath/_~.html

To use old (or other) names, edit new config options.::

loc_index= index--tosixinch
loc_appendix= --extracted

* Cut 'use_sample' option

* Cut 'use_urlreplace' option

* Cut '--sample-urls' option

* Move css from commandline to html link

Previously they are just passed to converter's commandline arguments.

Now they are referenced in each html files as external css.

So you can now specify css files for each site configuration like this::

[wikipedia]
...
css= sample, my_wikipedia.css

(Note: Unlike ``auto_css``,
All css files must be specified explicitly. Not additions to the default.)

* **!!** Cut auto_css

It is now redundant. Just use 'css' option instead (see the above change).

* **!!** Cut auto glob feature (for 'match' option)

Sometimes we need exact match of the end. (like: '\*.html')

But since '\*' was automatically added to the end of the string,
is was impossible.

Now you have to add '\*' explicitly.

And you have to edit the past config files extensively,
like I did for 'site.sample.ini'.
Sorry.

From::

[wikipedia]
...
match= https://*.wikipedia.org/wiki/

To::

match= https://*.wikipedia.org/wiki/*

* Update configfetch (v0.1.0)

It is incompatible with the previous configfetch versions.
Codes and config files will be changed considerably.
It shouldn't affect tosixinch behavior.

* **!!** Rename tosixinch-complete.bash

From:

tosixinch/script/tosixinch-complete.bash

To:

tosixinch/data/_tosixinch.bash

If you are sourcing this bash completion file in e.g. .bashrc,
you have to edit.

* **!!** Rename pre_percmds and post_percmds to pre_each_cmds and post_each_cmds. ::

pre_percmd1 -> pre_each_cmd1
post_percmd1 -> post_each_cmd1
pre_percmd2 -> pre_each_cmd2
post_percmd2 -> post_each_cmd2

You have to edit user config files if you are using them.

* Rename 'qt' option to 'browser_engine'.

* Move 'javascript' option from (general) site.ini to tosixinch.ini.

You can now specify 'javascript' on commandline, tosixinch.ini, or some site sections.

* **!!** Cut util.py, gen.py and site.py and create sample.py (tosixinch.process directory)

Combined three sample files into one.

You have to edit user config files if you are using them. e.g.::

gen.youtube_video_to_thumbnail -> sample.youtube_video_to_thumbnail

or just (See below: 'Add no-dot function name..')::

gen.youtube_video_to_thumbnail -> youtube_video_to_thumbnail

* **!!** Change syntax: from comma to line (defaultprocess and process options)

From::

process= aaa, bbb, ccc

To::

process= aaa
bbb
ccc

You have to edit user config files if you are using them.

* **!!** Rename many process functions (process/sample.py) ::

check_parents_tag -> check_parent_tag
transform_xpath -> build_class_xpath
add_title -> add_h1
add_title_force -> add_h1_force
make_ahref_visible -> show_href
decrease_heading -> lower_heading
decrease_heading_order -> lower_heading_from_order
split_h1_string -> split_h1
replace_h1_string -> replace_h1
change_tagname -> replace_tags
add_noscript_img -> add_noscript_image

You have to edit user config files if you are using them.

* **!!** Rename script/open_viewer.py

From:

open_viewer.py

To:

_view.py

You have to edit user config files if you are using them.

**Add:**

* Add Python3.8

* Add css2 option (and fix misplaced css option)

* Add no-dot function name in process option

Previously the option only accepted one-dot name form
(``<module name>.<function name>``).

Now this form is optional.
The program searches all modules for the function name.

0.3.0

-------------------

Add very detailed source code highlighter (_pcode).
Use it in pre-extraction hook ('pre_percmd2').

**Change:**

* **!!** Cut add_extractors and move man hook to pre_percmd2

Change you config (If you are using) from:

add_extractors= _man

To:

pre_percmd2= _man

**Add:**

* Add GNU global to site.sample.ini

* Add add_noscript_img (process/gen)

* Add script _pcode.py (Pygments code extraction)

**Fix:**

* Fix auto_css (when toc, stylesheets were lost)

* Fix clipped large tall images (using actual length and percent)

* Fix use monospace font for figcaption

* Fix github sample ini (plain text README case)

0.2.0

-------------------

**Change:**

* Change one of sample rsrcs. Local templite.py to remote textwrap.py.

* Stop adding suffix to query url.

Previously url 'bb?cc' was changed to dfile 'bb?cc/index--tosixinch' or 'bb?cc_index--tosixinch'.
Now just to 'bb?cc'.

* Stop adding './' prefix unconditionally for relative references.
Now only when necessary to comply to url spec (colon-in-first-path case).

* **!!** Change 'userprocess' to just 'process'.
So Users have to rename this 'userprocess' directory if used.

* **!!** Change (rather Fix) default encodings, to only utf-8 and cp1252.

* **!!** Change 'preprocess' option name to 'defaultprocess'.
Again, users have to rename this option if used.

* pdfname (when the program creates) is made more descriptive.

* Add maximum argument to delete_duplicate_br (process/gen.py)

**Add:**

* Add auto_css feature (see doc: overview.htmldword-auto_css_directory).

* Add trimdirs option.

Remove flaky automatic path shortening (minsep), add this manual but reliable option.

* Add printout option.

Print out filenames the program's actions would create.

* Add encoding_errors option (for codec Error Handler).

* Add urlreplace feature (see doc: topics.htmlreplace).

* Add multi commands feature for hookcmds.

* Add add_extractors option (now only for man).

* Add per-cmd hooks (pre_percmds and post_percmds).

* Add file url support for input.

* Add font_scale option.

* Add quiet option.

* Add version option.

* Expose full-image option to commandline.

* Add --null option to script/open_viewer.py.

* Add browsercmd option.

* Add toc_depth option to wkhtmltopdf converter.

* Add ftype option

**Remove:**

* Remove 'support' for ebook-convert. Now converters are only one of the three
(prince, weasyprint or wkhtmltopdf).

**Fix:**

* Fix relative reference when base url is local. (_Component.__init__)

* Fix blank API documents in readthedocs site (The previous fix was wrong).

* Fix ftfy calling procedure (it should be *after* successful decoding).

* Fix (user) script directory resolution in runcmd.

* Fix image downloading error when input is a file url
(The file url handling has changed: immediately change it to filepath
in url phase).

**Dev:**

* Develop abstract path functions to try to absorb windows path specifics,
only to revert them back in the end.
The period is especially unsuitable for forking or otherwise using the code::

From:
2019-05-21 401e27e408ba19627a9b1d452e009521cbdb09a8
Until:
2019-05-30 f1055f97dc6d8088906e43c6f150739c8d560174

0.1.0

-------------------

**Fix:**

* sample.t.css exclusion in installation

**Dev:**

* Change version scheme.

I've been using only the third digit for version, since I thought v0.1.0 was too pretentious.
But I should express the difference between some improvements and stupid bug fixes.

0.0.11

--------------------

**Change:**

* tocfile (previously toc-ufile) is now always created in current directory.
Previously it was created in the same directory as the ufile.

**Fix:**

* Many import errors (no lxml, no readability cases etc.).
* Many import errors (installation related, importing (nonexistent) tests package etc.).
* readthedocs.org build error

0.0.10

--------------------

**Change:**

* Rename '--sample-pdf' to '--sample-urls',
and now it also requires action options additionally ('-123').

**Fix:**

* blank API documents (lack of a readthedocs config)
* Accept very long html start tag (now support hatenablog.com).
* Broken '--sample-pdf' and '--appcheck' (no rsrcs case etc.).

**Dev:**

* Continuing the big refactoring (now util.py is gone).
* x options of _test_actualrun2.py are again '-x', '-xx', and '-xxx'.

Page 2 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.