Problems compiling with Hebrew

Bug #580794 reported by JohnDave Medina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBL LaTeX
Fix Committed
High
David Purton

Bug Description

I am having problems using sblclass to compile with Hebrew. Here is my setup:

- Mac OS X 10.5.8
- SBL Hebrew font installed
- MacTeX Installation – the most recent (just a few days ago)
- All the packages that were present in TeX Live 2009
- TeXShop with the LaTeX option; have also tried to make file with XeTeX and XeLaTeX
- All the .sty and .cls files have been placed in the ~/Library/texmf/tex/latex directory; other directories were created as directed on R. Fischer's wikipage

I have tried using \begin{hebrew} WXYZ \end{hebrew} and also the \he{wxyz} options to input Hebrew and it continues to give me an error.

I have tried entering WXYZ as both Hebrew characters and English letter - both to no avail. The compile always terminates. Typing in Greek does just fine.

Revision history for this message
Robert Fischer (robert-fischer) wrote :

Can you post the output of the compile (i.e. pipe stdout to a file and upload it)? I'd like to see the order the files were loaded in. Similarly, upload the *.log file here.

Revision history for this message
Pete Myers (petemyers) wrote : Re: [Bug 580794] Re: Problems compiling with Hebrew

When you upload the output, could you include copies of the output for LaTeX
and for XeLaTeX please.

On 15 May 2010 13:40, Robert Fischer <email address hidden>wrote:

> Can you post the output of the compile (i.e. pipe stdout to a file and
> upload it)? I'd like to see the order the files were loaded in.
> Similarly, upload the *.log file here.
>
> --
> Problems compiling with Hebrew
> https://bugs.launchpad.net/bugs/580794
> You received this bug notification because you are a member of SBL LaTeX
> Drivers, which is subscribed to SBL LaTeX.
>

Revision history for this message
JohnDave Medina (johndavemedina) wrote :
Revision history for this message
JohnDave Medina (johndavemedina) wrote :
Revision history for this message
JohnDave Medina (johndavemedina) wrote :
Download full text (27.8 KiB)

Robert and Pete,

Thanks for the replies. Below are the outputs for both LaTex and XeLaTex, in that order (unable to attach files for some reason:

---

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (format=pdflatex 2010.5.13) 15 MAY 2010 20:38
entering extended mode
 \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**"Testing Lang File.tex"
(./Testing Lang File.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, assamese, bengali, gujarati, hindi, kannada
, malayalam, marathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, i
rish, italian, kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, b
okmal, nynorsk, polish, portuguese, romanian, russian, sanskrit, serbian, slova
k, slovenian, spanish, swedish, turkish, turkmen, ukenglish, ukrainian, upperso
rbian, welsh, loaded.
(/Users/JDCM/Library/texmf/tex/latex/ddsessay.cls
Document Class: ddsessay 2010/05/04 Class for Duke Divinity School papers
(/Users/JDCM/Library/texmf/tex/latex/sblessay.cls
Document Class: sblessay 2010/04/22 SBL Essay Class
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/Users/JDCM/Library/texmf/tex/latex/sbllangbase.sty
Package: sbllangbase 2010/05/05 Base for SBL Language support

(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/xspace.sty
Package: xspace 2006/05/08 v1.12 Space after command names (DPC,MH)
)
(/usr/local/texlive/2009/texmf-dist/tex/latex/hyphenat/hyphenat.sty
Package: hyphenat 2009/09/02 v2.3c hyphenation utilities
\langwohyphens=\language69
LaTeX Info: Redefining \_ on input line 43.
)
(/usr/local/texlive/2009/texmf-dist/tex/latex/textcase/textcase.sty
Package: textcase 2004/10/07 v0.07 Text only upper/lower case changing (DPC)
)
(/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/engord.sty
Package: engord 2010/03/01 v1.8 Provides English ordinal numbers (HO)

(/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/message (HO)
)
(/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
Package: ltxcmds 2010/04/26 v1.7 LaTeX kernel commands for general use (HO)
))
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2008/03/30 v1.1d Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15

(/usr/local/texlive/2009/texmf-dist/tex/latex/ucs/utf8x.def
File: utf8x.def 2004/10/17 U...

Revision history for this message
Pete Myers (petemyers) wrote :
  • sblessay.cls Edit (11.6 KiB, text/x-tex; charset=US-ASCII; name="sblessay.cls")

Well the LaTeX error is the error i've always got from the class, which is
why I use XeLaTeX. The XeLaTeX error is due to the order in which packages
are being loaded, which I have fixed at least twice before.

Has anyone put any usepackage commands in?

I'm always using a slightly older version of sblessay, because this XeLaTeX
error keeps cropping up. The version I'm using is attached, see if that
works for you for the moment.

I'll let Robert take a look at the LaTeX error and see if he can solve it.
John, ff the attached file works for you for the moment, then I'll take
another look at the XeLaTeX regression after my exams at the beginning of
June.

Let me know if it helps.

Pete

On 16 May 2010 04:50, JohnDave Medina <email address hidden> wrote:

>
> ** Attachment added: "Hebrew L2E Compile.rtf"
> http://launchpadlibrarian.net/48526480/Hebrew%20L2E%20Compile.rtf
>
> --
> Problems compiling with Hebrew
> https://bugs.launchpad.net/bugs/580794
> You received this bug notification because you are a member of SBL LaTeX
> Drivers, which is subscribed to SBL LaTeX.
>

Revision history for this message
JohnDave Medina (johndavemedina) wrote :

Thanks, Pete. The file you gave needs some modification to work with the newer sbllang files (sbllangbase/sbllanggr/sbllanghe) - I haven't tried that modification yet as I'm still a newbie to the TeX code. In the newest file the only major difference I see is the creation of \ifxetexsbl. There are file also has a few more \DeclareOptions.The only entered \usepackage commands that I can immediately spot are for the sbllangfiles:

% Install language support
\RequirePackage{sbllangbase} % Gives some font control commands
\if@sbllanggr
  \RequirePackage{sbllanggr}
\fi
\if@sbllanghe
  \RequirePackage{sbllanghe}
\fi

I downloaded these files from the marshwiggle site. The sblessay class file there is the one I have been using.

John

Revision history for this message
David Purton (dcpurton) wrote :

Hi all,

On Sun, May 16, 2010 at 03:50:42PM -0000, Pete Myers wrote:
> Well the LaTeX error is the error i've always got from the class, which is
> why I use XeLaTeX. The XeLaTeX error is due to the order in which packages
> are being loaded, which I have fixed at least twice before.
>
> Has anyone put any usepackage commands in?

Groan. I think Robert has added some, but this error is still a mystery to
me. Maybe it is a quirk of MacTex.

But bidi.sty is still being loaded before anything else in my version.

I thought you just addedd lines to load bidi.sty and xunicode.sty
explicitly before much else happens. This is still the case in the svn
version. Is this right Pete? Or did you do something else as well?
(There are a lot of differences between your file and the current svn.)

> I'll let Robert take a look at the LaTeX error and see if he can solve it.
> John, ff the attached file works for you for the moment, then I'll take
> another look at the XeLaTeX regression after my exams at the beginning of
> June.

The LaTeX error means that your TeX system can't find the default Hebrew
font... which is kind of weird now that I think about it :).

do you get any output from the command:

    kpsewhere jerus10.mf

from a terminal?

I am assuming that you will get nothing. If this is the case, then I'm
not sure how the default setup of MacTex handles Hebrew with LaTeX. On
my linux distro, ivritex is one of the packages that provides these
hebrew files. You could try grabing it from
http://http://ivritex.sourceforge.net/

Perhaps MacTeX has broken hebrew support and it is assumed that everyone
will use Xetex.

I managed to convert SBL Hebrew to tfm format such that it can be used
with pdfTeX. I could dump these changes along with the SBL hebrew font
into the repository so that it is used by default.

Any comments? I know most of you use xetex, so perhaps it's not worth
it, but I'm still a fan of trying to get things to work with all tex
flavours.

I haven't been able to do the same with SBL Greek. There is something
about the font that pdftex doesn't like.

cheers

David

--
David Purton
<email address hidden>

For the eyes of the LORD range throughout the earth to
strengthen those whose hearts are fully committed to him.
                                 2 Chronicles 16:9a

Revision history for this message
JohnDave Medina (johndavemedina) wrote :

Hi David,

Yes, the jerus10 font is missing in my distribution. I tried grabbing ivritex but that didn't seem to contain it either. I think it would be great if you could upload anything that helps in this. Living in this mystery isn't my idea of fun. :-)

JohnDave

Revision history for this message
David Purton (dcpurton) wrote :

Hi JohnDave,

What happens for you if you try this very minimal file?

% -- cut here --
\documentclass{article}
\usepackage[hebrew]{babel}
\begin{document}
ax`yiz
\end{document}
% -- cut here --

The jerus10 font does seem to be hard to come by, so why it's referenced
in babel/lhecmr.fd as the default font is extremely bizarre...

It is available in this tarball:

http://sourceforge.net/projects/ivritex/files/ivritex/ivritex-1.2.1/ivritex-1.2.1.tar.gz/download

I need to do some more work before I can distribute SBL Hebrew as the
default font for LaTeX because the installation is complex and I suspect
highly system dependent :(. I can send you the files, but I don't know
how to install them easily on a Mac system - it's not quite a matter of
just putting them into your tex tree, because you need to alter (or
generate) font mapping files for dvips and pdftex, etc.

It would be better if we can figure out a reliable way to use hebrew
using default tex packages, but just about everyone is using XeTeX for
complex scripts now.

cheers

David

On Fri, May 21, 2010 at 03:58:37AM -0000, JohnDave Medina wrote:
> Hi David,
>
> Yes, the jerus10 font is missing in my distribution. I tried grabbing
> ivritex but that didn't seem to contain it either. I think it would be
> great if you could upload anything that helps in this. Living in this
> mystery isn't my idea of fun. :-)
>
> JohnDave
>

--
David Purton
<email address hidden>

For the eyes of the LORD range throughout the earth to
strengthen those whose hearts are fully committed to him.
                                 2 Chronicles 16:9a

Revision history for this message
David Purton (dcpurton) wrote :

Hi all,

I have successfully managed to get LaTeX to use the SBL Greek and Hebrew
fonts and uploaded some experimental support to svn. It is not yet
included in the class files. (No pointing still, but this is too much
effort)

There is an install script to help with installation. This works ok on
my debian system, but I am not sure about under OS X... If someone can
take a look at it and modify it if needs be, that would be great.

to use the SBL fonts, just include

\usepackage{sblhebrew}
\usepackage{sblgreek}

in your document preamble.

It should work, providing you have correctly installed things.

Note, that the dvips path wont work with TrueType fonts.

cheers

David

--
David Purton
<email address hidden>

For the eyes of the LORD range throughout the earth to
strengthen those whose hearts are fully committed to him.
                                 2 Chronicles 16:9a

Revision history for this message
JohnDave Medina (johndavemedina) wrote :

Thanks, David, for the help. I'm still trying to figure out the setup on my comp, but I think it's starting to make some sense. When I tried the minimal file you asked, it did the same error concerning the jerus10 font. I was not able to find it in ivritex either. But I did find this somewhere on the net and it did work:

% ---begin here---
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[12pt]{article}
\TeXXeTstate=1
\usepackage{xltxtra}
\usepackage{bidi}
\defaultfontfeatures{Scale=MatchLowercase}
\setmainfont{Hoefler Text}
\newfontfamily{\sbl}[Script=Hebrew]{SBLHebrew}
\begin{document}

\setRL
{\sbl
‏‏בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃
וְהָאָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָבֹ֔הוּ וְחֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַמָּֽיִם׃
וַיֹּ֥אמֶר אֱלֹהִ֖ים יְהִ֣י א֑וֹר וַֽיְהִי־אֽוֹר׃
}
\setLR
\end{document}
% ---end here---

I don't know if that would help but it's my hope that it would in some way. I'll experiment on getting the files you uploaded to work, unless someone can give me some brief instructions about how to set that up.

JohnDave

Revision history for this message
Pete Myers (petemyers) wrote :

Hmmm...

I seem to have missed a lot here.

My current working copy is quite behind the curve, yes.

I did make numerous changes to make sure bidi was loaded first, but the
error keeps cropping back up.

Sorry I haven't been in touch, exams. Will take a look in a fortnight and do
a mini code review. Of what's in svn, and report back with suggestions and
possible patches for whatever state the code is in by then.

Also have some updates to bst that I've been meaning to merge for a while,
implementing some more sbl examples (they need tidying up though).

On that, it would be helpful if we had some standardised way to refer to
things in the bib file that are non-standard for tex, but necessary for sbl
compliance. I'll leave it to you, dave to decide what to do on that? If
you want me to make some suggestions I could draft a blueprint.

Pete

On 28 May 2010 06:40, "JohnDave Medina" <email address hidden> wrote:

Thanks, David, for the help. I'm still trying to figure out the setup on
my comp, but I think it's starting to make some sense. When I tried the
minimal file you asked, it did the same error concerning the jerus10
font. I was not able to find it in ivritex either. But I did find this
somewhere on the net and it did work:

% ---begin here---
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[12pt]{article}
\TeXXeTstate=1
\usepackage{xltxtra}
\usepackage{bidi}
\defaultfontfeatures{Scale=MatchLowercase}
\setmainfont{Hoefler Text}
\newfontfamily{\sbl}[Script=Hebrew]{SBLHebrew}
\begin{document}

\setRL
{\sbl
‏‏בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃
וְהָאָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָבֹ֔הוּ וְחֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְר֣וּחַ
אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַמָּֽיִם׃
וַיֹּ֥אמֶר אֱלֹהִ֖ים יְהִ֣י א֑וֹר וַֽיְהִי־אֽוֹר׃
}
\setLR
\end{document}
% ---end here---

I don't know if that would help but it's my hope that it would in some
way. I'll experiment on getting the files you uploaded to work, unless
someone can give me some brief instructions about how to set that up.

JohnDave

--
Problems compiling with Hebrew
https://bugs.launchpad.net/bugs/580794
You received this bug not...

Revision history for this message
David Purton (dcpurton) wrote :

Your example below uses XeLaTeX, and so it doesn't have the jerus
problem which will only apply to LaTeX.

Your best bet is going to be to use XeLaTeX with the sblessay class as
well. The issue occurring on OS X with the class is related to the order
in which the unicode and bidi packages are loaded.

Also... the example you provided below gives the exact error under
discussion on my system!

  ! Package bidi Error: Oops! you have loaded package xunicode before
  bidi package. Please load package xunicode after bidi package, and
  then try to run xelatex on your document again.

Reversing the order of xltxtra and bidi fixes it for me.

All this means is that I'm totally confused :(

It would be great if you can fiddle with sblessay.cls and
sbllangbase.sty and try and get things loading in an order that works
for you and let me know what that order is.

search in the sblessay.cls for bidi to see where it is loaded. It's
pretty much the first package I think.

note the xetex related loads are in \if blocks.

I'll keep looking into it when I need to procrastinate from exam prep
;)

David

On Fri, May 28, 2010 at 05:33:09AM -0000, JohnDave Medina wrote:
> Thanks, David, for the help. I'm still trying to figure out the setup on
> my comp, but I think it's starting to make some sense. When I tried the
> minimal file you asked, it did the same error concerning the jerus10
> font. I was not able to find it in ivritex either. But I did find this
> somewhere on the net and it did work:
>
> % ---begin here---
> %!TEX TS-program = xelatex
> %!TEX encoding = UTF-8 Unicode
> \documentclass[12pt]{article}
> \TeXXeTstate=1
> \usepackage{xltxtra}
> \usepackage{bidi}
> \defaultfontfeatures{Scale=MatchLowercase}
> \setmainfont{Hoefler Text}
> \newfontfamily{\sbl}[Script=Hebrew]{SBLHebrew}
> \begin{document}
>
> \setRL
> {\sbl
> ‏‏בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃
> וְהָאָ֗רֶץ הָיְתָ֥ה תֹ֨הוּ֙ וָבֹ֔הוּ וְחֹ֖שֶׁךְ עַל־פְּנֵ֣י תְה֑וֹם וְר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַמָּֽיִם׃
> וַיֹּ֥אמֶר אֱלֹהִ֖ים יְהִ֣י א֑וֹר וַֽיְהִי־אֽוֹר׃
> }
> \setLR
> \end{document}
> % ---end here---
>
> I don't know if that would help but it's my hope that it would in some
> way. I'll experiment on getting the files you uploaded to work, unless
> someone can give me some brief instructions about how to set that up.
>
> JohnDave
>

--
David Purton
<email address hidden>

For the eyes of the LORD range throughout the earth to
strengthen those whose hearts are fully committed to him.
                                 2 Chronicles 16:9a

Revision history for this message
JohnDave Medina (johndavemedina) wrote :

Pete, totally understandable about the exams. I just finished a May-term intensive so we're in the same boat.

David, thanks for the guidance. I managed to get it to do a XeLaTeX compile via TeXShop. I found there were two instances of a bidi load: one in sblessay.cls and another in sbllangbase.sty. I turned this code into comment with the '%':

% Test for unicode support (through Xetex), and so make sure bidi
% is loaded before xunicode.
%\expandafter\ifx\csname XeTeXpicfile\endcsname\relax
%\else
% \RequirePackage{bidi}
% \RequirePackage{xunicode}
%\expandafter\fi

and made sure xltxtra loaded before bidi in sbllangbase.sty. I also stumbled upon the need to save the file as a UTF-8 Unicode file instead of a TeX file.

So far so good. :-)

JohnDave

Revision history for this message
David Purton (dcpurton) wrote :

Hi JohnDave,

can you send the output of
    svn diff?
from the directory containing sblessay.cls?

It still doesn't work on my system with loading xltxtra before bidi, I
have to load bidi before xltxtra :(.

On Sat, May 29, 2010 at 12:45:36AM -0000, JohnDave Medina wrote:
> Pete, totally understandable about the exams. I just finished a May-term
> intensive so we're in the same boat.
>
> David, thanks for the guidance. I managed to get it to do a XeLaTeX
> compile via TeXShop. I found there were two instances of a bidi load:
> one in sblessay.cls and another in sbllangbase.sty. I turned this code
> into comment with the '%':
>
> % Test for unicode support (through Xetex), and so make sure bidi
> % is loaded before xunicode.
> %\expandafter\ifx\csname XeTeXpicfile\endcsname\relax
> %\else
> % \RequirePackage{bidi}
> % \RequirePackage{xunicode}
> %\expandafter\fi
>
> and made sure xltxtra loaded before bidi in sbllangbase.sty. I also
> stumbled upon the need to save the file as a UTF-8 Unicode file instead
> of a TeX file.
>
> So far so good. :-)
>
> JohnDave
>

--
David Purton
<email address hidden>

For the eyes of the LORD range throughout the earth to
strengthen those whose hearts are fully committed to him.
                                 2 Chronicles 16:9a

Revision history for this message
Robert Fischer (robert-fischer) wrote :

Do we need it in sblessay, or should we stick to having it in sbllangbase?
 Are those packages referenced directly in sblessay somewhere?

~~ Robert.

On 29 May 2010 03:03, David Purton <email address hidden> wrote:

>
> Hi JohnDave,
>
> can you send the output of
> svn diff?
> from the directory containing sblessay.cls?
>
> It still doesn't work on my system with loading xltxtra before bidi, I
> have to load bidi before xltxtra :(.
>
>
> On Sat, May 29, 2010 at 12:45:36AM -0000, JohnDave Medina wrote:
> > Pete, totally understandable about the exams. I just finished a May-term
> > intensive so we're in the same boat.
> >
> > David, thanks for the guidance. I managed to get it to do a XeLaTeX
> > compile via TeXShop. I found there were two instances of a bidi load:
> > one in sblessay.cls and another in sbllangbase.sty. I turned this code
> > into comment with the '%':
> >
> > % Test for unicode support (through Xetex), and so make sure bidi
> > % is loaded before xunicode.
> > %\expandafter\ifx\csname XeTeXpicfile\endcsname\relax
> > %\else
> > % \RequirePackage{bidi}
> > % \RequirePackage{xunicode}
> > %\expandafter\fi
> >
> > and made sure xltxtra loaded before bidi in sbllangbase.sty. I also
> > stumbled upon the need to save the file as a UTF-8 Unicode file instead
> > of a TeX file.
> >
> > So far so good. :-)
> >
> > JohnDave
> >
>
> --
> David Purton
> <email address hidden>
>
> For the eyes of the LORD range throughout the earth to
> strengthen those whose hearts are fully committed to him.
> 2 Chronicles 16:9a
>
> --
> Problems compiling with Hebrew
> https://bugs.launchpad.net/bugs/580794
> You received this bug notification because you are a member of SBL LaTeX
> Drivers, which is subscribed to SBL LaTeX.
>
> Status in SBL LaTeX: New
>
> Bug description:
> I am having problems using sblclass to compile with Hebrew. Here is my
> setup:
>
> - Mac OS X 10.5.8
> - SBL Hebrew font installed
> - MacTeX Installation – the most recent (just a few days ago)
> - All the packages that were present in TeX Live 2009
> - TeXShop with the LaTeX option; have also tried to make file with XeTeX
> and XeLaTeX
> - All the .sty and .cls files have been placed in the
> ~/Library/texmf/tex/latex directory; other directories were created as
> directed on R. Fischer's wikipage
>
> I have tried using \begin{hebrew} WXYZ \end{hebrew} and also the \he{wxyz}
> options to input Hebrew and it continues to give me an error.
>
> I have tried entering WXYZ as both Hebrew characters and English letter -
> both to no avail. The compile always terminates. Typing in Greek does just
> fine.
>
>
>

Revision history for this message
David Purton (dcpurton) wrote :

On Sat, May 29, 2010 at 06:52:17PM -0000, Robert Fischer wrote:
> Do we need it in sblessay, or should we stick to having it in sbllangbase?
> Are those packages referenced directly in sblessay somewhere?

It should be in sbllangbase.sty.

The only reason it was put into the class file was the Pete was getting
errors relating to bidi being loaded too late and I couldn't reproduce
them.

I since had a thought. Pete, do you use a front end? Some front ends stick
extra stuff related to unicode in the preamble, that could be causing
grief on your system. Try a simple file, ensuring you save it it utf-8
format and then run xelatex on it from the command line and see if that
makes a difference.

David.

--
David Purton
<email address hidden>

For the eyes of the LORD range throughout the earth to
strengthen those whose hearts are fully committed to him.
                                 2 Chronicles 16:9a

Revision history for this message
David Purton (dcpurton) wrote :

On Fri, May 28, 2010 at 05:49:07AM -0000, Pete Myers wrote:
> Also have some updates to bst that I've been meaning to merge for a while,
> implementing some more sbl examples (they need tidying up though).

Fantastic! If you haven't already done so, can you add info about them
to the sblref.tex file in the test directory?

> On that, it would be helpful if we had some standardised way to refer to
> things in the bib file that are non-standard for tex, but necessary for sbl
> compliance. I'll leave it to you, dave to decide what to do on that? If
> you want me to make some suggestions I could draft a blueprint.

Agreed.

I have installed dokuwiki on my server and set up a starting page for
SBL LaTeX.

http://wiki.marshwiggle.net/doku.php?id=sbllatex:main

Anyone can register an account, but I will then need to give write
access. Dokuwiki uses namespaces, so I have made an sbllatex namespace.
If any of you want to add info and documentation, I suggest putting it
here. we can use it for blueprint stuff too since launchpad doesn't
really let you discuss much for these.

If you haven't used dokuwiki before, it seems pretty simple to use. It
gives a bit of documentation on the site when you are editing regarding
its markup.

call every file sbllatex:*, and I'll make sure you have permission to
creat and modify under that namespace.

When you've created an account (from the login page) drop me an email
and I'll set up permissions.

I've made a page at

http://wiki.marshwiggle.net/doku.php?id=sbllatex:bib

that can be used to document and discuss the bib format supported by the
style.

I'm open for any suggestions on how to lay out this page. Put something
up, and we can always change it later.

David

--
David Purton
<email address hidden>

For the eyes of the LORD range throughout the earth to
strengthen those whose hearts are fully committed to him.
                                 2 Chronicles 16:9a

Revision history for this message
David Purton (dcpurton) wrote :

Hi Robert,

On Sat, May 29, 2010 at 06:52:17PM -0000, Robert Fischer wrote:
> Do we need it in sblessay, or should we stick to having it in sbllangbase?
> Are those packages referenced directly in sblessay somewhere?

The current svn does not work for me. It triggers the bidi loaded before
xunicode error...

Can you check if this change works for you? fontspec and xunicode are
loaded by xltxtra. Double check that your front end is not fiddling with
anything and your test file is in utf-8 format.

David

===================================================================
--- sbllangbase.sty (revision 78)
+++ sbllangbase.sty (working copy)
@@ -36,10 +36,8 @@

 % setup English
 \ifxetexsbl
- \RequirePackage{fontspec}
- \RequirePackage{xltxtra}
   \RequirePackage{bidi}
- \RequirePackage{xunicode}
+ \RequirePackage{xltxtra}
   \newcommand{\en}[1]{{\normalfont #1}}
 \else
   \RequirePackage[utf8x]{inputenc}

--
David Purton
<email address hidden>

For the eyes of the LORD range throughout the earth to
strengthen those whose hearts are fully committed to him.
                                 2 Chronicles 16:9a

Changed in sbllatex:
status: New → In Progress
importance: Undecided → High
Revision history for this message
Robert Fischer (robert-fischer) wrote :

No, that doesn't work: xltxtra has to be loaded *before* bidi.

Or did you have your diff backwards?

~~ Robert.

On 31 May 2010 02:38, David Purton <email address hidden> wrote:

> Hi Robert,
>
> On Sat, May 29, 2010 at 06:52:17PM -0000, Robert Fischer wrote:
> > Do we need it in sblessay, or should we stick to having it in
> sbllangbase?
> > Are those packages referenced directly in sblessay somewhere?
>
> The current svn does not work for me. It triggers the bidi loaded before
> xunicode error...
>
> Can you check if this change works for you? fontspec and xunicode are
> loaded by xltxtra. Double check that your front end is not fiddling with
> anything and your test file is in utf-8 format.
>
> David
>
> ===================================================================
> --- sbllangbase.sty (revision 78)
> +++ sbllangbase.sty (working copy)
> @@ -36,10 +36,8 @@
>
> % setup English
> \ifxetexsbl
> - \RequirePackage{fontspec}
> - \RequirePackage{xltxtra}
> \RequirePackage{bidi}
> - \RequirePackage{xunicode}
> + \RequirePackage{xltxtra}
> \newcommand{\en}[1]{{\normalfont #1}}
> \else
> \RequirePackage[utf8x]{inputenc}
>
>
>
> --
> David Purton
> <email address hidden>
>
> For the eyes of the LORD range throughout the earth to
> strengthen those whose hearts are fully committed to him.
> 2 Chronicles 16:9a
>
>
> ** Changed in: sbllatex
> Status: New => In Progress
>
> ** Changed in: sbllatex
> Importance: Undecided => High
>
> --
> Problems compiling with Hebrew
> https://bugs.launchpad.net/bugs/580794
> You received this bug notification because you are a member of SBL LaTeX
> Drivers, which is subscribed to SBL LaTeX.
>
> Status in SBL LaTeX: In Progress
>
> Bug description:
> I am having problems using sblclass to compile with Hebrew. Here is my
> setup:
>
> - Mac OS X 10.5.8
> - SBL Hebrew font installed
> - MacTeX Installation – the most recent (just a few days ago)
> - All the packages that were present in TeX Live 2009
> - TeXShop with the LaTeX option; have also tried to make file with XeTeX
> and XeLaTeX
> - All the .sty and .cls files have been placed in the
> ~/Library/texmf/tex/latex directory; other directories were created as
> directed on R. Fischer's wikipage
>
> I have tried using \begin{hebrew} WXYZ \end{hebrew} and also the \he{wxyz}
> options to input Hebrew and it continues to give me an error.
>
> I have tried entering WXYZ as both Hebrew characters and English letter -
> both to no avail. The compile always terminates. Typing in Greek does just
> fine.
>
>
>

Revision history for this message
David Purton (dcpurton) wrote :

On Mon, May 31, 2010 at 02:47:22PM -0000, Robert Fischer wrote:
> No, that doesn't work: xltxtra has to be loaded *before* bidi.
>
> Or did you have your diff backwards?
>

Arrggghhh! :( No the diff isn't backwards.

Ok... I think I have it.

My version of bidi is not the most current version in CTAN. TeXlive
seems to be a little behind. If I update to the version from CTAN, then
it works ok.

Finally, some progress.

I therefore propose the following patch to the current svn, to just tidy things up.

--- sbllangbase.sty (revision 78)
+++ sbllangbase.sty (working copy)
@@ -36,10 +36,8 @@

 % setup English
 \ifxetexsbl
- \RequirePackage{fontspec}
   \RequirePackage{xltxtra}
   \RequirePackage{bidi}
- \RequirePackage{xunicode}
   \newcommand{\en}[1]{{\normalfont #1}}
 \else
   \RequirePackage[utf8x]{inputenc}

Can all please test if that works?

The final thing related to this bug is to test the install and usage of
sblhebrew.sty and sblgreek.sty under LaTeX (not XeLaTeX). So, I would
appreciate if someone can look into that too.

cheers,

David

--
David Purton
<email address hidden>

For the eyes of the LORD range throughout the earth to
strengthen those whose hearts are fully committed to him.
                                 2 Chronicles 16:9a

Revision history for this message
JohnDave Medina (johndavemedina) wrote :

Sorry for the delay; I've been in the process of moving last week and then having friends over this past weekend.

David, I'm not sure how to do a 'svn diff.' Do I need to run 'svn diff' from a terminal in the directory with sblessay?

Robert, from what I can gather on my system, sblessay.cls does reference sbllangbase.sty, apparently with this code:

\DeclareOption{hebrew}
  {\@sbllanghetrue}
\DeclareOption{a4paper}
  {\@afourpapertrue}
\DeclareOption{letterpaper}
  {\@afourpaperfalse}
\DeclareOption*{%
  \PassOptionsToClass{\CurrentOption}{article}%
}
\ExecuteOptions{rmheadings,openany,times,greek,hebrew}
\ProcessOptions\relax
.
.
.
% Install language support
\RequirePackage{sbllangbase} % Gives some font control commands
\if@sbllanggr
  \RequirePackage{sbllanggr}
\fi
\if@sbllanghe
  \RequirePackage{sbllanghe}
\fi

Revision history for this message
David Purton (dcpurton) wrote :

Hi JohnDave,

On Wed, Jun 02, 2010 at 03:13:53AM -0000, JohnDave Medina wrote:
> David, I'm not sure how to do a 'svn diff.' Do I need to run 'svn diff'
> from a terminal in the directory with sblessay?

Yeah - that is right. But try the current svn first and see if the
changes that have been made fix your problem with xelatex.

David

--
David Purton
<email address hidden>

For the eyes of the LORD range throughout the earth to
strengthen those whose hearts are fully committed to him.
                                 2 Chronicles 16:9a

Revision history for this message
Pete Myers (petemyers) wrote :

Hi,

Where are we up to with this bug? Particularly the bidi/xunicode loading issue? I have a little free time this week to think about this if needs be.

Pete

Revision history for this message
David Purton (dcpurton) wrote :

On Sat, Jul 31, 2010 at 09:01:25PM -0000, Pete Myers wrote:
> Hi,
>
> Where are we up to with this bug? Particularly the bidi/xunicode
> loading issue? I have a little free time this week to think about this
> if needs be.

I think it is fixed for xelatex. My problems were due to an outdated
bidi. Using the latest bidi from ctan, the current subversion source
works... I think :) Be good if you can confirm this, Pete.

I'm not yet finished implementing the SBL fonts under latex yet - I
still have to do a bunch of work on kerning for the tfm file :( - The
Greek implementation for latex with its 256 char limit is a pain.

David

--
David Purton
<email address hidden>

For the eyes of the LORD range throughout the earth to
strengthen those whose hearts are fully committed to him.
                                 2 Chronicles 16:9a

Revision history for this message
David Purton (dcpurton) wrote :

I'm happy with the SBL Hebrew font implementation under LaTeX now, and believe that the bidi/xunicode problems are sorted out under XeLaTeX, so am going to make this fixed. I'm still working on the SBL Greek font implementation under LaTeX, but will open a new bug report for it, as it is not directly related to this one.

David Purton (dcpurton)
Changed in sbllatex:
status: In Progress → Fix Committed
assignee: nobody → David Purton (dcpurton)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.