[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#858987: texlive-lang-arabic: arabicfnt.sty overrides \omega and \textomega



Package: texlive-lang-arabic
Version: 2016.20170123-5
Severity: normal
Tags: upstream

Dear Maintainer,

using the "arabic" option for the Babel package results problems in accessing
the Greek small letter omega:

In mathematical mode: The macro $\omega$ fails

In text mode: The macro \textomega and the Unicode character ω fail.

* What led up to the situation?

Using math and Arabic in one document.
Trying to combine Greek and Arabic in one document.

* What exactly did you do (or not do) that was effective (or
     ineffective)?

Minimal failing example:

  \documentclass[a4paper]{article}
  \usepackage[greek,arabic,english]{babel}
  \begin{document}
  
  Greek omega LICR: \ensuregreek{\textomega}
  Greek omega in maths: $\omega$
  
  \end{document}

* What was the outcome of this action?

No omega letter in the output. Error

  ! Argument of \textomega  has an extra }.
  <inserted text> 
                  \par 
  l.7 Greek omega LICR: \ensuregreek{\textomega}

and warning

  LaTeX Font Warning: Font shape `OT1/aromega/m/n' undefined
  (Font)              using `OT1/cmr/m/n' instead on input line 9.

* What outcome did you expect instead?

No errors, correct output with omega in text and math.

* What is the reason:

The contributed babel language file "arabic.ldf" loads "arabicfnt.sty" to set
up font loading/switching commands. "arabicfnt.sty" contains the lines:

  \DeclareTextFontCommand{\textomega}{\fontfamily{aromega}\selectfont}
  \DeclareRobustCommand{\omega}{\fontfamily{aromega}\selectfont}

that redefine the LaTeX internal character representation (LICR) macros
with font selecting commands.

* Workarounds:

For Greek, it suffices to change the order of the Babel arguments.

  \usepackage[arabic,greek,english]{babel}

More secure is an explicite re-re-definition, e.g.

  \documentclass[a4paper]{article}
  
  % save original \omega
  \let\mathomega\omega
  
  \usepackage[utf8]{inputenc}
  \usepackage[LAE,LGR,T1]{fontenc}
  \usepackage[arabic,greek,english]{babel}
  
  % fix rogue arabtex commands:
  \DeclareTextSymbol{\textomega}{LGR}{119}
  \renewcommand{\omega}{\mathomega}
  
  \usepackage{lmodern}
  
  \begin{document}
  
  Greek omega LICR: \ensuregreek{\textomega}
  
  Greek omega literal: \ensuregreek{ω}
  
  Greek omega in maths: $\omega$
  
  \end{document}





-- Package-specific info:
IMPORTANT INFORMATION: We will only consider bug reports concerning
the packaging of TeX Live as relevant. If you have problems with
combination of packages in a LaTeX document, please consult your
local TeX User Group, the comp.text.tex user group, the author of
the original .sty file, or any other help resource. 

In particular, bugs that are related to up-upstream, i.e., neither
Debian nor TeX Live (upstream), but the original package authors,
will be closed immediately.

   *** The Debian TeX Team is *not* a LaTeX Help Desk ***

If you report an error when running one of the TeX-related binaries 
(latex, pdftex, metafont,...), or if the bug is related to bad or wrong
output, please include a MINIMAL example input file that produces the
error in your report.

Please run your example with
	(pdf)latex -recorder ...
(or any other program that supports -recorder) and send us the generated
file with the extension .fls, it lists all the files loaded during
the run and can easily explain problems induced by outdated files in
your home directory.

Don't forget to also include minimal examples of other files that are 
needed, e.g. bibtex databases. Often it also helps
to include the logfile. Please, never send included pictures!

If your example file isn't short or produces more than one page of
output (except when multiple pages are needed to show the problem),
you can probably minimize it further. Instructions on how to do that
can be found at

http://www.minimalbeispiel.de/mini-en.html (english)

or 

http://www.minimalbeispiel.de/mini.html (german)

##################################
minimal input file


##################################
other files

######################################
 List of ls-R files

-rw-rw-r-- 1 milde milde 12396 Feb  4  2016 /home/milde/texmf/ls-R
-rw-r--r-- 1 root root 1946 Mar 28 20:26 /var/lib/texmf/ls-R
-rw-r--r-- 1 root root 15822 Sep 12  2016 /usr/local/share/texmf/ls-R
lrwxrwxrwx 1 root root 29 Jan 17 03:45 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 31 Mar  4 07:53 /usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
lrwxrwxrwx 1 root root 31 Mar  4 07:53 /usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
######################################
 Config files
-rw-r--r-- 1 root root 475 Feb  4 18:15 /etc/texmf/web2c/texmf.cnf
lrwxrwxrwx 1 root root 33 Mar  4 07:53 /usr/share/texmf/web2c/fmtutil.cnf -> /var/lib/texmf/fmtutil.cnf-DEBIAN
-rw-r--r-- 1 root root 172 Sep 12  2016 /usr/local/share/texmf/web2c/updmap.cfg
-rw-r--r-- 1 root root 4412 Mar 28 20:25 /var/lib/texmf/tex/generic/config/language.dat
######################################
 Files in /etc/texmf/web2c/
total 8
-rw-r--r-- 1 root root 283 Nov 10  2008 mktex.cnf
-rw-r--r-- 1 root root 475 Feb  4 18:15 texmf.cnf
######################################
 md5sums of texmf.d
ca40c66f144b4bafc3e59a2dd32ecb9c  /etc/texmf/texmf.d/00debian.cnf

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages texlive-lang-arabic depends on:
ii  fonts-hosny-amiri      0.107-1
ii  tex-common             6.06
ii  texlive-base           2016.20170123-5
ii  texlive-generic-extra  2016.20170123-5

texlive-lang-arabic recommends no packages.

texlive-lang-arabic suggests no packages.

Versions of packages tex-common depends on:
ii  dpkg  1.18.23
ii  ucf   3.0036

Versions of packages tex-common suggests:
ii  debhelper  10.2.5

Versions of packages texlive-lang-arabic is related to:
ii  tex-common        6.06
ii  texlive-binaries  2016.20160513.41080.dfsg-1

-- debconf information excluded

Reply to: