Farsi document with custom font encoding OT1 fails.

Set font encoding in examples to "auto" and add minimal test sample.
This commit is contained in:
Günter Milde 2019-01-22 12:02:57 +01:00
parent faac4944c4
commit f82030d211
3 changed files with 135 additions and 1 deletions

View File

@ -0,0 +1,129 @@
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 566
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\use_default_options false
\maintain_unincluded_children false
\language farsi
\language_package default
\inputencoding utf8
\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 pdf2
\output_sync 0
\bibtex_command default
\index_command default
\float_placement class
\float_alignment class
\paperfontsize default
\spacing onehalf
\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 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 swiss
\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 Standard
\SpecialChar LyX
مستنداتی عالی دارد—لطفا از آن استفاده کنید! از قسمت
\family sans
\lang english
Help
\lang farsi
\SpecialChar menuseparator
\lang english
Introduction
\family default
\lang farsi
شروع کنید، که مستندات را به صورت خلاصه به شما معرفی می‌کند.
\end_layout
\begin_layout Standard
\paragraph_spacing single
\lang english
The farsi font-encoding
\begin_inset Quotes cld
\end_inset
LAE
\begin_inset Quotes crd
\end_inset
should be added to the fontenc arguments also with a custom font-encoding
(similar to LGR for Greek and T2A for Russian).
\end_layout
\begin_layout Standard
\lang english
(This document sets the fontencoding to
\begin_inset Quotes cld
\end_inset
custom [OT1]
\begin_inset Quotes crd
\end_inset
to avoid bitmap fonts with CM.)
\end_layout
\end_body
\end_document

View File

@ -56,9 +56,11 @@ export/export/latex/iconv-error-nomenclature_pdf2
# TextClass.cpp (1385): The layout does not provide a list command for
# the float `sidebar'. LyX will not be able to produce a float list.
#
# which makes "check_load" and "lyx2lyx" fail (lyx2lyx for < 2.3 is ignored).
check_load/templates/acmart
export/templates/acmart_lyx23
# Failing LyX2LyX conversions for old versions:
#
# "beamer" lyx2lyx fails sometimes for versions < 2.1
@ -73,6 +75,9 @@ export/examples/beamerlyxexample1_lyx(16|20)
# * reversed order of command arguments results in incompilable LaTeX
export/examples/(|es/)modernCV_lyx(16|20)
# Farsi font encoding LAE should be added also to custom font encoding
# (similar to the Greek font encoding LGR).
export/export/latex/fa-OT1_pdf2
# input encoding tests
# --------------------

View File

@ -10,7 +10,7 @@
\language farsi
\language_package default
\inputencoding utf8
\fontencoding OT1
\fontencoding auto
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"