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

version graph

Package: texlive-lang-arabic; Maintainer for texlive-lang-arabic is Debian TeX Task Force <debian-tex-maint@lists.debian.org>; Source for texlive-lang-arabic is src:texlive-lang (PTS, buildd, popcon).

Reported by: "G. Milde" <milde@users.sf.net>

Date: Wed, 29 Mar 2017 10:57:01 UTC

Severity: normal

Tags: upstream

Found in version texlive-lang/2016.20170123-5

Done: Norbert Preining <preining@logic.at>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Maintainers <debian-tex-maint@lists.debian.org>:
Bug#858987; Package texlive-lang-arabic. (Wed, 29 Mar 2017 10:57:04 GMT) (full text, mbox, link).


Acknowledgement sent to "G. Milde" <milde@users.sf.net>:
New Bug report received and forwarded. Copy sent to Debian TeX Maintainers <debian-tex-maint@lists.debian.org>. (Wed, 29 Mar 2017 10:57:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "G. Milde" <milde@users.sf.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: texlive-lang-arabic: arabicfnt.sty overrides \omega and \textomega
Date: Wed, 29 Mar 2017 12:52:24 +0200
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 sent to Norbert Preining <preining@logic.at>:
You have taken responsibility. (Sat, 22 Jul 2017 11:45:03 GMT) (full text, mbox, link).


Notification sent to "G. Milde" <milde@users.sf.net>:
Bug acknowledged by developer. (Sat, 22 Jul 2017 11:45:03 GMT) (full text, mbox, link).


Message #10 received at 858987-done@bugs.debian.org (full text, mbox, reply):

From: Norbert Preining <preining@logic.at>
To: "G. Milde" <milde@users.sf.net>, 858987-done@bugs.debian.org
Subject: Re: Bug#858987: texlive-lang-arabic: arabicfnt.sty overrides \omega and \textomega
Date: Sat, 22 Jul 2017 20:43:04 +0900
Hi,

I am closing this bug since it neither concerns the Debian packaging, nor
upstream TeX Live, but the original source of the bug is in one of the
babel packages.

Please report this error to babel or any other of the responsible
upupstreams.

To quote from the original email/bugreport
> 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.

Thanks

Norbert

--
PREINING Norbert                               http://www.preining.info
Accelia Inc.     +    JAIST     +    TeX Live     +    Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 20 Aug 2017 07:38:38 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Nov 27 01:02:35 2021; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.