ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [***SPAM***] Some guidance please to get Asian Character
@ 2013-03-11 13:22 hwitloc
  2013-03-11 14:46 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: hwitloc @ 2013-03-11 13:22 UTC (permalink / raw)
  To: ntg-context


I am trying to get Japanese character text in a document, but I'm having problems.
I am invoking context like this:

	texexec --xtx --pdf test-jp.tex

Below is the context macro source file and below that the compilation output from ConTeXt
%
% Simple test file.
%
\enableregime[utf-8]
\mainlanguage[ja]
\usemodule[japanese]
\usemodule[simplefonts]

\starttext
Hello, World! 
世界、今日は!
\stoptext

%%% End:    Result follows 

 $ texexec --xtx --pdf test-jp.tex
TeXExec | processing document 'test-jp.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file test-jp.top
TeXExec | using randomseed 99
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en.mkii
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
 restricted \write18 enabled.
entering extended mode
(./test-jp.tex

ConTeXt  ver: 2012.05.30 11:26 MKII  fmt: 2013.2.15  int: english/english

system          : cont-new.mkii loaded
(/usr/local/texlive/2012/texmf-dist/tex/context/base/cont-new.mkii
systems         : beware: some patches loaded from cont-new.mkii
)
system          : cont-sys.rme loaded
(/usr/local/texlive/2012/texmf-dist/tex/context/user/cont-sys.rme
(/usr/local/texlive/2012/texmf-dist/tex/context/base/type-siz.mkii)
(/usr/local/texlive/2012/texmf-dist/tex/context/base/type-one.mkii))
system          : test-jp.top loaded
(./test-jp.top)
bodyfont        : 12pt rm is loaded
language        : patterns nl->texnansi:texnansi->1->2:2 nl->ec:ec->2->2:2 us->
ec:ec->3->2:3 de->texnansi:texnansi->4->3:3 de->ec:ec->5->3:3 da->ec:ec->6->2:2
 sv->ec:ec->7->2:2 af->ec:ec->8->2:2 gb->ec:ec->9->2:2 fr->texnansi:texnansi->1
0->2:2 fr->ec:ec->11->2:2 es->ec:ec->12->2:2 ca->ec:ec->13->2:2 it->texnansi:te
xnansi->14->2:2 it->ec:ec->15->2:2 la->ec:ec->16->2:2 pt->texnansi:texnansi->17
->2:2 pt->ec:ec->18->2:2 ro->ec:ec->19->2:2 pl->pl0:pl0->20->2:2 pl->ec:ec->21-
>2:2 pl->qx:qx->22->2:2 cs->il2:il2->23->2:2 cs->ec:ec->24->2:2 sk->il2:il2->25
->2:2 sk->ec:ec->26->2:2 hr->ec:ec->27->2:2 sl->ec:ec->28->2:2 tr->ec:ec->29->2
:2 tk->ec:ec->30->1:2 lt->l7x:l7x->31->2:2 agr->agr:agr->33->2:2 fi->ec:ec->34-
>2:2 hu->ec:ec->35->2:2 ru->t2a:t2a->37->2:2 uk->t2a:t2a->38->3:3  loaded
specials        : dvips loaded
systems         : system commands are enabled
language        : language en is active
specials        : loading definition file tpd
(/usr/local/texlive/2012/texmf-dist/tex/context/base/spec-tpd.mkii
specials        : loading definition file fdf
(/usr/local/texlive/2012/texmf-dist/tex/context/base/spec-fdf.mkii))
system          : module japanese (mkii) loaded
(/usr/local/texlive/2012/texmf-dist/tex/context/base/s-jap-00.mkii
! I can't find file `font-jap.tex'.
l.15 \input font-jap.tex
                         % faster than \setupbodyfont[jap]
(Press Enter to retry, or Control-D to exit)
Please type another input file name: ^d
--- END
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: [***SPAM***] Some guidance please to get Asian Character
  2013-03-11 13:22 [***SPAM***] Some guidance please to get Asian Character hwitloc
@ 2013-03-11 14:46 ` Wolfgang Schuster
  2013-03-14  8:38   ` hwitloc
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2013-03-11 14:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 11.03.2013 um 14:22 schrieb hwitloc@gmail.com:

> 
> I am trying to get Japanese character text in a document, but I'm having problems.
> I am invoking context like this:
> 
> 	texexec --xtx --pdf test-jp.tex
> 
> Below is the context macro source file and below that the compilation output from ConTeXt
> %
> % Simple test file.
> %
> \enableregime[utf-8]
> \mainlanguage[ja]
> \usemodule[japanese]
> \usemodule[simplefonts]
> 
> \starttext
> Hello, World! 
> 世界、今日は!
> \stoptext

I suggest to use MkIV instead of MkII because it makes it easier to select a font.

\mainlanguage[ja]

\usemodule[simplefonts]

\setmainfont[Meiryo] % replace "Meiryo" with a font available on your system

\setscript[nihongo]

\starttext
Hello, World! 
世界、今日は!
\stoptext

Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: [***SPAM***] Some guidance please to get Asian  Character
  2013-03-11 14:46 ` Wolfgang Schuster
@ 2013-03-14  8:38   ` hwitloc
  0 siblings, 0 replies; 3+ messages in thread
From: hwitloc @ 2013-03-14  8:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Wolfgang,
   thanks so much for your resonse.  It's content led to me to a solution, both the demonstration code and importantly the note about using MKIV.   Since texexec is the only thing mentioned in the "ConTEXt the manual", and in other places I've read that MKIV is the latest, I wrongly assumed that texexec was running MKIV.   When trying to compile the source I keep seeing mkii comments in the output and then read up and found out that texexec is for mkii and context is for mkiv.  I was also under the impression that texexec was a supserset  of context and was a script that ran context, since it mentioned "two ways to run contxt" and that texexec script handled mutliple passes etc..    After learning I retried the example code and it now works, which is very good.

Thank You.



Wolfgang Schuster <wolfgang.schuster@gmail.com> wrote:
> Am 11.03.2013 um 14:22 schrieb hwitloc@gmail.com:
> 
> > 
> > I am trying to get Japanese character text in a document, but I'm having problems.
> > I am invoking context like this:
> > 
> > 	texexec --xtx --pdf test-jp.tex
> > 
> > Below is the context macro source file and below that the compilation output from ConTeXt
> > %
> > % Simple test file.
> > %
> > \enableregime[utf-8]
> > \mainlanguage[ja]
> > \usemodule[japanese]
> > \usemodule[simplefonts]
> > 
> > \starttext
> > Hello, World! 
> > 世界、今日は!
> > \stoptext
> 
> I suggest to use MkIV instead of MkII because it makes it easier to select a font.
> 
> \mainlanguage[ja]
> 
> \usemodule[simplefonts]
> 
> \setmainfont[Meiryo] % replace "Meiryo" with a font available on your system
> 
> \setscript[nihongo]
> 
> \starttext
> Hello, World! 
> 世界、今日は!
> \stoptext
> 
> Wolfgang
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2013-03-14  8:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-11 13:22 [***SPAM***] Some guidance please to get Asian Character hwitloc
2013-03-11 14:46 ` Wolfgang Schuster
2013-03-14  8:38   ` hwitloc

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).