View Single Post
Old 06-01-2024, 01:37 PM   #63
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,746
Karma: 24032915
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by philja View Post
On reading the latest "user-manual-Writer2xhtml17.odt" with special reference to anything mentioning lists, I saw the option "list_formatting" with three possible values - ignore_all, convert_labels, convert_all. This is at odds with line 20 in the config.xml supplied with the plugin 0.4.1 which quotes "value=css1"
In writer2xhtml 1.7.x, list_formatting has 4 possible values:

convert_all (default) old value hard_labels
convert_label_styles old value css1
convert_labels old value css1_hack
ignore_all

I found a sample config.xml file on the writer2xhtml Github page:
https://github.com/writer2latex/writ...cleanxhtml.xml

and slightly updated it for epub3 output and removed all redundant entries where the value matched the default value.
If you change the value in the following line from:
Code:
  <option name="list_formatting" value="ignore_all" />		<!-- default: convert_all -->
to
Code:
  <option name="list_formatting" value="convert_label_styles" />		<!-- default: convert_all -->
You should get the same results as in older versions.

I also found out by chance that writer2xhtml 1.7.x supports page numbers in epub3 files. Unfortunately, it'll add a masterpage attribute to page break definitions, which EPUBCheck doesn't like.

I commented out one source code line to change this behavior and created a new experimental build that is attached to this post.

If you generate epub2 books, you'll need to change the following config.xml entry from:

to:
Code:
  <option name="original_page_numbers" value="true" />		<!-- default: false -->
to:
Code:
<option name="original_page_numbers" value="false" />		<!-- default: false -->
If you're not interested in generating page numbers in epub3 books, you can ignore this build.
Attached Files
File Type: xml config.xml (4.0 KB, 198 views)
File Type: zip writer2xhtml_1.7.1_unofficial_patch2.zip (313.2 KB, 236 views)
Doitsu is offline   Reply With Quote