From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Having difficulty getting unicode characters to display in ConTeXT out put PDF
Date: Wed, 8 Apr 2015 13:28:53 +0600 [thread overview]
Message-ID: <9E95E0EE-83B3-45E5-AC36-DD7BFC5CF4F9@fiee.net> (raw)
In-Reply-To: <20150407.144057.5828.0@webmail02.dca.untd.com>
Am 2015-04-08 um 00:40 schrieb david.boerschlein@juno.com:
> I am having difficulty getting Unicode characters to display correctly in PDF output using ConTeXT. Also, the PDF Bookmarks are not showing in this example.
> Would you please give me some pointers and put a working multi-lingual example on the contextgarden.net website?
You don’t need the „regime“ stuff in ConTeXt MkIV, at least as long as you write in UTF-8.
But you need fonts that support your desired glyphs. DejaVu supports Russian and Armenian, but not Punjabi, Arabic and Hebrew (at least in the version installed at my computer).
I can’t help you with the PDF bookmarks, sorry; I tried different options, but the functionality is probably broken.
\usetypescript[dejavu]
\setupbodyfont[dejavu, 9pt]
% 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
Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2015-04-08 7:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-07 18:40 david.boerschlein
2015-04-08 7:28 ` Henning Hraban Ramm [this message]
2015-04-08 12:15 ` Hans Hagen
2015-04-08 17:11 ` Having difficulty getting unicode characters to display in ConTeXT output PDF Pablo Rodriguez
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=9E95E0EE-83B3-45E5-AC36-DD7BFC5CF4F9@fiee.net \
--to=texml@fiee.net \
--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).