mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix inputencoding for documentation, examples, and templates.
* "platex" fails with "inputencoding default", if there is text in other languages. "jis-platex" works fine, "jis-utf8" fails with German Umlauts (maybe more). * The expert setting "inputencoding default" switches the inpute encoding with language switches without marking this in the LaTeX source. It is rarely required (if ever) and makes documents easy to break. It is not required for AMS Books, Simple CV, ... (probabely a tex2lyx issue). "utf8" and "auto" work fine.
This commit is contained in:
parent
3aaa6078fd
commit
4130ab15c6
@ -36,7 +36,7 @@
|
||||
\maintain_unincluded_children false
|
||||
\language bahasa
|
||||
\language_package default
|
||||
\inputencoding default
|
||||
\inputencoding auto
|
||||
\fontencoding global
|
||||
\font_roman "palatino" "default"
|
||||
\font_sans "helvet" "default"
|
||||
|
@ -92,7 +92,7 @@ End
|
||||
\end_local_layout
|
||||
\language japanese
|
||||
\language_package default
|
||||
\inputencoding auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -87,7 +87,7 @@ End
|
||||
\end_local_layout
|
||||
\language japanese
|
||||
\language_package default
|
||||
\inputencoding auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding auto
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -9,7 +9,7 @@
|
||||
\maintain_unincluded_children false
|
||||
\language japanese
|
||||
\language_package default
|
||||
\inputencoding auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -9,7 +9,7 @@
|
||||
\maintain_unincluded_children false
|
||||
\language japanese
|
||||
\language_package default
|
||||
\inputencoding auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -205,7 +205,7 @@ End
|
||||
\end_local_layout
|
||||
\language japanese
|
||||
\language_package default
|
||||
\inputencoding auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -47,7 +47,7 @@
|
||||
\maintain_unincluded_children false
|
||||
\language japanese
|
||||
\language_package default
|
||||
\inputencoding auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -56,7 +56,7 @@ End
|
||||
\end_local_layout
|
||||
\language japanese
|
||||
\language_package auto
|
||||
\inputencoding auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding global
|
||||
\font_roman "palatino" "default"
|
||||
\font_sans "helvet" "default"
|
||||
|
@ -9,7 +9,7 @@
|
||||
\maintain_unincluded_children false
|
||||
\language japanese
|
||||
\language_package default
|
||||
\inputencoding auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -176,7 +176,7 @@ End
|
||||
\end_local_layout
|
||||
\language japanese
|
||||
\language_package default
|
||||
\inputencoding auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -19,7 +19,7 @@ initials
|
||||
\maintain_unincluded_children false
|
||||
\language japanese
|
||||
\language_package default
|
||||
\inputencoding auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding global
|
||||
\font_roman "lmodern" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -36,7 +36,7 @@ End
|
||||
\end_local_layout
|
||||
\language japanese
|
||||
\language_package auto
|
||||
\inputencoding auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -36,7 +36,7 @@ End
|
||||
\end_local_layout
|
||||
\language japanese
|
||||
\language_package auto
|
||||
\inputencoding auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -84,7 +84,7 @@ End
|
||||
\end_local_layout
|
||||
\language japanese
|
||||
\language_package auto
|
||||
\inputencoding auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -1,9 +1,9 @@
|
||||
#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 567
|
||||
\begin_document
|
||||
\begin_header
|
||||
\save_transient_properties true
|
||||
\origin /systemlyxdir/examples/
|
||||
\origin /systemlyxdir/examples/Articles/
|
||||
\textclass amsart
|
||||
\use_default_options false
|
||||
\begin_modules
|
||||
@ -15,9 +15,9 @@ theorems-ams-extended
|
||||
\maintain_unincluded_children false
|
||||
\language english
|
||||
\language_package default
|
||||
\inputencoding default
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\inputencoding utf8
|
||||
\fontencoding auto
|
||||
\font_roman "lmodern" "default"
|
||||
\font_sans "default" "default"
|
||||
\font_typewriter "default" "default"
|
||||
\font_math "auto" "auto"
|
||||
@ -34,6 +34,8 @@ theorems-ams-extended
|
||||
\output_sync 0
|
||||
\bibtex_command default
|
||||
\index_command default
|
||||
\float_placement class
|
||||
\float_alignment class
|
||||
\paperfontsize default
|
||||
\spacing single
|
||||
\use_hyperref false
|
||||
|
@ -1,16 +1,16 @@
|
||||
#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 567
|
||||
\begin_document
|
||||
\begin_header
|
||||
\save_transient_properties true
|
||||
\origin /systemlyxdir/examples/
|
||||
\origin /systemlyxdir/examples/Articles/
|
||||
\textclass docbook
|
||||
\use_default_options false
|
||||
\maintain_unincluded_children false
|
||||
\language english
|
||||
\language_package default
|
||||
\inputencoding default
|
||||
\fontencoding global
|
||||
\inputencoding utf8
|
||||
\fontencoding auto
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
\font_typewriter "default" "default"
|
||||
@ -24,10 +24,12 @@
|
||||
\use_microtype false
|
||||
\use_dash_ligatures false
|
||||
\graphics default
|
||||
\default_output_format pdf
|
||||
\default_output_format default
|
||||
\output_sync 0
|
||||
\bibtex_command default
|
||||
\index_command default
|
||||
\float_placement class
|
||||
\float_alignment class
|
||||
\paperfontsize default
|
||||
\spacing single
|
||||
\use_hyperref false
|
||||
@ -290,13 +292,14 @@ Notice that when the docbook code is exported the filename extension is
|
||||
\begin_layout Standard
|
||||
\begin_inset Float figure
|
||||
placement htbp
|
||||
alignment document
|
||||
wide false
|
||||
sideways false
|
||||
status open
|
||||
|
||||
\begin_layout Plain Layout
|
||||
\begin_inset Graphics
|
||||
filename ../doc/clipart/platypus.eps
|
||||
filename ../../doc/clipart/platypus.eps
|
||||
width 2cm
|
||||
height 3cm
|
||||
scaleBeforeRotation
|
||||
@ -332,13 +335,14 @@ Wide figures are treated as normal figures.
|
||||
\begin_layout Standard
|
||||
\begin_inset Float figure
|
||||
placement htbp
|
||||
alignment document
|
||||
wide true
|
||||
sideways false
|
||||
status open
|
||||
|
||||
\begin_layout Plain Layout
|
||||
\begin_inset Graphics
|
||||
filename ../doc/clipart/platypus.eps
|
||||
filename ../../doc/clipart/platypus.eps
|
||||
width 2cm
|
||||
height 3cm
|
||||
scaleBeforeRotation
|
||||
@ -376,6 +380,7 @@ Tables
|
||||
There is also basic support for tables.
|
||||
\begin_inset Float table
|
||||
placement htbp
|
||||
alignment document
|
||||
wide false
|
||||
sideways false
|
||||
status open
|
||||
|
@ -1,9 +1,9 @@
|
||||
#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 567
|
||||
\begin_document
|
||||
\begin_header
|
||||
\save_transient_properties true
|
||||
\origin /systemlyxdir/examples/
|
||||
\origin /systemlyxdir/examples/Books/
|
||||
\textclass amsbook
|
||||
\use_default_options false
|
||||
\begin_modules
|
||||
@ -15,9 +15,9 @@ theorems-ams-extended
|
||||
\maintain_unincluded_children false
|
||||
\language english
|
||||
\language_package default
|
||||
\inputencoding default
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\inputencoding utf8
|
||||
\fontencoding auto
|
||||
\font_roman "lmodern" "default"
|
||||
\font_sans "default" "default"
|
||||
\font_typewriter "default" "default"
|
||||
\font_math "auto" "auto"
|
||||
@ -34,6 +34,8 @@ theorems-ams-extended
|
||||
\output_sync 0
|
||||
\bibtex_command default
|
||||
\index_command default
|
||||
\float_placement class
|
||||
\float_alignment class
|
||||
\paperfontsize default
|
||||
\spacing single
|
||||
\use_hyperref false
|
||||
|
@ -1,9 +1,9 @@
|
||||
#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 567
|
||||
\begin_document
|
||||
\begin_header
|
||||
\save_transient_properties true
|
||||
\origin /systemlyxdir/examples/
|
||||
\origin /systemlyxdir/examples/Curricula_Vitae/
|
||||
\textclass simplecv
|
||||
\begin_preamble
|
||||
%% You can modify the fonts used in the document be using the
|
||||
@ -30,9 +30,9 @@
|
||||
\maintain_unincluded_children false
|
||||
\language english
|
||||
\language_package default
|
||||
\inputencoding default
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\inputencoding utf8
|
||||
\fontencoding auto
|
||||
\font_roman "lmodern" "default"
|
||||
\font_sans "default" "default"
|
||||
\font_typewriter "default" "default"
|
||||
\font_math "auto" "auto"
|
||||
@ -49,6 +49,8 @@
|
||||
\output_sync 0
|
||||
\bibtex_command default
|
||||
\index_command default
|
||||
\float_placement class
|
||||
\float_alignment class
|
||||
\paperfontsize default
|
||||
\spacing single
|
||||
\use_hyperref false
|
||||
|
@ -1,9 +1,9 @@
|
||||
#LyX 2.3 created this file. For more info see http://www.lyx.org/
|
||||
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
||||
\lyxformat 544
|
||||
\begin_document
|
||||
\begin_header
|
||||
\save_transient_properties true
|
||||
\origin /systemlyxdir/examples/
|
||||
\origin /systemlyxdir/examples/Modules/
|
||||
\textclass article
|
||||
\use_default_options false
|
||||
\begin_modules
|
||||
@ -12,9 +12,9 @@ noweb
|
||||
\maintain_unincluded_children false
|
||||
\language english
|
||||
\language_package default
|
||||
\inputencoding default
|
||||
\inputencoding auto
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\font_roman "lmodern" "default"
|
||||
\font_sans "default" "default"
|
||||
\font_typewriter "default" "default"
|
||||
\font_math "auto" "auto"
|
||||
|
@ -1,9 +1,9 @@
|
||||
#LyX 2.3 created this file. For more info see http://www.lyx.org/
|
||||
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
||||
\lyxformat 544
|
||||
\begin_document
|
||||
\begin_header
|
||||
\save_transient_properties true
|
||||
\origin /systemlyxdir/examples/
|
||||
\origin /systemlyxdir/examples/Modules/
|
||||
\textclass article
|
||||
\begin_preamble
|
||||
%
|
||||
@ -22,9 +22,9 @@ noweb
|
||||
\maintain_unincluded_children false
|
||||
\language english
|
||||
\language_package default
|
||||
\inputencoding default
|
||||
\inputencoding auto
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\font_roman "lmodern" "default"
|
||||
\font_sans "default" "default"
|
||||
\font_typewriter "default" "default"
|
||||
\font_math "auto" "auto"
|
||||
|
@ -24,7 +24,7 @@ sweave
|
||||
\maintain_unincluded_children false
|
||||
\language english
|
||||
\language_package auto
|
||||
\inputencoding default
|
||||
\inputencoding auto
|
||||
\fontencoding global
|
||||
\font_roman "palatino" "default"
|
||||
\font_sans "lmss" "default"
|
||||
|
@ -14,7 +14,7 @@
|
||||
\maintain_unincluded_children false
|
||||
\language english
|
||||
\language_package default
|
||||
\inputencoding default
|
||||
\inputencoding utf8
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -9,7 +9,7 @@
|
||||
\maintain_unincluded_children false
|
||||
\language english
|
||||
\language_package default
|
||||
\inputencoding default
|
||||
\inputencoding utf8
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -34,7 +34,7 @@
|
||||
\maintain_unincluded_children false
|
||||
\language japanese
|
||||
\language_package default
|
||||
\inputencoding auto
|
||||
\inputencoding utf8-platex
|
||||
\fontencoding global
|
||||
\font_roman "lmodern" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -33,7 +33,7 @@
|
||||
\maintain_unincluded_children false
|
||||
\language japanese
|
||||
\language_package default
|
||||
\inputencoding auto
|
||||
\inputencoding utf8-platex
|
||||
\fontencoding global
|
||||
\font_roman "ae" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -17,7 +17,7 @@ braille
|
||||
\maintain_unincluded_children false
|
||||
\language japanese
|
||||
\language_package default
|
||||
\inputencoding auto
|
||||
\inputencoding utf8-platex
|
||||
\fontencoding global
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -17,7 +17,7 @@ linguistics
|
||||
\maintain_unincluded_children false
|
||||
\language japanese
|
||||
\language_package default
|
||||
\inputencoding auto
|
||||
\inputencoding utf8-platex
|
||||
\fontencoding global
|
||||
\font_roman "lmodern" "FreeSerif"
|
||||
\font_sans "default" "FreeSans"
|
||||
|
217
lib/examples/ja/Multilingual_Typesetting_(platex).lyx
Normal file
217
lib/examples/ja/Multilingual_Typesetting_(platex).lyx
Normal file
@ -0,0 +1,217 @@
|
||||
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
||||
\lyxformat 567
|
||||
\begin_document
|
||||
\begin_header
|
||||
\save_transient_properties true
|
||||
\origin /systemlyxdir/examples/ja/
|
||||
\textclass jarticle
|
||||
\use_default_options false
|
||||
\maintain_unincluded_children false
|
||||
\language japanese
|
||||
\language_package auto
|
||||
\inputencoding jis-platex
|
||||
\fontencoding OT1
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
\font_typewriter "default" "default"
|
||||
\font_math "auto" "auto"
|
||||
\font_default_family default
|
||||
\use_non_tex_fonts false
|
||||
\font_sc false
|
||||
\font_osf false
|
||||
\font_sf_scale 100 100
|
||||
\font_tt_scale 100 100
|
||||
\use_microtype false
|
||||
\use_dash_ligatures false
|
||||
\graphics default
|
||||
\default_output_format default
|
||||
\output_sync 0
|
||||
\bibtex_command default
|
||||
\index_command default
|
||||
\float_placement class
|
||||
\float_alignment class
|
||||
\paperfontsize default
|
||||
\spacing single
|
||||
\use_hyperref false
|
||||
\papersize default
|
||||
\use_geometry false
|
||||
\use_package amsmath 1
|
||||
\use_package amssymb 1
|
||||
\use_package cancel 1
|
||||
\use_package esint 1
|
||||
\use_package mathdots 1
|
||||
\use_package mathtools 1
|
||||
\use_package mhchem 1
|
||||
\use_package stackrel 1
|
||||
\use_package stmaryrd 1
|
||||
\use_package undertilde 1
|
||||
\cite_engine basic
|
||||
\cite_engine_type default
|
||||
\biblio_style plain
|
||||
\use_bibtopic false
|
||||
\use_indices false
|
||||
\paperorientation portrait
|
||||
\suppress_date false
|
||||
\justification true
|
||||
\use_refstyle 0
|
||||
\use_minted 0
|
||||
\index 索引
|
||||
\shortcut idx
|
||||
\color #008000
|
||||
\end_index
|
||||
\secnumdepth 3
|
||||
\tocdepth 3
|
||||
\paragraph_separation indent
|
||||
\paragraph_indentation default
|
||||
\is_math_indent 0
|
||||
\math_numbering_side default
|
||||
\quotes_style english
|
||||
\dynamic_quotes 0
|
||||
\papercolumns 1
|
||||
\papersides 1
|
||||
\paperpagestyle default
|
||||
\tracking_changes false
|
||||
\output_changes false
|
||||
\html_math_output 0
|
||||
\html_css_as_file 0
|
||||
\html_be_strict false
|
||||
\end_header
|
||||
|
||||
\begin_body
|
||||
|
||||
\begin_layout Title
|
||||
\SpecialChar LyX
|
||||
へようこそ!
|
||||
\end_layout
|
||||
|
||||
\begin_layout Section*
|
||||
\SpecialChar LyX
|
||||
を使うために最初に知っておくべきことがら
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Text in other languages:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Quotation
|
||||
English: Hello Mr.
|
||||
Sandman!
|
||||
\end_layout
|
||||
|
||||
\begin_layout Quotation
|
||||
Deutsch: Grüße aus Österreich!
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Greek and Cyrillic script use too wide characters (except for force-converted
|
||||
letters):
|
||||
\end_layout
|
||||
|
||||
\begin_layout Quotation
|
||||
Griechisch: χαιρετισμός!
|
||||
\end_layout
|
||||
|
||||
\begin_layout Quotation
|
||||
Russisch: Привет с
|
||||
\series bold
|
||||
новым
|
||||
\series default
|
||||
годом!
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Text in other languages with correct language setting - works only for some
|
||||
languages:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
English: Hello Mr.
|
||||
Sandman!
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang afrikaans
|
||||
Afrikaans: Good dag minher.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang french
|
||||
French: «Bonsoir à vous.»
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang swedish
|
||||
Swedish: Hej då.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Compilation error with inputenc
|
||||
\begin_inset Quotes eld
|
||||
\end_inset
|
||||
|
||||
auto
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
(language 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
|
||||
Wrong characters with inputenc
|
||||
\begin_inset Quotes eld
|
||||
\end_inset
|
||||
|
||||
auto
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
(language default):
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang greek
|
||||
Griechisch: χαιρετισμός!
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang russian
|
||||
Russisch: Привет с
|
||||
\series bold
|
||||
новым
|
||||
\series default
|
||||
годом!
|
||||
\end_layout
|
||||
|
||||
\end_body
|
||||
\end_document
|
@ -9,7 +9,7 @@
|
||||
\maintain_unincluded_children false
|
||||
\language japanese
|
||||
\language_package auto
|
||||
\inputencoding default
|
||||
\inputencoding jis-platex
|
||||
\fontencoding OT1
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
|
@ -21,7 +21,7 @@
|
||||
\maintain_unincluded_children false
|
||||
\language japanese
|
||||
\language_package default
|
||||
\inputencoding auto
|
||||
\inputencoding utf8-platex
|
||||
\fontencoding global
|
||||
\font_roman "times" "default"
|
||||
\font_sans "default" "default"
|
||||
|
Loading…
Reference in New Issue
Block a user