mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Force unicodesymbols conversion with uf8-platex.
Fixes Japanese (platex) documents with text parts in other languages.
This commit is contained in:
parent
6fd263122d
commit
02e7bb80d3
@ -9,9 +9,9 @@
|
||||
\maintain_unincluded_children false
|
||||
\language japanese
|
||||
\language_package auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding OT1
|
||||
\font_roman "default" "default"
|
||||
\inputencoding utf8-platex
|
||||
\fontencoding auto
|
||||
\font_roman "lmodern" "default"
|
||||
\font_sans "default" "default"
|
||||
\font_typewriter "default" "default"
|
||||
\font_math "auto" "auto"
|
||||
@ -104,8 +104,19 @@ Deutsch: Grüße aus Österreich!
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Greek and Cyrillic script use too wide characters (except for force-converted
|
||||
letters):
|
||||
Greek and Cyrillic Unicode characters are too wide.
|
||||
With Document\SpecialChar menuseparator
|
||||
Settings\SpecialChar menuseparator
|
||||
Language\SpecialChar menuseparator
|
||||
Encoding
|
||||
\begin_inset Quotes eld
|
||||
\end_inset
|
||||
|
||||
Japanese (platex) (utf8)
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
they are converted to LaTeX macros, so that the output matches Latin letters:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Quotation
|
||||
@ -140,8 +151,23 @@ Afrikaans: Good dag minher.
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang french
|
||||
French: «Bonsoir à vous.»
|
||||
\emph on
|
||||
Missing and wrong characters with
|
||||
\emph default
|
||||
Language\SpecialChar menuseparator
|
||||
Encoding
|
||||
\begin_inset Quotes eld
|
||||
\end_inset
|
||||
|
||||
language default
|
||||
\emph on
|
||||
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
|
||||
\emph default
|
||||
:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
@ -152,68 +178,14 @@ Swedish: Hej då.
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\emph on
|
||||
Missing characters with inputenc
|
||||
\begin_inset Quotes eld
|
||||
\end_inset
|
||||
|
||||
auto
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
|
||||
\emph default
|
||||
(language default)
|
||||
\emph on
|
||||
and
|
||||
\begin_inset Quotes eld
|
||||
\end_inset
|
||||
|
||||
utf8-platex
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
|
||||
\emph default
|
||||
:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang ngerman
|
||||
Deutsch: Grüße aus Österreich!
|
||||
\lang japanese
|
||||
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Plain Layout
|
||||
wrong encoding?, (Umlaut not as
|
||||
\backslash
|
||||
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
{O})
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\emph on
|
||||
Wrong characters with inputenc
|
||||
\begin_inset Quotes eld
|
||||
\end_inset
|
||||
|
||||
auto
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
(language default):
|
||||
\lang french
|
||||
French: «Bonsoir à vous.»
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
@ -1,5 +1,5 @@
|
||||
#LyX 2.3 created this file. For more info see http://www.lyx.org/
|
||||
\lyxformat 544
|
||||
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
||||
\lyxformat 572
|
||||
\begin_document
|
||||
\begin_header
|
||||
\save_transient_properties true
|
||||
@ -9,9 +9,9 @@
|
||||
\maintain_unincluded_children false
|
||||
\language japanese
|
||||
\language_package auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding OT1
|
||||
\font_roman "default" "default"
|
||||
\inputencoding utf8-platex
|
||||
\fontencoding auto
|
||||
\font_roman "lmodern" "default"
|
||||
\font_sans "default" "default"
|
||||
\font_typewriter "default" "default"
|
||||
\font_math "auto" "auto"
|
||||
@ -28,6 +28,8 @@
|
||||
\output_sync 0
|
||||
\bibtex_command default
|
||||
\index_command default
|
||||
\float_placement class
|
||||
\float_alignment class
|
||||
\paperfontsize default
|
||||
\spacing single
|
||||
\use_hyperref false
|
||||
@ -68,6 +70,7 @@
|
||||
\papercolumns 1
|
||||
\papersides 1
|
||||
\paperpagestyle default
|
||||
\tablestyle default
|
||||
\tracking_changes false
|
||||
\output_changes false
|
||||
\html_math_output 0
|
||||
|
@ -192,6 +192,14 @@ bool Encoding::encodable(char_type c) const
|
||||
|
||||
if (iconvName_ == "UTF-8" && package_ == none)
|
||||
return true;
|
||||
// platex does not load inputenc: force conversion of supported characters
|
||||
if (name_ == "utf8-platex"
|
||||
&& c > 0x007f // Latin-1 Supplement
|
||||
&& (c < 0x05ff || c > 0x1d00) // ... Hebrew + Phonetic Extensions
|
||||
&& (c < 0x2aff || c > 0xfb00) // ... Supplemental Mathematical Operators + Alphabetic...
|
||||
&& (c < 0xfb4f || c > 0x1d400) // ...Presentation Forms + Mathematical...
|
||||
&& c < 0x1d7ff) // ...Alphanumeric Symbols
|
||||
return false;
|
||||
if (c < start_encodable_ && !isForced(c))
|
||||
return true;
|
||||
if (encodable_.find(c) != encodable_.end())
|
||||
|
Loading…
Reference in New Issue
Block a user