From 606ac7d65f5f5974ae7926e84dfb34849ce96db8 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Mon, 27 Jun 2005 00:00:00 +0200 Subject: stable 2005.06.27 --- scripts/context/perl/texfont.pl | 6 +- scripts/context/ruby/base/tex.rb | 1 - scripts/context/ruby/base/tool.rb | 1 + scripts/context/ruby/graphics/gs.rb | 38 ++-- tex/context/base/context.tex | 2 +- tex/context/base/core-fig.tex | 6 +- tex/context/base/core-reg.tex | 16 +- tex/context/base/core-uti.tex | 15 +- tex/context/base/core-ver.tex | 2 +- tex/context/base/enco-uc.tex | 7 + tex/context/base/font-ini.tex | 11 +- tex/context/base/math-ini.tex | 1 + tex/context/base/math-tex.tex | 1 - tex/context/base/math-uni.tex | 78 +++++++ tex/context/base/mult-sys.tex | 1 + tex/context/base/page-num.tex | 20 +- tex/context/base/syst-con.tex | 9 + tex/context/base/syst-prm.tex | 9 + tex/context/base/type-dis.tex | 4 +- tex/context/base/type-enc.tex | 403 +++++++++++------------------------- tex/context/base/type-ini.tex | 21 +- tex/context/base/unic-000.tex | 2 +- tex/context/base/unic-001.tex | 3 +- tex/context/base/unic-002.tex | 4 +- tex/context/base/unic-003.tex | 45 +++- tex/context/base/unic-004.tex | 4 +- tex/context/base/unic-005.tex | 2 +- tex/context/base/unic-030.tex | 3 +- tex/context/base/unic-031.tex | 3 +- tex/context/base/unic-032.tex | 10 +- tex/context/base/unic-033.tex | 240 +++++++++++---------- tex/context/base/unic-034.tex | 57 +---- tex/context/base/unic-039.tex | 68 ++++++ tex/context/base/unic-ini.tex | 51 +++-- tex/context/base/unic-run.tex | 129 ++++++++++++ tex/context/base/verb-ini.tex | 2 +- tex/context/base/xtag-ini.tex | 15 +- tex/context/base/xtag-map.tex | 28 ++- tex/context/base/xtag-mmc.tex | 17 -- tex/context/base/xtag-mmp.tex | 55 ++++- tex/context/extra/showunic.tex | 130 ++++++++++++ tex/context/interface/keys-cz.xml | 2 +- tex/context/interface/keys-de.xml | 2 +- tex/context/interface/keys-en.xml | 2 +- tex/context/interface/keys-it.xml | 2 +- tex/context/interface/keys-nl.xml | 2 +- tex/context/interface/keys-ro.xml | 2 +- 47 files changed, 949 insertions(+), 583 deletions(-) create mode 100644 tex/context/base/math-uni.tex create mode 100644 tex/context/base/unic-039.tex create mode 100644 tex/context/base/unic-run.tex create mode 100644 tex/context/extra/showunic.tex diff --git a/scripts/context/perl/texfont.pl b/scripts/context/perl/texfont.pl index 732fb0f3e..6a569ddfd 100644 --- a/scripts/context/perl/texfont.pl +++ b/scripts/context/perl/texfont.pl @@ -855,7 +855,7 @@ foreach my $file (@files) print "$command\n" if $trace ; $font = `$command` ; chomp $font ; - $cleanfont = $font } + $cleanname = $cleanfont = $font } else { my $command = "afm2tfm \"$file\" -p texnansi.enc texfont.tfm" ; print "$command\n" if $trace ; @@ -1035,8 +1035,8 @@ foreach my $file (@files) report("no mapfile from otftotfm : texfont.map") ; } if ($preproc) { - $mapline =~ s/^(\S+)/$1 + \unknownchar \or % + \unknownchar \or % + \unknownchar \or % + \unknownchar \or % + \unknownchar \or % + \unknownchar \or % + \unknownchar \or % + \unknownchar \or % + \unknownchar \or % WHITE DIAMOND WITH CENTRED DOT + \unknownchar \or % AND WITH DOT + \unknownchar \or % ELEMENT OF OPENING UPWARDS + \unknownchar \or % LOWER RIGHT CORNER WITH DOT + \unknownchar \or % UPPER LEFT CORNER WITH DOT + \unknownchar \or % LEFT OUTER JOIN + \unknownchar \or % RIGHT OUTER JOIN + \unknownchar \or % FULL OUTER JOIN + \unknownchar \or % LARGE UP TACK + \unknownchar \or % LARGE DOWN TACK + \unknownchar \or % LEFT AND RIGHT DOUBLE TURNSTILE + \unknownchar \or % LEFT AND RIGHT TACK + \unknownchar \or % LEFT MULTIMAP + \unknownchar \or % LONG RIGHT TACK + \unknownchar \or % LONG LEFT TACK + \unknownchar \or % UP TACK WITH CIRCLE ABOVE + \unknownchar \or % LOZENGE DIVIDED BY HORIZONTAL RULE + \unknownchar \or % WHITE CONCAVE-SIDED DIAMOND + \unknownchar \or % WHITE CONCAVE-SIDED DIAMOND WITH LEFTWARDS TICK + \unknownchar \or % WHITE CONCAVE-SIDED DIAMOND WITH RIGHTWARDS TICK + \unknownchar \or % WHITE SQUARE WITH LEFTWARDS TICK + \unknownchar \or % WHITE SQUARE WITH RIGHTWARDS TICK + \unic@Lbracket \or % MATHEMATICAL LEFT WHITE SQUARE BRACKET + \unic@Rbracket \or % MATHEMATICAL RIGHT WHITE SQUARE BRACKET + \langle \or % MATHEMATICAL LEFT ANGLE BRACKET + \rangle \or % MATHEMATICAL RIGHT ANGLE BRACKET + \unic@Langle \or % MATHEMATICAL LEFT DOUBLE ANGLE BRACKET + \unic@Rangle \or % MATHEMATICAL RIGHT DOUBLE ANGLE BRACKET + \unknownchar \or % + \unknownchar \or % + \unknownchar \or % + \unknownchar \or % + \unknownchar \else % + \unknownchar + \fi +\stopunicodevector + +\protect \endinput diff --git a/tex/context/base/unic-ini.tex b/tex/context/base/unic-ini.tex index e7f479d65..fb5ef3e66 100644 --- a/tex/context/base/unic-ini.tex +++ b/tex/context/base/unic-ini.tex @@ -152,9 +152,19 @@ %D `#4-\utf@g)} %D \stoptyping -\def\utfdiv#1{\the\numexpr(#1-\utf@g)/\utf@h\relax} +\def\utfdiv#1{\the\numexpr (#1-\utf@g)/\utf@h \relax} \def\utfmod#1{\the\numexpr#1-\utf@h*((#1-\utf@g)/\utf@h)\relax} +%D The next one also handles the zero case well: + +\def\utfdiv#1{\the\numexpr\ifcase\numexpr#1\relax0\else (#1-\utf@g)/\utf@h \fi\relax} +\def\utfmod#1{\the\numexpr\ifcase\numexpr#1\relax0\else#1-\utf@h*((#1-\utf@g)/\utf@h)\fi\relax} + +% or +% +% \def\utfdiv#1{\ifcase\numexpr#1\relax0\else\the\numexpr(#1-\utf@g)/\utf@h\relax\fi} +% \def\utfmod#1{\ifcase\numexpr#1\relax0\else\the\numexpr#1-\utf@h*((#1-\utf@g)/\utf@h)\relax\fi} + %D When tracing we also need: \def\utfvid#1{\the\numexpr(#1-\medcard)/\maxcard\relax} @@ -295,11 +305,7 @@ \def\unicodepair#1% {\utfdiv{#1}:\utfmod{#1}} -\let\unicodenumber\firstofoneargument - -%\def\unicodehexnumber#1% -% {\expanded{\uchexnumbers{\utfdiv{#1}}}% -% \expanded{\uchexnumbers{\utfmod{#1}}}} +\def\unicodenumber#1{\number#1} \def\unicodehexnumber#1% {\ifnum#1>\maxcard @@ -316,9 +322,9 @@ %D problems; somehow \type {\numexpr} cannot look beyond this %D sign, and expects a number. -\def\utfunichar #1{{\tttf U\low{\unicodenumber{#1}}}} -\def\utfunisplit #1{{\tttf U\low{\unicodepair{#1}}}} -\def\utfuniboth #1{{\tttf U\low{\unicodenumber{#1\relax}->\unicodepair{#1}}}} +\def\utfunichar #1{{\tttf U\low{\tx\unicodenumber{#1}}}} +\def\utfunisplit #1{{\tttf U\low{\tx\unicodepair{#1}}}} +\def\utfuniboth #1{{\tttf U\low{\tx\unicodenumber{#1}->\unicodepair{#1}}}} \def\utfunientity #1{{\tttf\&\#x\unicodehexnumber{#1};}} %D The character itself is accessed and typeset by: @@ -408,12 +414,11 @@ \def\utfuniglyphname#1% {{\tttf - \expandafter\string\csname - \ifnum#1<\utf@i - \strippedcsname\unicodeasciicharacter\endcsname{#1}% - \else - \@EA\doutfunihash\@EA{\number\utfdiv{#1}}{#1}\endcsname - \fi}} + \ifnum#1<\utf@i + \unicodeasciicharacter{#1}% + \else + \expandafter\string\csname\doutfunihash{\number\utfdiv{#1}}{#1}\endcsname + \fi}} %D The combined presentation is implemented by: @@ -424,7 +429,7 @@ {\utfunihash{#1}\low{\infofont\unicodepair{#1}}} \def\utfunihashboth #1% - {\utfunihash{#1}\low{\infofont\unicodenumber{#1\relax}->\unicodepair{#1}}} + {\utfunihash{#1}\low{\infofont\unicodenumber{#1}->\unicodepair{#1}}} %D Unknown characters get a placeholder. @@ -443,12 +448,15 @@ %D sense to postpone loading, so let's start doing this %D with \UNICODE. +\def\doifunicodevector#1% + {\doifdefined{\@@univector#1}} + \def\useunicodevector[#1]% {\processcommalist[#1]\douseunicodevector} \def\douseunicodevector#1% {\ifundefined{\@@univector#1}% - \readsysfile{unic-\ifnum#1<10 00\else\ifnum#1<100 0\fi\fi#1} + \readsysfile{\f!unicprefix\threedigits{#1}} {\writestatus{unicode}{loading vector #1}} {\writestatus{unicode}{unknown vector #1}}% \fi} @@ -510,7 +518,7 @@ \noindent \hbox {\hbox to 4em{\tttf\unicodehexnumber{#1}\hss}\quad \hbox to 1em{#2\hss}\quad - \hbox to 9em{\tttf\unicodenumber{#1\relax}->\unicodepair{#1}\hss}\quad + \hbox to 9em{\tttf\unicodenumber{#1}->\unicodepair{#1}\hss}\quad \hbox to 9em{\tttf\let\utfunihash\utfunihashcommand#2\hss}\quad % tricky \lowercase {\tttf#3}}\par \fi} @@ -578,10 +586,15 @@ \@EA\utfunifontcommand \fi} +%D Goodies: + +\fetchruntimecommand \showunicodevector {\f!unicprefix\s!run} +\fetchruntimecommand \showunicodetable {\f!unicprefix\s!run} + %D Well, let's at least preload a few familiar ones. Here we %D also load the \UTF\ regime. -\useunicodevector[0,1,2,3,4,5,30,32,33] \useregime[utf] +\useunicodevector[0,1,2,3,4,5,30,32,33,34,39] \useregime[utf] % 31, text mem usage first diff --git a/tex/context/base/unic-run.tex b/tex/context/base/unic-run.tex new file mode 100644 index 000000000..49b8b6d96 --- /dev/null +++ b/tex/context/base/unic-run.tex @@ -0,0 +1,129 @@ +%D \module +%D [ file=unic-run, +%D version=2005.06.22, +%D title=\CONTEXT\ \UNICODE\ Support, +%D subtitle=Goodies, +%D author=Hans Hagen, +%D date=\currentdate, +%D copyright={PRAGMA / Hans Hagen \& Ton Otten}] +%C +%C This module is part of the \CONTEXT\ macro||package and is +%C therefore copyrighted by \PRAGMA. See mreadme.pdf for +%C details. + +\unprotect + +%D \macros +%D {showunicodevector} +%D +%D Original version by Nikolai Weibull. Adapted a bit (no local count +%D definitions, stepwiserecurse instead of -1 calculations, a bit less +%D code and such). BTW, this is kind of tricky and somehow we don't +%D have align interference. + +\gdef\doshowunicodevectorrow#1#2% + {\NC + \ttx\uchexnumber{#2}% + \VL + \dostepwiserecurse{0}{15}{1}{\unicodechar{\numexpr#1*256+#2+\recurselevel*16\relax}\VL}% + \AR} + +\gdef\showunicodevector#1% + {\starttable[|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|] + \NC\NC\dostepwiserecurse{0}{15}{1}{\ttx\uchexnumber\recurselevel\NC}\AR + \DC\DL[16]\DR + \dostepwiserecurse{0}{15}{1} + {\expanded{\doshowunicodevectorrow{#1}{\recurselevel}}% + \DC\DL[16]\DR} + \NC \use{17}{\hfill \ttx unicode table hex:\uchexnumbers{#1} dec:\threedigits{#1}\kern-.25em}\NC \AR + \stoptable} + +%D \starttyping +%D \chardef\utfunicodetracer=0 +%D \chardef\utfunicodetracer=7 +%D +%D \showunicodevector{000} +%D \showunicodevector{001} +%D \showunicodevector{002} +%D \showunicodevector{003} +%D \showunicodevector{004} +%D \showunicodevector{005} +%D \showunicodevector{030} +%D \showunicodevector{031} +%D \showunicodevector{032} +%D \showunicodevector{033} +%D \showunicodevector{034} +%D \stoptyping + +%D \macros +%D {showunicodetable} +%D +%D A more verbose variant: + +\gdef\doshowunicodetablerow#1#2% + {\bTR + \bTD\uchexnumber{#2}\eTD + \dostepwiserecurse{0}{15}{1} + {\bTD + \edef\entrypoint{\the\numexpr#1*256+#2+##1*16\relax}% + \chardef\utfunicodetracer0{\dontleavehmode \strut\unicodechar\entrypoint\endgraf}% + \tt + \chardef\utfunicodetracer7{\dontleavehmode\txx\strut\unicodechar\entrypoint\endgraf}% + \chardef\utfunicodetracer3{\dontleavehmode\txx\strut\unicodechar\entrypoint\endgraf}% + \chardef\utfunicodetracer8{\dontleavehmode\txx\strut\unicodechar\entrypoint\endgraf}% + \eTD}% + \bTD\uchexnumber{#2}\eTD + \eTR} + +\gdef\showunicodetable#1% + {\vbox\bgroup + \setupTABLE[\c!background=\v!screen,\c!backgroundscreen=.90,\c!frame=\v!off,\c!frameoffset=0pt,\c!width=8em,\c!height=6em]% + \setupTABLE[c] [\v!each] [\c!align={middle,lohi}]% + \setupTABLE[c] [\v!first][\c!background=\v!screen,\c!backgroundscreen=.85,\c!style=\tt\tfa]% + \setupTABLE[c] [\v!last] [\c!background=\v!screen,\c!backgroundscreen=.85,\c!style=\tt\tfa]% + \setupTABLE[r] [\v!first][\c!background=\v!screen,\c!backgroundscreen=.85,\c!style=\tt\tfa]% + \setupTABLE[r] [\v!last] [\c!background=\v!screen,\c!backgroundscreen=.85,\c!style=\tt\tfa]% + \setupTABLE[r] [\v!odd] [\c!background=\v!screen,\c!backgroundscreen=.80]% + \setupTABLE[c] [\v!odd] [\c!background=\v!screen,\c!backgroundscreen=.80]% + \setupTABLE[\v!odd][\v!odd] [\c!background=\v!screen,\c!backgroundscreen=.90]% + \bTABLE + \bTR + \bTD dec: \numbers{#1}\endgraf hex: \uchexnumbers{#1}\eTD + \dostepwiserecurse{0}{15}{1}{\bTD\uchexnumber{##1}\eTD}% + \bTD dec: \numbers{#1}\endgraf hex: \uchexnumbers{#1}\eTD + \eTR + \dostepwiserecurse{0}{15}{1}{\doshowunicodetablerow{#1}{##1}}% + \bTR + \bTD dec: \numbers{#1}\endgraf hex: \uchexnumbers{#1}\eTD + \dostepwiserecurse{0}{15}{1}{\bTD\uchexnumber{##1}\eTD}% + \bTD dec: \numbers{#1}\endgraf hex: \uchexnumbers{#1}\eTD + \eTR + \eTABLE + \egroup} + +\protect \endinput + +% alternative +% +% \gdef\doshowunicodevectorrowa#1#2#3#4% +% {\NC +% \ttx\uchexnumber{#2}% +% \VL +% \dostepwiserecurse{#3}{#4}{1}{\unicodechar{\numexpr#1*256+#2+\recurselevel*16\relax}\VL}% +% \AR} +% +% \gdef\doshowunicodevectorrowb#1#2#3#4% +% {\NC +% \relax +% \VL +% \dostepwiserecurse{#3}{#4}{1}{\unicodechar{\numexpr#1*256+#2+\recurselevel*16\relax}\VL}% +% \AR} +% +% \gdef\showunicodevector#1% +% {\starttable[|c|c|c|c|c|c|c|c|c|] +% \NC\NC\dostepwiserecurse{0}{7}{1}{\ttx\uchexnumber\recurselevel/\uchexnumber{\the\numexpr2*\recurselevel\relax}\NC}\AR\DC\DL[8]\DR +% \dostepwiserecurse{0}{15}{1} +% {\expanded{\doshowunicodevectorrowa{#1}{\recurselevel}{0} {7}}\DC\DL[8]\DR% +% \expanded{\doshowunicodevectorrowb{#1}{\recurselevel}{8}{15}}\DC\DL[8]\DR}% +% \NC \use{9}{\hfill \ttx unicode table hex:\uchexnumbers{#1} dec:\threedigits{#1}\kern-.25em}\NC \AR +% \stoptable} diff --git a/tex/context/base/verb-ini.tex b/tex/context/base/verb-ini.tex index 022cb84d7..b07b73048 100644 --- a/tex/context/base/verb-ini.tex +++ b/tex/context/base/verb-ini.tex @@ -97,7 +97,7 @@ %D complete font||style switch. There we could have stuck with %D \type{\tttf}. -\ifx \undefined \verbatimfont \def\verbatimfont {\tt} \fi +\ifx \undefined \verbatimfont \def\verbatimfont {\tt\normalnoligatures\font} \fi %D \macros %D {obeyedspace, obeyedtab, obeyedline, obeyedpage} diff --git a/tex/context/base/xtag-ini.tex b/tex/context/base/xtag-ini.tex index a3a83a918..7ba173050 100644 --- a/tex/context/base/xtag-ini.tex +++ b/tex/context/base/xtag-ini.tex @@ -228,8 +228,13 @@ %D a way around this, but for convenience \TEXEXEC\ will take %D care of processing raw \XML\ files in a transparant way. -\chardef\XMLtokensreduction\zerocount % cmr as default -\chardef\XMLtokensreduction\plustwo % lmr as default +% cmr -- best for tui and such +% +% \chardef\XMLtokensreduction\zerocount +% +% lmr -- best but problematic for tui file: + +\chardef\XMLtokensreduction\plustwo % \def\alwaysreduceXMLtokens {\XMLtokensreduction\plusone} % \def\permanentreduceXMLtokens{\XMLtokensreduction\plustwo} @@ -277,14 +282,16 @@ .catcode`.?=.@@other .catcode`.:=.@@other * active in french .catcode`.;=.@@other * active in french - .catcode`.&=.@@active .let&=.doXMLentity - .catcode`.<=.@@active .unexpanded.def=.@@other .catcode`."=.@@other .catcode`./=.@@other .catcode`.'=.@@other .catcode`.~=.@@other .catcode`.#=.@@other + .let &=.doXMLentity + .unexpanded.defaap‒noot coördinatie – één +% \stopXMLdata +% +% weird case: +% +% \chardef\XMLtokensreduction\zerocount +% \startXMLdata +% \"{a}\"{o}\"{u}\v{c}\v{s}\v{z} +% \stopXMLdata +% +% \chardef\XMLtokensreduction\plustwo +% \startXMLdata +% \"{a}\"{o}\"{u}\v{c}\v{s}\v{z} +% \stopXMLdata % rename to better names diff --git a/tex/context/base/xtag-mmc.tex b/tex/context/base/xtag-mmc.tex index d10b26ceb..a6f7578c2 100644 --- a/tex/context/base/xtag-mmc.tex +++ b/tex/context/base/xtag-mmc.tex @@ -409,16 +409,6 @@ complex-cartesian=>\let\next\MMLccartesian, \def\MMLcPIECEWISE#1#2% {\cases{#2}} -%\def\MMLcPIECE#1#2% \@@MMLpieceseparator -% {\withnexttwoXMLRelements -% {\@EA\XMLRtoks\@EA{\firstXMLRelement\@col@amp@}% -% \@EA\appendtoks\@EA\mathematics\@EA{\secondXMLRelement}\to\XMLRtoks -% \the\XMLRtoks\crcr}% -% #2}% -% -%\def\MMLcOTHERWISE#1#2% -% {#2\@col@amp@\mathematics{\getXMLentity{otherwise}}\crcr} - \def\MMLcPIECEseparator{\doif\@@MMLpieceseparator\v!yes,} \def\MMLcPIECE#1#2% @@ -553,13 +543,6 @@ complex-cartesian=>\let\next\MMLccartesian, \remapXMLsingular [root] [CPA] \MMLcROOT -% \def\MMLcROOT#1#2#3\empty -% {\doifXMLRchildelse{degree}{#3} -% {\root\processXMLRchild{degree}{#3}\of -% {\let\MMLcDEGREE\ignoreXMLRelement -% \MMLcreset\processXMLRchildren{#3}}} -% {\sqrt{\MMLcreset\processXMLRchildren{#3}}}} - \setupMMLappearance[root][\c!symbol=\v!yes] \def\MMLcROOT#1#2#3\empty diff --git a/tex/context/base/xtag-mmp.tex b/tex/context/base/xtag-mmp.tex index 659b267bf..7cc6e5b26 100644 --- a/tex/context/base/xtag-mmp.tex +++ b/tex/context/base/xtag-mmp.tex @@ -125,7 +125,7 @@ \ifx\MMLpopen\empty\else\right.\fi \else\doMMLright\MMLpclose\fi} -\def\resetMMLseparator% +\def\resetMMLseparator {\newcounter\MMLxxcounter \let\lastMMLseparator\empty} @@ -134,7 +134,7 @@ \newcounter\MMLyycounter \expanded{\dograbMMLseparator#1\noexpand\relax}} -\def\dograbMMLseparator% +\def\dograbMMLseparator {\increment\MMLyycounter \doifnextcharelse\relax {\lastMMLseparator\gobbleoneargument} @@ -191,7 +191,7 @@ \getXMLarguments {mstyle} - {fontweight="" fontstyle="" mathstyle="" background="" color=""}% + {fontweight="" fontstyle="" mathstyle="" mathvariant="" background="" color=""} \def\MMLpSTYLE#1#2% {\getXMLarguments{mstyle}{#1}#2} @@ -203,7 +203,8 @@ \def\MMLpTEXT#1#2% {\hbox - {\getXMLarguments{mstyle}{#1}% + {\tf % else encoding problems + \getXMLarguments{mstyle}{#1}% \doMMPpbackground{mstyle} {\doMMPpcolor{mstyle} {\setMMLptextstyle{mstyle}% @@ -518,3 +519,49 @@ \stopXMLmapping \protect \endinput + +% extra samples + +\startXMLdata + + + + + + + Q + + + P + + + + + R + + + + +\stopXMLdata + +\startXMLdata + + + + + + + R + + + P + + + + + R + + + + +\stopXMLdata diff --git a/tex/context/extra/showunic.tex b/tex/context/extra/showunic.tex new file mode 100644 index 000000000..efdbf4d3a --- /dev/null +++ b/tex/context/extra/showunic.tex @@ -0,0 +1,130 @@ +% author : Hans Hagen / PRAGMA-ADE +% version : 2005-06-22 + +% todo: take antiqua (has everything) + +% \tracetypescriptstrue + +\usetypescriptfile[type-cbg] + +% \preloadtypescriptstrue (default at pragma) + +% this font does not work ... why +% +% \starttypescript [serif] [hebrew] [default] +% \definefontsynonym [Serif] [hclassic] +% \loadmapline[=][hclassic < hclassic.pfb] +% \stoptypescript + +\setuppapersize + [S6][S6] + +\setupbodyfont + [10pt] + +\setuplayout + [backspace=12pt, + topspace=12pt, + width=middle, + height=middle, + header=0pt, + footer=0pt] + +\setupcolors + [state=start] + +\setupbackgrounds + [page] + [background=color, + backgroundcolor=darkgray] + +\definetypeface [main-latin] [rm] [serif] [latin-modern] [default][encoding=texnansi] +\definetypeface [main-latin] [tt] [mono] [latin-modern] [default][encoding=texnansi] + +\definetypeface [main-math] [rm] [serif] [latin-modern] [default][encoding=texnansi] +\definetypeface [main-math] [tt] [mono] [latin-modern] [default][encoding=texnansi] +\definetypeface [main-math] [mm] [math] [latin-modern] [default][encoding=default] + +\definetypeface [main-eastern] [rm] [serif] [latin-modern] [default][encoding=qx] +\definetypeface [main-eastern] [tt] [mono] [latin-modern] [default][encoding=texnansi] + +\definetypeface [main-greek] [rm] [serif] [cbgreek] [default][encoding=default] +\definetypeface [main-greek] [tt] [mono] [latin-modern] [default][encoding=texnansi] + +\definetypeface [main-cyrillic] [rm] [serif] [computer-modern] [default][encoding=t2a] +\definetypeface [main-cyrillic] [tt] [mono] [latin-modern] [default][encoding=texnansi] + +% \definetypeface [main-hebrew] [rm] [serif] [hebrew] [default][encoding=default] +% \definetypeface [main-hebrew] [tt] [mono] [latin-modern] [default][encoding=texnansi] + +% The \showunicodetable macro is defined in unic-run.tex. + +\starttext + +% latin: western / eastern + +\startstandardmakeup + \setupbodyfont[main-latin] + \centerbox{\scale[factor=max]{\showunicodetable{000}}} +\stopstandardmakeup +\startstandardmakeup + \setupbodyfont[main-eastern] + \centerbox{\scale[factor=max]{\showunicodetable{001}}} +\stopstandardmakeup +\startstandardmakeup + \setupbodyfont[main-latin] + \centerbox{\scale[factor=max]{\showunicodetable{002}}} +\stopstandardmakeup + +% greek + +\startstandardmakeup + \setupbodyfont[main-greek] + \centerbox{\scale[factor=max]{\showunicodetable{003}}} +\stopstandardmakeup + +% cyrillic + +\startstandardmakeup + \setupbodyfont[main-cyrillic] + \centerbox{\scale[factor=max]{\showunicodetable{004}}} +\stopstandardmakeup + +% hebrew + +% \startstandardmakeup +% \setupbodyfont[mainhebrew] +% \centerbox{\scale[factor=max]{\showunicodetable{005}}} +% \stopstandardmakeup + +% misc + +\startstandardmakeup + \setupbodyfont[main-latin] + \centerbox{\scale[factor=max]{\showunicodetable{030}}} +\stopstandardmakeup +\startstandardmakeup + \setupbodyfont[main-latin] + \centerbox{\scale[factor=max]{\showunicodetable{031}}} +\stopstandardmakeup +\startstandardmakeup + \setupbodyfont[main-latin] + \centerbox{\scale[factor=max]{\showunicodetable{032}}} +\stopstandardmakeup + +% math + +\startstandardmakeup + \setupbodyfont[main-math] + \centerbox{\scale[factor=max]{\showunicodetable{033}}} +\stopstandardmakeup +\startstandardmakeup + \setupbodyfont[main-math] + \centerbox{\scale[factor=max]{\showunicodetable{034}}} +\stopstandardmakeup +\startstandardmakeup + \setupbodyfont[main-math] + \centerbox{\scale[factor=max]{\showunicodetable{039}}} +\stopstandardmakeup + +\stoptext diff --git a/tex/context/interface/keys-cz.xml b/tex/context/interface/keys-cz.xml index 6a72dbabf..096ca9e55 100644 --- a/tex/context/interface/keys-cz.xml +++ b/tex/context/interface/keys-cz.xml @@ -1,6 +1,6 @@ - + diff --git a/tex/context/interface/keys-de.xml b/tex/context/interface/keys-de.xml index 26a76a7c0..3f47235a3 100644 --- a/tex/context/interface/keys-de.xml +++ b/tex/context/interface/keys-de.xml @@ -1,6 +1,6 @@ - + diff --git a/tex/context/interface/keys-en.xml b/tex/context/interface/keys-en.xml index 3daec8981..41e2f79ff 100644 --- a/tex/context/interface/keys-en.xml +++ b/tex/context/interface/keys-en.xml @@ -1,6 +1,6 @@ - + diff --git a/tex/context/interface/keys-it.xml b/tex/context/interface/keys-it.xml index f272ee751..78ec3c447 100644 --- a/tex/context/interface/keys-it.xml +++ b/tex/context/interface/keys-it.xml @@ -1,6 +1,6 @@ - + diff --git a/tex/context/interface/keys-nl.xml b/tex/context/interface/keys-nl.xml index 9a6b21cfe..fdd33fe15 100644 --- a/tex/context/interface/keys-nl.xml +++ b/tex/context/interface/keys-nl.xml @@ -1,6 +1,6 @@ - + diff --git a/tex/context/interface/keys-ro.xml b/tex/context/interface/keys-ro.xml index 517160b28..db2908a1c 100644 --- a/tex/context/interface/keys-ro.xml +++ b/tex/context/interface/keys-ro.xml @@ -1,6 +1,6 @@ - + -- cgit v1.2.3