-------------------
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.