public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* hyphenation exceptions
@ 2017-02-03 20:24 Werner LEMBERG
       [not found] ` <20170203.212414.1196674671201883626.wl-mXXj517/zsQ@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Werner LEMBERG @ 2017-02-03 20:24 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


Folks,


what is the proper way to mark hyphenation exceptions?  Let's assume
the language is US-English, and I want to register the word
'Mesopotamia', which the standard TeX patterns hyphenate incorrectly,
AFAIK.  For LaTeX, using a recent Babel version, a proper entry would
be

  \babelhyphenation[USenglish]{Mes-o-po-ta-mia}

to be put into the *preamble* of the generated output LaTeX file.

However, hyphenation exception entries belong into the document, not
into the LaTeX template, for obvious reasons.  How can I make pandoc
transfer stuff from the input document to the output LaTeX preamble?

Note that it probably makes sense to provide a generic hyphenation
exception mechanism so that other output formats can be supported
also.


    Werner


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: hyphenation exceptions
       [not found] ` <20170203.212414.1196674671201883626.wl-mXXj517/zsQ@public.gmane.org>
@ 2017-02-04  3:53   ` Kolen Cheung
       [not found]     ` <6f5344df-6ab3-45de-988d-2ebb9ea50d2b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2017-02-04 10:28   ` Václav Haisman
  1 sibling, 1 reply; 5+ messages in thread
From: Kolen Cheung @ 2017-02-04  3:53 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 707 bytes --]



Have you tried header-includes?

e.g.

- header-includes:
     - \babelhyphenation[USenglish]{Mes-o-po-ta-mia}

​

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6f5344df-6ab3-45de-988d-2ebb9ea50d2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 4092 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: hyphenation exceptions
       [not found]     ` <6f5344df-6ab3-45de-988d-2ebb9ea50d2b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2017-02-04  9:09       ` Werner LEMBERG
  0 siblings, 0 replies; 5+ messages in thread
From: Werner LEMBERG @ 2017-02-04  9:09 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw,
	christian.kolen-Re5JQEeQqe8AvxtiuMwx3w


> Have you tried header-includes?
> 
> e.g.
> 
> - header-includes:
>      - \babelhyphenation[USenglish]{Mes-o-po-ta-mia}

Thanks!  That works.  Here the correct syntax, just for reference.

  ---
  header-includes:
    - \babelhyphenation[USenglish]{Mes-o-po-ta-mia}
  ---


    Werner


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: hyphenation exceptions
       [not found] ` <20170203.212414.1196674671201883626.wl-mXXj517/zsQ@public.gmane.org>
  2017-02-04  3:53   ` Kolen Cheung
@ 2017-02-04 10:28   ` Václav Haisman
       [not found]     ` <CAKw7uVjrvDSu=BFvbKEjjOv3jSuy7P_neZuZddCymEUg-KFN4w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  1 sibling, 1 reply; 5+ messages in thread
From: Václav Haisman @ 2017-02-04 10:28 UTC (permalink / raw)
  To: pandoc-discuss

[-- Attachment #1: Type: text/plain, Size: 1646 bytes --]

On 3 February 2017 at 21:24, Werner LEMBERG <wl-mXXj517/zsQ@public.gmane.org> wrote:
>

Folks,

what is the proper way to mark hyphenation exceptions? Let’s assume
the language is US-English, and I want to register the word
‘Mesopotamia’, which the standard TeX patterns hyphenate incorrectly,
AFAIK. For LaTeX, using a recent Babel version, a proper entry would
be

\babelhyphenation[USenglish]{Mes-o-po-ta-mia}

to be put into the *preamble* of the generated output LaTeX file.

However, hyphenation exception entries belong into the document, not
into the LaTeX template, for obvious reasons. How can I make pandoc
transfer stuff from the input document to the output LaTeX preamble?

Note that it probably makes sense to provide a generic hyphenation
exception mechanism so that other output formats can be supported
also.

​​
There is a package called hyphenex <https://www.ctan.org/pkg/hyphenex>
which does contain such exceptions. Maybe you should suggest an update to
its maintainers.
​​
​
-- 
VH

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAKw7uVjrvDSu%3DBFvbKEjjOv3jSuy7P_neZuZddCymEUg-KFN4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #2: Type: text/html, Size: 5437 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: hyphenation exceptions
       [not found]     ` <CAKw7uVjrvDSu=BFvbKEjjOv3jSuy7P_neZuZddCymEUg-KFN4w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-02-04 11:20       ` Werner LEMBERG
  0 siblings, 0 replies; 5+ messages in thread
From: Werner LEMBERG @ 2017-02-04 11:20 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw, vhaisman-Re5JQEeQqe8AvxtiuMwx3w


> >  Let’s assume the language is US-English, and I want to register
> >  the word ‘Mesopotamia’, which the standard TeX patterns hyphenate
> >  incorrectly, [...]
>
> There is a package called hyphenex which does contain such
> exceptions.  Maybe you should suggest an update to its maintainers.

You've probably missed that I'm listed as one of the `hyphenex'
maintainers :-)

I've already informed Barbara and Karl about this issue.


    Werner

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-02-04 11:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-03 20:24 hyphenation exceptions Werner LEMBERG
     [not found] ` <20170203.212414.1196674671201883626.wl-mXXj517/zsQ@public.gmane.org>
2017-02-04  3:53   ` Kolen Cheung
     [not found]     ` <6f5344df-6ab3-45de-988d-2ebb9ea50d2b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-02-04  9:09       ` Werner LEMBERG
2017-02-04 10:28   ` Václav Haisman
     [not found]     ` <CAKw7uVjrvDSu=BFvbKEjjOv3jSuy7P_neZuZddCymEUg-KFN4w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-02-04 11:20       ` Werner LEMBERG

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).