]> git.lyx.org Git - features.git/commitdiff
Use utf8 inputencoding for Russian documentation.
authorGünter Milde <milde@lyx.org>
Sun, 28 Apr 2019 20:45:51 +0000 (22:45 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:27 +0000 (15:48 +0200)
Solves errors with luatex and enables compilation with xetex.
Add dedicated test document for the errors with auto-legacy and xe/luatex.

autotests/export/latex/languages/ru_auto-legacy-luatex.lyx [new file with mode: 0644]
development/autotests/invertedTests
lib/doc/ru/Intro.lyx
lib/doc/ru/Tutorial.lyx
lib/examples/ru/Example_%28LyXified%29.lyx
lib/examples/ru/Example_%28raw%29.lyx

diff --git a/autotests/export/latex/languages/ru_auto-legacy-luatex.lyx b/autotests/export/latex/languages/ru_auto-legacy-luatex.lyx
new file mode 100644 (file)
index 0000000..e6aa969
--- /dev/null
@@ -0,0 +1,177 @@
+#LyX 2.4 created this file. For more info see https://www.lyx.org/
+\lyxformat 573
+\begin_document
+\begin_header
+\save_transient_properties true
+\origin unavailable
+\textclass article
+\begin_preamble
+% DO NOT ALTER THIS PREAMBLE!!! 
+%
+%This preamble is designed to ensure that the document prints
+% out as advertised. If you mess with this preamble,
+% parts of the document may not print out as expected. If you
+% have problems LaTeXing this file, please contact 
+% the documentation team
+% email: lyx-docs@lists.lyx.org
+
+% the pages of the TOC is numbered roman
+% and a pdf-bookmark for the TOC is added
+\pagenumbering{roman}
+\let\myTOC\tableofcontents
+\renewcommand\tableofcontents{%
+  \pdfbookmark[1]{\contentsname}{}
+  \myTOC
+  \cleardoublepage
+  \pagenumbering{arabic} }
+\end_preamble
+\use_default_options false
+\maintain_unincluded_children false
+\language russian
+\language_package default
+\inputencoding auto-legacy
+\fontencoding auto
+\font_roman "default" "DejaVu Serif"
+\font_sans "default" "DejaVu Sans"
+\font_typewriter "default" "DejaVu Sans Mono"
+\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 pdf5
+\output_sync 0
+\bibtex_command default
+\index_command default
+\float_placement class
+\float_alignment class
+\paperfontsize 12
+\spacing single
+\use_hyperref true
+\pdf_title "Введение в LyX"
+\pdf_author "LyX Team"
+\pdf_subject "LyX-documentation Intro"
+\pdf_keywords "LyX, documentation"
+\pdf_bookmarks true
+\pdf_bookmarksnumbered true
+\pdf_bookmarksopen true
+\pdf_bookmarksopenlevel 2
+\pdf_breaklinks false
+\pdf_pdfborder false
+\pdf_colorlinks true
+\pdf_backref false
+\pdf_pdfusetitle false
+\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
+\papersize a4paper
+\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 2
+\paragraph_separation indent
+\paragraph_indentation default
+\is_math_indent 0
+\math_numbering_side default
+\quotes_style russian
+\dynamic_quotes 0
+\papercolumns 1
+\papersides 1
+\paperpagestyle default
+\tablestyle 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 Author
+автор: команда разработки \SpecialChar LyX
+
+\begin_inset Newline newline
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset CommandInset toc
+LatexCommand tableofcontents
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Философия \SpecialChar LyX
+
+\end_layout
+
+\begin_layout Subsection
+
+\lang spanish
+What is the problem?
+\end_layout
+
+\begin_layout Standard
+
+\lang spanish
+Babel-Russian uses utf8-encoded auto-strings when detecting Xe/LuaTeX.
+ This leads to wrong output with TeX fonts and legacy 8-bit input encodings,
+ e.g.
+ the ToC-title should be 
+\begin_inset Quotes eld
+\end_inset
+
+Содержание
+\begin_inset Quotes erd
+\end_inset
+
+ but is 
+\begin_inset Quotes eld
+\end_inset
+
+ППППЯППППП
+\begin_inset Quotes erd
+\end_inset
+
+ and to compilation errors.
+\end_layout
+
+\end_body
+\end_document
index 5721012b1ab092db701f47804695c3f718a00643..3d1dc56d17a4ce3bba6aeffac5071aa2cfffc4e1 100644 (file)
@@ -225,8 +225,8 @@ export/doc/(|de/|es/|fr/)UserGuide_pdf4_texF
 
 # Babel-Russian uses UTF-8 for auto-strings if it detects Xe/LuaTeX.
 # This fails unless the inputencoding is set to utf-8, too.
-export/doc/ru/(Intro|Tutorial)_.*_texF
-export/examples/ru/.*LyXified.*_texF
+export/export/latex/languages/ru_auto-legacy-luatex.*_texF
+
 
 # Babel-Ukrainian uses UTF-8 if it detects Xe/LuaTeX (for "\date").
 # With 8-bit TeX fonts this results in:
index abc09dd8c50e913ba64f95b74705796cd0629072..4add8f12df8bfb9b52244beb5a05902856e8dc72 100644 (file)
@@ -29,7 +29,7 @@
 \maintain_unincluded_children false
 \language russian
 \language_package default
-\inputencoding auto
+\inputencoding utf8
 \fontencoding global
 \font_roman "default" "DejaVu Serif"
 \font_sans "default" "DejaVu Sans"
index 65f499565a5bfee967d9a6aaeabe0c159bcc2da5..f8860eb81d47e4e92e53a283859f841a8221d012 100644 (file)
@@ -12,7 +12,7 @@ logicalmkup
 \maintain_unincluded_children false
 \language russian
 \language_package default
-\inputencoding auto
+\inputencoding utf8
 \fontencoding global
 \font_roman "default" "DejaVu Serif"
 \font_sans "default" "DejaVu Sans"
index d8e9c21f5f447fc6972f7c3d0180188ff4ab6d77..a4f5ebcd89b7ccb0f212c271b2f789dc97565bc9 100644 (file)
@@ -9,7 +9,7 @@
 \maintain_unincluded_children false
 \language russian
 \language_package default
-\inputencoding auto
+\inputencoding utf8
 \fontencoding global
 \font_roman "default" "DejaVu Serif"
 \font_sans "default" "DejaVu Sans"
index 8ee82616ca4bdc6339350c30cf6fc0818d4ab4e0..22a15744baf2ef9a81a1f83be8599dfbb6476d3b 100644 (file)
@@ -9,7 +9,7 @@
 \maintain_unincluded_children false
 \language russian
 \language_package default
-\inputencoding auto
+\inputencoding utf8
 \fontencoding global
 \font_roman "default" "DejaVu Serif"
 \font_sans "default" "DejaVu Sans"