View Single Post
Old 07-05-2022, 07:12 PM   #345
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,800
Karma: 103362673
Join Date: Apr 2011
Device: pb360
Bug: newline in X-ray entity label

When a (first?) occurrance of an X-ray entity with 2 or more words has a newline between 2 of the words in the text of the book the entity label has a newline between those words in the generated X-ray file. This can be seen in the attached example.png

WordDumb might also make two entiies, one with a newline embedded in the label and one without. It is also possible to workaround this by making an entry in the worddumb-custom-x-ray.json file for the book with an alias that has "\n" in place of the space as can be seen in workaround.txt

Also attached is NewlineBug.tar.gz which has an azw3 of the public domain book, a worddumb-custom-x-ray.json for both cases, a temporary worddumb.json plugin configuration file, the 2 generated XRAY.*.asc files, and a script to generate the XRAY files and tsv dumps of the entity and entity_description tables for both cases.
Attached Thumbnails
Click image for larger version

Name:	example.png
Views:	131
Size:	72.6 KB
ID:	194757   Click image for larger version

Name:	workaround.png
Views:	122
Size:	69.8 KB
ID:	194758  
Attached Files
File Type: gz NewlineBug.tar.gz (7.36 MB, 98 views)
j.p.s is offline   Reply With Quote