[Touch-packages] [Bug 2020814] Re: xmllint does not recognize emdash (— )

2023-05-26 Thread Thorsten Glaser
Hmm. I normally use libxml2 via xmlstarlet which has a somewhat nicer UX than xmllint. My guess is that you didn’t give a DTD, so it could only check that all present entities are syntactically valid, but not expand them. -- You received this bug notification because you are a member of Ubuntu T

[Touch-packages] [Bug 2020814] Re: xmllint does not recognize emdash (— )

2023-05-26 Thread Jeffrey Walton
Thorsten, a quick question... The first part of my book build script has this: echo "Validating book..." if ! xmllint --xinclude --noout --postvalid book.xml then echo "Validation failed. Exiting." exit 1 fi echo "Complete." Why did the book pass validation wh

[Touch-packages] [Bug 2020814] Re: xmllint does not recognize emdash (— )

2023-05-26 Thread Thorsten Glaser
Yeah well, those portability problems were back in the 1990s when people used latin1 or whatever codepages. ** Changed in: libxml2 (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to libxml2

Re: [Touch-packages] [Bug 2020814] Re: xmllint does not recognize emdash (— )

2023-05-25 Thread Jeffrey Walton
On Thu, May 25, 2023 at 5:35 PM Thorsten Glaser <2020...@bugs.launchpad.net> wrote: > > I doubt this is a bug: nowhere do you pass the validator a DTD, and > entities are defined in the DTD. > > It’s best practice nowadays to not use entities but just write the UTF-8 > characters directly. > > An e

[Touch-packages] [Bug 2020814] Re: xmllint does not recognize emdash (— )

2023-05-25 Thread Thorsten Glaser
I doubt this is a bug: nowhere do you pass the validator a DTD, and entities are defined in the DTD. It’s best practice nowadays to not use entities but just write the UTF-8 characters directly. An em dash surrounded by hair spaces is: “ — ” (for your copy/paste convenience) -- You received thi