-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ptexenc] Inconsistent error message #80
Comments
This is reasonable enough, as "ſ" is "0xC5 0xBF" in UTF-8 byte sequence.
This is also reasonable enough, as "顛" comes from "0xC5BF" of EUC-JP. However, I don't understand
why inputenc shows "U+C4CF". |
When I read the comment from @JulienPalard, especially
initial thought was a change in pTeX behavior due to #34; however, it turned out to be irrelevant. My guess is: @JulienPalard thought "it worked with TeX Live 2017" because LaTeX ignored UTF-8 input instead of throwing an error. (FYI, the default processing of \usepackage[utf8]{inputenc} started in only TL2018, according to latex3/latex2e#24) However, that does not answer my question: why does inputenc show "U+C4CF"? |
I'm not sure how it's reasonable (I may not understand your sentence properly though), I'm working on a document written in UTF-8 having both CJK characters AND ſ ( For reference, it's the PDF version of https://docs.python.org/ja/3/howto/regex.html#compilation-flags, so it's automatically generated Latex by Sphinx. |
Practically you can try uplatex instead of platex; upLaTeX (upTeX) supports native Unicode characters and it has better compatibility with inputenc package. By design pLaTeX (pTeX) has limited support for Latin characters. |
What I meant by "reasonable" was the following: when interpreted favorably, it can be said that such a conversion is a design, because the origin of "顛" could be easily guessed from the behavior ("0xC5BF" of EUC-JP). --- Of course I'm not sure this is actually intended, though. さて,ここからは日本語で書きます。 疑問点は以下の 2 個になりました。
(1) の方は,pTeX 3.1.4 で修正された
の現象と同じではないのですが,なんだか似たにおいがします。 |
トークンの文字列化(や出力)で使われる
となっており,両者とも pTeX では |
未検証ですが、おそらく現象は
思いつきの解決策の一案は、 別の案は、 前者は比較的正攻法だが改造量が増えそうです。後者は改造量は小さそうですが安普請かもしれません。上手くいくでしょうか。 |
@aminophen Thanks for the recommandation of using uplatex, I did not previously heard of it. Is it possible to use it with sphinx? I don't see it in the enum of latex_engine, and if I still try it I'm getting an error:
|
@JulienPalard I've never used Sphinx, but it seems uplatex is not supported now, according to sphinx-doc/sphinx#4186. You can join the discussion there, and you may get some information on how to add uplatex. |
See texjporg/platex#84
The text was updated successfully, but these errors were encountered: