\@protected@testopt definition from latex.ltx, allows loading ucs.sty#983
\@protected@testopt definition from latex.ltx, allows loading ucs.sty#983brucemiller merged 1 commit intobrucemiller:masterfrom
Conversation
|
Patch looks reasonable. But, taking a very quick glance at ucs's docs, I'm not sure that would do it. They suggest |
|
Right, the patch makes the raw interpretation possible, but it does not make it correct. Adding a ucs binding that is a simple alias for utf8 inputenc with empty stubs for all ucs-specific macros (since they may be used by the authors) could be a decent solution. I can't say much more without actual tests, but will ask the original reporter in the email thread. |
|
Ah, I just realized I shouldn't have asked the reporter a second too late. The log suggests ucs is auto-loaded when using inputenc with So I'm now agreeing with your remark about ut8x.def needing a binding that prevents further inputs. |
|
hmm... how's utf8x.def compare to utf8.def ? |
|
significantly? I don't understand either in sufficient depth. The extended Unicode is something I have only loaded to get full arabic support, as the usual utf8 has some gaps. However, it is discouraged, as you run into subtle conflicts with modern packages, see e.g. So it's probably not worth spending any significant time on it beyond parity with the regular utf8, since latexml should already offer a larger level of support as far as unicode is concerned. |
|
So I would suggest as the easiest patch to adjust |
|
On 05/03/2018 12:52 AM, Deyan Ginev wrote:
So I would suggest as the easiest patch to adjust |SetInputEncoding| in
inputenc.sty.ltxml to map |utf8x| to |utf8|, and proceed as usual.
Rather than special case inputenc, I'd think
trying utf8x.def.ltxml as a copy of utf8
and see if that gets us anywhere.
(We can add further defns to utf8x if needed)
|
Fixes #982
There was a rather nasty infinite loop when loading
ucs.stywith the--includestylesoption, which kept allocating new memory.Turns out using the native definition of
\@protected@testoptfrom latex.ltx allows for the package to load completely smoothly and error-free. So I'm submitting this PR to address the original report on the mailing list.That said, looking at the documentation of ucs:
https://mirrors.sorengard.com/ctan/macros/latex/contrib/ucs/ucs.pdf
I am tempted to add a trivial binding for latexml, that sets the input encoding to utf8. Will wait for feedback from @brucemiller