Re: [tex4ht] error in rendering vertical bar and angle brackets

2020-05-18 Thread Alexandre Roberts
Ah, that makes sense. Good to know, thanks again!

On Mon, May 18, 2020 at 9:45 AM Ulrike Fischer  wrote:

>
>
> > Thank you, Ulrike, `fontenc` worked for me. But I would emphasize that
> > `inputenc` *did* work with `xelatex`, suggesting that it is a problem, of
> > sorts, with `text4ht`.
>
> inputenc does nothing with xelatex, inputenc is a package for
> pdflatex.
>
> xelatex has a quite different font system. There your input should
> simply work. You need \usepackage[T1]{fontenc} **only** for pdflatex.
>
>
>
> --
> Mit freundlichen Grüßen
> Ulrike Fischer
>
>


Re: [tex4ht] error in rendering vertical bar and angle brackets

2020-05-18 Thread Ulrike Fischer



> Thank you, Ulrike, `fontenc` worked for me. But I would emphasize that
> `inputenc` *did* work with `xelatex`, suggesting that it is a problem, of
> sorts, with `text4ht`.

inputenc does nothing with xelatex, inputenc is a package for
pdflatex.

xelatex has a quite different font system. There your input should
simply work. You need \usepackage[T1]{fontenc} **only** for pdflatex.



-- 
Mit freundlichen Grüßen
Ulrike Fischer




Re: [tex4ht] error in rendering vertical bar and angle brackets

2020-05-18 Thread Alexandre Roberts
Thank you, Ulrike, `fontenc` worked for me. But I would emphasize that
`inputenc` *did* work with `xelatex`, suggesting that it is a problem, of
sorts, with `text4ht`. I don't remember why I had set it up to use
`inputenc` instead of `fontenc`; perhaps it had something to do with `bidi`
or the Arabic font I was using in other documents (the one I am currently
working on does not use Arabic script, so I haven't tested that).

In any case, thanks for the fix.

Best wishes,
Alex

On Mon, May 18, 2020 at 6:39 AM Ulrike Fischer  wrote:

> > Here is an example:
>
> > ```
> > \documentclass{article}
> > \usepackage[utf8]{inputenc}
> > \usepackage[notes]{biblatex-chicago}
> > \addbibresource{biblatex-examples.bib}
>
> > \begin{document}
>
> > Hello |
>
> > \end{document}
> > ```
>
> This is not related to tex4ht. You would get this in latex too. The
> default fontencoding OT1 is a bit restricted and has chars in odd
> places.
>
> You need either \usepackage[T1]{fontenc} or should use a command like
> \textbar.
>
>
> --
> Mit freundlichen Grüßen
> Ulrike Fischer
>
>


Re: [tex4ht] error in rendering vertical bar and angle brackets

2020-05-18 Thread Ulrike Fischer
> Here is an example:

> ```
> \documentclass{article}
> \usepackage[utf8]{inputenc}
> \usepackage[notes]{biblatex-chicago}
> \addbibresource{biblatex-examples.bib}

> \begin{document}

> Hello |

> \end{document}
> ```

This is not related to tex4ht. You would get this in latex too. The
default fontencoding OT1 is a bit restricted and has chars in odd
places.

You need either \usepackage[T1]{fontenc} or should use a command like
\textbar.


-- 
Mit freundlichen Grüßen
Ulrike Fischer




Re: [tex4ht] error in rendering vertical bar and angle brackets

2020-05-18 Thread Alexandre Roberts
Dear Michal,

Here is an example:

```
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[notes]{biblatex-chicago}
\addbibresource{biblatex-examples.bib}

\begin{document}

Hello |

\end{document}
```

Perhaps `inputenc` has something to do with it? When I compile it with
`xelatex`, the bars come out correctly as vertical bars.

Best wishes,
Alex

On Mon, May 18, 2020 at 1:04 AM Michal Hoftich  wrote:

> Dear Alexandre,
>
> >
> > There seems to be a bug in how tex4ht renders the character for a
> vertical bar |, which ends up as a horizontal bar (dash —) in the ODT
> output.
> >
> > Similarly angle brackets are rendered as ¡ (for <) and ¿ (for >).
>
> this can depend on fonts you use in your document. Can you please post
> a complete example?
>
> Best regards,
> Michal
>


Re: [tex4ht] error in rendering vertical bar and angle brackets

2020-05-18 Thread Michal Hoftich
Dear Alexandre,

>
> There seems to be a bug in how tex4ht renders the character for a vertical 
> bar |, which ends up as a horizontal bar (dash —) in the ODT output.
>
> Similarly angle brackets are rendered as ¡ (for <) and ¿ (for >).

this can depend on fonts you use in your document. Can you please post
a complete example?

Best regards,
Michal