ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Having difficulty getting unicode characters to display in ConTeXT output PDF
Date: Wed, 08 Apr 2015 19:11:13 +0200	[thread overview]
Message-ID: <55256131.5080205@gmx.es> (raw)
In-Reply-To: <20150407.144057.5828.0@webmail02.dca.untd.com>

On 04/07/2015 08:40 PM, david.boerschlein@juno.com wrote:
> 
> I am having difficulty getting Unicode characters to display
> correctly in PDF output using ConTeXT. Also, the PDF Bookmarks are
> not showing inthis example.
> 
> ConTeXt  ver: 2014.12.11 12:02 MKIV beta  fmt: 2014.12.15  int: english/english
> 
> I am attaching a minimal example.
> 
> Would you please give me some pointers and put a working
> multi-lingual example on the contextgarden.net website?

Hi David,

this sample (slightly modified from the one Hraban posted before) works
fine with latest beta from 2015.04.08 14:19 (and stable version from
2014.01.03 00:40):

\definefontfamily[mainface][rm][FreeSerif]
\setupbodyfont[mainface]

% Enables index in PDF document
\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\placebookmarks[section][force=yes]

% Let us say hello in many languages
\starttext
    \setupfooter [state=start]
    \page[1]
    \startfrontmatter
        {\midaligned {\tfc{\WORD{Hello World}}}}
        \placecontent[extras={22=page},alternative=c]
    \stopfrontmatter
    \page[yes]
    \startbodymatter
        \section{1. Russian: Привет мир!} Russian: Привет мир! \\
        \section{2. Punjabi: ਸਤਿ ਸ੍ਰੀ ਅਕਾਲ ਦੁਨਿਆ!} Punjabi: ਸਤਿ ਸ੍ਰੀ ਅਕਾਲ
ਦੁਨਿਆ! \\
        \section{3. Arabic: مرحبا أيها العالم!} Arabic: مرحبا أيها
العالم! \\
        \section{4. Hebrew: שלום העולם!} Hebrew: שלום העולם! \\
        \section{5. Armenian: Բարեւ աշխարհ!} Armenian: Բարեւ աշխարհ! \\
    \stopbodymatter
\stoptext

The FreeSerif font is available from https://ftp.gnu.org/gnu/freefont/.

I hope it helps,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2015-04-08 17:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-07 18:40 Having difficulty getting unicode characters to display in ConTeXT out put PDF david.boerschlein
2015-04-08  7:28 ` Henning Hraban Ramm
2015-04-08 12:15   ` Hans Hagen
2015-04-08 17:11 ` Pablo Rodriguez [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55256131.5080205@gmx.es \
    --to=oinos@gmx.es \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).